From: simonmar Date: Wed, 26 Sep 2001 10:38:02 +0000 (+0000) Subject: [project @ 2001-09-26 10:38:02 by simonmar] X-Git-Tag: Approximately_9120_patches~909 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e8ec58469e0e0dc11d0c8c70991b500c922634df;p=ghc-hetmet.git [project @ 2001-09-26 10:38:02 by simonmar] ENODEV should really be an UnsupportedOperation, not NoSuchThing. --- diff --git a/ghc/lib/std/PrelCError.lhs b/ghc/lib/std/PrelCError.lhs index 9979a00..1d62eec 100644 --- a/ghc/lib/std/PrelCError.lhs +++ b/ghc/lib/std/PrelCError.lhs @@ -1,5 +1,5 @@ % ----------------------------------------------------------------------------- -% $Id: PrelCError.lhs,v 1.10 2001/07/13 11:11:34 rrt Exp $ +% $Id: PrelCError.lhs,v 1.11 2001/09/26 10:38:02 simonmar Exp $ % % (c) The FFI task force, 2000 % @@ -456,7 +456,7 @@ errnoToIOError loc errno maybeHdl maybeName = unsafePerformIO $ do | errno == eNFILE = ResourceExhausted | errno == eNOBUFS = ResourceExhausted | errno == eNODATA = NoSuchThing - | errno == eNODEV = NoSuchThing + | errno == eNODEV = UnsupportedOperation | errno == eNOENT = NoSuchThing | errno == eNOEXEC = InvalidArgument | errno == eNOLCK = ResourceExhausted