machine.h
" which defines:
0
if the local UNIX
flavor has arc4random() available.
extern char *mktemp(char *template); extern char *mkdtemp(char *template); extern int mkstemp(char *template); extern int mkstemps(char *template, int suffixlen); extern int mkutemp(char *template); extern int mkutemps(char *template, int suffixlen); extern int _mktemp(char *template, int suffixopt, int (*_chk)(char *, void *), void *pvParam);
extern int mkstemp(char *template);
extern int mkstemps(char *template, int suffixlen);
extern char *mkdtemp(char *template);
extern int mkutemp(char *template);
extern int mkutemps(char *, int suffixlen);
.
extern char *_mktemp(char *template, int suffixopt, int (*chk)(char *, void *), void *pvparam);
chk
function for inspection. A return
of 0 accepts the proposed filename, any other value rejects it. It
errno
is set to ENOENT
another random name is
proposed (else a NULL pointer is returned). The suffixopt
parameter is set to the length of the suffix to skip at the end of the
template.
$Id: mk.html,v 6.5 2012/03/21 16:15:05 ksb Exp $