os/ossrv/genericopenlibs/cstdlib/LINC/SIGNAL.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 /**
    21  @file
    22  @publishedAll
    23  @released
    24 */
    25 
    26 #ifndef _SIGNAL_H_
    27 #define _SIGNAL_H_
    28 #ifdef __cplusplus
    29 extern "C" {
    30 #endif
    31 
    32 #include "_ansi.h"
    33 #include <sys/signal.h>
    34 
    35 /** Atomic entity type (ANSI)
    36  */
    37 typedef int	sig_atomic_t;		
    38 
    39 /** Default action 
    40 */
    41 #define SIG_DFL ((void (*)())0)		
    42 
    43 /** Ignore action
    44  */
    45 #define SIG_IGN ((void (*)())1)		
    46 
    47 /** Error return 
    48 */
    49 #define SIG_ERR ((void (*)())-1)	
    50 
    51 typedef void (*_sig_func_ptr) ();
    52 
    53 extern _sig_func_ptr signal(int, _sig_func_ptr);
    54 extern int raise(int);
    55 
    56 #ifdef __cplusplus
    57 }
    58 #endif
    59 #endif /* _SIGNAL_H_ */