Release 6.1.7
This commit is contained in:
86
utility/rtos_compatibility_layers/posix/px_sig_fillset.c
Normal file
86
utility/rtos_compatibility_layers/posix/px_sig_fillset.c
Normal file
@@ -0,0 +1,86 @@
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* Copyright (c) Microsoft Corporation. All rights reserved. */
|
||||
/* */
|
||||
/* This software is licensed under the Microsoft Software License */
|
||||
/* Terms for Microsoft Azure RTOS. Full text of the license can be */
|
||||
/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
|
||||
/* and in the root directory of this software. */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
/** */
|
||||
/** 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 */
|
||||
/* */
|
||||
/* sigfillset PORTABLE C */
|
||||
/* 6.x */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
/* William E. Lamie, Microsoft Corporation */
|
||||
/* */
|
||||
/* DESCRIPTION */
|
||||
/* */
|
||||
/* This function initializes the signal set pointed to by 'set' to */
|
||||
/* include all signals. */
|
||||
/* */
|
||||
/* 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 */
|
||||
/* */
|
||||
/* xx-xx-xxxx William E. Lamie Initial Version 6.x */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
int sigfillset(sigset_t *set)
|
||||
{
|
||||
|
||||
/* Is there a pointer. */
|
||||
if (!set)
|
||||
{
|
||||
|
||||
/* Return an error. */
|
||||
posix_set_pthread_errno(EINVAL);
|
||||
return(ERROR);
|
||||
}
|
||||
|
||||
/* Set all the signals. */
|
||||
set -> signal_set = 0xFFFFFFFF;
|
||||
|
||||
/* Return successful status. */
|
||||
return(OK);
|
||||
}
|
||||
Reference in New Issue
Block a user