TSIX_GET_UID(3N)TSIX_GET_UID(3N)NAMEtsix_get_uid - get the User ID of incoming data
SYNOPSIS
#include <t6net.h>
int tsix_get_uid(int fd, uid_t *uidp);
DESCRIPTIONtsix_get_uid retrieves the User ID associated with data incoming on fd,
which must be associated with a socket. If tsix_get_uid is successful,
that User ID will be contained in the object pointed to by uidp.
If _SC_IP_SECOPTS is not in effect, tsix_get_uid always returns success.
RETURN VALUEStsix_get_uid returns 0 if successful, otherwise it will set errno with
the appropriate error and return -1.
ERRORS
[ENOSYS] Function not implemented.
[ENOTSOCK] Attempted to perform a socket operation on a non-socket.
[EFAULT] Invalid pointer address.
[EINVAL] Invalid argument.
[ENOTCONN] Socket is not connected.
[EWOULDBLOCK] Operation would block.
SEE ALSOsysconf(3c), tsix_set_uid(3c)
Page 1