os/ossrv/genericopenlibs/openenvcore/libc/src/sigwait.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 int sigwait(const sigset_t *set, int *sig)
    25 {
    26 	return _sigwait_r(&errno, set, sig);
    27 }
    28 
    29 EXPORT_C int sigtimedwait(const sigset_t *set,
    30        siginfo_t *info, const struct timespec *timeout)
    31 	{
    32 	return _sigtimedwait_r(&errno,set,info,timeout);
    33 	}
    34 
    35 EXPORT_C int sigwaitinfo(const sigset_t *set, siginfo_t *info)
    36 {
    37 	return _sigwaitinfo_r(&errno,set,info);
    38 }