From 2c2a85f0867263ef28e9a7b2eaffb3d58ce2580d Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 14 Dec 2009 19:30:18 +0000 Subject: [PATCH] Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2337 42af7a65-404d-4744-a932-0658087f49c3 --- sched/abort.c | 46 +++++++++++++------------- sched/atexit.c | 46 +++++++++++++------------- sched/clock_internal.h | 2 ++ sched/clock_settime.c | 50 ++++++++++++++--------------- sched/env_clearenv.c | 6 ++-- sched/env_dup.c | 6 ++-- sched/env_dupenv.c | 6 ++-- sched/env_findvar.c | 6 ++-- sched/env_internal.h | 12 +++---- sched/env_putenv.c | 6 ++-- sched/env_release.c | 6 ++-- sched/env_removevar.c | 6 ++-- sched/env_setenv.c | 6 ++-- sched/env_share.c | 6 ++-- sched/env_unsetenv.c | 6 ++-- sched/getpid.c | 42 ++++++++++++------------ sched/mq_close.c | 6 ++-- sched/mq_findnamed.c | 2 +- sched/mq_getattr.c | 2 +- sched/mq_initialize.c | 4 +-- sched/mq_internal.h | 21 ++++++------ sched/mq_open.c | 3 ++ sched/mq_receive.c | 42 ++++++++++++------------ sched/mq_send.c | 6 ++-- sched/mq_sndinternal.c | 12 ++++--- sched/mq_waitirq.c | 4 --- sched/pthread_attrgetstacksize.c | 6 ++-- sched/pthread_attrsetinheritsched.c | 1 + sched/pthread_cancel.c | 6 ++-- sched/pthread_completejoin.c | 50 ++++++++++++++--------------- sched/pthread_condtimedwait.c | 2 ++ sched/pthread_detach.c | 45 ++++++++++++++------------ sched/pthread_findjoininfo.c | 41 +++++++++++------------ sched/pthread_removejoininfo.c | 42 ++++++++++++------------ sched/pthread_yield.c | 42 ++++++++++++------------ sched/sched_foreach.c | 22 ++++++------- sched/sched_getfiles.c | 26 +++++++-------- sched/sched_getparam.c | 46 +++++++++++++------------- sched/sched_getscheduler.c | 46 +++++++++++++------------- sched/sched_getsockets.c | 26 +++++++-------- sched/sched_lockcount.c | 2 +- sched/sched_processtimer.c | 4 --- sched/sched_removeblocked.c | 4 --- sched/sched_reprioritize.c | 1 + sched/sched_rrgetinterval.c | 46 +++++++++++++------------- sched/sched_setpriority.c | 1 + sched/sem_close.c | 4 --- sched/sem_findnamed.c | 4 --- sched/sem_getvalue.c | 4 --- sched/sem_init.c | 1 + sched/sem_internal.h | 1 + sched/sem_open.c | 4 --- sched/sem_trywait.c | 4 --- sched/sem_unlink.c | 4 --- sched/sem_waitirq.c | 4 --- sched/sig_action.c | 1 + sched/sig_internal.h | 5 ++- sched/task_setup.c | 4 +++ sched/timer_create.c | 5 ++- sched/timer_gettime.c | 2 +- sched/timer_internal.h | 5 ++- sched/wd_internal.h | 5 +-- 62 files changed, 433 insertions(+), 443 deletions(-) diff --git a/sched/abort.c b/sched/abort.c index 7c077a9670..423c37fca3 100644 --- a/sched/abort.c +++ b/sched/abort.c @@ -1,7 +1,7 @@ -/************************************************************ - * abort.c +/************************************************************************ + * sched/abort.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,49 +31,49 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functionss - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: abort * * Description: * The abort() function causes abnormal program termination. * All open streams are closed and flushed. - ************************************************************/ + ************************************************************************/ void abort(void) { diff --git a/sched/atexit.c b/sched/atexit.c index 2920a36181..5ca6c5e0fa 100644 --- a/sched/atexit.c +++ b/sched/atexit.c @@ -1,7 +1,7 @@ -/************************************************************ - * atexit.c +/************************************************************************ + * sched/atexit.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include @@ -45,35 +45,35 @@ #include #include "os_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functionss - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: atexit * * Description: @@ -85,7 +85,7 @@ * Return Value: * zero on success. * - ************************************************************/ + ************************************************************************/ int atexit(void (*func)(void)) { diff --git a/sched/clock_internal.h b/sched/clock_internal.h index 008bdcd3cf..1752aae7ba 100644 --- a/sched/clock_internal.h +++ b/sched/clock_internal.h @@ -41,6 +41,8 @@ ********************************************************************************/ #include + +#include #include #include diff --git a/sched/clock_settime.c b/sched/clock_settime.c index 989ed50cd0..da0d8f1aca 100644 --- a/sched/clock_settime.c +++ b/sched/clock_settime.c @@ -1,7 +1,7 @@ -/************************************************************ - * clock_settime.c +/************************************************************************ + * sched/clock_settime.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include @@ -44,45 +44,45 @@ #include #include "clock_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/********************************************************** +/********************************************************************** * Public Constant Data - **********************************************************/ + **********************************************************************/ -/************************************************************ +/************************************************************************ * Public Variables - ************************************************************/ + ************************************************************************/ -/********************************************************** +/********************************************************************** * Private Variables - **********************************************************/ + **********************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: clock_settime * * Description: * Clock Functions based on POSIX APIs * - ************************************************************/ + ************************************************************************/ int clock_settime(clockid_t clock_id, const struct timespec *tp) { diff --git a/sched/env_clearenv.c b/sched/env_clearenv.c index 7fe01b5a2e..fa777bbf7e 100644 --- a/sched/env_clearenv.c +++ b/sched/env_clearenv.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_clearenv.c + * sched/env_clearenv.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_dup.c b/sched/env_dup.c index 4627393bb3..716dcc47c1 100644 --- a/sched/env_dup.c +++ b/sched/env_dup.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_dup.c + * sched/env_dup.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_dupenv.c b/sched/env_dupenv.c index 164dbe7134..d11e44330b 100644 --- a/sched/env_dupenv.c +++ b/sched/env_dupenv.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_dupenv.c + * eched/env_dupenv.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_findvar.c b/sched/env_findvar.c index c1717d0513..2ed10aede4 100644 --- a/sched/env_findvar.c +++ b/sched/env_findvar.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_findvar.c + * sched/env_findvar.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_internal.h b/sched/env_internal.h index 12395e256a..c96f3f7087 100644 --- a/sched/env_internal.h +++ b/sched/env_internal.h @@ -1,7 +1,7 @@ /**************************************************************************** - * env_internal.h + * sched/env_internal.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __ENV_INTERNAL_H -#define __ENV_INTERNAL_H +#ifndef __SCHED_ENV_INTERNAL_H +#define __SCHED_ENV_INTERNAL_H /**************************************************************************** * Included Files @@ -91,5 +91,5 @@ EXTERN int env_removevar(environ_t *envp, char *pvar); } #endif -#endif /* __ENV_INTERNAL_H */ +#endif /* __SCHED_ENV_INTERNAL_H */ diff --git a/sched/env_putenv.c b/sched/env_putenv.c index 5049b30d1b..43ca44d4d5 100644 --- a/sched/env_putenv.c +++ b/sched/env_putenv.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_putenv.c + * sched/env_putenv.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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 NuttX 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. * diff --git a/sched/env_release.c b/sched/env_release.c index 96490588e5..d124477d5d 100644 --- a/sched/env_release.c +++ b/sched/env_release.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_clearenv.c + * sched/env_clearenv.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_removevar.c b/sched/env_removevar.c index 990e9659a5..b4890a35df 100644 --- a/sched/env_removevar.c +++ b/sched/env_removevar.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_removevar.c + * sched/env_removevar.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_setenv.c b/sched/env_setenv.c index adac2c5c1a..0eacd77938 100644 --- a/sched/env_setenv.c +++ b/sched/env_setenv.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_setenv.c + * sched/env_setenv.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_share.c b/sched/env_share.c index 20920a8d34..15bfcccb90 100644 --- a/sched/env_share.c +++ b/sched/env_share.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_share.c + * sched/env_share.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/env_unsetenv.c b/sched/env_unsetenv.c index 8002cfdbb5..f397eab6b7 100644 --- a/sched/env_unsetenv.c +++ b/sched/env_unsetenv.c @@ -1,7 +1,7 @@ /**************************************************************************** - * env_unsetenv.c + * sched/env_unsetenv.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/getpid.c b/sched/getpid.c index 3bd9495b62..158b293705 100644 --- a/sched/getpid.c +++ b/sched/getpid.c @@ -1,7 +1,7 @@ -/************************************************************ - * getpid.c +/************************************************************************ + * sched/getpid.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,48 +31,48 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include #include #include "os_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: getpid * * Description: * Get the task ID of the currently executing task. * - ************************************************************/ + ************************************************************************/ pid_t getpid(void) { diff --git a/sched/mq_close.c b/sched/mq_close.c index 06b81fb5ed..4f6b0e0b5e 100644 --- a/sched/mq_close.c +++ b/sched/mq_close.c @@ -1,7 +1,7 @@ /************************************************************ - * mq_close.c + * sched/mq_close.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/mq_findnamed.c b/sched/mq_findnamed.c index 851052e280..be38303749 100644 --- a/sched/mq_findnamed.c +++ b/sched/mq_findnamed.c @@ -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. * diff --git a/sched/mq_getattr.c b/sched/mq_getattr.c index e788d6e71a..4094143e1a 100644 --- a/sched/mq_getattr.c +++ b/sched/mq_getattr.c @@ -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. * diff --git a/sched/mq_initialize.c b/sched/mq_initialize.c index fdc5dbb00c..2fcd304dd2 100644 --- a/sched/mq_initialize.c +++ b/sched/mq_initialize.c @@ -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. * @@ -39,7 +39,7 @@ #include -#include +#include #include #include diff --git a/sched/mq_internal.h b/sched/mq_internal.h index e5dc3ea3fe..6a40144d40 100644 --- a/sched/mq_internal.h +++ b/sched/mq_internal.h @@ -1,7 +1,7 @@ /**************************************************************************** - * mq_internal.h + * sched/mq_internal.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * @@ -33,26 +33,25 @@ * ****************************************************************************/ -#ifndef __MQ_INTERNAL_H -#define __MQ_INTERNAL_H +#ifndef __SCHED_MQ_INTERNAL_H +#define __SCHED_MQ_INTERNAL_H /**************************************************************************** * Included Files ****************************************************************************/ +#include +#include + #include +#include #include #include #include #include -#include #if CONFIG_MQ_MAXMSGSIZE > 0 -/**************************************************************************** - * Compilations Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ @@ -213,5 +212,5 @@ EXTERN int mq_dosend(mqd_t mqdes, FAR mqmsg_t *mqmsg, const void *msg, #endif #endif /* CONFIG_MQ_MAXMSGSIZE > 0 */ -#endif /* __MQ_INTERNAL_H */ +#endif /* __SCHED_MQ_INTERNAL_H */ diff --git a/sched/mq_open.c b/sched/mq_open.c index 4780d396b6..9e3a3e77cb 100644 --- a/sched/mq_open.c +++ b/sched/mq_open.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -47,7 +48,9 @@ #include #include #include + #include + #include "os_internal.h" #include "mq_internal.h" diff --git a/sched/mq_receive.c b/sched/mq_receive.c index 5182b40698..cd7748c3f3 100644 --- a/sched/mq_receive.c +++ b/sched/mq_receive.c @@ -1,7 +1,7 @@ -/************************************************************ - * mq_receive.c +/************************************************************************ + * sched/mq_receive.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include @@ -45,31 +45,31 @@ #include #include "mq_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: mq_receive * * Description: @@ -111,7 +111,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ ssize_t mq_receive(mqd_t mqdes, void *msg, size_t msglen, int *prio) { diff --git a/sched/mq_send.c b/sched/mq_send.c index 84e6e58422..d4644acb3b 100644 --- a/sched/mq_send.c +++ b/sched/mq_send.c @@ -1,7 +1,7 @@ /**************************************************************************** - * mq_send.c + * sched/mq_send.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/mq_sndinternal.c b/sched/mq_sndinternal.c index 8755603f83..6184ced7dc 100644 --- a/sched/mq_sndinternal.c +++ b/sched/mq_sndinternal.c @@ -1,7 +1,7 @@ /**************************************************************************** - * mq_send.c + * sched/mq_send.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * @@ -38,15 +38,19 @@ ****************************************************************************/ #include -#include + #include +#include #include #include #include #include #include #include + +#include #include + #include "os_internal.h" #ifndef CONFIG_DISABLE_SIGNALS # include "sig_internal.h" diff --git a/sched/mq_waitirq.c b/sched/mq_waitirq.c index f0f55c5e6a..40bd88e24a 100644 --- a/sched/mq_waitirq.c +++ b/sched/mq_waitirq.c @@ -44,10 +44,6 @@ #include #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/pthread_attrgetstacksize.c b/sched/pthread_attrgetstacksize.c index c5597d2a40..82c15004b4 100644 --- a/sched/pthread_attrgetstacksize.c +++ b/sched/pthread_attrgetstacksize.c @@ -1,7 +1,7 @@ /**************************************************************************** - * pthread_attrgetstacksize.c + * sched/pthread_attrgetstacksize.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/pthread_attrsetinheritsched.c b/sched/pthread_attrsetinheritsched.c index 35b7ad425c..9b0e6ac800 100644 --- a/sched/pthread_attrsetinheritsched.c +++ b/sched/pthread_attrsetinheritsched.c @@ -39,6 +39,7 @@ #include +#include #include #include #include diff --git a/sched/pthread_cancel.c b/sched/pthread_cancel.c index ac28bb85a3..2ff1daf878 100644 --- a/sched/pthread_cancel.c +++ b/sched/pthread_cancel.c @@ -1,7 +1,7 @@ /************************************************************************** - * pthread_cancel.c + * sched/pthread_cancel.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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. * diff --git a/sched/pthread_completejoin.c b/sched/pthread_completejoin.c index 1af8b8950c..fa91e4a6a4 100644 --- a/sched/pthread_completejoin.c +++ b/sched/pthread_completejoin.c @@ -1,7 +1,7 @@ -/************************************************************ - * pthread_completejoin.c +/************************************************************************ + * sched/pthread_completejoin.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include @@ -44,27 +44,27 @@ #include "os_internal.h" #include "pthread_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: pthread_notifywaiters * * Description: @@ -72,7 +72,7 @@ * thread's exit data. This must be done by the child * at child thread destruction time. * - ************************************************************/ + ************************************************************************/ static boolean pthread_notifywaiters(FAR join_t *pjoin) { @@ -116,11 +116,11 @@ static boolean pthread_notifywaiters(FAR join_t *pjoin) return FALSE; } -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: pthread_completejoin * * Description: @@ -138,7 +138,7 @@ static boolean pthread_notifywaiters(FAR join_t *pjoin) * * Assumptions: * - ************************************************************/ + ************************************************************************/ int pthread_completejoin(pid_t pid, FAR void *exit_value) { @@ -190,7 +190,7 @@ int pthread_completejoin(pid_t pid, FAR void *exit_value) return OK; } -/************************************************************ +/************************************************************************ * Function: pthread_destroyjoin * * Description: @@ -205,7 +205,7 @@ int pthread_completejoin(pid_t pid, FAR void *exit_value) * Assumptions: * The caller holds g_join_semaphore * - ************************************************************/ + ************************************************************************/ void pthread_destroyjoin(FAR join_t *pjoin) { diff --git a/sched/pthread_condtimedwait.c b/sched/pthread_condtimedwait.c index 6abf7881d1..6c43e819cc 100644 --- a/sched/pthread_condtimedwait.c +++ b/sched/pthread_condtimedwait.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -47,6 +48,7 @@ #include #include #include + #include "os_internal.h" #include "pthread_internal.h" #include "clock_internal.h" diff --git a/sched/pthread_detach.c b/sched/pthread_detach.c index a43be55bcc..dc83529303 100644 --- a/sched/pthread_detach.c +++ b/sched/pthread_detach.c @@ -1,7 +1,7 @@ -/************************************************************ - * pthread_detach.c +/************************************************************************ + * sched/pthread_detach.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,47 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ + +#include #include #include #include #include + #include "os_internal.h" #include "pthread_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: pthread_detach * * Description: @@ -83,7 +86,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ int pthread_detach(pthread_t thread) { diff --git a/sched/pthread_findjoininfo.c b/sched/pthread_findjoininfo.c index 893e065513..ea8acfac3a 100644 --- a/sched/pthread_findjoininfo.c +++ b/sched/pthread_findjoininfo.c @@ -1,7 +1,7 @@ -/************************************************************ +/************************************************************************ * pthread_findjoininfo.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,40 +31,41 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ +#include #include #include "pthread_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: thread_findjoininfo * * Description: @@ -79,7 +80,7 @@ * Assumptions: * The caller has provided protection from re-entrancy. * - ************************************************************/ + ************************************************************************/ FAR join_t *pthread_findjoininfo(pid_t pid) { diff --git a/sched/pthread_removejoininfo.c b/sched/pthread_removejoininfo.c index e989d9ab8d..3251b67fe5 100644 --- a/sched/pthread_removejoininfo.c +++ b/sched/pthread_removejoininfo.c @@ -1,7 +1,7 @@ -/************************************************************ - * pthread_removejoininfo.c +/************************************************************************ + * sched/pthread_removejoininfo.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,40 +31,40 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include "pthread_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: pthread_removejoininfo * * Description: @@ -79,7 +79,7 @@ * Assumptions: * The caller has provided protection from re-entrancy. * - ************************************************************/ + ************************************************************************/ FAR join_t *pthread_removejoininfo(pid_t pid) { diff --git a/sched/pthread_yield.c b/sched/pthread_yield.c index 06d68e5a1c..6c7a42e207 100644 --- a/sched/pthread_yield.c +++ b/sched/pthread_yield.c @@ -1,7 +1,7 @@ -/************************************************************ - * pthread_yield.c +/************************************************************************ + * sched/pthread_yield.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,40 +31,40 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: pthread_yield * * Description: @@ -79,7 +79,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ void pthread_yield(void) { diff --git a/sched/sched_foreach.c b/sched/sched_foreach.c index f662846857..3af74c7044 100644 --- a/sched/sched_foreach.c +++ b/sched/sched_foreach.c @@ -1,7 +1,7 @@ -/************************************************************ - * sched_foreach.c +/************************************************************************ + * sched/sched_foreach.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,20 +31,20 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include "os_internal.h" -/************************************************************ +/************************************************************************ * Global Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: sched_foreach * * Description: @@ -61,7 +61,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ void sched_foreach(sched_foreach_t handler, FAR void *arg) { diff --git a/sched/sched_getfiles.c b/sched/sched_getfiles.c index 76c209b6e1..c8cbfe160c 100644 --- a/sched/sched_getfiles.c +++ b/sched/sched_getfiles.c @@ -1,7 +1,7 @@ -/************************************************************ - * sched_getfiles.c +/************************************************************************ + * sched/sched_getfiles.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,25 +31,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include #include "os_internal.h" -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: sched_getfiles * * Description: @@ -63,7 +63,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ #if CONFIG_NFILE_DESCRIPTORS > 0 diff --git a/sched/sched_getparam.c b/sched/sched_getparam.c index e78c07fc58..a74e4d65ee 100644 --- a/sched/sched_getparam.c +++ b/sched/sched_getparam.c @@ -1,7 +1,7 @@ -/************************************************************ - * sched_getparam.c +/************************************************************************ + * sched/sched_getparam.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,46 +31,46 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include #include #include "os_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: sched_getparam * * Description: @@ -92,7 +92,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ int sched_getparam (pid_t pid, struct sched_param * param) { diff --git a/sched/sched_getscheduler.c b/sched/sched_getscheduler.c index 8eea5339e7..1515ae69c2 100644 --- a/sched/sched_getscheduler.c +++ b/sched/sched_getscheduler.c @@ -1,7 +1,7 @@ -/************************************************************ - * sched_getscheduler.c +/************************************************************************ + * sched/sched_getscheduler.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include @@ -44,35 +44,35 @@ #include #include "os_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: sched_getscheduler * * Description: @@ -94,7 +94,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ int sched_getscheduler(pid_t pid) { diff --git a/sched/sched_getsockets.c b/sched/sched_getsockets.c index 13c9b69b9c..8a220fe4f3 100644 --- a/sched/sched_getsockets.c +++ b/sched/sched_getsockets.c @@ -1,7 +1,7 @@ -/************************************************************ - * sched_getsockets.c +/************************************************************************ + * sched/sched_getsockets.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include @@ -44,15 +44,15 @@ #if CONFIG_NSOCKET_DESCRIPTORS > 0 -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Function: sched_getsockets * * Description: @@ -66,7 +66,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ FAR struct socketlist *sched_getsockets(void) { diff --git a/sched/sched_lockcount.c b/sched/sched_lockcount.c index 476deac9d7..21998f6b3e 100644 --- a/sched/sched_lockcount.c +++ b/sched/sched_lockcount.c @@ -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. * diff --git a/sched/sched_processtimer.c b/sched/sched_processtimer.c index 5ca89d4fbd..5c98bc45ba 100644 --- a/sched/sched_processtimer.c +++ b/sched/sched_processtimer.c @@ -33,10 +33,6 @@ * ************************************************************************/ -/************************************************************************ - * Compilation Switches - ************************************************************************/ - /************************************************************************ * Included Files ************************************************************************/ diff --git a/sched/sched_removeblocked.c b/sched/sched_removeblocked.c index 6e2987fb66..6a21947812 100644 --- a/sched/sched_removeblocked.c +++ b/sched/sched_removeblocked.c @@ -33,10 +33,6 @@ * ************************************************************************/ -/************************************************************************ - * Compilation Switches - ************************************************************************/ - /************************************************************************ * Included Files ************************************************************************/ diff --git a/sched/sched_reprioritize.c b/sched/sched_reprioritize.c index 86385f9494..9c40e5e3d4 100644 --- a/sched/sched_reprioritize.c +++ b/sched/sched_reprioritize.c @@ -39,6 +39,7 @@ #include +#include #include #include diff --git a/sched/sched_rrgetinterval.c b/sched/sched_rrgetinterval.c index ee4d4aea98..114f365326 100644 --- a/sched/sched_rrgetinterval.c +++ b/sched/sched_rrgetinterval.c @@ -1,7 +1,7 @@ -/************************************************************ - * sched_rrgetinterval.c +/************************************************************************ + * sched/sched_rrgetinterval.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include #include @@ -45,35 +45,35 @@ #include "os_internal.h" #include "clock_internal.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Type Declarations - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Variables - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: sched_rr_get_interval * * Description: @@ -100,7 +100,7 @@ * * Assumptions: * - ************************************************************/ + ************************************************************************/ int sched_rr_get_interval(pid_t pid, struct timespec *interval) { diff --git a/sched/sched_setpriority.c b/sched/sched_setpriority.c index 522fc602f0..c5b7839aa4 100644 --- a/sched/sched_setpriority.c +++ b/sched/sched_setpriority.c @@ -39,6 +39,7 @@ #include +#include #include #include #include diff --git a/sched/sem_close.c b/sched/sem_close.c index c6e934c1ba..279e427379 100644 --- a/sched/sem_close.c +++ b/sched/sem_close.c @@ -46,10 +46,6 @@ #include "os_internal.h" #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/sem_findnamed.c b/sched/sem_findnamed.c index 1c80bdf9a4..3d73038b52 100644 --- a/sched/sem_findnamed.c +++ b/sched/sem_findnamed.c @@ -43,10 +43,6 @@ #include "sem_internal.h" -/************************************************************************ - * Compilation Switches - ************************************************************************/ - /************************************************************************ * Definitions ************************************************************************/ diff --git a/sched/sem_getvalue.c b/sched/sem_getvalue.c index 4bed5ab3e3..c78b9a50a2 100644 --- a/sched/sem_getvalue.c +++ b/sched/sem_getvalue.c @@ -43,10 +43,6 @@ #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/sem_init.c b/sched/sem_init.c index 6717714f54..1cc1f1df87 100644 --- a/sched/sem_init.c +++ b/sched/sem_init.c @@ -39,6 +39,7 @@ #include +#include #include #include diff --git a/sched/sem_internal.h b/sched/sem_internal.h index 31037d930c..054946301a 100644 --- a/sched/sem_internal.h +++ b/sched/sem_internal.h @@ -43,6 +43,7 @@ #include #include +#include #include #include #include diff --git a/sched/sem_open.c b/sched/sem_open.c index 384261c24b..aeb5097eb2 100644 --- a/sched/sem_open.c +++ b/sched/sem_open.c @@ -47,10 +47,6 @@ #include #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/sem_trywait.c b/sched/sem_trywait.c index 03c1ea0626..27eb6a60c8 100644 --- a/sched/sem_trywait.c +++ b/sched/sem_trywait.c @@ -47,10 +47,6 @@ #include "os_internal.h" #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/sem_unlink.c b/sched/sem_unlink.c index 4a53a1da6b..79f8be0104 100644 --- a/sched/sem_unlink.c +++ b/sched/sem_unlink.c @@ -46,10 +46,6 @@ #include "os_internal.h" #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/sem_waitirq.c b/sched/sem_waitirq.c index 9113c475c7..67366ad412 100644 --- a/sched/sem_waitirq.c +++ b/sched/sem_waitirq.c @@ -45,10 +45,6 @@ #include "sem_internal.h" -/**************************************************************************** - * Compilation Switches - ****************************************************************************/ - /**************************************************************************** * Definitions ****************************************************************************/ diff --git a/sched/sig_action.c b/sched/sig_action.c index 28956bb41a..cc4ea263b6 100644 --- a/sched/sig_action.c +++ b/sched/sig_action.c @@ -39,6 +39,7 @@ #include +#include #include #include #include diff --git a/sched/sig_internal.h b/sched/sig_internal.h index 054ff76507..877400b1b5 100644 --- a/sched/sig_internal.h +++ b/sched/sig_internal.h @@ -1,7 +1,7 @@ /**************************************************************************** * sched/sig_internal.h * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -41,8 +41,11 @@ ****************************************************************************/ #include + +#include #include #include + #include /**************************************************************************** diff --git a/sched/task_setup.c b/sched/task_setup.c index d7da288e7c..61ca424f0c 100644 --- a/sched/task_setup.c +++ b/sched/task_setup.c @@ -38,12 +38,16 @@ ****************************************************************************/ #include + #include +#include #include #include #include #include + #include + #include "os_internal.h" /**************************************************************************** diff --git a/sched/timer_create.c b/sched/timer_create.c index 4394095fca..c4f3cbd872 100644 --- a/sched/timer_create.c +++ b/sched/timer_create.c @@ -1,7 +1,7 @@ /******************************************************************************** * sched/timer_create.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -38,12 +38,15 @@ ********************************************************************************/ #include + +#include #include #include #include #include #include #include + #include "timer_internal.h" #ifndef CONFIG_DISABLE_POSIX_TIMERS diff --git a/sched/timer_gettime.c b/sched/timer_gettime.c index 26499555c5..49c65ddf81 100644 --- a/sched/timer_gettime.c +++ b/sched/timer_gettime.c @@ -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. * diff --git a/sched/timer_internal.h b/sched/timer_internal.h index 41676ef5a7..1b6daffecd 100644 --- a/sched/timer_internal.h +++ b/sched/timer_internal.h @@ -1,7 +1,7 @@ /******************************************************************************** * timer_internal.h * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -41,8 +41,11 @@ ********************************************************************************/ #include + #include +#include #include + #include /******************************************************************************** diff --git a/sched/wd_internal.h b/sched/wd_internal.h index c624674395..2a64d9eaff 100644 --- a/sched/wd_internal.h +++ b/sched/wd_internal.h @@ -42,13 +42,10 @@ #include +#include #include #include -/************************************************************************ - * Compilations Switches - ************************************************************************/ - /************************************************************************ * Definitions ************************************************************************/