char * _mktemp(char *path) { if (mktemp_internal(path, 0, MKTEMP_NAME) == -1) return(NULL); return(path); }
char * mkdtemp(char *path) { if (mktemp_internal(path, 0, MKTEMP_DIR) == -1) return NULL; return path; }
char * mkdtemp(char *path) { int error; error = mktemp_internal(path, 0, MKTEMP_DIR); return(error ? NULL : path); }
int mkstemps(char *path, int slen) { return(mktemp_internal(path, slen, MKTEMP_FILE)); }
int mkstemp(char *path) { return(mktemp_internal(path, 0, MKTEMP_FILE)); }