diff options
author | bapt <bapt@FreeBSD.org> | 2015-10-28 11:58:18 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-10-28 11:58:18 +0000 |
commit | c21ffb8d6aca32c9584cfa072f309a5890a21aea (patch) | |
tree | c13556877cfa7b8f6941e8141a6801cf91e72840 /lib/libc/stdio/tmpfile.c | |
parent | ec14b01dd8898deebe0427357d842721add8e34c (diff) | |
parent | 39fb527bf90f6a5cb03d93bd49c310bbca016a45 (diff) | |
download | FreeBSD-src-c21ffb8d6aca32c9584cfa072f309a5890a21aea.zip FreeBSD-src-c21ffb8d6aca32c9584cfa072f309a5890a21aea.tar.gz |
Merge from head
Sponsored by: Gandi.net
Diffstat (limited to 'lib/libc/stdio/tmpfile.c')
-rw-r--r-- | lib/libc/stdio/tmpfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdio/tmpfile.c b/lib/libc/stdio/tmpfile.c index c67d1e4..e5a2be1 100644 --- a/lib/libc/stdio/tmpfile.c +++ b/lib/libc/stdio/tmpfile.c @@ -46,9 +46,10 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <paths.h> #include "un-namespace.h" +#include "libc_private.h" FILE * -tmpfile() +tmpfile(void) { sigset_t set, oset; FILE *fp; @@ -69,7 +70,7 @@ tmpfile() return (NULL); sigfillset(&set); - (void)_sigprocmask(SIG_BLOCK, &set, &oset); + (void)__libc_sigprocmask(SIG_BLOCK, &set, &oset); fd = mkstemp(buf); if (fd != -1) @@ -77,7 +78,7 @@ tmpfile() free(buf); - (void)_sigprocmask(SIG_SETMASK, &oset, NULL); + (void)__libc_sigprocmask(SIG_SETMASK, &oset, NULL); if (fd == -1) return (NULL); |