Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Fix the ABI of idtype_t.



details:   https://anonhg.NetBSD.org/src/rev/c1929d4a4cc8
branches:  trunk
changeset: 344638:c1929d4a4cc8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 09 17:02:51 2016 +0000

description:
Fix the ABI of idtype_t.

diffstat:

 sys/sys/idtype.h |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 9984c85b6a06 -r c1929d4a4cc8 sys/sys/idtype.h
--- a/sys/sys/idtype.h  Sat Apr 09 16:59:43 2016 +0000
+++ b/sys/sys/idtype.h  Sat Apr 09 17:02:51 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: idtype.h,v 1.4 2016/04/03 02:08:42 christos Exp $      */
+/*     $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -34,7 +34,9 @@
 /*
  * Using the solaris constants, some of them are not applicable to us
  * Do not re-order the list, or add elements in the middle as this will
- * break the ABI of the system calls using this.
+ * break the ABI of the system calls using this.  We set a high private
+ * maximum so that new values can be added in the future without
+ * changing the width of the type.
  */
 typedef enum {
        P_MYID = -1,    /* Me/my process group */
@@ -53,7 +55,8 @@
        P_ZONEID,       /* A zone identifier. */
        P_CTID,         /* A (process) contract identifier. */
        P_CPUID,        /* CPU identifier. */
-       P_PSETID        /* Processor set identifier. */
+       P_PSETID,       /* Processor set identifier. */
+       _P_MAXIDTYPE = 0x7fffffff
 } idtype_t;
 
 #endif /* _SYS_IDTYPE_H_ */



Home | Main Index | Thread Index | Old Index