SYNOPSIS
#include <unistd.h>
char *getlogin(void);
int getlogin_r(char *name, size_t namesize);
DESCRIPTION
The
The
size = sysconf(_SC_LOGIN_NAME_MAX);
This function is reentrant.
PARAMETERS
- name
-
Points to the buffer where the user name is to be placed.
- namesize
-
Is the size of the buffer pointed to by name.
RETURN VALUES
If successful,
- ERANGE
-
The namesize parameter is not large enough to contain the user name including the trailing null character.
CONFORMANCE
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
PORTING ISSUES
None.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
geteuid() ,getpwnam() ,getpwnam_r() ,getpwuid() ,getpwuid_r() ,getuid()
MKS Toolkit 9.2 Documentation Build 16.