]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(raise): Rename from rpl_raise.
authorJim Meyering <jim@meyering.net>
Mon, 17 Mar 2003 21:50:30 +0000 (21:50 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 17 Mar 2003 21:50:30 +0000 (21:50 +0000)
Without that change, systems lacking raise (SunOS4) would not be
able to link programs using raise.  Reported by Volker Borchert.

lib/raise.c

index 0b8eb940252d6d124a53adbe07a79b97e23b8334..b04e3e3eb292024bc0f788ce1062190b1a56d971 100644 (file)
@@ -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
 
 #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);
 }