Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UnixCompat – POSIX Compatibility

Lean: Hale.UnixCompat | Haskell: unix-compat

Subset of POSIX operations needed by Warp: file descriptor operations and close-on-exec.

Key Types

TypeDescription
FdFile descriptor (UInt32)
FileStatusFile size and type

API

FunctionDescription
closeFdClose a file descriptor

Files

  • Hale/UnixCompat/System/Posix/Compat.lean – Fd, FileStatus, closeFd