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