From e8ec58469e0e0dc11d0c8c70991b500c922634df Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 26 Sep 2001 10:38:02 +0000 Subject: [PATCH] [project @ 2001-09-26 10:38:02 by simonmar] ENODEV should really be an UnsupportedOperation, not NoSuchThing. --- ghc/lib/std/PrelCError.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4