9 lines
18 KiB
HTML
9 lines
18 KiB
HTML
|
<!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>System.Posix.Directory.Foreign</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
|
||
|
window.onload = function () {pageLoad();setSynopsis("mini_System-Posix-Directory-Foreign.html");};
|
||
|
//]]>
|
||
|
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Posix-Directory-Foreign.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hpath-0.7.3: Support for well-typed paths</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">System.Posix.Directory.Foreign</p></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:DirType">DirType</a> = <a href="#v:DirType">DirType</a> Int</li><li class="src short"><span class="keyword">data</span> <a href="#t:Flags">Flags</a><ul class="subs"><li>= <a href="#v:Flags">Flags</a> Int</li><li>| <a href="#v:UnsupportedFlag">UnsupportedFlag</a> String</li></ul></li><li class="src short"><a href="#v:unFlags">unFlags</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> -> Int</li><li class="src short"><a href="#v:isSupported">isSupported</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> -> Bool</li><li class="src short"><a href="#v:oCloexec">oCloexec</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtBlk">dtBlk</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:oAppend">oAppend</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtChr">dtChr</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:pathMax">pathMax</a> :: Int</li><li class="src short"><a href="#v:oAsync">oAsync</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtDir">dtDir</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:oCreat">oCreat</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtFifo">dtFifo</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:unionFlags">unionFlags</a> :: [<a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a>] -> CInt</li><li class="src short"><a href="#v:dtLnk">dtLnk</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:oDirectory">oDirectory</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:oExcl">oExcl</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtReg">dtReg</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:oNoctty">oNoctty</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtSock">dtSock</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:oNofollow">oNofollow</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:dtUnknown">dtUnknown</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a></li><li class="src short"><a href="#v:oNonblock">oNonblock</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:oRdonly">oRdonly</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:oWronly">oWronly</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="src short"><a href="#v:oRdwr">oRdwr</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a></li><li class="sr
|
||
|
flag. (As of this writing, the only flag for which this check may be
|
||
|
necessary is <code><a href="System-Posix-Directory-Foreign.html#v:oCloexec">oCloexec</a></code>; all other flags will always yield <code>True</code>.)</p></div></div><div class="top"><p class="src"><a id="v:oCloexec" class="def">oCloexec</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oCloexec" class="link">Source</a> <a href="#v:oCloexec" class="selflink">#</a></p><div class="doc"><p><code>O_CLOEXEC</code> is not supported on every POSIX platform. Use
|
||
|
<code><code><a href="System-Posix-Directory-Foreign.html#v:isSupported">isSupported</a></code> oCloexec</code> to determine if support for <code>O_CLOEXEC</code> was
|
||
|
compiled into your version of posix-paths. (If not, using <code>oCloexec</code> will
|
||
|
throw an exception.)</p></div></div><div class="top"><p class="src"><a id="v:dtBlk" class="def">dtBlk</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtBlk" class="link">Source</a> <a href="#v:dtBlk" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:oAppend" class="def">oAppend</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oAppend" class="link">Source</a> <a href="#v:oAppend" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dtChr" class="def">dtChr</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtChr" class="link">Source</a> <a href="#v:dtChr" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:pathMax" class="def">pathMax</a> :: Int <a href="src/System-Posix-Directory-Foreign.html#pathMax" class="link">Source</a> <a href="#v:pathMax" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:oAsync" class="def">oAsync</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oAsync" class="link">Source</a> <a href="#v:oAsync" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dtDir" class="def">dtDir</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtDir" class="link">Source</a> <a href="#v:dtDir" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:oCreat" class="def">oCreat</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oCreat" class="link">Source</a> <a href="#v:oCreat" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dtFifo" class="def">dtFifo</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtFifo" class="link">Source</a> <a href="#v:dtFifo" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:unionFlags" class="def">unionFlags</a> :: [<a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a>] -> CInt <a href="src/System-Posix-Directory-Foreign.html#unionFlags" class="link">Source</a> <a href="#v:unionFlags" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dtLnk" class="def">dtLnk</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtLnk" class="link">Source</a> <a href="#v:dtLnk" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:oDirectory" class="def">oDirectory</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oDirectory" class="link">Source</a> <a href="#v:oDirectory" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:oExcl" class="def">oExcl</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oExcl" class="link">Source</a> <a href="#v:oExcl" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dtReg" class="def">dtReg</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtReg" class="link">Source</a> <a href="#v:dtReg" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:oNoctty" class="def">oNoctty</a> :: <a href="System-Posix-Directory-Foreign.html#t:Flags">Flags</a> <a href="src/System-Posix-Directory-Foreign.html#oNoctty" class="link">Source</a> <a href="#v:oNoctty" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:dtSock" class="def">dtSock</a> :: <a href="System-Posix-Directory-Foreign.html#t:DirType">DirType</a> <a href="src/System-Posix-Directory-Foreign.html#dtSock" class="link">Source</a> <a href="#v:dtSock" class="se
|