diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1995-11-22 07:43:53 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1995-11-22 07:43:53 +0000 |
| commit | 1f3dad5a8dc1e0d17f6f7924552eaf718b255e44 (patch) | |
| tree | 283999b082c94c12b3962535722ff43fa3b41aa0 /sys/i386/linux/linux_misc.c | |
| parent | 55054f3540ce0039fb89e6876616b869a8f2038c (diff) | |
Notes
Diffstat (limited to 'sys/i386/linux/linux_misc.c')
| -rw-r--r-- | sys/i386/linux/linux_misc.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c index 89ab5d864ef4..5e04b263975a 100644 --- a/sys/i386/linux/linux_misc.c +++ b/sys/i386/linux/linux_misc.c @@ -25,12 +25,13 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.2 1995/10/04 07:08:04 julian Exp $ + * $Id: linux_misc.c,v 1.3 1995/11/06 12:52:24 davidg Exp $ */ -#include <i386/linux/linux.h> #include <sys/param.h> #include <sys/systm.h> +#include <sys/sysproto.h> +#include <sys/kernel.h> #include <sys/exec.h> #include <sys/mman.h> #include <sys/proc.h> @@ -44,19 +45,19 @@ #include <sys/resource.h> #include <sys/resourcevar.h> #include <sys/stat.h> -#include <sys/time.h> +#include <sys/sysctl.h> #include <sys/times.h> #include <sys/utsname.h> #include <sys/vnode.h> #include <sys/wait.h> +#include <vm/vm_kern.h> + #include <machine/cpu.h> #include <machine/psl.h> -#include <machine/reg.h> - -#include <vm/vm.h> -#include <vm/vm_kern.h> +#include <i386/linux/linux.h> +#include <i386/linux/sysproto.h> struct linux_alarm_args { unsigned int secs; @@ -65,7 +66,6 @@ struct linux_alarm_args { int linux_alarm(struct proc *p, struct linux_alarm_args *args, int *retval) { - extern struct timeval time; struct itimerval it, old_it; int s; @@ -111,7 +111,6 @@ linux_brk(struct proc *p, struct linux_brk_args *args, int *retval) struct vmspace *vm = p->p_vmspace; vm_offset_t new, old; int error; - extern int swap_pager_full; if ((vm_offset_t)args->dsend < (vm_offset_t)vm->vm_daddr) return EINVAL; @@ -513,7 +512,6 @@ struct linux_tms_args { int linux_times(struct proc *p, struct linux_tms_args *args, int *retval) { - extern int hz; struct timeval tv; struct linux_tms tms; @@ -549,8 +547,6 @@ int linux_newuname(struct proc *p, struct linux_newuname_args *args, int *retval) { struct linux_newuname_t linux_newuname; - extern char ostype[], osrelease[], machine[]; - extern char hostname[], domainname[]; #ifdef DEBUG printf("Linux-emul(%d): newuname(*)\n", p->p_pid); |
