Permalink
Browse files

fixed freebsd ffi name.

  • Loading branch information...
1 parent 4993ea7 commit 9cc4fc2a4665e16fe66500d0c7bb8e25a03f5f82 Aycan iRiCAN committed Jun 1, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 System/Syscall/FreeBSD.hsc
@@ -1,8 +1,8 @@
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
--- | Linux System Calls
+-- | FreeBSD System Calls
-- http://fxr.watson.org/fxr/source/kern/syscalls.master
module System.Syscall.FreeBSD
- ( c_sendfile
+ ( c_sendfile_freebsd
)
where
@@ -12,5 +12,5 @@ import System.Posix.Types (COff, Fd)
-- | Sendfile
-- 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

0 comments on commit 9cc4fc2

Please sign in to comment.