summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/hash
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/db/hash
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/db/hash')
-rw-r--r--lib/libc/db/hash/hash_page.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/db/hash/hash_page.c b/lib/libc/db/hash/hash_page.c
index d319d98..8040419 100644
--- a/lib/libc/db/hash/hash_page.c
+++ b/lib/libc/db/hash/hash_page.c
@@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$");
#include <assert.h>
#endif
#include "un-namespace.h"
+#include "libc_private.h"
#include <db.h>
#include "hash.h"
@@ -861,10 +862,10 @@ open_temp(HTAB *hashp)
/* Block signals; make sure file goes away at process exit. */
(void)sigfillset(&set);
- (void)_sigprocmask(SIG_BLOCK, &set, &oset);
+ (void)__libc_sigprocmask(SIG_BLOCK, &set, &oset);
if ((hashp->fp = mkostemp(path, O_CLOEXEC)) != -1)
(void)unlink(path);
- (void)_sigprocmask(SIG_SETMASK, &oset, (sigset_t *)NULL);
+ (void)__libc_sigprocmask(SIG_SETMASK, &oset, (sigset_t *)NULL);
return (hashp->fp != -1 ? 0 : -1);
}
OpenPOWER on IntegriCloud