2016-06-03 22:53:31 +00:00
<!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" > / / < ! [ C D A T A [
2016-06-01 12:52:48 +00:00
window.onload = function () {pageLoad();setSynopsis("mini_System-Posix-Directory-Foreign.html");};
//]]>
2016-06-03 22:53:31 +00:00
< / 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.5: 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 > < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int" > Int< / a > < / 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 > < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int" > Int< / a > < / li > < li > | < a href = "#v:UnsupportedFlag" > UnsupportedFlag< / a > < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-String.html#t:String" > String< / a > < / li > < / ul > < / li > < li class = "src short" > < a href = "#v:unFlags" > unFlags< / a > :: < a href = "System-Posix-Directory-Foreign.html#t:Flags" > Flags< / a > -> < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int" > Int< / a > < / li > < li class = "src short" > < a href = "#v:isSupported" > isSupported< / a > :: < a href = "System-Posix-Directory-Foreign.html#t:Flags" > Flags< / a > -> < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Bool.html#t:Bool" > Bool< / a > < / 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 > :: < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int" > Int< / a > < / 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 > ] -> < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Foreign-C-Types.html#t:CInt" > CInt< / a > < / 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 shor
2016-06-01 12:52:48 +00:00
flag. (As of this writing, the only flag for which this check may be
2016-06-03 22:53:31 +00:00
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
2016-06-01 12:52:48 +00:00
< 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
2016-06-03 22:53:31 +00:00
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 > :: < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int" > Int< / a > < 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 > ] -> < a href = "https://hackage.haskell.org/package/base-4.9.0.0/docs/Foreign-C-Types.html#t:CInt" > CInt< / a > < 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< /