diff options
| author | christos <christos@NetBSD.org> | 2005-06-11 22:58:42 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2005-06-11 22:58:42 +0000 |
| commit | 08cd5f47c84a0410985db3020b369ad85ce810fe (patch) | |
| tree | fe8684ffa434b3ca993a782d29d18f896813c9d9 /include/stdlib.h | |
| parent | 5b18fe838f643b7ea2303999efc19395f38a248c (diff) | |
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.
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 241deef35d8..250eb3edab8 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -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 *); |
