xref: /illumos-gate/usr/src/uts/common/sys/pgrpsys.h (revision ac2250cb76bb32944fd2c8a3ba2cd3f79747748d)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2026 Oxide Computer Company
14  */
15 
16 #ifndef _SYS_PGRPSYS_H
17 #define	_SYS_PGRPSYS_H
18 
19 /*
20  * Subcodes for the pgrpsys() system call, which multiplexes the process
21  * group and session family of functions. This is a private header that is
22  * not packaged.
23  */
24 
25 #ifdef	__cplusplus
26 extern "C" {
27 #endif
28 
29 #define	PGRPSYS_GETPGRP		0
30 #define	PGRPSYS_SETPGRP		1
31 #define	PGRPSYS_GETSID		2
32 #define	PGRPSYS_SETSID		3
33 #define	PGRPSYS_GETPGID		4
34 #define	PGRPSYS_SETPGID		5
35 
36 #ifdef	__cplusplus
37 }
38 #endif
39 
40 #endif /* _SYS_PGRPSYS_H */
41