diff options
author | 2015-09-12 14:56:50 +0000 | |
---|---|---|
committer | 2015-09-12 14:56:50 +0000 | |
commit | 0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8 (patch) | |
tree | 156ca6d3bca87e18d5b8368eb09c65267e4c649a /lib/libc/stdio/mktemp.c | |
parent | Wrap <getopt.h> to make the functions weak and make access to the initialized (diff) | |
download | wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.tar.xz wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.zip |
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r-- | lib/libc/stdio/mktemp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 43b38dd8b6d..abb7c544d55 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mktemp.c,v 1.36 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: mktemp.c,v 1.37 2015/09/12 14:56:50 guenther Exp $ */ /* * Copyright (c) 1996-1998, 2008 Theo de Raadt * Copyright (c) 1997, 2008-2009 Todd C. Miller @@ -138,6 +138,7 @@ mkstemp(char *path) { return(mktemp_internal(path, 0, MKTEMP_FILE, 0)); } +DEF_WEAK(mkstemp); int mkostemp(char *path, int flags) @@ -159,3 +160,4 @@ mkdtemp(char *path) error = mktemp_internal(path, 0, MKTEMP_DIR, 0); return(error ? NULL : path); } +DEF_WEAK(mkdtemp); |