cleanup user.h.
- remove several #include which are not directly related to this header anymore. tweak *.c accordingly. - update comments. - move some !_KERNEL #include to proc.h because it's more appropriate place these days. - whitespace.
This commit is contained in:
parent
f8418c0954
commit
f5ff7e4897
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sys_machdep.c,v 1.11 2005/12/11 12:20:14 christos Exp $ */
|
||||
/* $NetBSD: linux_sys_machdep.c,v 1.12 2006/05/11 11:54:36 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 Ben Harris
|
||||
|
@ -29,9 +29,10 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_sys_machdep.c,v 1.11 2005/12/11 12:20:14 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_sys_machdep.c,v 1.12 2006/05/11 11:54:36 yamt Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
||||
#include <compat/linux/common/linux_types.h>
|
||||
#include <compat/linux/common/linux_signal.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: proc.h,v 1.219 2006/04/01 00:57:34 christos Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.220 2006/05/11 11:54:36 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1989, 1991, 1993
|
||||
|
@ -53,6 +53,11 @@
|
|||
#include <sys/siginfo.h>
|
||||
#include <sys/event.h>
|
||||
|
||||
#ifndef _KERNEL
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* One structure allocated per session.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: user.h,v 1.16 2005/12/11 12:25:21 christos Exp $ */
|
||||
/* $NetBSD: user.h,v 1.17 2006/05/11 11:54:37 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
|
@ -35,28 +35,16 @@
|
|||
#define _SYS_USER_H_
|
||||
|
||||
#include <machine/pcb.h>
|
||||
#ifndef _KERNEL
|
||||
/* stuff that *used* to be included by user.h, or is now needed */
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/ucred.h>
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
#include <sys/resourcevar.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
||||
|
||||
/*
|
||||
* Per process structure containing data that isn't needed in core
|
||||
* when the process isn't running (esp. when swapped out).
|
||||
* Per lwp structure containing data that isn't needed in core
|
||||
* when the lwp isn't running (esp. when swapped out).
|
||||
* This structure may or may not be at the same kernel address
|
||||
* in all processes.
|
||||
*/
|
||||
|
||||
struct user {
|
||||
struct pcb u_pcb;
|
||||
|
||||
struct user {
|
||||
struct pcb u_pcb;
|
||||
};
|
||||
|
||||
#endif /* !_SYS_USER_H_ */
|
||||
|
|
Loading…
Reference in New Issue