1*e2c674e2Sthorpej /* $NetBSD: linux_sched.h,v 1.1 1999/05/12 19:49:09 thorpej Exp $ */ 2*e2c674e2Sthorpej 3*e2c674e2Sthorpej /*- 4*e2c674e2Sthorpej * Copyright (c) 1999 The NetBSD Foundation, Inc. 5*e2c674e2Sthorpej * All rights reserved. 6*e2c674e2Sthorpej * 7*e2c674e2Sthorpej * This code is derived from software contributed to The NetBSD Foundation 8*e2c674e2Sthorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 9*e2c674e2Sthorpej * NASA Ames Research Center. 10*e2c674e2Sthorpej * 11*e2c674e2Sthorpej * Redistribution and use in source and binary forms, with or without 12*e2c674e2Sthorpej * modification, are permitted provided that the following conditions 13*e2c674e2Sthorpej * are met: 14*e2c674e2Sthorpej * 1. Redistributions of source code must retain the above copyright 15*e2c674e2Sthorpej * notice, this list of conditions and the following disclaimer. 16*e2c674e2Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 17*e2c674e2Sthorpej * notice, this list of conditions and the following disclaimer in the 18*e2c674e2Sthorpej * documentation and/or other materials provided with the distribution. 19*e2c674e2Sthorpej * 3. All advertising materials mentioning features or use of this software 20*e2c674e2Sthorpej * must display the following acknowledgement: 21*e2c674e2Sthorpej * This product includes software developed by the NetBSD 22*e2c674e2Sthorpej * Foundation, Inc. and its contributors. 23*e2c674e2Sthorpej * 4. Neither the name of The NetBSD Foundation nor the names of its 24*e2c674e2Sthorpej * contributors may be used to endorse or promote products derived 25*e2c674e2Sthorpej * from this software without specific prior written permission. 26*e2c674e2Sthorpej * 27*e2c674e2Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 28*e2c674e2Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 29*e2c674e2Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 30*e2c674e2Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 31*e2c674e2Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32*e2c674e2Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33*e2c674e2Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34*e2c674e2Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35*e2c674e2Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36*e2c674e2Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 37*e2c674e2Sthorpej * POSSIBILITY OF SUCH DAMAGE. 38*e2c674e2Sthorpej */ 39*e2c674e2Sthorpej 40*e2c674e2Sthorpej #ifndef _LINUX_SCHED_H 41*e2c674e2Sthorpej #define _LINUX_SCHED_H 42*e2c674e2Sthorpej 43*e2c674e2Sthorpej /* 44*e2c674e2Sthorpej * Flags passed to the Linux __clone(2) system call. 45*e2c674e2Sthorpej */ 46*e2c674e2Sthorpej #define LINUX_CLONE_CSIGNAL 0x000000ff /* signal to be sent at exit */ 47*e2c674e2Sthorpej #define LINUX_CLONE_VM 0x00000100 /* share address space */ 48*e2c674e2Sthorpej #define LINUX_CLONE_FS 0x00000200 /* share "file system" info */ 49*e2c674e2Sthorpej #define LINUX_CLONE_FILES 0x00000400 /* share file descriptors */ 50*e2c674e2Sthorpej #define LINUX_CLONE_SIGHAND 0x00000800 /* share signal actions */ 51*e2c674e2Sthorpej #define LINUX_CLONE_PID 0x00001000 /* share process ID */ 52*e2c674e2Sthorpej #define LINUX_CLONE_PTRACE 0x00002000 /* ptrace(2) continues on 53*e2c674e2Sthorpej child */ 54*e2c674e2Sthorpej #define LINUX_CLONE_VFORK 0x00004000 /* parent blocks until child 55*e2c674e2Sthorpej exits */ 56*e2c674e2Sthorpej 57*e2c674e2Sthorpej #endif /* _LINUX_SCHED_H */ 58