summaryrefslogtreecommitdiff
path: root/nuttx/sched/sleep.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-14 01:56:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-14 01:56:40 +0000
commit3d4707361160a22aeefd74dae96e0406714b5b36 (patch)
treed6373d3d297aa159455d9071a8038285387b6b03 /nuttx/sched/sleep.c
parent17206f29c6bd2d9e3e67554127d20722bc90a017 (diff)
downloadpx4-nuttx-3d4707361160a22aeefd74dae96e0406714b5b36.tar.gz
px4-nuttx-3d4707361160a22aeefd74dae96e0406714b5b36.tar.bz2
px4-nuttx-3d4707361160a22aeefd74dae96e0406714b5b36.zip
cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1494 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sleep.c')
-rw-r--r--nuttx/sched/sleep.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/nuttx/sched/sleep.c b/nuttx/sched/sleep.c
index 38eefd200..238211812 100644
--- a/nuttx/sched/sleep.c
+++ b/nuttx/sched/sleep.c
@@ -1,7 +1,7 @@
-/************************************************************
- * sleep.c
+/****************************************************************************
+ * sched/sleep.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,57 +31,57 @@
* 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 <signal.h>
-/************************************************************
- * Definitions
- ************************************************************/
+/****************************************************************************
+ * Preprocessor Definitions
+ ****************************************************************************/
-/************************************************************
- * Private Type Declarations
- ************************************************************/
+/****************************************************************************
+ * Private Type Definitions
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Variables
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Variables
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Function Prototypes
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Function: sleep
*
* Description:
- * As typically declared in unistd.h. sleep() is a simple
- * application of sigtimedwait.
+ * As typically declared in unistd.h. sleep() is a simple application of
+ * sigtimedwait.
*
* Parameters:
* seconds
*
* Returned Value:
- * Zero if the requested time has elapsed, or the number
- * of seconds left to sleep.
+ * Zero if the requested time has elapsed, or the number of seconds left
+ * to sleep.
*
* Assumptions:
*
- ************************************************************/
+ ****************************************************************************/
unsigned int sleep(unsigned int seconds)
{
@@ -95,7 +95,7 @@ unsigned int sleep(unsigned int seconds)
ts.tv_sec = seconds;
ts.tv_nsec = 0;
(void)sigtimedwait(&set, &value, &ts);
- }
+ }
return 0;
}