From 740940c9fcaa8079ca65f687dfa67411ce974f1b Mon Sep 17 00:00:00 2001 From: dtrg Date: Tue, 24 Apr 2007 19:34:34 +0000 Subject: [PATCH] Fixed major typos in the signal declarations that was preventing anything that used signal() from compiling. --- plat/linux386/include/unistd.h | 6 +++--- plat/pc86/include/unistd.h | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plat/linux386/include/unistd.h b/plat/linux386/include/unistd.h index cd78196f3..5cbdc1b5d 100644 --- a/plat/linux386/include/unistd.h +++ b/plat/linux386/include/unistd.h @@ -72,9 +72,9 @@ extern int isatty(int d); typedef int sig_atomic_t; -#define SIG_ERR ((__sighandler_t) -1) /* Error return. */ -#define SIG_DFL ((__sighandler_t) 0) /* Default action. */ -#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */ +#define SIG_ERR ((sighandler_t) -1) /* Error return. */ +#define SIG_DFL ((sighandler_t) 0) /* Default action. */ +#define SIG_IGN ((sighandler_t) 1) /* Ignore signal. */ #define SIGHUP 1 /* Hangup (POSIX). */ #define SIGINT 2 /* Interrupt (ANSI). */ diff --git a/plat/pc86/include/unistd.h b/plat/pc86/include/unistd.h index c34336056..2af9db921 100644 --- a/plat/pc86/include/unistd.h +++ b/plat/pc86/include/unistd.h @@ -55,11 +55,12 @@ extern int fcntl(int fd, int op, ...); typedef int sig_atomic_t; -#define SIG_ERR ((__sighandler_t) -1) /* Error return. */ -#define SIG_DFL ((__sighandler_t) 0) /* Default action. */ -#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */ +#define SIG_ERR ((sighandler_t) -1) /* Error return. */ +#define SIG_DFL ((sighandler_t) 0) /* Default action. */ +#define SIG_IGN ((sighandler_t) 1) /* Ignore signal. */ -#define SIGABRT 6 /* Abort (ANSI). */ +#define SIGABRT 6 /* Abort (ANSI) */ +#define SIGILL 11 /* Illegal instruction */ #define _NSIG 32 /* Biggest signal number + 1 (not including real-time signals). */