TSIX_GET_UID(3N) TSIX_GET_UID(3N)
tsix_get_uid - get the User ID of incoming data
#include <t6net.h>
int tsix_get_uid(int fd, uid_t *uidp);
tsix_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.
tsix_get_uid returns 0 if successful, otherwise it will set errno with
the appropriate error and return -1.
[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.
sysconf(3c), tsix_set_uid(3c)
PPPPaaaaggggeeee 1111 [ Back ]
|