2017-01-14 19:25:08 +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 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");};
//]]>
2017-01-14 19:25:08 +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.8.0: Support for well-typed paths< / p > < / div > < div id = "content" > < div id = "module-header" > < table class = "info" > < tr > < th > Safe Haskell< / th > < td > Safe-Inferred< / 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.7.0.2/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.7.0.2/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.7.0.2/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.7.0.2/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.7.0.2/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.7.0.2/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.7.0.2/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 =
2016-06-01 12:52:48 +00:00
flag. (As of this writing, the only flag for which this check may be
2017-01-14 19:25:08 +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 name = "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 > < / 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
2017-01-14 19:25:08 +00:00
throw an exception.)< / p > < / div > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "v:pathMax" class = "def" > pathMax< / a > :: < a href = "https://hackage.haskell.org/package/base-4.7.0.2/docs/Data-Int.html#t:Int" > Int< / a > < a href = "src/System-Posix-Directory-Foreign.html#pathMax" class = "link" > Source< / a > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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.7.0.2/docs/Foreign-C-Types.html#t:CInt" > CInt< / a > < a href = "src/System-Posix-Directory-Foreign.html#unionFlags" class = "link" > Source< / a > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "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 > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "v:oNofollow" class = "def" > oNofollow< / a > :: < a href = "System-Posix-Directory-Foreign.html#t:Flags" > Flags< / a > < a href = "src/System-Posix-Directory-Foreign.html#oNofollow" class = "link" > Source< / a > < / p > < / div > < div class = "top" > < p class = "src" > < a name = "v:dtUnknown" class = "def" > dtUnknown< / a > :: < a href = "System-Posix-Directory-Foreign.html#t:DirType" > DirType< / a > < a href = "src/System-Po