Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought



tmpfile(3S)                    DG/UX R4.11MU05                   tmpfile(3S)


NAME
       tmpfile - create a temporary file

SYNOPSIS
       #include <stdio.h>
       FILE *tmpfile (void);

DESCRIPTION
       tmpfile creates a temporary file using a name generated by the tmpnam
       routine 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 or when the file is
       closed.  The file is opened for update ("w+").

   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |tmpfile  |     Y         Y        N    |
                     +---------+-----------------------------+
REFERENCES
       creat(2), open(2), unlink(2), reentrant(3), mktemp(3C), perror(3C),
       fopen(3S), stdio(3S), tmpnam(3S)


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026