summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nuttx/sched/abort.c46
-rw-r--r--nuttx/sched/atexit.c46
-rw-r--r--nuttx/sched/clock_internal.h2
-rw-r--r--nuttx/sched/clock_settime.c50
-rw-r--r--nuttx/sched/env_clearenv.c6
-rw-r--r--nuttx/sched/env_dup.c6
-rw-r--r--nuttx/sched/env_dupenv.c6
-rw-r--r--nuttx/sched/env_findvar.c6
-rw-r--r--nuttx/sched/env_internal.h12
-rw-r--r--nuttx/sched/env_putenv.c6
-rw-r--r--nuttx/sched/env_release.c6
-rw-r--r--nuttx/sched/env_removevar.c6
-rw-r--r--nuttx/sched/env_setenv.c6
-rw-r--r--nuttx/sched/env_share.c6
-rw-r--r--nuttx/sched/env_unsetenv.c6
-rw-r--r--nuttx/sched/getpid.c42
-rw-r--r--nuttx/sched/mq_close.c6
-rw-r--r--nuttx/sched/mq_findnamed.c2
-rw-r--r--nuttx/sched/mq_getattr.c2
-rw-r--r--nuttx/sched/mq_initialize.c4
-rw-r--r--nuttx/sched/mq_internal.h21
-rw-r--r--nuttx/sched/mq_open.c3
-rw-r--r--nuttx/sched/mq_receive.c42
-rw-r--r--nuttx/sched/mq_send.c6
-rw-r--r--nuttx/sched/mq_sndinternal.c12
-rw-r--r--nuttx/sched/mq_waitirq.c4
-rw-r--r--nuttx/sched/pthread_attrgetstacksize.c6
-rw-r--r--nuttx/sched/pthread_attrsetinheritsched.c1
-rw-r--r--nuttx/sched/pthread_cancel.c6
-rw-r--r--nuttx/sched/pthread_completejoin.c50
-rw-r--r--nuttx/sched/pthread_condtimedwait.c2
-rw-r--r--nuttx/sched/pthread_detach.c45
-rw-r--r--nuttx/sched/pthread_findjoininfo.c41
-rw-r--r--nuttx/sched/pthread_removejoininfo.c42
-rw-r--r--nuttx/sched/pthread_yield.c42
-rw-r--r--nuttx/sched/sched_foreach.c22
-rw-r--r--nuttx/sched/sched_getfiles.c26
-rw-r--r--nuttx/sched/sched_getparam.c46
-rw-r--r--nuttx/sched/sched_getscheduler.c46
-rw-r--r--nuttx/sched/sched_getsockets.c26
-rw-r--r--nuttx/sched/sched_lockcount.c2
-rw-r--r--nuttx/sched/sched_processtimer.c4
-rw-r--r--nuttx/sched/sched_removeblocked.c4
-rw-r--r--nuttx/sched/sched_reprioritize.c1
-rw-r--r--nuttx/sched/sched_rrgetinterval.c46
-rw-r--r--nuttx/sched/sched_setpriority.c1
-rw-r--r--nuttx/sched/sem_close.c4
-rw-r--r--nuttx/sched/sem_findnamed.c4
-rw-r--r--nuttx/sched/sem_getvalue.c4
-rw-r--r--nuttx/sched/sem_init.c1
-rw-r--r--nuttx/sched/sem_internal.h1
-rw-r--r--nuttx/sched/sem_open.c4
-rw-r--r--nuttx/sched/sem_trywait.c4
-rw-r--r--nuttx/sched/sem_unlink.c4
-rw-r--r--nuttx/sched/sem_waitirq.c4
-rw-r--r--nuttx/sched/sig_action.c1
-rw-r--r--nuttx/sched/sig_internal.h5
-rw-r--r--nuttx/sched/task_setup.c4
-rw-r--r--nuttx/sched/timer_create.c5
-rw-r--r--nuttx/sched/timer_gettime.c2
-rw-r--r--nuttx/sched/timer_internal.h5
-rw-r--r--nuttx/sched/wd_internal.h5
62 files changed, 433 insertions, 443 deletions
diff --git a/nuttx/sched/abort.c b/nuttx/sched/abort.c
index 7c077a9670..423c37fca3 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 2920a36181..5ca6c5e0fa 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 008bdcd3cf..1752aae7ba 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 989ed50cd0..da0d8f1aca 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 7fe01b5a2e..fa777bbf7e 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 4627393bb3..716dcc47c1 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 164dbe7134..d11e44330b 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 c1717d0513..2ed10aede4 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 12395e256a..c96f3f7087 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 5049b30d1b..43ca44d4d5 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 96490588e5..d124477d5d 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 990e9659a5..b4890a35df 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 adac2c5c1a..0eacd77938 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 20920a8d34..15bfcccb90 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 8002cfdbb5..f397eab6b7 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 3bd9495b62..158b293705 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 06b81fb5ed..4f6b0e0b5e 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 851052e280..be38303749 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 e788d6e71a..4094143e1a 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 fdc5dbb00c..2fcd304dd2 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 e5dc3ea3fe..6a40144d40 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 4780d396b6..9e3a3e77cb 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 5182b40698..cd7748c3f3 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 84e6e58422..d4644acb3b 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 8755603f83..6184ced7dc 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 f0f55c5e6a..40bd88e24a 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 c5597d2a40..82c15004b4 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 35b7ad425c..9b0e6ac800 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 ac28bb85a3..2ff1daf878 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 1af8b8950c..fa91e4a6a4 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 6abf7881d1..6c43e819cc 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 a43be55bcc..dc83529303 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 893e065513..ea8acfac3a 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 e989d9ab8d..3251b67fe5 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 06d68e5a1c..6c7a42e207 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 f662846857..3af74c7044 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 76c209b6e1..c8cbfe160c 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 e78c07fc58..a74e4d65ee 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 8eea5339e7..1515ae69c2 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 13c9b69b9c..8a220fe4f3 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 476deac9d7..21998f6b3e 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 5ca89d4fbd..5c98bc45ba 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 6e2987fb66..6a21947812 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 86385f9494..9c40e5e3d4 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 ee4d4aea98..114f365326 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 522fc602f0..c5b7839aa4 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 c6e934c1ba..279e427379 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 1c80bdf9a4..3d73038b52 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 4bed5ab3e3..c78b9a50a2 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 6717714f54..1cc1f1df87 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 31037d930c..054946301a 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 384261c24b..aeb5097eb2 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 03c1ea0626..27eb6a60c8 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 4a53a1da6b..79f8be0104 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 9113c475c7..67366ad412 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 28956bb41a..cc4ea263b6 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 054ff76507..877400b1b5 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 d7da288e7c..61ca424f0c 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 4394095fca..c4f3cbd872 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 26499555c5..49c65ddf81 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 41676ef5a7..1b6daffecd 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 c624674395..2a64d9eaff 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
************************************************************************/