critical impact:
mktemp, mkstemp, mkdtemp, mkstemps - different implementation and support; temporarily available (CrCh215)
Problem description
The mktemp and mkstemp functions exist on Tru64 UNIX and HP-UX. They have identical argument inputs and return types. However, the Tru64 UNIX version is less susceptible to interference by other users in the system. The mkdtemp and mkstemps functions only exist on Tru64 UNIX. All four APIs are provided on a temporary basis in the Tru64 UNIX Migration Environment for HP-UX.
mktemp replaces the string pointed to by the template argument, with a unique file name.
mkstemp performs the same task as mktemp, but returns a file descriptor for the unique file and also opens the file with a read/write privilege.
mkdtemp generates a uniquely named temporary directory with permission 0700 from the template argument.
mkstemps is similar to mkstemp, but it permits the inclusion of a trailing suffix in the template argument string.
Identifiers
 mkdtemp |
 mkstemp |
 mkstemps |
 mktemp |
|
See also
Solution description
The Tru64 UNIX mktemp, mkstemp, mkdtemp, and mkstemps are in the Migration Environment.
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| ME, SEC |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|