Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp(3C) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

reentrant(3)

tmpfile(3S)

tmpnam(3S)



mktemp(3C)                        SDK R4.11                       mktemp(3C)


NAME
       mktemp - make a unique file name

SYNOPSIS
       #include <stdlib.h>

       char *mktemp(char *template);

DESCRIPTION
       mktemp replaces the contents of the string pointed to by template
       with a unique file name, and returns template.  The string in
       template should look like a file name with six trailing Xs; mktemp
       will replace the Xs with a character string that can be used to
       create a unique file name.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |mktemp   |     Y         N        N    |
                     +---------+-----------------------------+

SEE ALSO
       reentrant(3), tmpfile(3S), tmpnam(3S).

DIAGNOSTIC
       mktemp will assign to template the empty string if it cannot create a
       unique name.

NOTES
       mktemp can create only 26 unique file names per process for each
       unique template.


Licensed material--property of copyright holder(s)

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