Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 6e204a966e8c42d976f99a1700ce5f20 > files > 3715

ghc-7.4.2-4.mga5.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Foreign.C.Error</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Foreign-C-Error.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">haskell2010-1.1.0.1: Compatibility with Haskell 2010</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">Foreign.C.Error</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Haskell representations of <code>errno</code> values
</a><ul><li><a href="#g:2">Common <code>errno</code> symbols
</a></li><li><a href="#g:3"><code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> functions
</a></li><li><a href="#g:4">Guards for IO operations that may fail
</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The module <a href="../base-4.5.1.0/Foreign-C-Error.html">Foreign.C.Error</a> facilitates C-specific error
 handling of <code>errno</code>.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">newtype</span>  <a href="#t:Errno">Errno</a>  = <a href="#v:Errno">Errno</a> <a href="Foreign-C-Types.html#t:CInt">CInt</a></li><li class="src short"><a href="#v:eOK">eOK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:e2BIG">e2BIG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eACCES">eACCES</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eADDRINUSE">eADDRINUSE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eADDRNOTAVAIL">eADDRNOTAVAIL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eADV">eADV</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eAFNOSUPPORT">eAFNOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eAGAIN">eAGAIN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eALREADY">eALREADY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eBADF">eBADF</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eBADMSG">eBADMSG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eBADRPC">eBADRPC</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eBUSY">eBUSY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eCHILD">eCHILD</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eCOMM">eCOMM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eCONNABORTED">eCONNABORTED</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eCONNREFUSED">eCONNREFUSED</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eCONNRESET">eCONNRESET</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eDEADLK">eDEADLK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eDESTADDRREQ">eDESTADDRREQ</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eDIRTY">eDIRTY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eDOM">eDOM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eDQUOT">eDQUOT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eEXIST">eEXIST</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eFAULT">eFAULT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eFBIG">eFBIG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eFTYPE">eFTYPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eHOSTDOWN">eHOSTDOWN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eHOSTUNREACH">eHOSTUNREACH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eIDRM">eIDRM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eILSEQ">eILSEQ</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eINPROGRESS">eINPROGRESS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eINTR">eINTR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eINVAL">eINVAL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eIO">eIO</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eISCONN">eISCONN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eISDIR">eISDIR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eLOOP">eLOOP</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eMFILE">eMFILE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eMLINK">eMLINK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eMSGSIZE">eMSGSIZE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eMULTIHOP">eMULTIHOP</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNAMETOOLONG">eNAMETOOLONG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNETDOWN">eNETDOWN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNETRESET">eNETRESET</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNETUNREACH">eNETUNREACH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNFILE">eNFILE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOBUFS">eNOBUFS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNODATA">eNODATA</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNODEV">eNODEV</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOENT">eNOENT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOEXEC">eNOEXEC</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOLCK">eNOLCK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOLINK">eNOLINK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOMEM">eNOMEM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOMSG">eNOMSG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNONET">eNONET</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOPROTOOPT">eNOPROTOOPT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOSPC">eNOSPC</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOSR">eNOSR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOSTR">eNOSTR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOSYS">eNOSYS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOTBLK">eNOTBLK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOTCONN">eNOTCONN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOTDIR">eNOTDIR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOTEMPTY">eNOTEMPTY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOTSOCK">eNOTSOCK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNOTTY">eNOTTY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eNXIO">eNXIO</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eOPNOTSUPP">eOPNOTSUPP</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePERM">ePERM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePFNOSUPPORT">ePFNOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePIPE">ePIPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROCLIM">ePROCLIM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROCUNAVAIL">ePROCUNAVAIL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROGMISMATCH">ePROGMISMATCH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROGUNAVAIL">ePROGUNAVAIL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROTO">ePROTO</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROTONOSUPPORT">ePROTONOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:ePROTOTYPE">ePROTOTYPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eRANGE">eRANGE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eREMCHG">eREMCHG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eREMOTE">eREMOTE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eROFS">eROFS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eRPCMISMATCH">eRPCMISMATCH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eRREMOTE">eRREMOTE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eSHUTDOWN">eSHUTDOWN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eSOCKTNOSUPPORT">eSOCKTNOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eSPIPE">eSPIPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eSRCH">eSRCH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eSRMNT">eSRMNT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eSTALE">eSTALE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eTIME">eTIME</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eTIMEDOUT">eTIMEDOUT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eTOOMANYREFS">eTOOMANYREFS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eTXTBSY">eTXTBSY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eUSERS">eUSERS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eWOULDBLOCK">eWOULDBLOCK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:eXDEV">eXDEV</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:isValidErrno">isValidErrno</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a> -&gt; <a href="Prelude.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:getErrno">getErrno</a> :: <a href="Prelude.html#t:IO">IO</a> <a href="Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><a href="#v:resetErrno">resetErrno</a> :: <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:errnoToIOError">errnoToIOError</a> :: <a href="Prelude.html#t:String">String</a> -&gt; <a href="Foreign-C-Error.html#t:Errno">Errno</a> -&gt; <a href="Prelude.html#t:Maybe">Maybe</a> <a href="System-IO.html#t:Handle">Handle</a> -&gt; <a href="Prelude.html#t:Maybe">Maybe</a> <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IOError">IOError</a></li><li class="src short"><a href="#v:throwErrno">throwErrno</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIf">throwErrnoIf</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIf_">throwErrnoIf_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoIfRetry">throwErrnoIfRetry</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIfRetry_">throwErrnoIfRetry_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoIfMinus1">throwErrnoIfMinus1</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIfMinus1_">throwErrnoIfMinus1_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoIfMinus1Retry">throwErrnoIfMinus1Retry</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIfMinus1Retry_">throwErrnoIfMinus1Retry_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoIfNull">throwErrnoIfNull</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)</li><li class="src short"><a href="#v:throwErrnoIfNullRetry">throwErrnoIfNullRetry</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)</li><li class="src short"><a href="#v:throwErrnoIfRetryMayBlock">throwErrnoIfRetryMayBlock</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIfRetryMayBlock_">throwErrnoIfRetryMayBlock_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoIfMinus1RetryMayBlock">throwErrnoIfMinus1RetryMayBlock</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoIfMinus1RetryMayBlock_">throwErrnoIfMinus1RetryMayBlock_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoIfNullRetryMayBlock">throwErrnoIfNullRetryMayBlock</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)</li><li class="src short"><a href="#v:throwErrnoPath">throwErrnoPath</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoPathIf">throwErrnoPathIf</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoPathIf_">throwErrnoPathIf_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:throwErrnoPathIfNull">throwErrnoPathIfNull</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)</li><li class="src short"><a href="#v:throwErrnoPathIfMinus1">throwErrnoPathIfMinus1</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:throwErrnoPathIfMinus1_">throwErrnoPathIfMinus1_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1 id="g:1">Haskell representations of <code>errno</code> values
