Manpages - pwcache.3bsd

(See

for include usage.)

The

function returns the user name associated with the argument

The user name is cached so that multiple calls with the same

do not require additional calls to

If there is no user associated with the

a pointer is returned to a string representation of the

unless the argument

is non-zero, in which case a null pointer is returned.

The

function returns the user ID associated with the argument

The user ID is cached so that multiple calls with the same

do not require additional calls to

If there is no user ID associated with the

the

function returns -1; otherwise it stores the user ID at the location pointed to by

and returns 0.

The

function returns the group name associated with the argument

The group name is cached so that multiple calls with the same

do not require additional calls to

If there is no group associated with the

a pointer is returned to a string representation of the

unless the argument

is non-zero, in which case a null pointer is returned.

The

function returns the group ID associated with the argument

The group ID is cached so that multiple calls with the same

do not require additional calls to

If there is no group ID associated with the

the

function returns -1; otherwise it stores the group ID at the location pointed to by

and returns 0.

The

and

functions first appeared in

The

and

functions were ported from

and first appeared in

Author: dt

Created: 2022-02-20 Sun 18:18