Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #420 from angerman/patch-1
Browse files Browse the repository at this point in the history
Use CApiFFI for variadic fcntl
  • Loading branch information
vincenthz authored Nov 4, 2017
2 parents 8e651e5 + deb7bfb commit 52bfdf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Foundation/System/Bindings/Posix.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
-- Functions defined by the POSIX standards
--
-----------------------------------------------------------------------------
{-# LANGUAGE CApiFFI #-}
{-# OPTIONS_HADDOCK hide #-}
module Foundation.System.Bindings.Posix
where
Expand Down Expand Up @@ -348,9 +349,9 @@ foreign import ccall unsafe "openat"
foreign import ccall unsafe "close"
sysPosixClose :: CFd -> IO CInt

foreign import ccall unsafe "fcntl"
foreign import capi "fcntl.h fcntl"
sysPosixFnctlNoArg :: CFd -> CInt -> IO CInt
foreign import ccall unsafe "fcntl"
foreign import capi "fcntl.h fcntl"
sysPosixFnctlPtr :: CFd -> CInt -> Ptr a -> IO CInt

foreign import ccall unsafe "ftruncate"
Expand Down

0 comments on commit 52bfdf9

Please sign in to comment.