Function
GioUnixFDMessageappend_fd
since: 2.22
Declaration [src]
gboolean
g_unix_fd_message_append_fd (
GUnixFDMessage* message,
gint fd,
GError** error
)
Description [src]
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.
Available since: 2.22
Parameters
message-
Type:
GUnixFDMessageA
GUnixFDMessage.The data is owned by the caller of the function. fd-
Type:
gintA valid open file descriptor.
error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the function if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.