summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-12-19 02:52:23 +0000
committerwollman <wollman@FreeBSD.org>2002-12-19 02:52:23 +0000
commitccfede3d4370c41c60b22c57c4c3120357db13d1 (patch)
tree88d728bc50dabb8c6465849694c0b7583b049bf3 /sys
parent2aa20c1a1efd4c21dc2f5fd41dadfc7d73779199 (diff)
downloadFreeBSD-src-ccfede3d4370c41c60b22c57c4c3120357db13d1.zip
FreeBSD-src-ccfede3d4370c41c60b22c57c4c3120357db13d1.tar.gz
Spell `unsigned short' in a way which does not depend on namespace pollution.
Note that this is still the wrong type, but we are not ready to break the ABI; this change simply allows programs which specify a strict SUSv3 namespace to compile. (They may still have semantic errors, since SUSv3 specifies correct types.)
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/ipc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/sys/ipc.h b/sys/sys/ipc.h
index 9a094f1..e78082a 100644
--- a/sys/sys/ipc.h
+++ b/sys/sys/ipc.h
@@ -77,13 +77,13 @@ typedef __uid_t uid_t;
* XXX almost all members have wrong types.
*/
struct ipc_perm {
- ushort cuid; /* creator user id */
- ushort cgid; /* creator group id */
- ushort uid; /* user id */
- ushort gid; /* group id */
- ushort mode; /* r/w permission */
- ushort seq; /* sequence # (to generate unique msg/sem/shm id) */
- key_t key; /* user specified msg/sem/shm key */
+ unsigned short cuid; /* creator user id */
+ unsigned short cgid; /* creator group id */
+ unsigned short uid; /* user id */
+ unsigned short gid; /* group id */
+ unsigned short mode; /* r/w permission */
+ unsigned short seq; /* sequence # (to generate unique ipcid) */
+ key_t key; /* user specified msg/sem/shm key */
};
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud