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