Fd

Fd :: CInt -> Fd
base System.Posix.Types
newtype Fd
base System.Posix.Types
data FdKey
base System.Event
A file descriptor registration cookie.
package fdo-notify
package
A library for issuing notifications using FreeDesktop.org's Desktop Notifications protcol. This protocol is supported by services such as Ubuntu's NotifyOSD. Version 0.2
package fdo-trash
package
Contains utilities to unrm from trash, purge old files from trash and move files to trash. Version 0.0.0.0
data FdOption
unix System.Posix.IO.ByteString, unix System.Posix.IO
fdRead :: Fd -> ByteCount -> IO (String, ByteCount)
unix System.Posix.IO.ByteString, unix System.Posix.IO
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.
fdReadBuf :: Fd -> Ptr Word8 -> ByteCount -> IO ByteCount
unix System.Posix.IO.ByteString, unix System.Posix.IO
Read data from an Fd into memory. This is exactly equivalent to the POSIX read function.
fdSeek :: Fd -> SeekMode -> FileOffset -> IO FileOffset
unix System.Posix.IO.ByteString, unix System.Posix.IO
May throw an exception if this is an invalid descriptor.
fdSocket :: Socket -> CInt
network Network.Socket
fdToHandle :: FD -> IO Handle
base GHC.IO.Handle.FD
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.
fdToHandle :: Fd -> IO Handle
unix System.Posix.IO.ByteString, unix System.Posix.IO
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.
fdToHandle' :: CInt -> Maybe IODeviceType -> Bool -> FilePath -> IOMode -> Bool -> IO Handle
base GHC.IO.Handle.FD
Old API kept to avoid breaking clients
fdWrite :: Fd -> String -> IO ByteCount
unix System.Posix.IO.ByteString, unix System.Posix.IO
Write a String to an Fd using the locale encoding.
fdWriteBuf :: Fd -> Ptr Word8 -> ByteCount -> IO ByteCount
unix System.Posix.IO.ByteString, unix System.Posix.IO
Write data from memory to an Fd. This is exactly equivalent to the POSIX write function.
module GHC.IO.Handle.FD
base GHC.IO.Handle.FD
Handle operations implemented by file descriptors (FDs)
closeFd :: EventManager -> (Fd -> IO ()) -> Fd -> IO ()
base System.Event
Close a file descriptor in a race-safe way.
registerFd :: EventManager -> IOCallback -> Fd -> Event -> IO FdKey
base System.Event
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.
registerFd_ :: EventManager -> IOCallback -> Fd -> Event -> IO (FdKey, Bool)
base System.Event
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.
typeOfDefault :: (Typeable1 t, Typeable a) => t a -> TypeRep
base Data.Typeable
For defining a Typeable instance from any Typeable1 instance.

Show more results