Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/compat/aout LWPify.
details: https://anonhg.NetBSD.org/src/rev/6b21d3ebc2df
branches: nathanw_sa
changeset: 504577:6b21d3ebc2df
user: nathanw <nathanw%NetBSD.org@localhost>
date: Tue Mar 13 20:47:44 2001 +0000
description:
LWPify.
diffstat:
sys/compat/aout/aout_misc.c | 283 +++++++++++++++++++++++++------------------
1 files changed, 162 insertions(+), 121 deletions(-)
diffs (truncated from 814 to 300 lines):
diff -r 1be0f0f5eb8a -r 6b21d3ebc2df sys/compat/aout/aout_misc.c
--- a/sys/compat/aout/aout_misc.c Tue Mar 13 20:45:41 2001 +0000
+++ b/sys/compat/aout/aout_misc.c Tue Mar 13 20:47:44 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aout_misc.c,v 1.6 2001/01/22 20:08:03 jdolecek Exp $ */
+/* $NetBSD: aout_misc.c,v 1.6.2.1 2001/03/13 20:47:44 nathanw Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -51,6 +51,7 @@
#include <sys/systm.h>
#include <sys/mount.h>
#include <sys/fcntl.h>
+#include <sys/lwp.h>
#include <sys/proc.h>
#include <sys/syscall.h>
@@ -61,12 +62,13 @@
#include <compat/aout/aout_syscallargs.h>
int
-aout_sys_open(p, v, retval)
- struct proc *p;
+aout_sys_open(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_open_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
#if 0
@@ -76,34 +78,36 @@
#endif
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_open(p, v, retval);
+ return sys_open(l, v, retval);
}
int
-aout_sys_creat(p, v, retval)
- struct proc *p;
+aout_sys_creat(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
#if 0
struct aout_sys_creat_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_CREAT(p, &sg, SCARG(uap, path));
#endif
- return compat_43_sys_creat(p, v, retval);
+ return compat_43_sys_creat(l, v, retval);
}
int
-aout_sys_link(p, v, retval)
- struct proc *p;
+aout_sys_link(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_link_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
@@ -111,90 +115,95 @@
CHECK_ALT_CREAT(p, &sg, SCARG(uap, link));
#endif
- return sys_link(p, v, retval);
+ return sys_link(l, v, retval);
}
int
-aout_sys_unlink(p, v, retval)
- struct proc *p;
+aout_sys_unlink(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_unlink_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_unlink(p, v, retval);
+ return sys_unlink(l, v, retval);
}
int
-aout_sys_chdir(p, v, retval)
- struct proc *p;
+aout_sys_chdir(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_chdir_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_chdir(p, v, retval);
+ return sys_chdir(l, v, retval);
}
int
-aout_sys_mknod(p, v, retval)
- struct proc *p;
+aout_sys_mknod(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
#if 0
struct aout_sys_mknod_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_CREAT(p, &sg, SCARG(uap, path));
#endif
- return sys_mknod(p, v, retval);
+ return sys_mknod(l, v, retval);
}
int
-aout_sys_chmod(p, v, retval)
- struct proc *p;
+aout_sys_chmod(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_chmod_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_chmod(p, v, retval);
+ return sys_chmod(l, v, retval);
}
int
-aout_sys_chown(p, v, retval)
- struct proc *p;
+aout_sys_chown(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_chown_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_chown(p, v, retval);
+ return sys_chown(l, v, retval);
}
int
-aout_sys_mount(p, v, retval)
- struct proc *p;
+aout_sys_mount(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
@@ -204,147 +213,157 @@
*/
#if 0
struct aout_sys_mount_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
#endif
- return sys_mount(p, v, retval);
+ return sys_mount(l, v, retval);
}
int
-aout_sys_unmount(p, v, retval)
- struct proc *p;
+aout_sys_unmount(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_unmount_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_unmount(p, v, retval);
+ return sys_unmount(l, v, retval);
}
int
-aout_sys_access(p, v, retval)
- struct proc *p;
+aout_sys_access(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_access_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_access(p, v, retval);
+ return sys_access(l, v, retval);
}
int
-aout_sys_chflags(p, v, retval)
- struct proc *p;
+aout_sys_chflags(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_sys_chflags_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return sys_chflags(p, v, retval);
+ return sys_chflags(l, v, retval);
}
int
-aout_compat_43_sys_stat(p, v, retval)
- struct proc *p;
+aout_compat_43_sys_stat(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_compat_43_sys_stat_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return compat_43_sys_stat(p, v, retval);
+ return compat_43_sys_stat(l, v, retval);
}
int
-aout_compat_43_sys_lstat(p, v, retval)
- struct proc *p;
+aout_compat_43_sys_lstat(l, v, retval)
+ struct lwp *l;
void *v;
register_t *retval;
{
struct aout_compat_43_sys_lstat_args *uap = v;
+ struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p->p_emul);
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return compat_43_sys_lstat(p, v, retval);
+ return compat_43_sys_lstat(l, v, retval);
}
#ifdef KTRACE
Home |
Main Index |
Thread Index |
Old Index