Skip to content

Commit 740940c

Browse files
author
dtrg
committed
Fixed major typos in the signal declarations that was preventing anything that used signal() from compiling.
1 parent f6085fb commit 740940c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

plat/linux386/include/unistd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ extern int isatty(int d);
7272

7373
typedef int sig_atomic_t;
7474

75-
#define SIG_ERR ((__sighandler_t) -1) /* Error return. */
76-
#define SIG_DFL ((__sighandler_t) 0) /* Default action. */
77-
#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
75+
#define SIG_ERR ((sighandler_t) -1) /* Error return. */
76+
#define SIG_DFL ((sighandler_t) 0) /* Default action. */
77+
#define SIG_IGN ((sighandler_t) 1) /* Ignore signal. */
7878

7979
#define SIGHUP 1 /* Hangup (POSIX). */
8080
#define SIGINT 2 /* Interrupt (ANSI). */

plat/pc86/include/unistd.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ extern int fcntl(int fd, int op, ...);
5555

5656
typedef int sig_atomic_t;
5757

58-
#define SIG_ERR ((__sighandler_t) -1) /* Error return. */
59-
#define SIG_DFL ((__sighandler_t) 0) /* Default action. */
60-
#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
58+
#define SIG_ERR ((sighandler_t) -1) /* Error return. */
59+
#define SIG_DFL ((sighandler_t) 0) /* Default action. */
60+
#define SIG_IGN ((sighandler_t) 1) /* Ignore signal. */
6161

62-
#define SIGABRT 6 /* Abort (ANSI). */
62+
#define SIGABRT 6 /* Abort (ANSI) */
63+
#define SIGILL 11 /* Illegal instruction */
6364

6465
#define _NSIG 32 /* Biggest signal number + 1
6566
(not including real-time signals). */

0 commit comments

Comments
 (0)