~ubuntu-branches/ubuntu/hardy/klibc/hardy-updates

« back to all changes in this revision

Viewing changes to klibc/sigabbrev.c

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2006-01-04 20:24:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104202452-ec4v3n829rymukuv
Tags: 1.1.15-0ubuntu1
* New upstream version.

* Patch to fix compilation on parisc64 kernels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * sigabbrev.h
 
3
 *
 
4
 * Construct the abbreviated signal list
 
5
 */
 
6
 
 
7
#include <signal.h>
 
8
#include <unistd.h>
 
9
 
 
10
const char * const sys_sigabbrev[NSIG] = {
 
11
#ifdef SIGABRT
 
12
  [SIGABRT] = "ABRT",
 
13
#endif
 
14
#ifdef SIGALRM
 
15
  [SIGALRM] = "ALRM",
 
16
#endif
 
17
#ifdef SIGBUS
 
18
  [SIGBUS] = "BUS",
 
19
#endif
 
20
#ifdef SIGCHLD
 
21
  [SIGCHLD] = "CHLD",
 
22
#endif
 
23
#if defined(SIGCLD) && (SIGCHLD != SIGCLD)
 
24
  [SIGCLD] = "CLD",
 
25
#endif
 
26
#ifdef SIGEMT
 
27
  [SIGEMT] = "EMT",
 
28
#endif
 
29
#ifdef SIGFPE
 
30
  [SIGFPE] = "FPE",
 
31
#endif
 
32
#ifdef SIGHUP
 
33
  [SIGHUP] = "HUP",
 
34
#endif
 
35
#ifdef SIGILL
 
36
  [SIGILL] = "ILL",
 
37
#endif
 
38
  /* SIGINFO == SIGPWR */
 
39
#ifdef SIGINT
 
40
  [SIGINT] = "INT",
 
41
#endif
 
42
#ifdef SIGIO
 
43
  [SIGIO] = "IO",
 
44
#endif
 
45
#if defined(SIGIOT) && (SIGIOT != SIGABRT)
 
46
  [SIGIOT] = "IOT",
 
47
#endif
 
48
#ifdef SIGKILL
 
49
  [SIGKILL] = "KILL",
 
50
#endif
 
51
#if defined(SIGLOST) && (SIGLOST != SIGIO) && (SIGLOST != SIGPWR)
 
52
  [SIGLOST] = "LOST",
 
53
#endif
 
54
#ifdef SIGPIPE
 
55
  [SIGPIPE] = "PIPE",
 
56
#endif
 
57
#if defined(SIGPOLL) && (SIGPOLL != SIGIO)
 
58
  [SIGPOLL] = "POLL",
 
59
#endif
 
60
#ifdef SIGPROF
 
61
  [SIGPROF] = "PROF",
 
62
#endif
 
63
#ifdef SIGPWR
 
64
  [SIGPWR] = "PWR",
 
65
#endif
 
66
#ifdef SIGQUIT
 
67
  [SIGQUIT] = "QUIT",
 
68
#endif
 
69
  /* SIGRESERVE == SIGUNUSED */
 
70
#ifdef SIGSEGV
 
71
  [SIGSEGV] = "SEGV",
 
72
#endif
 
73
#ifdef SIGSTKFLT
 
74
  [SIGSTKFLT] = "STKFLT",
 
75
#endif
 
76
#ifdef SIGSTOP
 
77
  [SIGSTOP] = "STOP",
 
78
#endif
 
79
#ifdef SIGSYS
 
80
  [SIGSYS] = "SYS",
 
81
#endif
 
82
#ifdef SIGTERM
 
83
  [SIGTERM] = "TERM",
 
84
#endif
 
85
#ifdef SIGTSTP
 
86
  [SIGTSTP] = "TSTP",
 
87
#endif
 
88
#ifdef SIGTTIN
 
89
  [SIGTTIN] = "TTIN",
 
90
#endif
 
91
#ifdef SIGTTOU
 
92
  [SIGTTOU] = "TTOU",
 
93
#endif
 
94
#ifdef SIGURG
 
95
  [SIGURG] = "URG",
 
96
#endif
 
97
#ifdef SIGUSR1
 
98
  [SIGUSR1] = "USR1",
 
99
#endif
 
100
#ifdef SIGUSR2
 
101
  [SIGUSR2] = "USR2",
 
102
#endif
 
103
#ifdef SIGVTALRM
 
104
  [SIGVTALRM] = "VTALRM",
 
105
#endif
 
106
#ifdef SIGWINCH
 
107
  [SIGWINCH] = "WINCH",
 
108
#endif
 
109
#ifdef SIGXCPU
 
110
  [SIGXCPU] = "XCPU",
 
111
#endif
 
112
#ifdef SIGXFSZ
 
113
  [SIGXFSZ] = "XFSZ",
 
114
#endif
 
115
#ifdef SIGTRAP
 
116
  [SIGTRAP] = "TRAP",
 
117
#endif
 
118
#ifdef SIGCONT
 
119
  [SIGCONT] = "CONT",
 
120
#endif
 
121
};