From b83e24ec29ef98ff50f22b4029794034690e5936 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 2 Aug 2009 13:24:47 +0000 Subject: Fix some ez80 compilation errors git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2005 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/fs/fs_fcntl.c | 1 - nuttx/include/fcntl.h | 12 +++--------- nuttx/net/net_vfcntl.c | 2 -- 3 files changed, 3 insertions(+), 12 deletions(-) (limited to 'nuttx') diff --git a/nuttx/fs/fs_fcntl.c b/nuttx/fs/fs_fcntl.c index d8afd51a2..0639f52d6 100644 --- a/nuttx/fs/fs_fcntl.c +++ b/nuttx/fs/fs_fcntl.c @@ -80,7 +80,6 @@ static inline int file_vfcntl(int fildes, int cmd, va_list ap) goto errout; } -#warning "Many fcntl() commands not yet implemented" switch (cmd) { case F_DUPFD: diff --git a/nuttx/include/fcntl.h b/nuttx/include/fcntl.h index 611a10d0a..48b94d33b 100644 --- a/nuttx/include/fcntl.h +++ b/nuttx/include/fcntl.h @@ -88,20 +88,14 @@ /* For posix fcntl() and lockf() */ -#define F_RDLCK 0 -#define F_WRLCK 1 -#define F_UNLCK 2 +#define F_RDLCK 0 /* Take out a read lease */ +#define F_WRLCK 1 /* Take out a write lease */ +#define F_UNLCK 2 /* Remove a lease */ /* close-on-exec flag for F_GETRL and F_SETFL */ #define FD_CLOEXEC 1 -/* Arguments to F_SETLEASE */ - -#define F_RDLCK 0 /* Take out a read lease */ -#define F_WRLCK 2 /* Take out a write lease */ -#define F_UNLCK 3 /* Remove a lease */ - /* These are the notifications that can be received from F_NOTIFY (linux) */ #define DN_ACCESS 0 /* A file was accessed */ diff --git a/nuttx/net/net_vfcntl.c b/nuttx/net/net_vfcntl.c index ccaf4e2cd..0b228b212 100644 --- a/nuttx/net/net_vfcntl.c +++ b/nuttx/net/net_vfcntl.c @@ -77,8 +77,6 @@ int net_vfcntl(int sockfd, int cmd, va_list ap) /* Interrupts must be disabled in order to perform operations on socket structures */ flags = irqsave(); - -#warning "Most fcntl() commands not yet implemented" switch (cmd) { case F_DUPFD: -- cgit v1.2.3