HP-UX Reference (11i v1 00/12) - 3 Library Functions N-Z (vol 7)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/nan.3m
________________________________________________________________
___ ___
t
tmpfile(3S) tmpfile(3S)
NAME
tmpfile() - create a temporary file
SYNOPSIS
#include <stdio.h>
FILE *tmpfile(void);
DESCRIPTION
tmpfile() creates a temporary le by generating a name through tmpnam() (see tmpnam(3S)), and
returns a corresponding FILE pointer. If the file cannot be opened a NULL pointer is returned. The file is
automatically deleted when the process using it terminates. The file is opened for update (wb+).
ERRORS
The tmpfile() function will fail if:
[EOVERFLOW] The named file is a regular file and the size of the file cannot be
represented correctly in an object of size off_t in this environment.
Additional errno values may be set by the underlying
fopen() function (see fopen(3S)).
APPLICATION USAGE
tmpfile() is thread-safe. It is not async-cancel-safe. A cancellation point may occur when a thread is
executing tmpfile().
NOTES
On HP-UX systems, the wb+ mode is equivalent to the w+ mode.
SEE ALSO
creat(2), unlink(2), mktemp(3C), fopen(3S), fgetpos64(3S), tmpnam(3S).
STANDARDS CONFORMANCE
tmpfile(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
HP-UX Release 11i: December 2000 1 Section 3981
___
___