[Midnightbsd-cvs] src [7477] trunk/sys/sys: move idtype_t from types.h to wait.h
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Mar 18 20:52:33 EDT 2016
Revision: 7477
http://svnweb.midnightbsd.org/src/?rev=7477
Author: laffer1
Date: 2016-03-18 20:52:32 -0400 (Fri, 18 Mar 2016)
Log Message:
-----------
move idtype_t from types.h to wait.h
Modified Paths:
--------------
trunk/sys/sys/types.h
trunk/sys/sys/wait.h
Modified: trunk/sys/sys/types.h
===================================================================
--- trunk/sys/sys/types.h 2016-03-19 00:39:41 UTC (rev 7476)
+++ trunk/sys/sys/types.h 2016-03-19 00:52:32 UTC (rev 7477)
@@ -142,46 +142,6 @@
#define _ID_T_DECLARED
#endif
-#ifndef _IDTYPE_T_DECLARED
-
-typedef enum
-#if defined(__BSD_VISIBLE)
- idtype /* pollutes XPG4.2 namespace */
-#endif
- {
- /*
- * These names were mostly lifted from Solaris source code and
- * still use Solaris style naming to avoid breaking any
- * OpenSolaris code which has been ported to FreeBSD. There
- * is no clear FreeBSD counterpart for all of the names, but
- * some have a clear correspondence to FreeBSD entities.
- */
- P_PID, /* A process identifier. */
- P_PPID, /* A parent process identifier. */
- P_PGID, /* A process group identifier. */
- P_SID, /* A session identifier. */
- P_CID, /* A scheduling class identifier. */
- P_UID, /* A user identifier. */
- P_GID, /* A group identifier. */
- P_ALL, /* All processes. */
- P_LWPID, /* An LWP identifier. */
- P_TASKID, /* A task identifier. */
- P_PROJID, /* A project identifier. */
- P_POOLID, /* A pool identifier. */
- P_JAILID, /* A zone identifier. */
- P_CTID, /* A (process) contract identifier. */
- P_CPUID, /* CPU identifier. */
- P_PSETID /* Processor set identifier */
-} idtype_t; /* The type of id_t we are using. */
-
-#if defined(__BSD_VISIBLE)
-#define P_ZONEID P_JAILID
-#endif
-
-#define _IDTYPE_T_DECLARED
-#endif
-
-
#ifndef _INO_T_DECLARED
typedef __ino_t ino_t; /* inode number */
#define _INO_T_DECLARED
Modified: trunk/sys/sys/wait.h
===================================================================
--- trunk/sys/sys/wait.h 2016-03-19 00:39:41 UTC (rev 7476)
+++ trunk/sys/sys/wait.h 2016-03-19 00:52:32 UTC (rev 7477)
@@ -89,6 +89,46 @@
#define WLINUXCLONE 0x80000000 /* Wait for kthread spawned from linux_clone. */
#endif
+#ifndef _IDTYPE_T_DECLARED
+typedef enum
+#if __BSD_VISIBLE
+ idtype /* pollutes XPG4.2 namespace */
+#endif
+ {
+ /*
+ * These names were mostly lifted from Solaris source code and
+ * still use Solaris style naming to avoid breaking any
+ * OpenSolaris code which has been ported to FreeBSD. There
+ * is no clear FreeBSD counterpart for all of the names, but
+ * some have a clear correspondence to FreeBSD entities.
+ *
+ * The numerical values are kept synchronized with the Solaris
+ * values.
+ */
+ P_PID, /* A process identifier. */
+ P_PPID, /* A parent process identifier. */
+ P_PGID, /* A process group identifier. */
+ P_SID, /* A session identifier. */
+ P_CID, /* A scheduling class identifier. */
+ P_UID, /* A user identifier. */
+ P_GID, /* A group identifier. */
+ P_ALL, /* All processes. */
+ P_LWPID, /* An LWP identifier. */
+ P_TASKID, /* A task identifier. */
+ P_PROJID, /* A project identifier. */
+ P_POOLID, /* A pool identifier. */
+ P_JAILID, /* A zone identifier. */
+ P_CTID, /* A (process) contract identifier. */
+ P_CPUID, /* CPU identifier. */
+ P_PSETID /* Processor set identifier. */
+} idtype_t; /* The type of id_t we are using. */
+
+#if __BSD_VISIBLE
+#define P_ZONEID P_JAILID
+#endif
+#define _IDTYPE_T_DECLARED
+#endif
+
/*
* Tokens for special values of the "pid" parameter to wait4.
* Extended struct __wrusage to collect rusage for both the target
More information about the Midnightbsd-cvs
mailing list