epoc32/include/libc/signal.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 
    21 
    22 
    23 /**
    24  @file
    25  @publishedAll
    26  @released
    27 */
    28 
    29 #ifndef _SIGNAL_H_
    30 #define _SIGNAL_H_
    31 #ifdef __cplusplus
    32 extern "C" {
    33 #endif
    34 
    35 #include "_ansi.h"
    36 #include <sys/signal.h>
    37 
    38 /** Atomic entity type (ANSI)
    39  */
    40 typedef int	sig_atomic_t;		
    41 
    42 /** Default action 
    43 */
    44 #define SIG_DFL ((void (*)())0)		
    45 
    46 /** Ignore action
    47  */
    48 #define SIG_IGN ((void (*)())1)		
    49 
    50 /** Error return 
    51 */
    52 #define SIG_ERR ((void (*)())-1)	
    53 
    54 typedef void (*_sig_func_ptr) ();
    55 
    56 extern _sig_func_ptr signal(int, _sig_func_ptr);
    57 extern int raise(int);
    58 
    59 #ifdef __cplusplus
    60 }
    61 #endif
    62 #endif /* _SIGNAL_H_ */