Garrett pointed out that the correct place for unix system call args

is <sys/unistd.h>, with the prototype in <unistd.h>.  sys/unistd.h
is visible to the kernel compile, and is #included by unistd.h.

Also, I missed a reference to a static int in the midst of my other diffs.
This commit is contained in:
Peter Wemm 1996-02-23 19:44:10 +00:00
parent dabee6fecc
commit dedb7b623c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14222
3 changed files with 21 additions and 21 deletions

View file

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
* $Id: init_main.c,v 1.36 1995/12/10 13:45:11 phk Exp $
* $Id: init_main.c,v 1.37 1996/01/19 03:57:59 dyson Exp $
*/
#include <sys/param.h>
@ -98,7 +98,7 @@ static struct vmspace vmspace0;
struct proc *curproc = &proc0;
struct proc *initproc;
static int cmask = CMASK;
int cmask = CMASK;
extern struct user *proc0paddr;
struct vnode *rootvp;

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.h 8.2 (Berkeley) 1/21/94
* $Id: param.h,v 1.11 1996/01/30 23:01:04 mpp Exp $
* $Id: param.h,v 1.12 1996/02/23 18:49:21 peter Exp $
*/
#ifndef _SYS_PARAM_H_
@ -226,20 +226,4 @@
#define FSHIFT 11 /* bits to right of fixed binary point */
#define FSCALE (1<<FSHIFT)
/*
* rfork() options.
*
* XXX currently, operations without RFPROC set are not supported.
*/
#define RFNAMEG (1<<0) /* UNIMPL new plan9 `name space' */
#define RFENVG (1<<1) /* UNIMPL copy plan9 `env space' */
#define RFFDG (1<<2) /* copy fd table */
#define RFNOTEG (1<<3) /* UNIMPL create new plan9 `note group' */
#define RFPROC (1<<4) /* change child (else changes curproc) */
#define RFMEM (1<<5) /* share `address space' */
#define RFNOWAIT (1<<6) /* UNIMPL parent need not wait() on child */
#define RFCNAMEG (1<<10) /* UNIMPL zero plan9 `name space' */
#define RFCENVG (1<<11) /* UNIMPL zero plan9 `env space' */
#define RFCFDG (1<<12) /* zero fd table */
#endif
#endif /* _SYS_PARAM_H_ */

View file

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)unistd.h 8.2 (Berkeley) 1/7/94
* $Id: unistd.h,v 1.2 1994/08/02 07:54:04 davidg Exp $
* $Id: unistd.h,v 1.4 1995/05/11 07:52:49 bde Exp $
*/
#ifndef _SYS_UNISTD_H_
@ -119,4 +119,20 @@
/* configurable system strings */
#define _CS_PATH 1
/*
* rfork() options.
*
* XXX currently, operations without RFPROC set are not supported.
*/
#define RFNAMEG (1<<0) /* UNIMPL new plan9 `name space' */
#define RFENVG (1<<1) /* UNIMPL copy plan9 `env space' */
#define RFFDG (1<<2) /* copy fd table */
#define RFNOTEG (1<<3) /* UNIMPL create new plan9 `note group' */
#define RFPROC (1<<4) /* change child (else changes curproc) */
#define RFMEM (1<<5) /* share `address space' */
#define RFNOWAIT (1<<6) /* UNIMPL parent need not wait() on child */
#define RFCNAMEG (1<<10) /* UNIMPL zero plan9 `name space' */
#define RFCENVG (1<<11) /* UNIMPL zero plan9 `env space' */
#define RFCFDG (1<<12) /* zero fd table */
#endif /* !_SYS_UNISTD_H_ */