Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
getlogin_r(3) OSS Library Calls Reference Manual
• Link your application to:
/G/system/zdllnnn/zsecdll (32-bit applications)
or
/G/system/zdllnnn/ysecdll (64-bit applications) |
To use the Standard POSIX Threads library, you must:
• Include the spthread.h header file
• Link your application to the Standard POSIX Threads Library:
/G/system/sysnn/zsptsrl (G-series)
or
/G/system/zdllnnn/zsptdll (H-series or J-series)
• Compile your application using the #define _SPT_MODEL_ macro or an equivalent
compiler command option
For more information about threaded and 64-bit applications in the OSS environment, see the |
Open System Services Programmer’s Guide.
RETURN VALUES
If the call completes successfully, the getlogin_r( ) function returns 0 (zero). Otherwise, an error
number is returned to indicate the error.
If this condition occurs, the getlogin_r( ) function returns the corresponding value:
[ENOMEM] There is insufficient user memory to complete the call.
[ERANGE] The value of the namesize parameter is smaller than the length of the string to be
returned, including the terminating null character.
ERRORS
No error values are returned. The getlogin_r( ) function does not set the errno variable.
RELATED INFORMATION
Functions: geteuid(2), getlogin(3), getuid(2).
STANDARDS CONFORMANCE
H06.21 and later H-series RVUs, J06.10 and later J-series RVUs
This function conforms to IEEE Std 1003.1 2004, POSIX System Application Program Interface.
Standard POSIX Threads Library
This function is an extension to the UNIX98 specification. Interfaces documented on this refer-
ence page conform to the following industry standards:
• IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
3−78 Hewlett-Packard Company 527187-017