os/ossrv/genericopenlibs/openenvcore/libc/src/signal.c
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2008-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 #include <signal.h>
    21 #include <sys/errno.h>
    22 #include "sysreent.h"
    23 
    24 EXPORT_C void (*bsd_signal(int sig, void (*disp)(int)))(int)
    25 	{
    26 	return _bsd_signal_r(&errno, sig, disp);
    27 	}
    28 
    29 EXPORT_C void (*sigset(int sig, void (*disp)(int)))(int)
    30 	{
    31 	return _sigset_r(&errno, sig, disp);
    32 	}
    33 
    34 EXPORT_C void (*signal(int sig, void (*disp)(int)))(int)
    35 	{
    36 	return _signal_r(&errno, sig, disp);
    37 	}
    38 
    39 EXPORT_C int sigignore(int sig)
    40 	{
    41 	return _sigignore_r(&errno, sig);
    42 	}