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@2: * 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 williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef _SIGNAL_H_ williamr@2: #define _SIGNAL_H_ williamr@2: #ifdef __cplusplus williamr@2: extern "C" { williamr@2: #endif williamr@2: williamr@2: #include "_ansi.h" williamr@2: #include williamr@2: williamr@2: /** Atomic entity type (ANSI) williamr@2: */ williamr@2: typedef int sig_atomic_t; williamr@2: williamr@2: /** Default action williamr@2: */ williamr@2: #define SIG_DFL ((void (*)())0) williamr@2: williamr@2: /** Ignore action williamr@2: */ williamr@2: #define SIG_IGN ((void (*)())1) williamr@2: williamr@2: /** Error return williamr@2: */ williamr@2: #define SIG_ERR ((void (*)())-1) williamr@2: williamr@2: typedef void (*_sig_func_ptr) (); williamr@2: williamr@2: extern _sig_func_ptr signal(int, _sig_func_ptr); williamr@2: extern int raise(int); williamr@2: williamr@2: #ifdef __cplusplus williamr@2: } williamr@2: #endif williamr@2: #endif /* _SIGNAL_H_ */