示例#1
0
char *
_mktemp(char *path)
{
	if (mktemp_internal(path, 0, MKTEMP_NAME) == -1)
		return(NULL);
	return(path);
}
示例#2
0
文件: mktemp.c 项目: CVi/sudo
char *
mkdtemp(char *path)
{
	if (mktemp_internal(path, 0, MKTEMP_DIR) == -1)
		return NULL;
	return path;
}
示例#3
0
char *
mkdtemp(char *path)
{
	int error;

	error = mktemp_internal(path, 0, MKTEMP_DIR);
	return(error ? NULL : path);
}
示例#4
0
int
mkstemps(char *path, int slen)
{
	return(mktemp_internal(path, slen, MKTEMP_FILE));
}
示例#5
0
int
mkstemp(char *path)
{
	return(mktemp_internal(path, 0, MKTEMP_FILE));
}