projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f983ca2
)
[project @ 2005-01-26 12:23:33 by simonmar]
author
simonmar
<unknown>
Wed, 26 Jan 2005 12:23:33 +0000
(12:23 +0000)
committer
simonmar
<unknown>
Wed, 26 Jan 2005 12:23:33 +0000
(12:23 +0000)
I think InvalidArgument is more useful than OtherError for EBADF.
Foreign/C/Error.hs
patch
|
blob
|
history
diff --git
a/Foreign/C/Error.hs
b/Foreign/C/Error.hs
index
74d4e1a
..
ac26141
100644
(file)
--- a/
Foreign/C/Error.hs
+++ b/
Foreign/C/Error.hs
@@
-472,7
+472,7
@@
errnoToIOError loc errno maybeHdl maybeName = unsafePerformIO $ do
| errno == eAFNOSUPPORT = UnsupportedOperation
| errno == eAGAIN = ResourceExhausted
| errno == eALREADY = AlreadyExists
- | errno == eBADF = OtherError
+ | errno == eBADF = InvalidArgument
| errno == eBADMSG = InappropriateType
| errno == eBADRPC = OtherError
| errno == eBUSY = ResourceBusy