summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-09-05 08:55:51 +0000
committerkib <kib@FreeBSD.org>2015-09-05 08:55:51 +0000
commit438719ab519dd2b4b76f22db4f09fc1ecacd16f4 (patch)
treed0067728c5e8d2139aa12f79004c5285fec61bba /lib/libc/stdio
parent906861047e3b66a3d4c92eb83ea28b542ca143ff (diff)
downloadFreeBSD-src-438719ab519dd2b4b76f22db4f09fc1ecacd16f4.zip
FreeBSD-src-438719ab519dd2b4b76f22db4f09fc1ecacd16f4.tar.gz
MFC r287292:
Switch libc from using _sig{procmask,action,suspend} symbols, which are aliases for the syscall stubs and are plt-interposed, to the libc-private aliases of internally interposed sigprocmask() etc. MFC r287300: Use libthr interposed functions instead of syscalls, in posix_spawn()' child.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/tmpfile.c7
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);
OpenPOWER on IntegriCloud