diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-30 18:23:15 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-30 18:23:15 +0100 |
commit | 03783d2758d2f35c01a8570da30f508c3b9e019b (patch) | |
tree | 722cb383471e7451516823849b012f9dc6b5ecdd /System | |
parent | cca358b86edc72bcb641fca362960917783b599e (diff) |
Replace `__hsunix_getpwent` wrapper with CApiFFI
Diffstat (limited to 'System')
-rw-r--r-- | System/Posix/User.hsc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/System/Posix/User.hsc b/System/Posix/User.hsc index d1a794a..3e11389 100644 --- a/System/Posix/User.hsc +++ b/System/Posix/User.hsc @@ -378,11 +378,11 @@ getAllUserEntries = else do thisentry <- unpackUserEntry ppw worker (thisentry : accum) -foreign import ccall unsafe "__hsunix_getpwent" +foreign import capi unsafe "HsUnix.h getpwent" c_getpwent :: IO (Ptr CPasswd) -foreign import ccall unsafe "setpwent" +foreign import capi unsafe "HsUnix.h setpwent" c_setpwent :: IO () -foreign import ccall unsafe "endpwent" +foreign import capi unsafe "HsUnix.h endpwent" c_endpwent :: IO () #else getAllUserEntries = error "System.Posix.User.getAllUserEntries: not supported" |