Add a macro __MKTEMP_OK__ that renames mktemp() to _mktemp() for uses that

have been checked, so that the linker does not warn us. There are valid
uses for mktemp() such as for creating filenames that are going to be
targets of the rename system call. Discussed with lukem.
This commit is contained in:
christos 2005-06-11 22:58:42 +00:00
parent 5b18fe838f
commit 08cd5f47c8

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdlib.h,v 1.69 2005/02/03 04:39:32 perry Exp $ */
/* $NetBSD: stdlib.h,v 1.70 2005/06/11 22:58:42 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -179,9 +179,11 @@ void srandom(unsigned long);
char *mkdtemp(char *);
int mkstemp(char *);
#ifndef __AUDIT__
char *mktemp(char *);
char *mktemp(char *)
#ifdef __MKTEMP_OK__
__RENAME(_mktemp)
#endif
;
int setkey(const char *);