summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-07-19 05:22:56 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-07-19 05:22:56 +0000
commit69cd67f2e64c70e31397afb5fa3bd28825d7d443 (patch)
treee079785c5ea0d650230b5d88bfa19a1638b2dea8
parentf34d7dc27d87419ac6129c42ef8ff4f92882d1e6 (diff)
downloadFreeBSD-src-69cd67f2e64c70e31397afb5fa3bd28825d7d443.zip
FreeBSD-src-69cd67f2e64c70e31397afb5fa3bd28825d7d443.tar.gz
Make raise and _raise as weak symbols, so they can be overriden by
thread library. Reviewed by: deischen
-rw-r--r--lib/libc/gen/raise.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gen/raise.c b/lib/libc/gen/raise.c
index debea3b..2e50fd4 100644
--- a/lib/libc/gen/raise.c
+++ b/lib/libc/gen/raise.c
@@ -40,8 +40,11 @@ __FBSDID("$FreeBSD$");
#include <signal.h>
#include <unistd.h>
+__weak_reference(__raise, raise);
+__weak_reference(__raise, _raise);
+
int
-raise(s)
+__raise(s)
int s;
{
return(kill(getpid(), s));
OpenPOWER on IntegriCloud