Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. unixFDMessageAppendFd :: (HasCallStack, MonadIO m, IsUnixFDMessage a) => a -> Int32 -> m ()

    gi-gio GI.Gio.Objects.UnixFDMessage

    Adds a file descriptor to message. The file descriptor is duplicated using dup(). You keep your copy of the descriptor and the copy contained in message will be closed when message is finalized. A possible cause of failure is exceeding the per-process or system-wide file descriptor limit. Since: 2.22

  2. unixFDMessageGetFdList :: (HasCallStack, MonadIO m, IsUnixFDMessage a) => a -> m UnixFDList

    gi-gio GI.Gio.Objects.UnixFDMessage

    Gets the UnixFDList contained in message. This function does not return a reference to the caller, but the returned list is valid for the lifetime of message. Since: 2.24

  3. unixFDMessageNew :: (HasCallStack, MonadIO m) => m UnixFDMessage

    gi-gio GI.Gio.Objects.UnixFDMessage

    Creates a new UnixFDMessage containing an empty file descriptor list. Since: 2.22

  4. unixFDMessageNewWithFdList :: (HasCallStack, MonadIO m, IsUnixFDList a) => a -> m UnixFDMessage

    gi-gio GI.Gio.Objects.UnixFDMessage

    Creates a new UnixFDMessage containing list. Since: 2.24

  5. unixFDMessageStealFds :: (HasCallStack, MonadIO m, IsUnixFDMessage a) => a -> m [Int32]

    gi-gio GI.Gio.Objects.UnixFDMessage

    Returns the array of file descriptors that is contained in this object. After this call, the descriptors are no longer contained in message. Further calls will return an empty list (unless more descriptors have been added). The return result of this function must be freed with free. The caller is also responsible for closing all of the file descriptors. If length is non-Nothing then it is set to the number of file descriptors in the returned array. The returned array is also terminated with -1. This function never returns Nothing. In case there are no file descriptors contained in message, an empty array is returned. Since: 2.22

  6. module GI.Gio.Objects.UnixInputStream

    GUnixInputStream implements InputStream for reading from a UNIX file descriptor, including asynchronous operations. (If the file descriptor refers to a socket or pipe, this will use poll() to do asynchronous I/O. If it refers to a regular file, it will fall back to doing asynchronous I/O in another thread.) Note that <gio/gunixinputstream.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file or the GioUnix-2.0 GIR namespace when using it.

  7. class (GObject o, IsDescendantOf UnixInputStream o) => IsUnixInputStream o

    gi-gio GI.Gio.Objects.UnixInputStream

    Type class for types which can be safely cast to UnixInputStream, for instance with toUnixInputStream.

  8. newtype UnixInputStream

    gi-gio GI.Gio.Objects.UnixInputStream

    Memory-managed wrapper type.

  9. UnixInputStream :: ManagedPtr UnixInputStream -> UnixInputStream

    gi-gio GI.Gio.Objects.UnixInputStream

    No documentation available.

  10. constructUnixInputStreamCloseFd :: (IsUnixInputStream o, MonadIO m) => Bool -> m (GValueConstruct o)

    gi-gio GI.Gio.Objects.UnixInputStream

    Construct a GValueConstruct with valid value for the “close-fd” property. This is rarely needed directly, but it is used by new.

Page 166 of many | Previous | Next