diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-17 21:50:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-17 21:50:30 +0000 |
commit | 01b5986293556708cae649b481f8f34f8ab9b23a (patch) | |
tree | 5091f2698abd700f0538052175e65461ae005c1d | |
parent | d06c77002c406ad7966de6e6afe5104c2b9a2e16 (diff) | |
download | coreutils-01b5986293556708cae649b481f8f34f8ab9b23a.tar.xz |
(raise): Rename from rpl_raise.
Without that change, systems lacking raise (SunOS4) would not be
able to link programs using raise. Reported by Volker Borchert.
-rw-r--r-- | lib/raise.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/raise.c b/lib/raise.c index 0b8eb9402..b04e3e3eb 100644 --- a/lib/raise.c +++ b/lib/raise.c @@ -1,5 +1,5 @@ /* Provide a non-threads replacement for the POSIX raise function. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +19,6 @@ #include <config.h> -/* Undefine raise here so any system prototype is not redefined - to be a prototype for rpl_raise. */ -#undef raise - #include <sys/types.h> #include <signal.h> #if HAVE_UNISTD_H @@ -30,7 +26,7 @@ #endif int -rpl_raise (int sig) +raise (int sig) { return kill (getpid (), sig); } |