sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #ifndef _SYS_SIGNAL_H sl@0: #define _SYS_SIGNAL_H sl@0: sl@0: #ifndef _STRICT_ANSI sl@0: sl@0: typedef unsigned long sigset_t; sl@0: sl@0: struct sigaction sl@0: { sl@0: void (*sa_handler)(); sl@0: sigset_t sa_mask; sl@0: int sa_flags; sl@0: }; sl@0: sl@0: #define SA_NOCLDSTOP 1 /* only value supported now for sa_flags */ sl@0: #define SIG_SETMASK 0 /* set mask with sigprocmask() */ sl@0: #define SIG_BLOCK 1 /* set of signals to block */ sl@0: #define SIG_UNBLOCK 2 /* set of signals to, well, unblock */ sl@0: sl@0: sl@0: /** sl@0: These depend upon the type of sigset_t, which right now sl@0: is always a long.. They're in the POSIX namespace, but sl@0: are not ANSI. sl@0: */ sl@0: #define sigaddset(what,sig) (*(what) |= (1<<(sig))) sl@0: #define sigemptyset(what) (*(what) = 0) sl@0: sl@0: int sigprocmask (int how, const sigset_t *a, sigset_t *b); sl@0: #endif /* _STRICT_ANSI */ sl@0: sl@0: sl@0: #define SIGHUP 1 /* hangup */ sl@0: #define SIGINT 2 /* interrupt */ sl@0: #define SIGQUIT 3 /* quit */ sl@0: #define SIGILL 4 /* illegal instruction (not reset when caught) */ sl@0: #define SIGTRAP 5 /* trace trap (not reset when caught) */ sl@0: #define SIGIOT 6 /* IOT instruction */ sl@0: #define SIGABRT 6 /* used by abort, replace SIGIOT in the future */ sl@0: #define SIGEMT 7 /* EMT instruction */ sl@0: #define SIGFPE 8 /* floating point exception */ sl@0: #define SIGKILL 9 /* kill (cannot be caught or ignored) */ sl@0: #define SIGBUS 10 /* bus error */ sl@0: #define SIGSEGV 11 /* segmentation violation */ sl@0: #define SIGSYS 12 /* bad argument to system call */ sl@0: #define SIGPIPE 13 /* write on a pipe with no one to read it */ sl@0: #define SIGALRM 14 /* alarm clock */ sl@0: #define SIGTERM 15 /* software termination signal from kill */ sl@0: #define SIGUSR1 16 sl@0: #define SIGUSR2 17 sl@0: #define SIGCLD 18 sl@0: #define SIGPWR 19 sl@0: #define SIGWINCH 20 sl@0: #define SIGPOLL 22 /* 20 for x.out binaries!!!! */ sl@0: #define SIGSTOP 23 /* sendable stop signal not from tty */ sl@0: #define SIGTSTP 24 /* stop signal from tty */ sl@0: #define SIGCONT 25 /* continue a stopped process */ sl@0: #define SIGTTIN 26 /* to readers pgrp upon background tty read */ sl@0: #define SIGTTOU 27 /* like TTIN for output if (tp->t_local<OSTOP) */ sl@0: #define NSIG 28 sl@0: sl@0: #endif /* _SYS_SIGNAL_H */