summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_misc.c
diff options
context:
space:
mode:
authordarrenr <darrenr@NetBSD.org>2003-06-28 14:20:43 +0000
committerdarrenr <darrenr@NetBSD.org>2003-06-28 14:20:43 +0000
commit960df3c8d11a934b85f6f7d3ac388ec5ee57c12f (patch)
tree04eacdb0da6eefa4c57bf27833661e791d6a5853 /sys/compat/linux/common/linux_misc.c
parentda6b84e29093b9bfc2c3f38bfa199d379d8984d5 (diff)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Diffstat (limited to 'sys/compat/linux/common/linux_misc.c')
-rw-r--r--sys/compat/linux/common/linux_misc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c
index 946ca683118..14a8c88ee27 100644
--- a/sys/compat/linux/common/linux_misc.c
+++ b/sys/compat/linux/common/linux_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.119 2003/06/23 21:32:36 christos Exp $ */
+/* $NetBSD: linux_misc.c,v 1.120 2003/06/28 14:21:22 darrenr Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.119 2003/06/23 21:32:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.120 2003/06/28 14:21:22 darrenr Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -352,7 +352,7 @@ linux_sys_statfs(l, v, retval)
sg = stackgap_init(p, 0);
bsp = (struct statfs *) stackgap_alloc(p, &sg, sizeof (struct statfs));
- CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
+ CHECK_ALT_EXIST(l, &sg, SCARG(uap, path));
SCARG(&bsa, path) = SCARG(uap, path);
SCARG(&bsa, buf) = bsp;
@@ -732,7 +732,7 @@ linux_sys_getdents(l, v, retval)
goto out1;
}
- if ((error = VOP_GETATTR(vp, &va, p->p_ucred, p)))
+ if ((error = VOP_GETATTR(vp, &va, p->p_ucred, l)))
goto out1;
nbytes = SCARG(uap, count);
@@ -757,7 +757,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_lwp = l;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
@@ -841,7 +841,7 @@ out:
free(cookiebuf, M_TEMP);
free(buf, M_TEMP);
out1:
- FILE_UNUSE(fp, p);
+ FILE_UNUSE(fp, l);
return error;
}
@@ -1464,7 +1464,7 @@ linux_sys_setdomainname(l, v, retval)
return (error);
name = KERN_DOMAINNAME;
return (kern_sysctl(&name, 1, 0, 0, SCARG(uap, domainname),
- SCARG(uap, len), p));
+ SCARG(uap, len), l));
}
/*