glibc/sysdeps/generic/bits/signum.h

54 lines
2.1 KiB
C
Raw Normal View History

1996-11-15 04:08:00 +00:00
/* Copyright (C) 1991, 1993, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
1995-02-18 01:27:10 +00:00
1996-11-15 04:08:00 +00:00
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
1995-02-18 01:27:10 +00:00
1996-11-15 04:08:00 +00:00
The GNU C Library 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
Library General Public License for more details.
1995-02-18 01:27:10 +00:00
1996-11-15 04:08:00 +00:00
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
1995-02-18 01:27:10 +00:00
#ifdef _SIGNAL_H
/* Fake signal functions. */
extern void _sig_ign __P ((int sig));
extern void _sig_dfl __P ((int sig));
1996-11-15 04:08:00 +00:00
#define SIG_ERR ((__sighandler_t) 0) /* Error return. */
#define SIG_DFL _sig_dfl /* Default action. */
1995-02-18 01:27:10 +00:00
#define SIG_IGN _sig_ign /* Ignore signal. */
/* ANSI signals. */
#define SIGABRT 1 /* Abnormal termination. */
#define SIGFPE 2 /* Erroneous arithmetic operation. */
#define SIGILL 3 /* Illegal instruction. */
#define SIGINT 3 /* Interactive attention signal. */
#define SIGSEGV 4 /* Invalid access to storage. */
#define SIGTERM 5 /* Termination request. */
/* POSIX signals. */
#define SIGHUP 6 /* Hangup. */
#define SIGQUIT 7 /* Quit. */
#define SIGPIPE 8 /* Broken pipe. */
#define SIGKILL 9 /* Kill (cannot be blocked, caught, or ignored). */
#define SIGALRM 10 /* Alarm clock. */
#define SIGSTOP 11 /* Stop (cannot be blocked, caught, or ignored). */
#define SIGTSTP 12 /* Keyboard stop. */
#define SIGCONT 13 /* Continue. */
#define SIGCHLD 14 /* Child terminated or stopped. */
#define SIGTTIN 15 /* Background read from control terminal. */
#define SIGTTOU 16 /* Background write to control terminal. */
#endif /* <signal.h> included. */
#define _NSIG 17