This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
signum
- To: libc-hacker@gnu.org
- Subject: signum
- From: Philip Blundell <pb@nexus.co.uk>
- Date: Mon, 02 Nov 1998 15:40:17 +0100
The generic version of bits/signum.h currently defines SIGILL and SIGINT to
the same value. This looks like a typo to me but I thought I'd ask before
changing it just in case anybody's code would be broken by such a change or
there was some reason it was like this originally.
Here's the patch anyway.
p.
1998-11-02 Philip Blundell <pb@nexus.co.uk>
* sysdeps/generic/bits/signum.h: Correct signal numbering;
distinguish SIGILL from SIGINT.
Index: sysdeps/generic/bits/signum.h
===================================================================
RCS file: /home/cvs/repository/gnu/libc/sysdeps/generic/bits/signum.h,v
retrieving revision 1.1
diff -u -r1.1 signum.h
--- signum.h 1997/11/06 11:46:16 1.1
+++ signum.h 1998/11/02 15:36:07
@@ -31,23 +31,23 @@
#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. */
+#define SIGINT 4 /* Interactive attention signal. */
+#define SIGSEGV 5 /* Invalid access to storage. */
+#define SIGTERM 6 /* 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. */
+#define SIGHUP 7 /* Hangup. */
+#define SIGQUIT 8 /* Quit. */
+#define SIGPIPE 9 /* Broken pipe. */
+#define SIGKILL 10 /* Kill (cannot be blocked, caught, or ignored). */
+#define SIGALRM 11 /* Alarm clock. */
+#define SIGSTOP 12 /* Stop (cannot be blocked, caught, or ignored). */
+#define SIGTSTP 13 /* Keyboard stop. */
+#define SIGCONT 14 /* Continue. */
+#define SIGCHLD 15 /* Child terminated or stopped. */
+#define SIGTTIN 16 /* Background read from control terminal. */
+#define SIGTTOU 17 /* Background write to control terminal. */
#endif /* <signal.h> included. */
-#define _NSIG 17
+#define _NSIG 18
- Follow-Ups:
- Re: signum
- From: Mark Kettenis <kettenis@phys.uva.nl>
- Re: signum
- From: Ulrich Drepper <drepper@cygnus.com>