1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-17 17:18:45 +02:00

*** empty log message ***

This commit is contained in:
Jim Meyering
2002-11-10 09:44:05 +00:00
parent b52870d14f
commit bd03362ebb
2 changed files with 37 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
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

33
lib/raise.c Normal file
View File

@@ -0,0 +1,33 @@
/* 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)
}