base-4.16.4.0: Basic libraries
Copyright(c) The University of Glasgow 1992-2002
Licensesee libraries/base/LICENSE
Maintainercvs-ghc@haskell.org
Stabilityinternal
Portabilitynon-portable (requires POSIX)
Safe HaskellTrustworthy
LanguageHaskell2010

System.Posix.Internals

Description

POSIX support layer for the standard libraries. This library is built on *every* platform, including Win32.

Non-posix compliant in order to support the following features: * S_ISSOCK (no sockets in POSIX)

Synopsis

Documentation

puts :: String -> IO () #

data CFLock #

data CGroup #

data CLconv #

data CPasswd #

data CSigset #

data CStat #

data CTermios #

data CTm #

data CTms #

data CUtimbuf #

data CUtsname #

type FD = CInt #

withFilePath :: FilePath -> (CString -> IO a) -> IO a #

setEcho :: FD -> Bool -> IO () #

setCooked :: FD -> Bool -> IO () #

tcSetAttr :: FD -> (Ptr CTermios -> IO a) -> IO a #

c_interruptible_open :: CFilePath -> CInt -> CMode -> IO CInt #

The same as c_safe_open, but an interruptible operation as described in Control.Exception—it respects uninterruptibleMask but not mask.

We want to be able to interrupt an openFile call if it's expensive (NFS, FUSE, etc.), and we especially need to be able to interrupt a blocking open call. See #17912.

hostIsThreaded :: Bool #

Consult the RTS to find whether it is threaded.

c_lseek :: CInt -> COff -> CInt -> IO COff #

c_dup2 :: CInt -> CInt -> IO CInt #