OpenSolaris

Printable Version Enter a New Search
Bug ID 6386057
Synopsis Add mkdtemp(3C)/mkstemps(3C)
State 10-Fix Delivered (Fix available in build)
Category:Subcategory library:libc
Keywords onnv_triage
Responsible Engineer Casper Dik
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_35
Fixed In snv_35
Release Fixed solaris_nevada(snv_35)
Related Bugs 6386719 , 6395215
Submit Date 15-February-2006
Last Update Date 16-February-2007
Description
Add the mkdtemp(3) function().

Possibly rewrite mktemp(1) to call it when called with the -d option.

#include <stdlib.h>

char *mkdtemp(char *template);
Also add int mkstemps(char *template, int suffixlen).

This function works like mkstemp() but allows the XXXXXX to be in the middle
of the template by specifying a suffixlen.

mkstemp() can be defined as mkstemps(template, 0),
Some configuration programs assume that mkstemps()' presence depends on the
precense of mkdtemp()
PSARC 2006/107
Work Around
N/A
Comments
N/A