Requests a stream to send a message to the stream head at the other end of a stream pipe.
The I_SENDFD operation requests the stream associated with the fildes field to send a message, containing a file pointer, to the stream head at the other end of a stream pipe. The file pointer corresponds to the arg parameter, which must be an integer file descriptor.
The I_SENDFD operation converts the arg parameter into the corresponding system file pointer. It allocates a message block and inserts the file pointer in the block. The user ID and group ID associated with the sending process are also inserted. This message is placed directly on the read queue of the stream head at the other end of the stream pipe to which it is connected.
If unsuccessful, the errno global variable is set to one of the following values:
This operation is part of STREAMS Kernel Extensions.
The streamio operations.
The I_RECVFD streamio operation.
The putmsg system call.