Skip to content

Commit

Permalink
fixed freebsd ffi name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aycan iRiCAN committed Jun 1, 2010
1 parent 4993ea7 commit 9cc4fc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions System/Syscall/FreeBSD.hsc
@@ -1,8 +1,8 @@
{-# LANGUAGE CPP, ForeignFunctionInterface #-} {-# LANGUAGE CPP, ForeignFunctionInterface #-}
-- | Linux System Calls -- | FreeBSD System Calls
-- http://fxr.watson.org/fxr/source/kern/syscalls.master -- http://fxr.watson.org/fxr/source/kern/syscalls.master
module System.Syscall.FreeBSD module System.Syscall.FreeBSD
( c_sendfile ( c_sendfile_freebsd
) )
where where


Expand All @@ -12,5 +12,5 @@ import System.Posix.Types (COff, Fd)


-- | Sendfile -- | Sendfile
-- int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); -- int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags);
foreign import ccall unsafe "sys/uio.h sendfile" c_sendfile foreign import ccall unsafe "sys/uio.h sendfile" c_sendfile_freebsd
:: Fd -> Fd -> COff -> CSize -> Ptr () -> Ptr COff -> CInt -> IO CInt :: Fd -> Fd -> COff -> CSize -> Ptr () -> Ptr COff -> CInt -> IO CInt

0 comments on commit 9cc4fc2

Please sign in to comment.