diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-31 17:59:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-31 17:59:22 +0000 |
commit | 8a99a139ba3683e981c9e71c57f7fce313d92cae (patch) | |
tree | 2dfeb694139cc0dbfcbb69bcbaae8ff6ddecbdd3 /nuttx/sched/sig_addset.c | |
parent | b1fd89b2e088a49381c698ef69904124605e81dc (diff) | |
download | px4-nuttx-8a99a139ba3683e981c9e71c57f7fce313d92cae.tar.gz px4-nuttx-8a99a139ba3683e981c9e71c57f7fce313d92cae.tar.bz2 px4-nuttx-8a99a139ba3683e981c9e71c57f7fce313d92cae.zip |
Z16F integration changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@595 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sig_addset.c')
-rw-r--r-- | nuttx/sched/sig_addset.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/nuttx/sched/sig_addset.c b/nuttx/sched/sig_addset.c index b212a37a7..678a7fcaf 100644 --- a/nuttx/sched/sig_addset.c +++ b/nuttx/sched/sig_addset.c @@ -1,7 +1,7 @@ -/************************************************************ - * sig_addset.c +/**************************************************************************** + * sched/sig_addset.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,44 +31,44 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <signal.h> -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Function: sigaddset * * Description: - * This function adds the signal specified by signo to the - * signal set specified by set. + * This function adds the signal specified by signo to the signal set + * specified by set. * * Parameters: * set - Signal set to add signal to @@ -79,9 +79,9 @@ * * Assumptions: * - ************************************************************/ + ****************************************************************************/ -int sigaddset(sigset_t *set, int signo) +int sigaddset(FAR sigset_t *set, int signo) { int ret = ERROR; @@ -89,10 +89,10 @@ int sigaddset(sigset_t *set, int signo) if (GOOD_SIGNO(signo)) { - /* Add the signal to the set */ + /* Add the signal to the set */ - *set |= SIGNO2SET(signo); - ret = OK; + *set |= SIGNO2SET(signo); + ret = OK; } return ret; |