</h1><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:Errno" class="def">Errno</a>  <a href="../base-4.5.1.0/src/Foreign-C-Error.html#Errno" class="link">Source</a></p><div class="doc"><p>Haskell representation for <code>errno</code> values.
 The implementation is deliberately exposed, to allow users to add
 their own definitions of <code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> values.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Errno" class="def">Errno</a> <a href="Foreign-C-Types.html#t:CInt">CInt</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Errno" class="caption collapser" onclick="toggleSection('i:Errno')">Instances</p><div id="section.i:Errno" class="show"><table><tr><td class="src"><a href="Prelude.html#t:Eq">Eq</a> <a href="Foreign-C-Error.html#t:Errno">Errno</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h2 id="g:2">Common <code>errno</code> symbols
</h2><div class="doc"><p>Different operating systems and/or C libraries often support
 different values of <code>errno</code>.  This module defines the common values,
 but due to the open definition of <code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> users may add definitions
 which are not predefined.
</p></div><div class="top"><p class="src"><a name="v:eOK" class="def">eOK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eOK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:e2BIG" class="def">e2BIG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#e2BIG" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eACCES" class="def">eACCES</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eACCES" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eADDRINUSE" class="def">eADDRINUSE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eADDRINUSE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eADDRNOTAVAIL" class="def">eADDRNOTAVAIL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eADDRNOTAVAIL" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eADV" class="def">eADV</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eADV" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eAFNOSUPPORT" class="def">eAFNOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eAFNOSUPPORT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eAGAIN" class="def">eAGAIN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eAGAIN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eALREADY" class="def">eALREADY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eALREADY" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eBADF" class="def">eBADF</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eBADF" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eBADMSG" class="def">eBADMSG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eBADMSG" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eBADRPC" class="def">eBADRPC</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eBADRPC" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eBUSY" class="def">eBUSY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eBUSY" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eCHILD" class="def">eCHILD</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eCHILD" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eCOMM" class="def">eCOMM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eCOMM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eCONNABORTED" class="def">eCONNABORTED</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eCONNABORTED" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eCONNREFUSED" class="def">eCONNREFUSED</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eCONNREFUSED" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eCONNRESET" class="def">eCONNRESET</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eCONNRESET" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eDEADLK" class="def">eDEADLK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eDEADLK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eDESTADDRREQ" class="def">eDESTADDRREQ</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eDESTADDRREQ" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eDIRTY" class="def">eDIRTY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eDIRTY" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eDOM" class="def">eDOM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eDOM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eDQUOT" class="def">eDQUOT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eDQUOT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eEXIST" class="def">eEXIST</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eEXIST" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eFAULT" class="def">eFAULT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eFAULT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eFBIG" class="def">eFBIG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eFBIG" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eFTYPE" class="def">eFTYPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eFTYPE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eHOSTDOWN" class="def">eHOSTDOWN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eHOSTDOWN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eHOSTUNREACH" class="def">eHOSTUNREACH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eHOSTUNREACH" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eIDRM" class="def">eIDRM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eIDRM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eILSEQ" class="def">eILSEQ</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eILSEQ" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eINPROGRESS" class="def">eINPROGRESS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eINPROGRESS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eINTR" class="def">eINTR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eINTR" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eINVAL" class="def">eINVAL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eINVAL" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eIO" class="def">eIO</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eIO" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eISCONN" class="def">eISCONN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eISCONN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eISDIR" class="def">eISDIR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eISDIR" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eLOOP" class="def">eLOOP</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eLOOP" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eMFILE" class="def">eMFILE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eMFILE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eMLINK" class="def">eMLINK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eMLINK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eMSGSIZE" class="def">eMSGSIZE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eMSGSIZE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eMULTIHOP" class="def">eMULTIHOP</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eMULTIHOP" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNAMETOOLONG" class="def">eNAMETOOLONG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNAMETOOLONG" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNETDOWN" class="def">eNETDOWN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNETDOWN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNETRESET" class="def">eNETRESET</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNETRESET" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNETUNREACH" class="def">eNETUNREACH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNETUNREACH" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNFILE" class="def">eNFILE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNFILE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOBUFS" class="def">eNOBUFS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOBUFS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNODATA" class="def">eNODATA</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNODATA" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNODEV" class="def">eNODEV</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNODEV" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOENT" class="def">eNOENT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOENT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOEXEC" class="def">eNOEXEC</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOEXEC" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOLCK" class="def">eNOLCK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOLCK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOLINK" class="def">eNOLINK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOLINK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOMEM" class="def">eNOMEM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOMEM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOMSG" class="def">eNOMSG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOMSG" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNONET" class="def">eNONET</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNONET" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOPROTOOPT" class="def">eNOPROTOOPT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOPROTOOPT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOSPC" class="def">eNOSPC</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOSPC" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOSR" class="def">eNOSR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOSR" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOSTR" class="def">eNOSTR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOSTR" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOSYS" class="def">eNOSYS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOSYS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOTBLK" class="def">eNOTBLK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOTBLK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOTCONN" class="def">eNOTCONN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOTCONN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOTDIR" class="def">eNOTDIR</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOTDIR" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOTEMPTY" class="def">eNOTEMPTY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOTEMPTY" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOTSOCK" class="def">eNOTSOCK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOTSOCK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNOTTY" class="def">eNOTTY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNOTTY" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eNXIO" class="def">eNXIO</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eNXIO" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eOPNOTSUPP" class="def">eOPNOTSUPP</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eOPNOTSUPP" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePERM" class="def">ePERM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePERM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePFNOSUPPORT" class="def">ePFNOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePFNOSUPPORT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePIPE" class="def">ePIPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePIPE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROCLIM" class="def">ePROCLIM</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROCLIM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROCUNAVAIL" class="def">ePROCUNAVAIL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROCUNAVAIL" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROGMISMATCH" class="def">ePROGMISMATCH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROGMISMATCH" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROGUNAVAIL" class="def">ePROGUNAVAIL</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROGUNAVAIL" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROTO" class="def">ePROTO</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROTO" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROTONOSUPPORT" class="def">ePROTONOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROTONOSUPPORT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ePROTOTYPE" class="def">ePROTOTYPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#ePROTOTYPE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eRANGE" class="def">eRANGE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eRANGE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eREMCHG" class="def">eREMCHG</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eREMCHG" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eREMOTE" class="def">eREMOTE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eREMOTE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eROFS" class="def">eROFS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eROFS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eRPCMISMATCH" class="def">eRPCMISMATCH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eRPCMISMATCH" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eRREMOTE" class="def">eRREMOTE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eRREMOTE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eSHUTDOWN" class="def">eSHUTDOWN</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eSHUTDOWN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eSOCKTNOSUPPORT" class="def">eSOCKTNOSUPPORT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eSOCKTNOSUPPORT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eSPIPE" class="def">eSPIPE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eSPIPE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eSRCH" class="def">eSRCH</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eSRCH" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eSRMNT" class="def">eSRMNT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eSRMNT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eSTALE" class="def">eSTALE</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eSTALE" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eTIME" class="def">eTIME</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eTIME" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eTIMEDOUT" class="def">eTIMEDOUT</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eTIMEDOUT" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eTOOMANYREFS" class="def">eTOOMANYREFS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eTOOMANYREFS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eTXTBSY" class="def">eTXTBSY</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eTXTBSY" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eUSERS" class="def">eUSERS</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eUSERS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eWOULDBLOCK" class="def">eWOULDBLOCK</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eWOULDBLOCK" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:eXDEV" class="def">eXDEV</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#eXDEV" class="link">Source</a></p></div><h2 id="g:3"><code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> functions
</h2><div class="top"><p class="src"><a name="v:isValidErrno" class="def">isValidErrno</a> :: <a href="Foreign-C-Error.html#t:Errno">Errno</a> -&gt; <a href="Prelude.html#t:Bool">Bool</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#isValidErrno" class="link">Source</a></p><div class="doc"><p>Yield <code><a href="Prelude.html#v:True">True</a></code> if the given <code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> value is valid on the system.
 This implies that the <code><a href="Prelude.html#t:Eq">Eq</a></code> instance of <code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> is also system dependent
 as it is only defined for valid values of <code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:getErrno" class="def">getErrno</a> :: <a href="Prelude.html#t:IO">IO</a> <a href="Foreign-C-Error.html#t:Errno">Errno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#getErrno" class="link">Source</a></p><div class="doc"><p>Get the current value of <code>errno</code> in the current thread.
