summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-18 21:39:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-18 21:39:59 +0000
commit1e412a7c74a79a06ae1278c14015bc3f9cab978f (patch)
tree449a953323dc6a47941e82160ec6e7628fe25c17 /nuttx/include
parent51f5c35a7ff633f77f45c3130f3801908d820f24 (diff)
downloadpx4-nuttx-1e412a7c74a79a06ae1278c14015bc3f9cab978f.tar.gz
px4-nuttx-1e412a7c74a79a06ae1278c14015bc3f9cab978f.tar.bz2
px4-nuttx-1e412a7c74a79a06ae1278c14015bc3f9cab978f.zip
Add skeleton for fcntl()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1993 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/fcntl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/include/fcntl.h b/nuttx/include/fcntl.h
index 66a66e0f5..611a10d0a 100644
--- a/nuttx/include/fcntl.h
+++ b/nuttx/include/fcntl.h
@@ -1,7 +1,7 @@
/********************************************************************************
* include/fcntl.h
*
- * Copyright (C) 2007, 2008 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
@@ -86,6 +86,12 @@
#define F_SETOWN 13 /* Set pid that will receive SIGIO and SIGURG signals for fd */
#define F_SETSIG 14 /* Set the signal to be sent */
+/* For posix fcntl() and lockf() */
+
+#define F_RDLCK 0
+#define F_WRLCK 1
+#define F_UNLCK 2
+
/* close-on-exec flag for F_GETRL and F_SETFL */
#define FD_CLOEXEC 1