Sun Apr 3 00:18:01 2016 UTC ()
renumber to maintain binary compatibility with pset(3), from kre@


(christos)
diff -r1.2 -r1.3 src/sys/sys/idtype.h

cvs diff -r1.2 -r1.3 src/sys/sys/idtype.h (expand / switch to unified diff)

--- src/sys/sys/idtype.h 2016/04/02 21:21:57 1.2
+++ src/sys/sys/idtype.h 2016/04/03 00:18:01 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: idtype.h,v 1.2 2016/04/02 21:21:57 christos Exp $ */ 1/* $NetBSD: idtype.h,v 1.3 2016/04/03 00:18:01 christos Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2016 The NetBSD Foundation, Inc. 4 * Copyright (c) 2016 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas. 8 * by Christos Zoulas.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -26,30 +26,30 @@ @@ -26,30 +26,30 @@
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31#ifndef _SYS_IDTYPE_H_ 31#ifndef _SYS_IDTYPE_H_
32#define _SYS_IDTYPE_H_ 32#define _SYS_IDTYPE_H_
33 33
34/* 34/*
35 * Using the solaris constants, some of them are not applicable to us 35 * Using the solaris constants, some of them are not applicable to us
36 */ 36 */
37#define P_MYID -1 /* Me/my process group */ 37#define P_MYID -1 /* Me/my process group */
38#define P_PID 1 /* A process identifier. */ 38#define P_PID 1 /* A process identifier. */
39#define P_PPID 2 /* A parent process identifier. */ 39#define P_LWPID 2 /* An LWP identifier. */
40#define P_PGID 3 /* A process group identifier. */ 40#define P_PPID 3 /* A parent process identifier. */
41#define P_SID 4 /* A session identifier. */ 41#define P_PGID 4 /* A process group identifier. */
42#define P_CID 5 /* A scheduling class identifier. */ 42#define P_SID 5 /* A session identifier. */
43#define P_UID 6 /* A user identifier. */ 43#define P_CID 6 /* A scheduling class identifier. */
44#define P_GID 7 /* A group identifier. */ 44#define P_UID 7 /* A user identifier. */
45#define P_ALL 8 /* All processes. */ 45#define P_GID 8 /* A group identifier. */
46#define P_LWPID 9 /* An LWP identifier. */ 46#define P_ALL 9 /* All processes. */
47#define P_TASKID 10 /* A task identifier. */ 47#define P_TASKID 10 /* A task identifier. */
48#define P_PROJID 11 /* A project identifier. */ 48#define P_PROJID 11 /* A project identifier. */
49#define P_POOLID 12 /* A pool identifier. */ 49#define P_POOLID 12 /* A pool identifier. */
50#define P_ZONEID 13 /* A zone identifier. */ 50#define P_ZONEID 13 /* A zone identifier. */
51#define P_CTID 14 /* A (process) contract identifier. */ 51#define P_CTID 14 /* A (process) contract identifier. */
52#define P_CPUID 15 /* CPU identifier. */ 52#define P_CPUID 15 /* CPU identifier. */
53#define P_PSETID 16 /* Processor set identifier. */ 53#define P_PSETID 16 /* Processor set identifier. */
54 54
55#endif /* _SYS_IDTYPE_H_ */ 55#endif /* _SYS_IDTYPE_H_ */