aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-04-29 21:09:46 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-04-29 21:09:46 +0000
commitfe1e3ce3e97f08d9b18b3444831a69b4666eb6b5 (patch)
tree9b986e85c8675f6d3fb50d28f6e25261e96b2d93
parentbb326a37493de7c88dbdcb139676957bab691f25 (diff)
fcntl constants
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@114 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--syscall-i386.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/syscall-i386.h b/syscall-i386.h
index a38dd32d67..2d0e91dd39 100644
--- a/syscall-i386.h
+++ b/syscall-i386.h
@@ -936,6 +936,24 @@ union target_semun {
unsigned int __pad; /* really void* */
};
+#define TARGET_F_DUPFD 0 /* dup */
+#define TARGET_F_GETFD 1 /* get close_on_exec */
+#define TARGET_F_SETFD 2 /* set/clear close_on_exec */
+#define TARGET_F_GETFL 3 /* get file->f_flags */
+#define TARGET_F_SETFL 4 /* set file->f_flags */
+#define TARGET_F_GETLK 5
+#define TARGET_F_SETLK 6
+#define TARGET_F_SETLKW 7
+
+#define TARGET_F_SETOWN 8 /* for sockets. */
+#define TARGET_F_GETOWN 9 /* for sockets. */
+#define TARGET_F_SETSIG 10 /* for sockets. */
+#define TARGET_F_GETSIG 11 /* for sockets. */
+
+#define TARGET_F_GETLK64 12 /* using 'struct flock64' */
+#define TARGET_F_SETLK64 13
+#define TARGET_F_SETLKW64 14
+
struct target_flock {
short l_type;
short l_whence;