Home | History | Annotate | Download | only in asm
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _ASM_SIGNAL_H
     20 #define _ASM_SIGNAL_H
     21 #include <linux/types.h>
     22 #define _NSIG 128
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define NSIG 128
     25 #define _NSIG_BPW (sizeof(unsigned long) * 8)
     26 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
     27 typedef struct {
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  unsigned long sig[_NSIG_WORDS];
     30 } sigset_t;
     31 typedef unsigned long old_sigset_t;
     32 #define SIGHUP 1
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define SIGINT 2
     35 #define SIGQUIT 3
     36 #define SIGILL 4
     37 #define SIGTRAP 5
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define SIGIOT 6
     40 #define SIGABRT SIGIOT
     41 #define SIGEMT 7
     42 #define SIGFPE 8
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define SIGKILL 9
     45 #define SIGBUS 10
     46 #define SIGSEGV 11
     47 #define SIGSYS 12
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define SIGPIPE 13
     50 #define SIGALRM 14
     51 #define SIGTERM 15
     52 #define SIGUSR1 16
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define SIGUSR2 17
     55 #define SIGCHLD 18
     56 #define SIGCLD SIGCHLD
     57 #define SIGPWR 19
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define SIGWINCH 20
     60 #define SIGURG 21
     61 #define SIGIO 22
     62 #define SIGPOLL SIGIO
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define SIGSTOP 23
     65 #define SIGTSTP 24
     66 #define SIGCONT 25
     67 #define SIGTTIN 26
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define SIGTTOU 27
     70 #define SIGVTALRM 28
     71 #define SIGPROF 29
     72 #define SIGXCPU 30
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define SIGXFSZ 31
     75 #define SIGRTMIN 32
     76 #define SIGRTMAX _NSIG
     77 #define SA_ONSTACK 0x08000000
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define SA_RESETHAND 0x80000000
     80 #define SA_RESTART 0x10000000
     81 #define SA_SIGINFO 0x00000008
     82 #define SA_NODEFER 0x40000000
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define SA_NOCLDWAIT 0x00010000
     85 #define SA_NOCLDSTOP 0x00000001
     86 #define SA_NOMASK SA_NODEFER
     87 #define SA_ONESHOT SA_RESETHAND
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define SA_RESTORER 0x04000000
     90 #define SS_ONSTACK 1
     91 #define SS_DISABLE 2
     92 #define MINSIGSTKSZ 2048
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define SIGSTKSZ 8192
     95 #define SIG_BLOCK 1
     96 #define SIG_UNBLOCK 2
     97 #define SIG_SETMASK 3
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #include <asm-generic/signal.h>
    100 struct sigaction {
    101  unsigned int sa_flags;
    102  union {
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104  __sighandler_t sa_handler;
    105  void (*sa_sigaction) (int, struct siginfo *, void *);
    106  } __sigaction_handler;
    107 #define sa_handler __sigaction_handler.sa_handler
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define sa_sigaction __sigaction_handler.sa_sigaction
    110  sigset_t sa_mask;
    111 };
    112 struct k_sigaction {
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  struct sigaction sa;
    115 };
    116 typedef struct sigaltstack {
    117  void *ss_sp;
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119  size_t ss_size;
    120  int ss_flags;
    121 } stack_t;
    122 #endif
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124