diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2009-10-29 16:51:55 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2009-10-29 16:51:55 +0000 |
| commit | a896552ef1c2e17e824dbff64495286a2267605e (patch) | |
| tree | 2c21b48f167d71be658867bd96b0c9b0a7a8b71d | |
| parent | 0366e55931df501a7d365ab4fa336a8af26869fa (diff) | |
| download | glibc-a896552ef1c2e17e824dbff64495286a2267605e.tar.xz glibc-a896552ef1c2e17e824dbff64495286a2267605e.zip | |
Define F_OWNER_* and f_owner_ex for MIPS.
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define F_OWNER_* and
f_owner_ex.
| -rw-r--r-- | ChangeLog.mips | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/bits/fcntl.h | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips index 370c9c76c8..d4afc96c8f 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-10-29 Joseph Myers <joseph@codesourcery.com> + + * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define F_OWNER_* and + f_owner_ex. + 2009-10-03 Joseph Myers <joseph@codesourcery.com> * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define F_SETOWN_EX diff --git a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h index e2c714b1e8..e451696524 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h @@ -181,6 +181,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 |
