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
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
geteuid() ,getpwnam() ,getpwnam_r() ,getpwuid() ,getpwuid_r() ,getuid()
PTC MKS Toolkit 10.5 Documentation Build 40.