|GETPEEREID(3)||Library Functions Manual||GETPEEREID(3)|
s, uid_t *euid,
getpeereid() returns the effective user ID and group ID of the peer connected to a UNIX-domain socket (see unix(4)). The argument s must be of type
One common use is for UNIX-domain servers to determine the credentials of clients that have connected to it.
getpeereid() takes three parameters:
uid_tvariable into which the effective user ID for the connected peer will be stored.
gid_tvariable into which the effective group ID for the connected peer will be stored.
getpeereid() function call appeared in OpenBSD 3.0.
|June 5, 2013||OpenBSD-current|