A file descriptor registration cookie.
Handle operations implemented by file descriptors (FDs)
A library for issuing notifications using FreeDesktop.org's Desktop Notifications protcol. This protocol is supported by services such as Ubuntu's NotifyOSD.
Contains utilities to unrm from trash, purge old files from trash and move files to trash.
Read data from an Fd and convert it to a String using the locale encoding. Throws an exception if this is an invalid descriptor, or EOF has been reached.
Read data from an Fd into memory. This is exactly equivalent to the POSIX read function.
May throw an exception if this is an invalid descriptor.
Turn an existing file descriptor into a Handle. This is used by various external libraries to make Handles.
Makes a binary Handle. This is for historical reasons; it should probably be a text Handle with the default encoding and newline translation instead.
Converts an Fd into a Handle that can be used with the standard Haskell IO library (see System.IO).
GHC only: this function has the side effect of putting the Fd into non-blocking mode (O_NONBLOCK) due to the way the standard IO library implements multithreaded I/O.
Old API kept to avoid breaking clients
Write a String to an Fd using the locale encoding.
Write data from memory to an Fd. This is exactly equivalent to the POSIX write function.
Close a file descriptor in a race-safe way.
registerFd mgr cb fd evs registers interest in the events evs on the file descriptor fd. cb is called for each event that occurs. Returns a cookie that can be handed to unregisterFd.
Register interest in the given events, without waking the event manager thread. The Bool return value indicates whether the event manager ought to be woken.
Show more results