+2002-11-10 Jim Meyering <jim@meyering.net>
+
+ * raise.c: New file.
+
2002-11-08 Paul Eggert <eggert@twinsun.com>
* human.c (human_readable): Revamp to avoid warning about unused
--- /dev/null
+/* Provide a non-threads replacement for the POSIX raise function.
+ Copyright (C) 2002 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
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+/* written by Jim Meyering */
+
+#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>
+
+int
+rpl_raise (int sig)
+{
+ kill (getpid (), sig)
+}