unix-fcntl-0.0.0: Comprehensive bindings to fcntl(2)

Safe HaskellSafe
LanguageHaskell2010

System.Posix.FileControl

Contents

Synopsis

Documentation

fcntl :: Fd -> Fcntl a -> IO a Source

Perform one of the operations in Fcntl

data Fcntl a where Source

Type of operations which fcntl can perform. Available operations vary depending on platforms. Please consult manpage on your platform for details.

All possible operations are:

-fgnu flag needs to be enabled to use this feature.

  • F_OFD_GETLK
  • F_OFD_SETLK
  • F_OFD_SETLKW
  • Managing signals
  • F_GETOWN
  • F_SETOWN
  • F_GETOWN_EX
  • F_SETOWN_EX
  • F_GETSIG
  • F_SETSIG
  • Leases
  • F_GETLEASE
  • F_SETLEASE
  • File and directory change notification (dnotify; Linux 2.4 or later)
  • F_NOTIFY
  • Changing the capacity of a pipe
  • F_GETPIPE_SZ
  • F_SETPIPE_SZ
  • File leasing
  • F_GET_SEALS
  • F_ADD_SEALS

File descriptor flags

File status flags

Advisory and mandatory locking

newFlock :: IO Flock Source

Allocate a flock structure. The allocated memory will be garbage collected automatically.