glibc/sysdeps/stub/signum.h
1995-02-18 01:27:10 +00:00

54 lines
2.0 KiB
C

/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
This file is part of the GNU C Library.
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.
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.
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., 675 Mass Ave,
Cambridge, MA 02139, USA. */
#ifdef _SIGNAL_H
/* Fake signal functions. */
extern void _sig_ign __P ((int sig));
extern void _sig_dfl __P ((int sig));
#define SIG_ERR ((__sighandler_t) 0) /* Error return. */
#define SIG_DFL _sig_dfl /* Default action. */
#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