Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/DErrNo.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


module NHC.DErrNo where

{- Automatically generated from /usr/include/errno.h -}
{- Then stripped by hand to a core common to most machines. -}

data ErrNo =
    Edummy
  | EPERM
  | ENOENT
  | ESRCH
  | EINTR
  | EIO
  | ENXIO
  | E2BIG
  | ENOEXEC
  | EBADF
  | ECHILD
  | EAGAIN
  | ENOMEM
  | EACCES
  | EFAULT
  | ENOTBLK
  | EBUSY
  | EEXIST
  | EXDEV
  | ENODEV
  | ENOTDIR
  | EISDIR
  | EINVAL
  | ENFILE
  | EMFILE
  | ENOTTY
  | ETXTBSY
  | EFBIG
  | ENOSPC
  | ESPIPE
  | EROFS
  | EMLINK
  | EPIPE
  | EDOM
  | ERANGE
  deriving (Eq,Enum,Show)

eqErrNo :: ErrNo -> ErrNo -> Bool
eqErrNo a b = a==b

alreadyexists = [  EEXIST ]
doesnotexist  = [  ENOENT ]
alreadyinuse  = [  EBUSY  ]
full          = [  ENOSPC ]
illegalop     = [  EPERM  ]
nopermission  = [  EACCES ]


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.