From 360b2b7ab8fd7cf337f02e260346a0f0ecbb8064 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 20 Mar 2007 16:51:12 +0000 Subject: 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 --- nuttx/include/sys/types.h | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'nuttx/include/sys') 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 /************************************************************ -- cgit v1.2.3