</p></div></div><div class="top"><p class="src"><a name="v:resetErrno" class="def">resetErrno</a> :: <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#resetErrno" class="link">Source</a></p><div class="doc"><p>Reset the current thread's <code>errno</code> value to <code><a href="Foreign-C-Error.html#v:eOK">eOK</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:errnoToIOError" class="def">errnoToIOError</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#errnoToIOError" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Prelude.html#t:String">String</a></td><td class="doc"><p>the location where the error occurred
</p></td></tr><tr><td class="src">-&gt; <a href="Foreign-C-Error.html#t:Errno">Errno</a></td><td class="doc"><p>the error number
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:Maybe">Maybe</a> <a href="System-IO.html#t:Handle">Handle</a></td><td class="doc"><p>optional handle associated with the error
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:Maybe">Maybe</a> <a href="Prelude.html#t:String">String</a></td><td class="doc"><p>optional filename associated with the error
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IOError">IOError</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Construct an <code><a href="Prelude.html#t:IOError">IOError</a></code> based on the given <code><a href="Foreign-C-Error.html#t:Errno">Errno</a></code> value.
 The optional information can be used to improve the accuracy of
 error messages.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrno" class="def">throwErrno</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrno" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Prelude.html#t:String">String</a></td><td class="doc"><p>textual description of the error location
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Throw an <code><a href="Prelude.html#t:IOError">IOError</a></code> corresponding to the current value of <code><a href="Foreign-C-Error.html#v:getErrno">getErrno</a></code>.
</p></div></div><h2 id="g:4">Guards for IO operations that may fail
</h2><div class="top"><p class="src"><a name="v:throwErrnoIf" class="def">throwErrnoIf</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIf" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>)</td><td class="doc"><p>predicate to apply to the result value
 of the <code><a href="Prelude.html#t:IO">IO</a></code> operation
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:String">String</a></td><td class="doc"><p>textual description of the location
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc"><p>the <code><a href="Prelude.html#t:IO">IO</a></code> operation to be executed
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Throw an <code><a href="Prelude.html#t:IOError">IOError</a></code> corresponding to the current value of <code><a href="Foreign-C-Error.html#v:getErrno">getErrno</a></code>
 if the result value of the <code><a href="Prelude.html#t:IO">IO</a></code> action meets the given predicate.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIf_" class="def">throwErrnoIf_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIf_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIf">throwErrnoIf</a></code>, but discards the result of the <code><a href="Prelude.html#t:IO">IO</a></code> action after
 error handling.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfRetry" class="def">throwErrnoIfRetry</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfRetry" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIf">throwErrnoIf</a></code>, but retry the <code><a href="Prelude.html#t:IO">IO</a></code> action when it yields the
 error code <code><a href="Foreign-C-Error.html#v:eINTR">eINTR</a></code> - this amounts to the standard retry loop for
 interrupted POSIX system calls.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfRetry_" class="def">throwErrnoIfRetry_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfRetry_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfRetry">throwErrnoIfRetry</a></code>, but discards the result.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfMinus1" class="def">throwErrnoIfMinus1</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfMinus1" class="link">Source</a></p><div class="doc"><p>Throw an <code><a href="Prelude.html#t:IOError">IOError</a></code> corresponding to the current value of <code><a href="Foreign-C-Error.html#v:getErrno">getErrno</a></code>
 if the <code><a href="Prelude.html#t:IO">IO</a></code> action returns a result of <code>-1</code>.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfMinus1_" class="def">throwErrnoIfMinus1_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfMinus1_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfMinus1">throwErrnoIfMinus1</a></code>, but discards the result.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfMinus1Retry" class="def">throwErrnoIfMinus1Retry</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfMinus1Retry" class="link">Source</a></p><div class="doc"><p>Throw an <code><a href="Prelude.html#t:IOError">IOError</a></code> corresponding to the current value of <code><a href="Foreign-C-Error.html#v:getErrno">getErrno</a></code>
 if the <code><a href="Prelude.html#t:IO">IO</a></code> action returns a result of <code>-1</code>, but retries in case of
 an interrupted operation.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfMinus1Retry_" class="def">throwErrnoIfMinus1Retry_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfMinus1Retry_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfMinus1">throwErrnoIfMinus1</a></code>, but discards the result.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfNull" class="def">throwErrnoIfNull</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfNull" class="link">Source</a></p><div class="doc"><p>Throw an <code><a href="Prelude.html#t:IOError">IOError</a></code> corresponding to the current value of <code><a href="Foreign-C-Error.html#v:getErrno">getErrno</a></code>
 if the <code><a href="Prelude.html#t:IO">IO</a></code> action returns <code><a href="Foreign-Ptr.html#v:nullPtr">nullPtr</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfNullRetry" class="def">throwErrnoIfNullRetry</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfNullRetry" class="link">Source</a></p><div class="doc"><p>Throw an <code><a href="Prelude.html#t:IOError">IOError</a></code> corresponding to the current value of <code><a href="Foreign-C-Error.html#v:getErrno">getErrno</a></code>
 if the <code><a href="Prelude.html#t:IO">IO</a></code> action returns <code><a href="Foreign-Ptr.html#v:nullPtr">nullPtr</a></code>,
 but retry in case of an interrupted operation.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfRetryMayBlock" class="def">throwErrnoIfRetryMayBlock</a><a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfRetryMayBlock" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>)</td><td class="doc"><p>predicate to apply to the result value
 of the <code><a href="Prelude.html#t:IO">IO</a></code> operation
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:String">String</a></td><td class="doc"><p>textual description of the location
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc"><p>the <code><a href="Prelude.html#t:IO">IO</a></code> operation to be executed
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> b</td><td class="doc"><p>action to execute before retrying if
 an immediate retry would block
