~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/include/uapi/asm/signal.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  *
  7  * Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle
  8  * Copyright (C) 1999 Silicon Graphics, Inc.
  9  */
 10 #ifndef _UAPI_ASM_SIGNAL_H
 11 #define _UAPI_ASM_SIGNAL_H
 12 
 13 #include <linux/types.h>
 14 
 15 #define _NSIG           128
 16 #define _NSIG_BPW       (sizeof(unsigned long) * 8)
 17 #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
 18 
 19 typedef struct {
 20         unsigned long sig[_NSIG_WORDS];
 21 } sigset_t;
 22 
 23 typedef unsigned long old_sigset_t;             /* at least 32 bits */
 24 
 25 #define SIGHUP           1      /* Hangup (POSIX).  */
 26 #define SIGINT           2      /* Interrupt (ANSI).  */
 27 #define SIGQUIT          3      /* Quit (POSIX).  */
 28 #define SIGILL           4      /* Illegal instruction (ANSI).  */
 29 #define SIGTRAP          5      /* Trace trap (POSIX).  */
 30 #define SIGIOT           6      /* IOT trap (4.2 BSD).  */
 31 #define SIGABRT          SIGIOT /* Abort (ANSI).  */
 32 #define SIGEMT           7
 33 #define SIGFPE           8      /* Floating-point exception (ANSI).  */
 34 #define SIGKILL          9      /* Kill, unblockable (POSIX).  */
 35 #define SIGBUS          10      /* BUS error (4.2 BSD).  */
 36 #define SIGSEGV         11      /* Segmentation violation (ANSI).  */
 37 #define SIGSYS          12
 38 #define SIGPIPE         13      /* Broken pipe (POSIX).  */
 39 #define SIGALRM         14      /* Alarm clock (POSIX).  */
 40 #define SIGTERM         15      /* Termination (ANSI).  */
 41 #define SIGUSR1         16      /* User-defined signal 1 (POSIX).  */
 42 #define SIGUSR2         17      /* User-defined signal 2 (POSIX).  */
 43 #define SIGCHLD         18      /* Child status has changed (POSIX).  */
 44 #define SIGCLD          SIGCHLD /* Same as SIGCHLD (System V).  */
 45 #define SIGPWR          19      /* Power failure restart (System V).  */
 46 #define SIGWINCH        20      /* Window size change (4.3 BSD, Sun).  */
 47 #define SIGURG          21      /* Urgent condition on socket (4.2 BSD).  */
 48 #define SIGIO           22      /* I/O now possible (4.2 BSD).  */
 49 #define SIGPOLL         SIGIO   /* Pollable event occurred (System V).  */
 50 #define SIGSTOP         23      /* Stop, unblockable (POSIX).  */
 51 #define SIGTSTP         24      /* Keyboard stop (POSIX).  */
 52 #define SIGCONT         25      /* Continue (POSIX).  */
 53 #define SIGTTIN         26      /* Background read from tty (POSIX).  */
 54 #define SIGTTOU         27      /* Background write to tty (POSIX).  */
 55 #define SIGVTALRM       28      /* Virtual alarm clock (4.2 BSD).  */
 56 #define SIGPROF         29      /* Profiling alarm clock (4.2 BSD).  */
 57 #define SIGXCPU         30      /* CPU limit exceeded (4.2 BSD).  */
 58 #define SIGXFSZ         31      /* File size limit exceeded (4.2 BSD).  */
 59 
 60 /* These should not be considered constants from userland.  */
 61 #define SIGRTMIN        32
 62 #define SIGRTMAX        _NSIG
 63 
 64 /*
 65  * SA_RESTORER used to be defined as 0x04000000 but only the O32 ABI ever
 66  * supported its use and no libc was using it, so the entire sa-restorer
 67  * functionality was removed with lmo commit 39bffc12c3580ab for 2.5.48
 68  * retaining only the SA_RESTORER definition as a reminder to avoid
 69  * accidental reuse of the mask bit.
 70  */
 71 #define SA_ONSTACK      0x08000000
 72 #define SA_RESETHAND    0x80000000
 73 #define SA_RESTART      0x10000000
 74 #define SA_SIGINFO      0x00000008
 75 #define SA_NODEFER      0x40000000
 76 #define SA_NOCLDWAIT    0x00010000
 77 #define SA_NOCLDSTOP    0x00000001
 78 
 79 #define SA_NOMASK       SA_NODEFER
 80 #define SA_ONESHOT      SA_RESETHAND
 81 
 82 #define MINSIGSTKSZ    2048
 83 #define SIGSTKSZ       8192
 84 
 85 
 86 #define SIG_BLOCK       1       /* for blocking signals */
 87 #define SIG_UNBLOCK     2       /* for unblocking signals */
 88 #define SIG_SETMASK     3       /* for setting the signal mask */
 89 
 90 #include <asm-generic/signal-defs.h>
 91 
 92 #ifndef __KERNEL__
 93 struct sigaction {
 94         unsigned int    sa_flags;
 95         __sighandler_t  sa_handler;
 96         sigset_t        sa_mask;
 97 };
 98 #endif
 99 
100 /* IRIX compatible stack_t  */
101 typedef struct sigaltstack {
102         void __user *ss_sp;
103         __kernel_size_t ss_size;
104         int ss_flags;
105 } stack_t;
106 
107 
108 #endif /* _UAPI_ASM_SIGNAL_H */
109 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php