mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 12:34:48 +00:00
85 lines
4.5 KiB
C
85 lines
4.5 KiB
C
/***************************************************************************
|
|
* Copyright (c) 2024 Microsoft Corporation
|
|
*
|
|
* This program and the accompanying materials are made available under the
|
|
* terms of the MIT License which is available at
|
|
* https://opensource.org/licenses/MIT.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
**************************************************************************/
|
|
|
|
|
|
/**************************************************************************/
|
|
/**************************************************************************/
|
|
/** */
|
|
/** POSIX wrapper for THREADX */
|
|
/** */
|
|
/** */
|
|
/** */
|
|
/**************************************************************************/
|
|
/**************************************************************************/
|
|
|
|
/* Include necessary system files. */
|
|
|
|
#include "tx_api.h" /* Threadx API */
|
|
#include "pthread.h" /* Posix API */
|
|
#include "px_int.h" /* Posix helper functions */
|
|
#include "tx_thread.h" /* Internal ThreadX thread management. */
|
|
|
|
/**************************************************************************/
|
|
/* */
|
|
/* FUNCTION RELEASE */
|
|
/* */
|
|
/* sigemptyset PORTABLE C */
|
|
/* 6.1.7 */
|
|
/* AUTHOR */
|
|
/* */
|
|
/* William E. Lamie, Microsoft Corporation */
|
|
/* */
|
|
/* DESCRIPTION */
|
|
/* */
|
|
/* This function initializes the signal set pointed to by 'set' to 0. */
|
|
/* */
|
|
/* INPUT */
|
|
/* */
|
|
/* set Pointer to set of signals */
|
|
/* */
|
|
/* OUTPUT */
|
|
/* */
|
|
/* OK If successful */
|
|
/* ERROR If error occurs */
|
|
/* */
|
|
/* CALLS */
|
|
/* */
|
|
/* posix_set_pthread_errno */
|
|
/* */
|
|
/* CALLED BY */
|
|
/* */
|
|
/* Application Code */
|
|
/* */
|
|
/* RELEASE HISTORY */
|
|
/* */
|
|
/* DATE NAME DESCRIPTION */
|
|
/* */
|
|
/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
|
|
/* */
|
|
/**************************************************************************/
|
|
int sigemptyset(sigset_t *set)
|
|
{
|
|
|
|
/* Is there a pointer. */
|
|
if (!set)
|
|
{
|
|
|
|
/* Return an error. */
|
|
posix_set_pthread_errno(EINVAL);
|
|
return(ERROR);
|
|
}
|
|
|
|
/* Set the signal set to 0, which is the empty set. */
|
|
set -> signal_set = 0;
|
|
|
|
/* Return successful status. */
|
|
return(OK);
|
|
}
|