File: sig_action.h

package info (click to toggle)
ngetty 1.0-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 304 kB
  • ctags: 207
  • sloc: ansic: 1,503; makefile: 236; sh: 109; asm: 100
file content (30 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <signal.h>

#ifdef NGETTY_TINY
#if defined(__linux__) && defined(__dietlibc__)

#ifdef NGETTY_i386
extern int system__errno;
#define errno system__errno
#endif

#if defined(__i386__) || defined(__x86_64__)

#define sigemptyset(set) \
do { \
  set->sig[0]=0; \
  if (_NSIG_WORDS>1) set->sig[1]=0; \
  if (_NSIG_WORDS>2) { \
    set->sig[2]=0; \
    set->sig[3]=0; \
  } \
} while(0)

int __rt_sigaction(int signum, const struct sigaction *act, struct sigaction *oldact, long nr);

#define sigaction(signum, act, oldact) \
   __rt_sigaction(signum, act, oldact, _NSIG/8)

#endif
#endif
#endif