summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/raise.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-12 16:46:12 +0000
committerguenther <guenther@openbsd.org>2015-09-12 16:46:12 +0000
commite6f44a6e420f352dabd2641b0d76c25ad7dd2621 (patch)
treeb25a7dcc1c2b66f3f6a746ede366c3b3af20a8b2 /lib/libc/gen/raise.c
parentWrap <fcntl.h> so that calls to flock() go direct and both it and (diff)
downloadwireguard-openbsd-e6f44a6e420f352dabd2641b0d76c25ad7dd2621.tar.xz
wireguard-openbsd-e6f44a6e420f352dabd2641b0d76c25ad7dd2621.zip
Finish wrapping <signal.h> so that calls to the sigset ops go direct and
everything but raise() and signal() are weak. No longer need _thread_sys_ prefix on getthrid()
Diffstat (limited to 'lib/libc/gen/raise.c')
-rw-r--r--lib/libc/gen/raise.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/gen/raise.c b/lib/libc/gen/raise.c
index d80513fc3fc..b477183d141 100644
--- a/lib/libc/gen/raise.c
+++ b/lib/libc/gen/raise.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raise.c,v 1.6 2012/11/10 03:46:11 guenther Exp $ */
+/* $OpenBSD: raise.c,v 1.7 2015/09/12 16:46:12 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -31,10 +31,9 @@
#include <signal.h>
#include <unistd.h>
-int _thread_sys_getthrid(void);
-
int
raise(int s)
{
- return(kill(_thread_sys_getthrid(), s));
+ return (kill(getthrid(), s));
}
+DEF_STRONG(raise);