Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
tmpfile(3)
Edit
PageHistory
Diff
Info
LikePages
TMPFILE !!!TMPFILE NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS CONFORMING TO SEE ALSO ---- !!NAME tmpfile - create a temporary file !!SYNOPSIS __#include __ !!DESCRIPTION The __tmpfile()__ function generates a unique temporary filename using the path prefix ''P_tmpdir'' defined in ''''. The temporary file is then opened in binary read/write (w+b) mode. The file will be automatically deleted when it is closed or the program terminates. !!RETURN VALUE The __tmpfile()__ function returns a stream descriptor, or NULL if a unique filename cannot be generated or the unique file cannot be opened. !!ERRORS __EACCES__ Search permission denied for directory in file's path prefix. __EEXIST__ Unable to generate a unique filename. __EMFILE__ Too many file descriptors in use by process. __ENFILE__ Too many files open in system. __EROFS__ Read-only filesystem. !!CONFORMING TO SVID 3, POSIX, BSD 4.3, ISO 9899, SUSv2 !!SEE ALSO mktemp(3), mkstemp(3), tmpnam(3), tempnam(3) ----
7 pages link to
tmpfile(3)
:
Man3t
mkstemp(3)
mktemp(3)
tempnam(3)
tmpnam(3)
getpid(2)
getppid(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.