From 0366e55931df501a7d365ab4fa336a8af26869fa Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 29 Oct 2009 16:51:04 +0000 Subject: [PATCH] Define F_OWNER_* and f_owner_ex for ARM. * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define F_OWNER_* and f_owner_ex. --- ChangeLog.arm | 5 +++++ sysdeps/unix/sysv/linux/arm/bits/fcntl.h | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/ChangeLog.arm b/ChangeLog.arm index 170d51a..1638033 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,8 @@ +2009-10-29 Joseph Myers + + * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define F_OWNER_* and + f_owner_ex. + 2009-10-22 Daniel Gutson * sysdeps/arm/sysdep.h: (Tag_ABI_align8_preserved, diff --git a/sysdeps/unix/sysv/linux/arm/bits/fcntl.h b/sysdeps/unix/sysv/linux/arm/bits/fcntl.h index 80ecee7..e5e70aa 100644 --- a/sysdeps/unix/sysv/linux/arm/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/arm/bits/fcntl.h @@ -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 -- 2.7.4