xref: /netbsd-src/sys/compat/freebsd/freebsd_fork.h (revision 95e1ffb15694e54f29f8baaa4232152b703c2a5a)
1*95e1ffb1Schristos /*	$NetBSD: freebsd_fork.h,v 1.4 2005/12/11 12:20:02 christos Exp $	*/
2324d5172Spooka 
3324d5172Spooka /*
4324d5172Spooka  * Copyright (c) 1989, 1993
5324d5172Spooka  *	The Regents of the University of California.  All rights reserved.
6324d5172Spooka  *
7324d5172Spooka  * Redistribution and use in source and binary forms, with or without
8324d5172Spooka  * modification, are permitted provided that the following conditions
9324d5172Spooka  * are met:
10324d5172Spooka  * 1. Redistributions of source code must retain the above copyright
11324d5172Spooka  *    notice, this list of conditions and the following disclaimer.
12324d5172Spooka  * 2. Redistributions in binary form must reproduce the above copyright
13324d5172Spooka  *    notice, this list of conditions and the following disclaimer in the
14324d5172Spooka  *    documentation and/or other materials provided with the distribution.
15aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
16324d5172Spooka  *    may be used to endorse or promote products derived from this software
17324d5172Spooka  *    without specific prior written permission.
18324d5172Spooka  *
19324d5172Spooka  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20324d5172Spooka  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21324d5172Spooka  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22324d5172Spooka  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23324d5172Spooka  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24324d5172Spooka  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25324d5172Spooka  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26324d5172Spooka  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27324d5172Spooka  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28324d5172Spooka  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29324d5172Spooka  * SUCH DAMAGE.
30324d5172Spooka  *
31324d5172Spooka  *	@(#)unistd.h	8.2 (Berkeley) 1/7/94
32324d5172Spooka  * $FreeBSD: src/sys/sys/unistd.h,v 1.22.2.2 2000/08/22 01:46:30 jhb Exp $
33324d5172Spooka  */
34324d5172Spooka 
35324d5172Spooka #ifndef _FREEBSD_FORK_H_
36324d5172Spooka #define	_FREEBSD_FORK_H_
37324d5172Spooka 
38324d5172Spooka /*
39324d5172Spooka  * rfork() options.
40324d5172Spooka  *
41324d5172Spooka  * XXX currently, operations without RFPROC set are not supported.
42324d5172Spooka  */
43324d5172Spooka #define FREEBSD_RFNAMEG		(1<<0)  /* UNIMPL new plan9 `name space' */
44324d5172Spooka #define FREEBSD_RFENVG		(1<<1)  /* UNIMPL copy plan9 `env space' */
45324d5172Spooka #define FREEBSD_RFFDG		(1<<2)  /* copy fd table */
46324d5172Spooka #define FREEBSD_RFNOTEG		(1<<3)  /* UNIMPL create new plan9 note grou' */
47324d5172Spooka #define FREEBSD_RFPROC		(1<<4)  /* change child (else curproc) */
48324d5172Spooka #define FREEBSD_RFMEM		(1<<5)  /* share `address space' */
49324d5172Spooka #define FREEBSD_RFNOWAIT	(1<<6)  /* parent need not wait() on child */
50324d5172Spooka #define FREEBSD_RFCNAMEG	(1<<10) /* UNIMPL zero plan9 `name space' */
51324d5172Spooka #define FREEBSD_RFCENVG		(1<<11) /* UNIMPL zero plan9 `env space' */
52324d5172Spooka #define FREEBSD_RFCFDG		(1<<12) /* zero fd table */
53324d5172Spooka #define FREEBSD_RFTHREAD	(1<<13)	/* enable kernel thread support */
54324d5172Spooka #define FREEBSD_RFSIGSHARE	(1<<14)	/* share signal handlers */
55324d5172Spooka #define FREEBSD_RFLINUXTHPN     (1<<16) /* do linux clone exit notification */
56324d5172Spooka #define FREEBSD_RFPPWAIT	(1<<31) /* sleep until child exits (vfork) */
57324d5172Spooka 
58324d5172Spooka #endif /* !_FREEBSD_FORK_H_ */
59