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.
-
gi-gio GI.Gio.Objects.UnixCredentialsMessage Creates a new UnixCredentialsMessage holding credentials. Since: 2.26
module GI.Gio.Objects.
UnixFDList A GUnixFDList contains a list of file descriptors. It owns the file descriptors that it contains, closing them when finalized. It may be wrapped in a `GUnixFDMessage` and sent over a Socket in the G_SOCKET_FAMILY_UNIX family by using socketSendMessage and received using socketReceiveMessage. Before 2.74, <gio/gunixfdlist.h> belonged to the UNIX-specific GIO interfaces, thus you had to use the gio-unix-2.0.pc pkg-config file when using it. Since 2.74, the API is available for Windows.
class (GObject o, IsDescendantOf UnixFDList o) =>
IsUnixFDList ogi-gio GI.Gio.Objects.UnixFDList Type class for types which can be safely cast to UnixFDList, for instance with toUnixFDList.
-
gi-gio GI.Gio.Objects.UnixFDList Memory-managed wrapper type.
UnixFDList :: ManagedPtr UnixFDList -> UnixFDListgi-gio GI.Gio.Objects.UnixFDList No documentation available.
toUnixFDList :: (MonadIO m, IsUnixFDList o) => o -> m UnixFDListgi-gio GI.Gio.Objects.UnixFDList Cast to UnixFDList, for types for which this is known to be safe. For general casts, use castTo.
unixFDListAppend :: (HasCallStack, MonadIO m, IsUnixFDList a) => a -> Int32 -> m Int32gi-gio GI.Gio.Objects.UnixFDList Adds a file descriptor to list. The file descriptor is duplicated using dup(). You keep your copy of the descriptor and the copy contained in list will be closed when list is finalized. A possible cause of failure is exceeding the per-process or system-wide file descriptor limit. The index of the file descriptor in the list is returned. If you use this index with unixFDListGet then you will receive back a duplicated copy of the same file descriptor. Since: 2.24
unixFDListGet :: (HasCallStack, MonadIO m, IsUnixFDList a) => a -> Int32 -> m Int32gi-gio GI.Gio.Objects.UnixFDList Gets a file descriptor out of list. index_ specifies the index of the file descriptor to get. It is a programmer error for index_ to be out of range; see unixFDListGetLength. The file descriptor is duplicated using dup() and set as close-on-exec before being returned. You must call close() on it when you are done. A possible cause of failure is exceeding the per-process or system-wide file descriptor limit. Since: 2.24
unixFDListGetLength :: (HasCallStack, MonadIO m, IsUnixFDList a) => a -> m Int32gi-gio GI.Gio.Objects.UnixFDList Gets the length of list (ie: the number of file descriptors contained within). Since: 2.24
unixFDListNew :: (HasCallStack, MonadIO m) => m UnixFDListgi-gio GI.Gio.Objects.UnixFDList Creates a new UnixFDList containing no file descriptors. Since: 2.24