-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | FFI to syscalls
--
-- FFI to OS syscalls (open, close, sendfile etc...).
@package hsyscall
@version 0.2
module System.Syscall
c_open :: CString -> CInt -> IO CInt
c_close :: CInt -> IO CInt
-- | Read, Write
c_read :: CInt -> Ptr () -> CSize -> IO (CSize)
c_write :: CInt -> Ptr () -> CSize -> IO (CSize)
-- | Fcntl
c_fcntl :: CInt -> CInt -> CLong -> IO CInt
-- | Stat int stat(const char *path, struct stat *buf); int fstat(int fd,
-- struct stat *buf); int lstat(const char *path, struct stat *buf);
data StructStat
StructStat :: !Int64 -> StructStat
stSize :: StructStat -> !Int64
c_stat :: CString -> StructStatPtr -> IO CInt
c_fstat :: CInt -> StructStatPtr -> IO CInt
c_lstat :: CString -> StructStatPtr -> IO CInt
-- | Sendfile ssize_t sendfile(int out_fd, int in_fd, off_t * offset ,
-- size_t count );
c_sendfile :: CInt -> CInt -> Ptr (Int64) -> (Word32) -> IO (Int32)