summaryrefslogtreecommitdiff
path: root/nuttx/include/sys
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-20 16:51:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-20 16:51:12 +0000
commit360b2b7ab8fd7cf337f02e260346a0f0ecbb8064 (patch)
tree7e83b806156983fa5af8a32715d849762b8c7346 /nuttx/include/sys
parentd913f00d3b4bcbebc12dfa7ea017bacd17464b88 (diff)
downloadpx4-nuttx-360b2b7ab8fd7cf337f02e260346a0f0ecbb8064.tar.gz
px4-nuttx-360b2b7ab8fd7cf337f02e260346a0f0ecbb8064.tar.bz2
px4-nuttx-360b2b7ab8fd7cf337f02e260346a0f0ecbb8064.zip
Restructure header files for POSIX compliance; eliminate compile warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@107 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r--nuttx/include/sys/types.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h
index 45971e4fd..916681c39 100644
--- a/nuttx/include/sys/types.h
+++ b/nuttx/include/sys/types.h
@@ -69,12 +69,6 @@
#undef OK
#define OK 0
-/* POSIX-like scheduling policies (only SCHED_FIFO is supported) */
-
-#define SCHED_FIFO 1 /* FIFO per priority scheduling policy */
-#define SCHED_RR 2 /* Round robin scheduling policy */
-#define SCHED_OTHER 4 /* Not used */
-
/* HPUX-like MIN/MAX value */
#define PRIOR_RR_MIN 0
@@ -92,22 +86,6 @@
#define SCHED_PRIORITY_MIN 1
#define SCHED_PRIORITY_IDLE 0
-/* oflag bit settings for sem_open and mq_open */
-
-#define O_RDONLY 0x01 /* Open for read access */
-#define O_WRONLY 0x02 /* Open for write access */
-#define O_RDWR 0x03 /* Open for both read & write access */
-#define O_CREAT 0x04 /* Create semaphore/message queue */
-#define O_EXCL 0x08 /* Name must not exist when opened */
-#define O_APPEND 0x10
-#define O_TRUNC 0x20
-#define O_NONBLOCK 0x40 /* Don't wait for data */
-#define O_NDELAY O_NONBLOCK
-#define O_LOCK 0x80
-
-#define O_RDOK O_RDONLY /* Not POSIX */
-#define O_WROK O_WRONLY /* Not POSIX */
-
/************************************************************
* Type Declarations
************************************************************/
@@ -144,12 +122,6 @@ typedef int STATUS;
typedef int (*main_t)(int argc, char *argv[]);
-/* This is the POSIX-like scheduling parameter structure */
-
-struct sched_param
-{
- int sched_priority;
-};
#endif
/************************************************************