Table of Contents

NAME

SYNOPSIS

DESCRIPTION

This interface is available from the compatibility library, libcompat. The function returns a character string representation of the user name associated with the effective user ID of the calling process. If is not the pointer, the user name is copied into the memory referenced by The argument is assumed to point to an array at least (as defined in the include file bytes long. Otherwise, the user name is copied to a static buffer.

RETURN VALUES

If is not the pointer, is returned; otherwise the address of the static buffer is returned. If the user name could not be determined, if is not the pointer, the null character will be stored at otherwise the pointer is returned.

SEE ALSO

STANDARDS

The function conforms to

BUGS

Due to irreconcilable differences in historic implementations, was removed from the standard. This implementation exists purely for compatibility with existing programs. New programs should use one of the following three alternatives to obtain the user name: to return the user’s login name. to return the user name associated with the calling process’ effective user ID. to return the user name associated with the calling process’ real user ID. The function uses thus the results of a user’s call to or will be overwritten by subsequent calls to


Table of Contents