</p></td></tr><tr><td class="src">-&gt; <a href="Prelude.html#t:IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfRetry">throwErrnoIfRetry</a></code>, but additionally if the operation 
 yields the error code <code><a href="Foreign-C-Error.html#v:eAGAIN">eAGAIN</a></code> or <code><a href="Foreign-C-Error.html#v:eWOULDBLOCK">eWOULDBLOCK</a></code>, an alternative
 action is executed before retrying.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfRetryMayBlock_" class="def">throwErrnoIfRetryMayBlock_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfRetryMayBlock_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfRetryMayBlock">throwErrnoIfRetryMayBlock</a></code>, but discards the result.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfMinus1RetryMayBlock" class="def">throwErrnoIfMinus1RetryMayBlock</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfMinus1RetryMayBlock" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfMinus1Retry">throwErrnoIfMinus1Retry</a></code>, but checks for operations that would block.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfMinus1RetryMayBlock_" class="def">throwErrnoIfMinus1RetryMayBlock_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfMinus1RetryMayBlock_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfMinus1RetryMayBlock">throwErrnoIfMinus1RetryMayBlock</a></code>, but discards the result.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoIfNullRetryMayBlock" class="def">throwErrnoIfNullRetryMayBlock</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> b -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoIfNullRetryMayBlock" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfNullRetry">throwErrnoIfNullRetry</a></code>, but checks for operations that would block.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoPath" class="def">throwErrnoPath</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoPath" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrno">throwErrno</a></code>, but exceptions include the given path when appropriate.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoPathIf" class="def">throwErrnoPathIf</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoPathIf" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIf">throwErrnoIf</a></code>, but exceptions include the given path when
   appropriate.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoPathIf_" class="def">throwErrnoPathIf_</a> ::  (a -&gt; <a href="Prelude.html#t:Bool">Bool</a>) -&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoPathIf_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIf_">throwErrnoIf_</a></code>, but exceptions include the given path when
   appropriate.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoPathIfNull" class="def">throwErrnoPathIfNull</a> ::  <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a) -&gt; <a href="Prelude.html#t:IO">IO</a> (<a href="Foreign-Ptr.html#t:Ptr">Ptr</a> a)<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoPathIfNull" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfNull">throwErrnoIfNull</a></code>, but exceptions include the given path when
   appropriate.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoPathIfMinus1" class="def">throwErrnoPathIfMinus1</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> a<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoPathIfMinus1" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfMinus1">throwErrnoIfMinus1</a></code>, but exceptions include the given path when
   appropriate.
</p></div></div><div class="top"><p class="src"><a name="v:throwErrnoPathIfMinus1_" class="def">throwErrnoPathIfMinus1_</a> :: (<a href="Prelude.html#t:Eq">Eq</a> a, <a href="Prelude.html#t:Num">Num</a> a) =&gt; <a href="Prelude.html#t:String">String</a> -&gt; <a href="Prelude.html#t:FilePath">FilePath</a> -&gt; <a href="Prelude.html#t:IO">IO</a> a -&gt; <a href="Prelude.html#t:IO">IO</a> ()<a href="../base-4.5.1.0/src/Foreign-C-Error.html#throwErrnoPathIfMinus1_" class="link">Source</a></p><div class="doc"><p>as <code><a href="Foreign-C-Error.html#v:throwErrnoIfMinus1_">throwErrnoIfMinus1_</a></code>, but exceptions include the given path when
   appropriate.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>