tsix_set_uid(3N)

tsix_set_uid - set the User ID of outgoing data

As shipped in IRIX 6.5.22. Last changed in IRIX 6.5.15.

NAME
     tsix_set_uid - set the User ID of outgoing data

SYNOPSIS
     #include <t6net.h>

     int tsix_set_uid(int fd, uid_t uid);

DESCRIPTION
     tsix_set_uid sets the User ID of all outgoing communication on fd , which
     must be associated with a socket, to the User ID contained in uid .

CAPABILITIES
     If _SC_CAP is in effect, a process calling this function must have
     CAP_NETWORK_MGT, and CAP_SETUID capabilities in the permitted vector of
     its capability set.

RETURN VALUES
     If _SC_IP_SECOPTS is not in effect, tsix_set_uid always returns success.

     tsix_set_uid returns 0 if successful, -1 otherwise and the errno will be
     assigned the appropriate error code.

ERRORS
     [ENOMEM]       Not enough space.

     [EFAULT]       If new_attrs contains a NULL pointer.

     [EINVAL]       Invalid Argument.

     [ENOTSOCK]     Socket operation on a Non-Socket not permitted.

SEE ALSO
     sysconf(3c), tsix_get_uid(3c)