about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386/bits/fcntl.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-10-29 08:48:17 -0700
committerUlrich Drepper <drepper@redhat.com>2009-10-29 08:48:17 -0700
commitd9e8f9ec5557cc6ffcc154eafc4d2f2348df7b6b (patch)
treea8f4c0b73d0d623450afce20d415f3d49a747a53 /sysdeps/unix/sysv/linux/i386/bits/fcntl.h
parent92934e8b848fd55483606addf37687913a980bca (diff)
downloadglibc-d9e8f9ec5557cc6ffcc154eafc4d2f2348df7b6b.tar.gz
glibc-d9e8f9ec5557cc6ffcc154eafc4d2f2348df7b6b.tar.xz
glibc-d9e8f9ec5557cc6ffcc154eafc4d2f2348df7b6b.zip
Define F_OWNER_* and f_owner_ex for Linux targets.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/bits/fcntl.h')
-rw-r--r--sysdeps/unix/sysv/linux/i386/bits/fcntl.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/bits/fcntl.h b/sysdeps/unix/sysv/linux/i386/bits/fcntl.h
index 0138b69d78..06b9e48acc 100644
--- a/sysdeps/unix/sysv/linux/i386/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/i386/bits/fcntl.h
@@ -1,5 +1,5 @@
 /* O_*, F_*, FD_* bit values for Linux.
-   Copyright (C) 1995, 1996, 1997, 1998, 2000, 2004, 2006, 2007
+   Copyright (C) 1995, 1996, 1997, 1998, 2000, 2004, 2006, 2007, 2009
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -168,6 +168,23 @@ struct flock64
   };
 #endif
 
+#ifdef __USE_GNU
+/* Owner types.  */
+enum __pid_type
+  {
+    F_OWNER_TID = 0,	/* Kernel thread.  */
+    F_OWNER_PID,	/* Process.  */
+    F_OWNER_GID		/* Process group.  */
+  };
+
+/* Structure to use with F_GETOWN_EX and F_SETOWN_EX.  */
+struct f_owner_ex
+  {
+    enum __pid_type type;	/* Owner type of ID.  */
+    __pid_t pid;		/* ID of owner.  */
+  };
+#endif
+
 /* Define some more compatibility macros to be backward compatible with
    BSD systems which did not managed to hide these kernel macros.  */
 #ifdef	__USE_BSD