On this page
System.Posix.Internals
Copyright | (c) The University of Glasgow 1992-2002 |
---|---|
License | see libraries/base/LICENSE |
Maintainer | cvs-ghc@haskell.org |
Stability | internal |
Portability | non-portable (requires POSIX) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
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)
puts :: String -> IO () Source
data CSigaction Source
fdFileSize :: FD -> IO Integer Source
fileType :: FilePath -> IO IODeviceType Source
fdStat :: FD -> IO (IODeviceType, CDev, CIno) Source
fdType :: FD -> IO IODeviceType Source
statGetType :: Ptr CStat -> IO IODeviceType Source
ioe_unknownfiletype :: IOException Source
fdGetMode :: FD -> IO IOMode Source
withFilePath :: FilePath -> (CString -> IO a) -> IO a Source
newFilePath :: FilePath -> IO CString Source
peekFilePath :: CString -> IO FilePath Source
peekFilePathLen :: CStringLen -> IO FilePath Source
setEcho :: FD -> Bool -> IO () Source
getEcho :: FD -> IO Bool Source
setCooked :: FD -> Bool -> IO () Source
tcSetAttr :: FD -> (Ptr CTermios -> IO a) -> IO a Source
get_saved_termios :: CInt -> IO (Ptr CTermios) Source
set_saved_termios :: CInt -> Ptr CTermios -> IO () Source
setNonBlockingFD :: FD -> Bool -> IO () Source
setCloseOnExec :: FD -> IO () Source
type CFilePath = CString Source
c_open :: CFilePath -> CInt -> CMode -> IO CInt Source
c_interruptible_open :: CFilePath -> CInt -> CMode -> IO CInt Source
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.
c_interruptible_open_ :: CFilePath -> CInt -> CMode -> IO CInt Source
Consult the RTS to find whether it is threaded.
c_safe_open :: CFilePath -> CInt -> CMode -> IO CInt Source
c_safe_open_ :: CFilePath -> CInt -> CMode -> IO CInt Source
c_fstat :: CInt -> Ptr CStat -> IO CInt Source
lstat :: CFilePath -> Ptr CStat -> IO CInt Source
c_lseek :: CInt -> COff -> CInt -> IO COff Source
c_access :: CString -> CInt -> IO CInt Source
c_chmod :: CString -> CMode -> IO CInt Source
c_close :: CInt -> IO CInt Source
c_creat :: CString -> CMode -> IO CInt Source
c_dup :: CInt -> IO CInt Source
c_dup2 :: CInt -> CInt -> IO CInt Source
c_isatty :: CInt -> IO CInt Source
c_read :: CInt -> Ptr Word8 -> CSize -> IO CSsize Source
c_safe_read :: CInt -> Ptr Word8 -> CSize -> IO CSsize Source
c_umask :: CMode -> IO CMode Source
c_write :: CInt -> Ptr Word8 -> CSize -> IO CSsize Source
c_safe_write :: CInt -> Ptr Word8 -> CSize -> IO CSsize Source
c_pipe :: Ptr CInt -> IO CInt Source
c_unlink :: CString -> IO CInt Source
c_utime :: CString -> Ptr CUtimbuf -> IO CInt Source
c_stat :: CFilePath -> Ptr CStat -> IO CInt Source
c_ftruncate :: CInt -> COff -> IO CInt Source
c_fcntl_read :: CInt -> CInt -> IO CInt Source
c_fcntl_write :: CInt -> CInt -> CLong -> IO CInt Source
c_fcntl_lock :: CInt -> CInt -> Ptr CFLock -> IO CInt Source
c_link :: CString -> CString -> IO CInt Source
c_mkfifo :: CString -> CMode -> IO CInt Source
c_sigemptyset :: Ptr CSigset -> IO CInt Source
c_sigaddset :: Ptr CSigset -> CInt -> IO CInt Source
c_sigprocmask :: CInt -> Ptr CSigset -> Ptr CSigset -> IO CInt Source
c_tcgetattr :: CInt -> Ptr CTermios -> IO CInt Source
c_tcsetattr :: CInt -> CInt -> Ptr CTermios -> IO CInt Source
c_waitpid :: CPid -> Ptr CInt -> CInt -> IO CPid Source
o_NONBLOCK :: CInt Source
c_s_isreg :: CMode -> CInt Source
c_s_ischr :: CMode -> CInt Source
c_s_isblk :: CMode -> CInt Source
c_s_isdir :: CMode -> CInt Source
c_s_isfifo :: CMode -> CInt Source
s_isreg :: CMode -> Bool Source
s_ischr :: CMode -> Bool Source
s_isblk :: CMode -> Bool Source
s_isdir :: CMode -> Bool Source
s_isfifo :: CMode -> Bool Source
sizeof_stat :: Int Source
st_mtime :: Ptr CStat -> IO CTime Source
st_size :: Ptr CStat -> IO COff Source
st_mode :: Ptr CStat -> IO CMode Source
st_dev :: Ptr CStat -> IO CDev Source
st_ino :: Ptr CStat -> IO CIno Source
const_echo :: CInt Source
const_vmin :: CInt Source
const_sig_block :: CInt Source
const_sig_setmask :: CInt Source
const_fd_cloexec :: CLong Source
c_lflag :: Ptr CTermios -> IO CTcflag Source
poke_c_lflag :: Ptr CTermios -> CTcflag -> IO () Source
ptr_c_cc :: Ptr CTermios -> IO (Ptr Word8) Source
s_issock :: CMode -> Bool Source
c_s_issock :: CMode -> CInt Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/base-4.17.0.0/System-Posix-Internals.html