Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
tmpnam_r(3) Guardian Native C Library Calls Reference Manual
• Include the stdio.h file
To use the Standard POSIX Threads library, you must:
• Include the spthread.h 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 detailed information about writing multi-threaded or 64- bit applications for the Open
System Services environment, see the Open System Services Programmer’s Guide.
RETURN VALUES
If the buf parameter is not a null pointer, it is assumed to be the address of an array of at least the
number of bytes specified by L_tmpnam. L_tmpnam is a constant defined in the stdio.h header
file. The tmpnam_r() function places its results into that array and returns the value of the buf
parameter.
If buf is a null pointer, the function returns NULL. This behavior differs from that of the
tmpnam( ) function.
RELATED INFORMATION
Functions: tmpnam(3), tmpnam_guardian(3), tmpnam_oss(3).
STANDARDS CONFORMANCE
Guardian and OSS processes that do not use the Standard POSIX Threads
Interfaces documented on this reference page conform to the following industry standards:
• IEEE Std 1003.1-2004, POSIX System Application Program Interface
OSS processes that use the Standard POSIX Threads library
This function is an extension to the UNIX98 specification. Interfaces documented on this refer-
ence page conform o the following industry standards:
• IEEE Std 1003.1-c1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
7−36 Hewlett-Packard Company 527192-018