errno
values
Haskell representation for errno
values. The implementation is deliberately exposed, to allow users to add their own definitions of Errno
values.
errno
symbols
Different operating systems and/or C libraries often support different values of errno
. This module defines the common values, but due to the open definition of Errno
users may add definitions which are not predefined.
eOK, eXDEV, eWOULDBLOCK, eUSERS, eTXTBSY, eTOOMANYREFS, eTIMEDOUT, eTIME, eSTALE, eSRMNT, eSRCH, eSPIPE, eSOCKTNOSUPPORT, eSHUTDOWN, eRREMOTE, eRPCMISMATCH, eROFS, eREMOTE, eREMCHG, eRANGE, ePROTOTYPE, ePROTONOSUPPORT, ePROTO, ePROGUNAVAIL, ePROGMISMATCH, ePROCUNAVAIL, ePROCLIM, ePIPE, ePFNOSUPPORT, ePERM, eOPNOTSUPP, eNXIO, eNOTTY, eNOTSOCK, eNOTEMPTY, eNOTDIR, eNOTCONN, eNOTBLK, eNOSYS, eNOSTR, eNOSR, eNOSPC, eNOPROTOOPT, eNONET, eNOMSG, eNOMEM, eNOLINK, eNOLCK, eNOEXEC, eNOENT, eNODEV, eNODATA, eNOBUFS, eNFILE, eNETUNREACH, eNETRESET, eNETDOWN, eNAMETOOLONG, eMULTIHOP, eMSGSIZE, eMLINK, eMFILE, eLOOP, eISDIR, eISCONN, eIO, eINVAL, eINTR, eINPROGRESS, eILSEQ, eIDRM, eHOSTUNREACH, eHOSTDOWN, eFTYPE, eFBIG, eFAULT, eEXIST, eDQUOT, eDOM, eDIRTY, eDESTADDRREQ, eDEADLK, eCONNRESET, eCONNREFUSED, eCONNABORTED, eCOMM, eCHILD, eBUSY, eBADRPC, eBADMSG, eBADF, eALREADY, eAGAIN, eAFNOSUPPORT, eADV, eADDRNOTAVAIL, eADDRINUSE, eACCES, e2BIG :: ErrnoSource
Errno
functions
Arguments
:: Stringthe location where the error occurred
-> Errnothe error number
-> Maybe Handleoptional handle associated with the error
-> Maybe Stringoptional filename associated with the error
-> IOErrorConstruct an IOError
based on the given Errno
value. The optional information can be used to improve the accuracy of error messages.
Arguments
:: (a -> Bool)predicate to apply to the result value of the IO
operation
textual description of the location
-> IO athe IO
operation to be executed
Throw an IOError
corresponding to the current value of getErrno
if the result value of the IO
action meets the given predicate.
throwErrnoIfRetryMayBlockSource
Arguments
:: (a -> Bool)predicate to apply to the result value of the IO
operation
textual description of the location
-> IO athe IO
operation to be executed
action to execute before retrying if an immediate retry would block
-> IO aas throwErrnoIfRetry
, but additionally if the operation yields the error code eAGAIN
or eWOULDBLOCK
, an alternative action is executed before retrying.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4