02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

tmpnam(3S) tmpnam(3S)<br />

retmned.<br />

NOTES<br />

These functions generate a different filename each time they are<br />

called.<br />

Files created using these functions and either f open(3S) or<br />

creat(2) are temporary only in the sense that they reside in a<br />

directory intended for temporary use and their names are unique.<br />

It is the user's responsibility to use unlink(2) to remove the file<br />

when its use is ended.<br />

SEE ALSO<br />

creat(2), unlink(2), fopen(3S), malloc(3C),<br />

mktemp(3C), tmpfile(3S).<br />

BUGS<br />

If called more than 17,576 times in a single process, tmpnam and<br />

tempnam will start recycling previously used names.<br />

Between the time a filename is created and the file is opened, it is<br />

possible for some other process to create a file with the same<br />

name. This can never happen if that other process is using<br />

tmpnam, tempnam, or mktemp(3C) and the filenames are<br />

chosen carefully to avoid duplication by other means.<br />

February, 1990<br />

RevisionC<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!