diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 19:30:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 19:30:18 +0000 |
commit | 6260f872623acfe046f62a728405dbadc2a60c8c (patch) | |
tree | d10315fb8eeff8dadcbde87cc1e0715d015bf261 /nuttx/sched | |
parent | 59f367c060c408a9c9f2ee6db3a4fd498c4a2724 (diff) | |
download | px4-nuttx-6260f872623acfe046f62a728405dbadc2a60c8c.tar.gz px4-nuttx-6260f872623acfe046f62a728405dbadc2a60c8c.tar.bz2 px4-nuttx-6260f872623acfe046f62a728405dbadc2a60c8c.zip |
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
Diffstat (limited to 'nuttx/sched')
62 files changed, 433 insertions, 443 deletions
diff --git a/nuttx/sched/abort.c b/nuttx/sched/abort.c index 7c077a967..423c37fca 100644 --- a/nuttx/sched/abort.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,49 +31,49 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <stdlib.h> -/************************************************************ +/************************************************************************ * 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/nuttx/sched/atexit.c b/nuttx/sched/atexit.c index 2920a3618..5ca6c5e0f 100644 --- a/nuttx/sched/atexit.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <stdlib.h> #include <assert.h> @@ -45,35 +45,35 @@ #include <nuttx/fs.h> #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/nuttx/sched/clock_internal.h b/nuttx/sched/clock_internal.h index 008bdcd3c..1752aae7b 100644 --- a/nuttx/sched/clock_internal.h +++ b/nuttx/sched/clock_internal.h @@ -41,6 +41,8 @@ ********************************************************************************/ #include <nuttx/config.h> + +#include <stdint.h> #include <nuttx/clock.h> #include <nuttx/compiler.h> diff --git a/nuttx/sched/clock_settime.c b/nuttx/sched/clock_settime.c index 989ed50cd..da0d8f1ac 100644 --- a/nuttx/sched/clock_settime.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> @@ -44,45 +44,45 @@ #include <debug.h> #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/nuttx/sched/env_clearenv.c b/nuttx/sched/env_clearenv.c index 7fe01b5a2..fa777bbf7 100644 --- a/nuttx/sched/env_clearenv.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_dup.c b/nuttx/sched/env_dup.c index 4627393bb..716dcc47c 100644 --- a/nuttx/sched/env_dup.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_dupenv.c b/nuttx/sched/env_dupenv.c index 164dbe713..d11e44330 100644 --- a/nuttx/sched/env_dupenv.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_findvar.c b/nuttx/sched/env_findvar.c index c1717d051..2ed10aede 100644 --- a/nuttx/sched/env_findvar.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_internal.h b/nuttx/sched/env_internal.h index 12395e256..c96f3f708 100644 --- a/nuttx/sched/env_internal.h +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -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/nuttx/sched/env_putenv.c b/nuttx/sched/env_putenv.c index 5049b30d1..43ca44d4d 100644 --- a/nuttx/sched/env_putenv.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory 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/nuttx/sched/env_release.c b/nuttx/sched/env_release.c index 96490588e..d124477d5 100644 --- a/nuttx/sched/env_release.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_removevar.c b/nuttx/sched/env_removevar.c index 990e9659a..b4890a35d 100644 --- a/nuttx/sched/env_removevar.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_setenv.c b/nuttx/sched/env_setenv.c index adac2c5c1..0eacd7793 100644 --- a/nuttx/sched/env_setenv.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_share.c b/nuttx/sched/env_share.c index 20920a8d3..15bfcccb9 100644 --- a/nuttx/sched/env_share.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/env_unsetenv.c b/nuttx/sched/env_unsetenv.c index 8002cfdbb..f397eab6b 100644 --- a/nuttx/sched/env_unsetenv.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/getpid.c b/nuttx/sched/getpid.c index 3bd9495b6..158b29370 100644 --- a/nuttx/sched/getpid.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,48 +31,48 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <sys/types.h> #include <unistd.h> #include <sched.h> #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/nuttx/sched/mq_close.c b/nuttx/sched/mq_close.c index 06b81fb5e..4f6b0e0b5 100644 --- a/nuttx/sched/mq_close.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/mq_findnamed.c b/nuttx/sched/mq_findnamed.c index 851052e28..be3830374 100644 --- a/nuttx/sched/mq_findnamed.c +++ b/nuttx/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/nuttx/sched/mq_getattr.c b/nuttx/sched/mq_getattr.c index e788d6e71..4094143e1 100644 --- a/nuttx/sched/mq_getattr.c +++ b/nuttx/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/nuttx/sched/mq_initialize.c b/nuttx/sched/mq_initialize.c index fdc5dbb00..2fcd304dd 100644 --- a/nuttx/sched/mq_initialize.c +++ b/nuttx/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 <nuttx/config.h> -#include <stdinit.h> +#include <stdint.h> #include <queue.h> #include <nuttx/kmalloc.h> diff --git a/nuttx/sched/mq_internal.h b/nuttx/sched/mq_internal.h index e5dc3ea3f..6a40144d4 100644 --- a/nuttx/sched/mq_internal.h +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -33,27 +33,26 @@ * ****************************************************************************/ -#ifndef __MQ_INTERNAL_H -#define __MQ_INTERNAL_H +#ifndef __SCHED_MQ_INTERNAL_H +#define __SCHED_MQ_INTERNAL_H /**************************************************************************** * Included Files ****************************************************************************/ +#include <nuttx/config.h> +#include <nuttx/compiler.h> + #include <sys/types.h> +#include <stdint.h> #include <limits.h> #include <mqueue.h> #include <sched.h> #include <signal.h> -#include <nuttx/compiler.h> #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/nuttx/sched/mq_open.c b/nuttx/sched/mq_open.c index 4780d396b..9e3a3e77c 100644 --- a/nuttx/sched/mq_open.c +++ b/nuttx/sched/mq_open.c @@ -40,6 +40,7 @@ #include <nuttx/config.h> #include <sys/types.h> +#include <stdint.h> #include <stdarg.h> #include <mqueue.h> #include <fcntl.h> @@ -47,7 +48,9 @@ #include <sched.h> #include <errno.h> #include <debug.h> + #include <nuttx/kmalloc.h> + #include "os_internal.h" #include "mq_internal.h" diff --git a/nuttx/sched/mq_receive.c b/nuttx/sched/mq_receive.c index 5182b4069..cd7748c3f 100644 --- a/nuttx/sched/mq_receive.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -45,31 +45,31 @@ #include <nuttx/arch.h> #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/nuttx/sched/mq_send.c b/nuttx/sched/mq_send.c index 84e6e5842..d4644acb3 100644 --- a/nuttx/sched/mq_send.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/mq_sndinternal.c b/nuttx/sched/mq_sndinternal.c index 8755603f8..6184ced7d 100644 --- a/nuttx/sched/mq_sndinternal.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,15 +38,19 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <nuttx/kmalloc.h> + #include <sys/types.h> +#include <sigint.h> #include <fcntl.h> #include <mqueue.h> #include <string.h> #include <errno.h> #include <sched.h> #include <debug.h> + +#include <nuttx/kmalloc.h> #include <nuttx/arch.h> + #include "os_internal.h" #ifndef CONFIG_DISABLE_SIGNALS # include "sig_internal.h" diff --git a/nuttx/sched/mq_waitirq.c b/nuttx/sched/mq_waitirq.c index f0f55c5e6..40bd88e24 100644 --- a/nuttx/sched/mq_waitirq.c +++ b/nuttx/sched/mq_waitirq.c @@ -45,10 +45,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/pthread_attrgetstacksize.c b/nuttx/sched/pthread_attrgetstacksize.c index c5597d2a4..82c15004b 100644 --- a/nuttx/sched/pthread_attrgetstacksize.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/pthread_attrsetinheritsched.c b/nuttx/sched/pthread_attrsetinheritsched.c index 35b7ad425..9b0e6ac80 100644 --- a/nuttx/sched/pthread_attrsetinheritsched.c +++ b/nuttx/sched/pthread_attrsetinheritsched.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> +#include <stdint.h> #include <pthread.h> #include <string.h> #include <debug.h> diff --git a/nuttx/sched/pthread_cancel.c b/nuttx/sched/pthread_cancel.c index ac28bb85a..2ff1daf87 100644 --- a/nuttx/sched/pthread_cancel.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/nuttx/sched/pthread_completejoin.c b/nuttx/sched/pthread_completejoin.c index 1af8b8950..fa91e4a6a 100644 --- a/nuttx/sched/pthread_completejoin.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <sys/types.h> #include <pthread.h> @@ -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/nuttx/sched/pthread_condtimedwait.c b/nuttx/sched/pthread_condtimedwait.c index 6abf7881d..6c43e819c 100644 --- a/nuttx/sched/pthread_condtimedwait.c +++ b/nuttx/sched/pthread_condtimedwait.c @@ -40,6 +40,7 @@ #include <nuttx/config.h> #include <nuttx/compiler.h> +#include <stdint.h> #include <unistd.h> #include <pthread.h> #include <signal.h> @@ -47,6 +48,7 @@ #include <errno.h> #include <wdog.h> #include <debug.h> + #include "os_internal.h" #include "pthread_internal.h" #include "clock_internal.h" diff --git a/nuttx/sched/pthread_detach.c b/nuttx/sched/pthread_detach.c index a43be55bc..dc8352930 100644 --- a/nuttx/sched/pthread_detach.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,44 +31,47 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ + +#include <nuttx/config.h> #include <sys/types.h> #include <pthread.h> #include <errno.h> #include <debug.h> + #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/nuttx/sched/pthread_findjoininfo.c b/nuttx/sched/pthread_findjoininfo.c index 893e06551..ea8acfac3 100644 --- a/nuttx/sched/pthread_findjoininfo.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,40 +31,41 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ +#include <nuttx/config.h> #include <sys/types.h> #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/nuttx/sched/pthread_removejoininfo.c b/nuttx/sched/pthread_removejoininfo.c index e989d9ab8..3251b67fe 100644 --- a/nuttx/sched/pthread_removejoininfo.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,40 +31,40 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <sys/types.h> #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/nuttx/sched/pthread_yield.c b/nuttx/sched/pthread_yield.c index 06d68e5a1..6c7a42e20 100644 --- a/nuttx/sched/pthread_yield.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,40 +31,40 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <pthread.h> #include <sched.h> -/************************************************************ +/************************************************************************ * 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/nuttx/sched/sched_foreach.c b/nuttx/sched/sched_foreach.c index f66284685..3af74c704 100644 --- a/nuttx/sched/sched_foreach.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,20 +31,20 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <sched.h> #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/nuttx/sched/sched_getfiles.c b/nuttx/sched/sched_getfiles.c index 76c209b6e..c8cbfe160 100644 --- a/nuttx/sched/sched_getfiles.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,25 +31,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> #include <sched.h> #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/nuttx/sched/sched_getparam.c b/nuttx/sched/sched_getparam.c index e78c07fc5..a74e4d65e 100644 --- a/nuttx/sched/sched_getparam.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,46 +31,46 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> #include <sched.h> #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/nuttx/sched/sched_getscheduler.c b/nuttx/sched/sched_getscheduler.c index 8eea5339e..1515ae69c 100644 --- a/nuttx/sched/sched_getscheduler.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -44,35 +44,35 @@ #include <nuttx/arch.h> #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/nuttx/sched/sched_getsockets.c b/nuttx/sched/sched_getsockets.c index 13c9b69b9..8a220fe4f 100644 --- a/nuttx/sched/sched_getsockets.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> @@ -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/nuttx/sched/sched_lockcount.c b/nuttx/sched/sched_lockcount.c index 476deac9d..21998f6b3 100644 --- a/nuttx/sched/sched_lockcount.c +++ b/nuttx/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/nuttx/sched/sched_processtimer.c b/nuttx/sched/sched_processtimer.c index 5ca89d4fb..5c98bc45b 100644 --- a/nuttx/sched/sched_processtimer.c +++ b/nuttx/sched/sched_processtimer.c @@ -34,10 +34,6 @@ ************************************************************************/ /************************************************************************ - * Compilation Switches - ************************************************************************/ - -/************************************************************************ * Included Files ************************************************************************/ diff --git a/nuttx/sched/sched_removeblocked.c b/nuttx/sched/sched_removeblocked.c index 6e2987fb6..6a2194781 100644 --- a/nuttx/sched/sched_removeblocked.c +++ b/nuttx/sched/sched_removeblocked.c @@ -34,10 +34,6 @@ ************************************************************************/ /************************************************************************ - * Compilation Switches - ************************************************************************/ - -/************************************************************************ * Included Files ************************************************************************/ diff --git a/nuttx/sched/sched_reprioritize.c b/nuttx/sched/sched_reprioritize.c index 86385f949..9c40e5e3d 100644 --- a/nuttx/sched/sched_reprioritize.c +++ b/nuttx/sched/sched_reprioritize.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> +#include <stdint.h> #include <sched.h> #include <errno.h> diff --git a/nuttx/sched/sched_rrgetinterval.c b/nuttx/sched/sched_rrgetinterval.c index ee4d4aea9..114f36532 100644 --- a/nuttx/sched/sched_rrgetinterval.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -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/nuttx/sched/sched_setpriority.c b/nuttx/sched/sched_setpriority.c index 522fc602f..c5b7839aa 100644 --- a/nuttx/sched/sched_setpriority.c +++ b/nuttx/sched/sched_setpriority.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> +#include <stdint.h> #include <sched.h> #include <errno.h> #include <nuttx/arch.h> diff --git a/nuttx/sched/sem_close.c b/nuttx/sched/sem_close.c index c6e934c1b..279e42737 100644 --- a/nuttx/sched/sem_close.c +++ b/nuttx/sched/sem_close.c @@ -47,10 +47,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/sem_findnamed.c b/nuttx/sched/sem_findnamed.c index 1c80bdf9a..3d73038b5 100644 --- a/nuttx/sched/sem_findnamed.c +++ b/nuttx/sched/sem_findnamed.c @@ -44,10 +44,6 @@ #include "sem_internal.h" /************************************************************************ - * Compilation Switches - ************************************************************************/ - -/************************************************************************ * Definitions ************************************************************************/ diff --git a/nuttx/sched/sem_getvalue.c b/nuttx/sched/sem_getvalue.c index 4bed5ab3e..c78b9a50a 100644 --- a/nuttx/sched/sem_getvalue.c +++ b/nuttx/sched/sem_getvalue.c @@ -44,10 +44,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/sem_init.c b/nuttx/sched/sem_init.c index 6717714f5..1cc1f1df8 100644 --- a/nuttx/sched/sem_init.c +++ b/nuttx/sched/sem_init.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> +#include <stdint.h> #include <limits.h> #include <semaphore.h> diff --git a/nuttx/sched/sem_internal.h b/nuttx/sched/sem_internal.h index 31037d930..054946301 100644 --- a/nuttx/sched/sem_internal.h +++ b/nuttx/sched/sem_internal.h @@ -43,6 +43,7 @@ #include <nuttx/config.h> #include <nuttx/compiler.h> +#include <stdint.h> #include <semaphore.h> #include <sched.h> #include <queue.h> diff --git a/nuttx/sched/sem_open.c b/nuttx/sched/sem_open.c index 384261c24..aeb5097eb 100644 --- a/nuttx/sched/sem_open.c +++ b/nuttx/sched/sem_open.c @@ -48,10 +48,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/sem_trywait.c b/nuttx/sched/sem_trywait.c index 03c1ea062..27eb6a60c 100644 --- a/nuttx/sched/sem_trywait.c +++ b/nuttx/sched/sem_trywait.c @@ -48,10 +48,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/sem_unlink.c b/nuttx/sched/sem_unlink.c index 4a53a1da6..79f8be010 100644 --- a/nuttx/sched/sem_unlink.c +++ b/nuttx/sched/sem_unlink.c @@ -47,10 +47,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/sem_waitirq.c b/nuttx/sched/sem_waitirq.c index 9113c475c..67366ad41 100644 --- a/nuttx/sched/sem_waitirq.c +++ b/nuttx/sched/sem_waitirq.c @@ -46,10 +46,6 @@ #include "sem_internal.h" /**************************************************************************** - * Compilation Switches - ****************************************************************************/ - -/**************************************************************************** * Definitions ****************************************************************************/ diff --git a/nuttx/sched/sig_action.c b/nuttx/sched/sig_action.c index 28956bb41..cc4ea263b 100644 --- a/nuttx/sched/sig_action.c +++ b/nuttx/sched/sig_action.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> +#include <stdint.h> #include <signal.h> #include <queue.h> #include <sched.h> diff --git a/nuttx/sched/sig_internal.h b/nuttx/sched/sig_internal.h index 054ff7650..877400b1b 100644 --- a/nuttx/sched/sig_internal.h +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -41,8 +41,11 @@ ****************************************************************************/ #include <nuttx/compiler.h> + +#include <stdint.h> #include <queue.h> #include <sched.h> + #include <nuttx/kmalloc.h> /**************************************************************************** diff --git a/nuttx/sched/task_setup.c b/nuttx/sched/task_setup.c index d7da288e7..61ca424f0 100644 --- a/nuttx/sched/task_setup.c +++ b/nuttx/sched/task_setup.c @@ -38,12 +38,16 @@ ****************************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> +#include <stdint.h> #include <sched.h> #include <string.h> #include <errno.h> #include <debug.h> + #include <nuttx/arch.h> + #include "os_internal.h" /**************************************************************************** diff --git a/nuttx/sched/timer_create.c b/nuttx/sched/timer_create.c index 4394095fc..c4f3cbd87 100644 --- a/nuttx/sched/timer_create.c +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -38,12 +38,15 @@ ********************************************************************************/ #include <nuttx/config.h> + +#include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <string.h> #include <wdog.h> #include <errno.h> + #include "timer_internal.h" #ifndef CONFIG_DISABLE_POSIX_TIMERS diff --git a/nuttx/sched/timer_gettime.c b/nuttx/sched/timer_gettime.c index 26499555c..49c65ddf8 100644 --- a/nuttx/sched/timer_gettime.c +++ b/nuttx/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/nuttx/sched/timer_internal.h b/nuttx/sched/timer_internal.h index 41676ef5a..1b6daffec 100644 --- a/nuttx/sched/timer_internal.h +++ b/nuttx/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 <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -41,8 +41,11 @@ ********************************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> +#include <stdint.h> #include <wdog.h> + #include <nuttx/compiler.h> /******************************************************************************** diff --git a/nuttx/sched/wd_internal.h b/nuttx/sched/wd_internal.h index c62467439..2a64d9eaf 100644 --- a/nuttx/sched/wd_internal.h +++ b/nuttx/sched/wd_internal.h @@ -42,14 +42,11 @@ #include <nuttx/config.h> +#include <stdint.h> #include <wdog.h> #include <nuttx/compiler.h> /************************************************************************ - * Compilations Switches - ************************************************************************/ - -/************************************************************************ * Definitions ************************************************************************/ |