Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
tempfile(1)
Edit
PageHistory
Diff
Info
LikePages
TEMPFILE !!!TEMPFILE NAME SYNOPSYS DESCRIPTION OPTIONS RETURN VALUES BUGS SEE ALSO ---- !!NAME tempfile - create a temporary file in a safe manner !!SYNOPSYS __tempfile__ [[-d DIR] [[-p STRING] [[-m MODE] [[-n FILE] [[--directory=DIR] [[--prefix=STRING] [[--mode=MODE] [[--name=FILE] [[--help] [[--version] !!DESCRIPTION __tempfile__ creates a temporary file in a safe manner. It uses tempnam(3) to choose the name and opens it with O_RDWR | O_CREAT | O_EXCL. The filename is printed on standard output. The directory to place the file is searched for in the following order: a) The directory specified by the environment variable __TMPDIR__, if it is writable. b) The directory specified by the __--directory__ argument, if given. c) The directory ''/tmp''. Debian packages using __tempfile__ in maintainer scripts must depend on debianutils __ !!OPTIONS __-d, --directory__ ''DIR'' Place the file in DIR. __-p, --prefix__ ''STRING'' Use up to five letters of STRING to generate the name. __-s, --suffix__ ''STRING'' Generate the file with STRING as the suffix. __-m, --mode__ ''MODE'' Open the file with MODE instead of 0600. __-n, --name__ ''FILE'' Use FILE for the name instead of tempnam(3)__.__ The options -d, -p, and -s are ignored if this option is given. __--help__ Print a usage message on standard output and exit succesfully. __--version__ Print version information on standard output and exist succesfully. !!RETURN VALUES An exit status of 0 means the temporary file was created succesfully. Any other exit status indicates an error. !!BUGS Exclusive creation is not guaranteed when creating files on NFS partitions. !!SEE ALSO tempnam(3) ----
2 pages link to
tempfile(1)
:
Xsession(5)
Man1t
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.