summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/fs/fs_fcntl.c1
-rw-r--r--nuttx/include/fcntl.h12
-rw-r--r--nuttx/net/net_vfcntl.c2
3 files changed, 3 insertions, 12 deletions
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: