_ccall_ getgrgid gid >>= \ ptr ->
if ptr == (``NULL'' :: Addr) then
fail (IOError Nothing NoSuchThing
- "getGroupEntryForID: no such group entry")
+ "getGroupEntryForID" "no such group entry")
else
unpackGroupEntry ptr
_ccall_ getgrnam gname >>= \ ptr ->
if ptr == (``NULL'' :: Addr) then
fail (IOError Nothing NoSuchThing
- "getGroupEntryForName: no such group entry")
+ "getGroupEntryForName" "no such group entry")
else
unpackGroupEntry ptr
_ccall_ getpwuid uid >>= \ ptr ->
if ptr == ``NULL'' then
fail (IOError Nothing NoSuchThing
- "getUserEntryForID: no such user entry")
+ "getUserEntryForID" "no such user entry")
else
unpackUserEntry ptr
_ccall_ getpwnam uname >>= \ ptr ->
if ptr == ``NULL'' then
fail (IOError Nothing NoSuchThing
- "getUserEntryForName: no such user entry")
+ "getUserEntryForName" "no such user entry")
else
unpackUserEntry ptr
\end{code}
else do
errno <- getErrorCode
if errno == noError
- then fail (IOError Nothing EOF "EOF")
+ then fail (IOError Nothing EOF "readDirStream" "EOF")
else syserr "readDirStream"
rewindDirStream :: DirStream -> IO ()
else do
errno <- getErrorCode
if errno == invalidArgument
- then fail (IOError Nothing NoSuchThing "PosixFiles.getPathVar: no such path limit or option")
+ then fail (IOError Nothing NoSuchThing "getPathVar" "no such path limit or option")
else syserr "PosixFiles.getPathVar"
else do
errno <- getErrorCode
if errno == invalidArgument
- then fail (IOError Nothing NoSuchThing "getFileVar: no such path limit or option")
+ then fail (IOError Nothing NoSuchThing "getFileVar" "no such path limit or option")
else syserr "getFileVar"
\end{code}