hsyscall-0.1: FFI to syscalls

System.Syscall

Synopsis

Documentation

c_read :: CInt -> Ptr () -> CSize -> IO CSizeSource

Read, Write

c_fcntl :: CInt -> CInt -> CLong -> IO CIntSource

Fcntl

data StructStat Source

Stat int stat(const char *path, struct stat *buf); int fstat(int fd, struct stat *buf); int lstat(const char *path, struct stat *buf);

Constructors

StructStat 

Fields

stSize :: !Int64
 

Instances

c_stat :: CString -> StructStatPtr -> IO CIntSource

c_fstat :: CInt -> StructStatPtr -> IO CIntSource

c_lstat :: CString -> StructStatPtr -> IO CIntSource

c_sendfile :: CInt -> CInt -> Ptr Int64 -> Word32 -> IO Int32Source

Sendfile ssize_t sendfile(int out_fd, int in_fd, off_t * offset , size_t count );