Merge the nathanw_sa branch.

This commit is contained in:
thorpej 2003-01-18 08:32:04 +00:00
parent 27bb1001b7
commit df6b501dd4
15 changed files with 268 additions and 217 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_cvt.c,v 1.15 2002/11/27 16:44:03 atatat Exp $ */
/* $NetBSD: osf1_cvt.c,v 1.16 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.15 2002/11/27 16:44:03 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.16 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -74,6 +74,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.15 2002/11/27 16:44:03 atatat Exp $")
#include <sys/signal.h>
#include <sys/signalvar.h>
#include <sys/reboot.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/exec.h>
#include <sys/vnode.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_descrip.c,v 1.14 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_descrip.c,v 1.15 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_descrip.c,v 1.14 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_descrip.c,v 1.15 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -74,6 +74,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_descrip.c,v 1.14 2002/03/16 20:43:55 christos E
#include <sys/signal.h>
#include <sys/signalvar.h>
#include <sys/reboot.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/exec.h>
#include <sys/vnode.h>
@ -87,12 +88,13 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_descrip.c,v 1.14 2002/03/16 20:43:55 christos E
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_fcntl(p, v, retval)
struct proc *p;
osf1_sys_fcntl(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_fcntl_args *uap = v;
struct proc *p = l->l_proc;
struct sys_fcntl_args a;
struct osf1_flock oflock;
struct flock nflock;
@ -176,7 +178,7 @@ osf1_sys_fcntl(p, v, retval)
if (leftovers != 0)
return (EINVAL);
error = sys_fcntl(p, &a, retval);
error = sys_fcntl(l, &a, retval);
if (error)
return error;
@ -209,8 +211,8 @@ osf1_sys_fcntl(p, v, retval)
}
int
osf1_sys_fpathconf(p, v, retval)
struct proc *p;
osf1_sys_fpathconf(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -224,7 +226,7 @@ osf1_sys_fpathconf(p, v, retval)
&SCARG(&a, name));
if (error == 0)
error = sys_fpathconf(p, &a, retval);
error = sys_fpathconf(l, &a, retval);
return (error);
}
@ -233,12 +235,13 @@ osf1_sys_fpathconf(p, v, retval)
* Return status information about a file descriptor.
*/
int
osf1_sys_fstat(p, v, retval)
struct proc *p;
osf1_sys_fstat(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_fstat_args *uap = v;
struct proc *p = l->l_proc;
struct filedesc *fdp = p->p_fd;
struct file *fp;
struct stat ub;
@ -264,12 +267,13 @@ osf1_sys_fstat(p, v, retval)
* Return status information about a file descriptor.
*/
int
osf1_sys_fstat2(p, v, retval)
struct proc *p;
osf1_sys_fstat2(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_fstat2_args *uap = v;
struct proc *p = l->l_proc;
struct filedesc *fdp = p->p_fd;
struct file *fp;
struct stat ub;
@ -292,8 +296,8 @@ osf1_sys_fstat2(p, v, retval)
}
int
osf1_sys_ftruncate(p, v, retval)
struct proc *p;
osf1_sys_ftruncate(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -304,12 +308,12 @@ osf1_sys_ftruncate(p, v, retval)
SCARG(&a, pad) = 0;
SCARG(&a, length) = SCARG(uap, length);
return sys_ftruncate(p, &a, retval);
return sys_ftruncate(l, &a, retval);
}
int
osf1_sys_lseek(p, v, retval)
struct proc *p;
osf1_sys_lseek(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -321,5 +325,5 @@ osf1_sys_lseek(p, v, retval)
SCARG(&a, offset) = SCARG(uap, offset);
SCARG(&a, whence) = SCARG(uap, whence);
return sys_lseek(p, &a, retval);
return sys_lseek(l, &a, retval);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_file.c,v 1.13 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_file.c,v 1.14 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_file.c,v 1.13 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_file.c,v 1.14 2003/01/18 08:32:04 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@ -78,6 +78,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_file.c,v 1.13 2002/03/16 20:43:55 christos Exp
#include <sys/signal.h>
#include <sys/signalvar.h>
#include <sys/reboot.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/exec.h>
#include <sys/vnode.h>
@ -92,12 +93,13 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_file.c,v 1.13 2002/03/16 20:43:55 christos Exp
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_access(p, v, retval)
struct proc *p;
osf1_sys_access(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_access_args *uap = v;
struct proc *p = l->l_proc;
struct sys_access_args a;
unsigned long leftovers;
caddr_t sg;
@ -113,16 +115,17 @@ osf1_sys_access(p, v, retval)
if (leftovers != 0)
return (EINVAL);
return sys_access(p, &a, retval);
return sys_access(l, &a, retval);
}
int
osf1_sys_execve(p, v, retval)
struct proc *p;
osf1_sys_execve(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_execve_args *uap = v;
struct proc *p = l->l_proc;
struct sys_execve_args ap;
caddr_t sg;
@ -133,7 +136,7 @@ osf1_sys_execve(p, v, retval)
SCARG(&ap, argp) = SCARG(uap, argp);
SCARG(&ap, envp) = SCARG(uap, envp);
return sys_execve(p, &ap, retval);
return sys_execve(l, &ap, retval);
}
/*
@ -141,12 +144,13 @@ osf1_sys_execve(p, v, retval)
*/
/* ARGSUSED */
int
osf1_sys_lstat(p, v, retval)
struct proc *p;
osf1_sys_lstat(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_lstat_args *uap = v;
struct proc *p = l->l_proc;
struct stat sb;
struct osf1_stat osb;
int error;
@ -174,12 +178,13 @@ osf1_sys_lstat(p, v, retval)
*/
/* ARGSUSED */
int
osf1_sys_lstat2(p, v, retval)
struct proc *p;
osf1_sys_lstat2(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_lstat2_args *uap = v;
struct proc *p = l->l_proc;
struct stat sb;
struct osf1_stat2 osb;
int error;
@ -203,12 +208,13 @@ osf1_sys_lstat2(p, v, retval)
}
int
osf1_sys_mknod(p, v, retval)
struct proc *p;
osf1_sys_mknod(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_mknod_args *uap = v;
struct proc *p = l->l_proc;
struct sys_mknod_args a;
caddr_t sg;
@ -219,16 +225,17 @@ osf1_sys_mknod(p, v, retval)
SCARG(&a, mode) = SCARG(uap, mode);
SCARG(&a, dev) = osf1_cvt_dev_to_native(SCARG(uap, dev));
return sys_mknod(p, &a, retval);
return sys_mknod(l, &a, retval);
}
int
osf1_sys_open(p, v, retval)
struct proc *p;
osf1_sys_open(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_open_args *uap = v;
struct proc *p = l->l_proc;
struct sys_open_args a;
const char *path;
caddr_t sg;
@ -260,16 +267,17 @@ osf1_sys_open(p, v, retval)
CHECK_ALT_EXIST(p, &sg, path);
SCARG(&a, path) = path;
return sys_open(p, &a, retval);
return sys_open(l, &a, retval);
}
int
osf1_sys_pathconf(p, v, retval)
struct proc *p;
osf1_sys_pathconf(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_pathconf_args *uap = v;
struct proc *p = l->l_proc;
struct sys_pathconf_args a;
caddr_t sg;
int error;
@ -283,7 +291,7 @@ osf1_sys_pathconf(p, v, retval)
&SCARG(&a, name));
if (error == 0)
error = sys_pathconf(p, &a, retval);
error = sys_pathconf(l, &a, retval);
return (error);
}
@ -293,12 +301,13 @@ osf1_sys_pathconf(p, v, retval)
*/
/* ARGSUSED */
int
osf1_sys_stat(p, v, retval)
struct proc *p;
osf1_sys_stat(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_stat_args *uap = v;
struct proc *p = l->l_proc;
struct stat sb;
struct osf1_stat osb;
int error;
@ -326,12 +335,13 @@ osf1_sys_stat(p, v, retval)
*/
/* ARGSUSED */
int
osf1_sys_stat2(p, v, retval)
struct proc *p;
osf1_sys_stat2(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_stat2_args *uap = v;
struct proc *p = l->l_proc;
struct stat sb;
struct osf1_stat2 osb;
int error;
@ -355,12 +365,13 @@ osf1_sys_stat2(p, v, retval)
}
int
osf1_sys_truncate(p, v, retval)
struct proc *p;
osf1_sys_truncate(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_truncate_args *uap = v;
struct proc *p = l->l_proc;
struct sys_truncate_args a;
caddr_t sg;
@ -371,16 +382,17 @@ osf1_sys_truncate(p, v, retval)
SCARG(&a, pad) = 0;
SCARG(&a, length) = SCARG(uap, length);
return sys_truncate(p, &a, retval);
return sys_truncate(l, &a, retval);
}
int
osf1_sys_utimes(p, v, retval)
struct proc *p;
osf1_sys_utimes(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_utimes_args *uap = v;
struct proc *p = l->l_proc;
struct sys_utimes_args a;
struct osf1_timeval otv;
struct timeval tv;
@ -414,7 +426,7 @@ osf1_sys_utimes(p, v, retval)
}
if (error == 0)
error = sys_utimes(p, &a, retval);
error = sys_utimes(l, &a, retval);
return (error);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_generic.c,v 1.4 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_generic.c,v 1.5 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_generic.c,v 1.4 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_generic.c,v 1.5 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -69,6 +69,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_generic.c,v 1.4 2002/03/16 20:43:55 christos Ex
#include <sys/malloc.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/exec.h>
@ -81,12 +82,13 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_generic.c,v 1.4 2002/03/16 20:43:55 christos Ex
* the other word of our iov_len is zero!
*/
int
osf1_sys_readv(p, v, retval)
struct proc *p;
osf1_sys_readv(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_readv_args *uap = v;
struct proc *p = l->l_proc;
struct sys_readv_args a;
struct osf1_iovec *oio;
struct iovec *nio;
@ -116,7 +118,7 @@ osf1_sys_readv(p, v, retval)
if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize)))
goto punt;
error = sys_readv(p, &a, retval);
error = sys_readv(l, &a, retval);
punt:
free(oio, M_TEMP);
@ -125,12 +127,13 @@ punt:
}
int
osf1_sys_select(p, v, retval)
struct proc *p;
osf1_sys_select(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_select_args *uap = v;
struct proc *p = l->l_proc;
struct sys_select_args a;
struct osf1_timeval otv;
struct timeval tv;
@ -165,18 +168,19 @@ osf1_sys_select(p, v, retval)
}
if (error == 0)
error = sys_select(p, &a, retval);
error = sys_select(l, &a, retval);
return (error);
}
int
osf1_sys_writev(p, v, retval)
struct proc *p;
osf1_sys_writev(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_writev_args *uap = v;
struct proc *p = l->l_proc;
struct sys_writev_args a;
struct osf1_iovec *oio;
struct iovec *nio;
@ -206,7 +210,7 @@ osf1_sys_writev(p, v, retval)
if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize)))
goto punt;
error = sys_writev(p, &a, retval);
error = sys_writev(l, &a, retval);
punt:
free(oio, M_TEMP);

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_ioctl.c,v 1.15 2001/11/13 02:09:13 lukem Exp $ */
/* $NetBSD: osf1_ioctl.c,v 1.16 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_ioctl.c,v 1.15 2001/11/13 02:09:13 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_ioctl.c,v 1.16 2003/01/18 08:32:04 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -70,6 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_ioctl.c,v 1.15 2001/11/13 02:09:13 lukem Exp $"
#include <sys/ioctl.h>
#include <sys/termios.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -79,16 +80,16 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_ioctl.c,v 1.15 2001/11/13 02:09:13 lukem Exp $"
extern int scdebug;
#endif
static int osf1_ioctl_f __P((struct proc *p, struct sys_ioctl_args *nuap,
static int osf1_ioctl_f __P((struct lwp *l, struct sys_ioctl_args *nuap,
register_t *retval, int cmd, int dir, int len));
static int osf1_ioctl_i __P((struct proc *p, struct sys_ioctl_args *nuap,
static int osf1_ioctl_i __P((struct lwp *l, struct sys_ioctl_args *nuap,
register_t *retval, int cmd, int dir, int len));
static int osf1_ioctl_t __P((struct proc *p, struct sys_ioctl_args *nuap,
static int osf1_ioctl_t __P((struct lwp *l, struct sys_ioctl_args *nuap,
register_t *retval, int cmd, int dir, int len));
int
osf1_sys_ioctl(p, v, retval)
struct proc *p;
osf1_sys_ioctl(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -146,19 +147,19 @@ osf1_sys_ioctl(p, v, retval)
SCARG(&a, data) = SCARG(uap, data);
switch (group) {
case 'f':
return osf1_ioctl_f(p, &a, retval, cmd, dir, len);
return osf1_ioctl_f(l, &a, retval, cmd, dir, len);
case 'i':
return osf1_ioctl_i(p, &a, retval, cmd, dir, len);
return osf1_ioctl_i(l, &a, retval, cmd, dir, len);
case 't':
return osf1_ioctl_t(p, &a, retval, cmd, dir, len);
return osf1_ioctl_t(l, &a, retval, cmd, dir, len);
default:
return (ENOTTY);
}
}
static int
osf1_ioctl_f(p, uap, retval, cmd, dir, len)
struct proc *p;
osf1_ioctl_f(l, uap, retval, cmd, dir, len)
struct lwp *l;
struct sys_ioctl_args *uap;
register_t *retval;
int cmd;
@ -181,12 +182,12 @@ osf1_ioctl_f(p, uap, retval, cmd, dir, len)
return (ENOTTY);
}
return sys_ioctl(p, uap, retval);
return sys_ioctl(l, uap, retval);
}
static int
osf1_ioctl_i(p, uap, retval, cmd, dir, len)
struct proc *p;
osf1_ioctl_i(l, uap, retval, cmd, dir, len)
struct lwp *l;
struct sys_ioctl_args *uap;
register_t *retval;
int cmd;
@ -215,12 +216,12 @@ osf1_ioctl_i(p, uap, retval, cmd, dir, len)
return (ENOTTY);
}
return sys_ioctl(p, uap, retval);
return sys_ioctl(l, uap, retval);
}
static int
osf1_ioctl_t(p, uap, retval, cmd, dir, len)
struct proc *p;
osf1_ioctl_t(l, uap, retval, cmd, dir, len)
struct lwp *l;
struct sys_ioctl_args *uap;
register_t *retval;
int cmd;
@ -249,5 +250,5 @@ osf1_ioctl_t(p, uap, retval, cmd, dir, len)
return (ENOTTY);
}
return sys_ioctl(p, uap, retval);
return sys_ioctl(l, uap, retval);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_misc.c,v 1.68 2002/04/08 14:51:18 christos Exp $ */
/* $NetBSD: osf1_misc.c,v 1.69 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_misc.c,v 1.68 2002/04/08 14:51:18 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_misc.c,v 1.69 2003/01/18 08:32:04 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@ -78,6 +78,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_misc.c,v 1.68 2002/04/08 14:51:18 christos Exp
#include <sys/signal.h>
#include <sys/signalvar.h>
#include <sys/reboot.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/exec.h>
#include <sys/vnode.h>
@ -102,8 +103,8 @@ extern int scdebug;
#endif
int
osf1_sys_classcntl(p, v, retval)
struct proc *p;
osf1_sys_classcntl(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -113,8 +114,8 @@ osf1_sys_classcntl(p, v, retval)
}
int
osf1_sys_reboot(p, v, retval)
struct proc *p;
osf1_sys_reboot(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -130,16 +131,17 @@ osf1_sys_reboot(p, v, retval)
SCARG(&a, bootstr) = NULL;
return sys_reboot(p, &a, retval);
return sys_reboot(l, &a, retval);
}
int
osf1_sys_set_program_attributes(p, v, retval)
struct proc *p;
osf1_sys_set_program_attributes(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_set_program_attributes_args *uap = v;
struct proc *p = l->l_proc;
segsz_t tsize, dsize;
tsize = btoc(SCARG(uap, tsize));
@ -159,7 +161,7 @@ osf1_sys_set_program_attributes(p, v, retval)
}
int
osf1_sys_getsysinfo(struct proc *p, void *v, register_t *retval)
osf1_sys_getsysinfo(struct lwp *l, void *v, register_t *retval)
{
extern int ncpus;
struct osf1_sys_getsysinfo_args *uap = v;
@ -189,7 +191,7 @@ osf1_sys_getsysinfo(struct proc *p, void *v, register_t *retval)
retval[0] = 1;
break;
case OSF_GET_IEEE_FP_CONTROL:
if (((fpflags = alpha_read_fp_c(p)) & IEEE_INHERIT) != 0) {
if (((fpflags = alpha_read_fp_c(l)) & IEEE_INHERIT) != 0) {
fpflags |= 1ULL << 63;
fpflags &= ~IEEE_INHERIT;
}
@ -266,8 +268,8 @@ osf1_sys_getsysinfo(struct proc *p, void *v, register_t *retval)
}
int
osf1_sys_setsysinfo(p, v, retval)
struct proc *p;
osf1_sys_setsysinfo(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -284,7 +286,7 @@ osf1_sys_setsysinfo(p, v, retval)
break;
if (temp >> 63 != 0)
temp |= IEEE_INHERIT;
alpha_write_fp_c(p, temp);
alpha_write_fp_c(l, temp);
break;
default:
uprintf("osf1_setsysinfo called with op=%ld\n", SCARG(uap, op));
@ -295,8 +297,8 @@ osf1_sys_setsysinfo(p, v, retval)
}
int
osf1_sys_sysinfo(p, v, retval)
struct proc *p;
osf1_sys_sysinfo(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -366,8 +368,8 @@ dont_care:
}
int
osf1_sys_uname(p, v, retval)
struct proc *p;
osf1_sys_uname(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -397,8 +399,8 @@ osf1_sys_uname(p, v, retval)
}
int
osf1_sys_usleep_thread(p, v, retval)
struct proc *p;
osf1_sys_usleep_thread(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -421,7 +423,7 @@ osf1_sys_usleep_thread(p, v, retval)
tv = time;
splx(s);
tsleep(p, PUSER|PCATCH, "uslpthrd", ticks); /* XXX */
tsleep(l, PUSER|PCATCH, "uslpthrd", ticks); /* XXX */
if (SCARG(uap, slept) != NULL) {
s = splclock();
@ -438,12 +440,13 @@ osf1_sys_usleep_thread(p, v, retval)
}
int
osf1_sys_wait4(p, v, retval)
struct proc *p;
osf1_sys_wait4(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_wait4_args *uap = v;
struct proc *p = l->l_proc;
struct sys_wait4_args a;
struct osf1_rusage osf1_rusage;
struct rusage netbsd_rusage;
@ -467,7 +470,7 @@ osf1_sys_wait4(p, v, retval)
SCARG(&a, rusage) = stackgap_alloc(p, &sg, sizeof netbsd_rusage);
}
error = sys_wait4(p, &a, retval);
error = sys_wait4(l, &a, retval);
if (error == 0 && SCARG(&a, rusage) != NULL) {
error = copyin((caddr_t)SCARG(&a, rusage),

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_mmap.c,v 1.8 2001/11/13 02:09:13 lukem Exp $ */
/* $NetBSD: osf1_mmap.c,v 1.9 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -31,13 +31,14 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_mmap.c,v 1.8 2001/11/13 02:09:13 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_mmap.c,v 1.9 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <uvm/uvm.h> /* XXX see mmap emulation */
@ -46,8 +47,8 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_mmap.c,v 1.8 2001/11/13 02:09:13 lukem Exp $");
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_madvise(p, v, retval)
struct proc *p;
osf1_sys_madvise(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -98,7 +99,7 @@ osf1_sys_madvise(p, v, retval)
}
if (error == 0) {
error = sys_madvise(p, &a, retval);
error = sys_madvise(l, &a, retval);
/*
* NetBSD madvise() currently always returns ENOSYS.
@ -112,12 +113,13 @@ osf1_sys_madvise(p, v, retval)
}
int
osf1_sys_mmap(p, v, retval)
struct proc *p;
osf1_sys_mmap(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_mmap_args *uap = v;
struct proc *p = l->l_proc;
struct sys_mmap_args a;
unsigned long leftovers;
@ -204,12 +206,12 @@ done:
}
}
return sys_mmap(p, &a, retval);
return sys_mmap(l, &a, retval);
}
int
osf1_sys_mprotect(p, v, retval)
struct proc *p;
osf1_sys_mprotect(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -226,5 +228,5 @@ osf1_sys_mprotect(p, v, retval)
if (leftovers != 0)
return (EINVAL);
return sys_mprotect(p, &a, retval);
return sys_mprotect(l, &a, retval);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_mount.c,v 1.20 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_mount.c,v 1.21 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_mount.c,v 1.20 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_mount.c,v 1.21 2003/01/18 08:32:04 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "fs_nfs.h"
@ -73,6 +73,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_mount.c,v 1.20 2002/03/16 20:43:55 christos Exp
#include <sys/kernel.h>
#include <sys/mount.h>
#include <sys/vnode.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -111,12 +112,13 @@ static int osf1_mount_nfs __P((struct proc *,
struct osf1_sys_mount_args *, struct sys_mount_args *));
int
osf1_sys_fstatfs(p, v, retval)
struct proc *p;
osf1_sys_fstatfs(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_fstatfs_args *uap = v;
struct proc *p = l->l_proc;
struct file *fp;
struct mount *mp;
struct statfs *sp;
@ -140,12 +142,13 @@ osf1_sys_fstatfs(p, v, retval)
}
int
osf1_sys_getfsstat(p, v, retval)
struct proc *p;
osf1_sys_getfsstat(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_getfsstat_args *uap = v;
struct proc *p = l->l_proc;
struct mount *mp, *nmp;
struct statfs *sp;
struct osf1_statfs osfs;
@ -188,8 +191,8 @@ osf1_sys_getfsstat(p, v, retval)
}
int
osf1_sys_mount(p, v, retval)
struct proc *p;
osf1_sys_mount(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -205,12 +208,12 @@ osf1_sys_mount(p, v, retval)
switch (SCARG(uap, type)) {
case OSF1_MOUNT_NFS:
if ((error = osf1_mount_nfs(p, uap, &a)))
if ((error = osf1_mount_nfs(l->l_proc, uap, &a)))
return error;
break;
case OSF1_MOUNT_MFS:
if ((error = osf1_mount_mfs(p, uap, &a)))
if ((error = osf1_mount_mfs(l->l_proc, uap, &a)))
return error;
break;
@ -218,16 +221,17 @@ osf1_sys_mount(p, v, retval)
return (EINVAL);
}
return sys_mount(p, &a, retval);
return sys_mount(l, &a, retval);
}
int
osf1_sys_statfs(p, v, retval)
struct proc *p;
osf1_sys_statfs(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_statfs_args *uap = v;
struct proc *p = l->l_proc;
struct mount *mp;
struct statfs *sp;
struct osf1_statfs osfs;
@ -249,8 +253,8 @@ osf1_sys_statfs(p, v, retval)
}
int
osf1_sys_unmount(p, v, retval)
struct proc *p;
osf1_sys_unmount(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -266,7 +270,7 @@ osf1_sys_unmount(p, v, retval)
(SCARG(uap, flags) & OSF1_MNT_NOFORCE) == 0)
SCARG(&a, flags) |= MNT_FORCE;
return sys_unmount(p, &a, retval);
return sys_unmount(l, &a, retval);
}
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_prot.c,v 1.4 2001/11/13 02:09:14 lukem Exp $ */
/* $NetBSD: osf1_prot.c,v 1.5 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,12 +58,13 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_prot.c,v 1.4 2001/11/13 02:09:14 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_prot.c,v 1.5 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -78,12 +79,13 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_prot.c,v 1.4 2001/11/13 02:09:14 lukem Exp $");
* setuid(), you'll get a correct description of setgid().
*/
int
osf1_sys_setgid(p, v, retval)
struct proc *p;
osf1_sys_setgid(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_setgid_args *uap = v;
struct proc *p = l->l_proc;
struct pcred *pc = p->p_cred;
gid_t gid = SCARG(uap, gid);
int error;
@ -117,12 +119,13 @@ osf1_sys_setgid(p, v, retval)
* this function call.
*/
int
osf1_sys_setuid(p, v, retval)
struct proc *p;
osf1_sys_setuid(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_setuid_args *uap = v;
struct proc *p = l->l_proc;
struct pcred *pc = p->p_cred;
uid_t uid = SCARG(uap, uid);
int error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_resource.c,v 1.4 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_resource.c,v 1.5 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -31,12 +31,13 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_resource.c,v 1.4 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_resource.c,v 1.5 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/resource.h>
#include <sys/resourcevar.h>
@ -46,8 +47,8 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_resource.c,v 1.4 2002/03/16 20:43:55 christos E
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_getrlimit(p, v, retval)
struct proc *p;
osf1_sys_getrlimit(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -84,16 +85,17 @@ osf1_sys_getrlimit(p, v, retval)
/* XXX should translate */
SCARG(&a, rlp) = SCARG(uap, rlp);
return sys_getrlimit(p, &a, retval);
return sys_getrlimit(l, &a, retval);
}
int
osf1_sys_getrusage(p, v, retval)
struct proc *p;
osf1_sys_getrusage(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_getrusage_args *uap = v;
struct proc *p = l->l_proc;
struct sys_getrusage_args a;
struct osf1_rusage osf1_rusage;
struct rusage netbsd_rusage;
@ -117,7 +119,7 @@ osf1_sys_getrusage(p, v, retval)
sg = stackgap_init(p, 0);
SCARG(&a, rusage) = stackgap_alloc(p, &sg, sizeof netbsd_rusage);
error = sys_getrusage(p, &a, retval);
error = sys_getrusage(l, &a, retval);
if (error == 0)
error = copyin((caddr_t)SCARG(&a, rusage),
(caddr_t)&netbsd_rusage, sizeof netbsd_rusage);
@ -131,8 +133,8 @@ osf1_sys_getrusage(p, v, retval)
}
int
osf1_sys_setrlimit(p, v, retval)
struct proc *p;
osf1_sys_setrlimit(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -169,5 +171,5 @@ osf1_sys_setrlimit(p, v, retval)
/* XXX should translate */
SCARG(&a, rlp) = SCARG(uap, rlp);
return sys_setrlimit(p, &a, retval);
return sys_setrlimit(l, &a, retval);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_signal.c,v 1.21 2002/04/08 14:51:29 christos Exp $ */
/* $NetBSD: osf1_signal.c,v 1.22 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_signal.c,v 1.21 2002/04/08 14:51:29 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_signal.c,v 1.22 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -45,6 +45,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_signal.c,v 1.21 2002/04/08 14:51:29 christos Ex
#include <sys/signalvar.h>
#include <sys/malloc.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -55,8 +56,8 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_signal.c,v 1.21 2002/04/08 14:51:29 christos Ex
#if 0
int
osf1_sys_kill(p, v, retval)
struct proc *p;
osf1_sys_kill(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -65,17 +66,18 @@ osf1_sys_kill(p, v, retval)
SCARG(&ka, pid) = SCARG(uap, pid);
SCARG(&ka, signum) = osf1_to_native_signo[SCARG(uap, signum)];
return sys_kill(p, &ka, retval);
return sys_kill(l, &ka, retval);
}
#endif
int
osf1_sys_sigaction(p, v, retval)
struct proc *p;
osf1_sys_sigaction(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_sigaction_args *uap = v;
struct proc *p = l->l_proc;
struct osf1_sigaction *nosa, *oosa, tmposa;
struct sigaction *nbsa, *obsa, tmpbsa;
struct sys___sigaction14_args sa;
@ -105,7 +107,7 @@ osf1_sys_sigaction(p, v, retval)
SCARG(&sa, nsa) = nbsa;
SCARG(&sa, osa) = obsa;
if ((error = sys___sigaction14(p, &sa, retval)) != 0)
if ((error = sys___sigaction14(l, &sa, retval)) != 0)
return error;
if (oosa != NULL) {
@ -120,12 +122,13 @@ osf1_sys_sigaction(p, v, retval)
}
int
osf1_sys_sigaltstack(p, v, retval)
struct proc *p;
osf1_sys_sigaltstack(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_sigaltstack_args *uap = v;
struct proc *p = l->l_proc;
struct osf1_sigaltstack *noss, *ooss, tmposs;
struct sigaltstack *nbss, *obss, tmpbss;
struct sys___sigaltstack14_args sa;
@ -155,7 +158,7 @@ osf1_sys_sigaltstack(p, v, retval)
SCARG(&sa, nss) = nbss;
SCARG(&sa, oss) = obss;
if ((error = sys___sigaltstack14(p, &sa, retval)) != 0)
if ((error = sys___sigaltstack14(l, &sa, retval)) != 0)
return error;
if (obss != NULL) {
@ -171,12 +174,13 @@ osf1_sys_sigaltstack(p, v, retval)
#if 0
int
osf1_sys_signal(p, v, retval)
struct proc *p;
osf1_sys_signal(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_signal_args *uap = v;
struct proc *p = l->l_proc;
int signum = osf1_to_native_signo[OSF1_SIGNO(SCARG(uap, signum))];
int error;
caddr_t sg = stackgap_init(p, 0);
@ -200,7 +204,7 @@ osf1_sys_signal(p, v, retval)
SCARG(&sa, how) = SIG_BLOCK;
SCARG(&sa, mask) = sigmask(signum);
return sys_sigprocmask(p, &sa, retval);
return sys_sigprocmask(l, &sa, retval);
}
/* FALLTHROUGH */
@ -224,7 +228,7 @@ osf1_sys_signal(p, v, retval)
#endif
if ((error = copyout(&sa, nbsa, sizeof(sa))) != 0)
return error;
if ((error = sys_sigaction(p, &sa_args, retval)) != 0) {
if ((error = sys_sigaction(l, &sa_args, retval)) != 0) {
DPRINTF(("signal: sigaction failed: %d\n",
error));
*retval = (int)OSF1_SIG_ERR;
@ -242,7 +246,7 @@ osf1_sys_signal(p, v, retval)
SCARG(&sa, how) = SIG_BLOCK;
SCARG(&sa, mask) = sigmask(signum);
return sys_sigprocmask(p, &sa, retval);
return sys_sigprocmask(l, &sa, retval);
}
case OSF1_SIGRELSE_MASK:
@ -251,7 +255,7 @@ osf1_sys_signal(p, v, retval)
SCARG(&sa, how) = SIG_UNBLOCK;
SCARG(&sa, mask) = sigmask(signum);
return sys_sigprocmask(p, &sa, retval);
return sys_sigprocmask(l, &sa, retval);
}
case OSF1_SIGIGNORE_MASK:
@ -269,7 +273,7 @@ osf1_sys_signal(p, v, retval)
sa.sa_flags = 0;
if ((error = copyout(&sa, bsa, sizeof(sa))) != 0)
return error;
if ((error = sys_sigaction(p, &sa_args, retval)) != 0) {
if ((error = sys_sigaction(l, &sa_args, retval)) != 0) {
DPRINTF(("sigignore: sigaction failed\n"));
return error;
}
@ -281,7 +285,7 @@ osf1_sys_signal(p, v, retval)
struct sys_sigsuspend_args sa;
SCARG(&sa, mask) = p->p_sigmask & ~sigmask(signum);
return sys_sigsuspend(p, &sa, retval);
return sys_sigsuspend(l, &sa, retval);
}
default:
@ -290,12 +294,13 @@ osf1_sys_signal(p, v, retval)
}
int
osf1_sys_sigpending(p, v, retval)
struct proc *p;
osf1_sys_sigpending(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_sigpending_args *uap = v;
struct proc *p = l->l_proc;
sigset_t bss;
osf1_sigset_t oss;
@ -306,12 +311,13 @@ osf1_sys_sigpending(p, v, retval)
}
int
osf1_sys_sigprocmask(p, v, retval)
struct proc *p;
osf1_sys_sigprocmask(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_sigprocmask_args *uap = v;
struct proc *p = l->l_proc;
osf1_sigset_t oss;
sigset_t bss;
int error = 0;
@ -358,8 +364,8 @@ osf1_sys_sigprocmask(p, v, retval)
}
int
osf1_sys_sigsuspend(p, v, retval)
struct proc *p;
osf1_sys_sigsuspend(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -375,6 +381,6 @@ osf1_sys_sigsuspend(p, v, retval)
osf1_cvt_sigset_to_native(&oss, &bss);
SCARG(&sa, mask) = bss;
return sys_sigsuspend(p, &sa, retval);
return sys_sigsuspend(l, &sa, retval);
}
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_socket.c,v 1.8 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_socket.c,v 1.9 2003/01/18 08:32:04 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_socket.c,v 1.8 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_socket.c,v 1.9 2003/01/18 08:32:04 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -66,6 +66,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_socket.c,v 1.8 2002/03/16 20:43:55 christos Exp
#include <sys/proc.h>
#include <sys/file.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <sys/socketvar.h>
#include <sys/exec.h>
@ -76,8 +77,8 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_socket.c,v 1.8 2002/03/16 20:43:55 christos Exp
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_recvmsg_xopen(p, v, retval)
struct proc *p;
osf1_sys_recvmsg_xopen(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -87,12 +88,13 @@ osf1_sys_recvmsg_xopen(p, v, retval)
}
int
osf1_sys_sendmsg_xopen(p, v, retval)
struct proc *p;
osf1_sys_sendmsg_xopen(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_sendmsg_xopen_args *uap = v;
struct proc *p = l->l_proc;
struct sys_sendmsg_args a;
struct osf1_msghdr_xopen osf_msghdr;
struct osf1_iovec_xopen osf_iovec, *osf_iovec_ptr;
@ -159,12 +161,12 @@ printf("sendmsg flags leftover: 0x%lx\n", leftovers);
return (EINVAL);
}
return sys_sendmsg(p, &a, retval);
return sys_sendmsg(l, &a, retval);
}
int
osf1_sys_sendto(p, v, retval)
struct proc *p;
osf1_sys_sendto(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -184,12 +186,12 @@ osf1_sys_sendto(p, v, retval)
if (leftovers != 0)
return (EINVAL);
return sys_sendto(p, &a, retval);
return sys_sendto(l, &a, retval);
}
int
osf1_sys_socket(p, v, retval)
struct proc *p;
osf1_sys_socket(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -205,12 +207,12 @@ osf1_sys_socket(p, v, retval)
SCARG(&a, type) = SCARG(uap, type);
SCARG(&a, protocol) = SCARG(uap, protocol);
return sys_socket(p, &a, retval);
return sys_socket(l, &a, retval);
}
int
osf1_sys_socketpair(p, v, retval)
struct proc *p;
osf1_sys_socketpair(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -227,5 +229,5 @@ osf1_sys_socketpair(p, v, retval)
SCARG(&a, protocol) = SCARG(uap, protocol);
SCARG(&a, rsv) = SCARG(uap, rsv);
return sys_socketpair(p, &a, retval);
return sys_socketpair(l, &a, retval);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_sysv_ipc.c,v 1.3 2001/11/13 02:09:16 lukem Exp $ */
/* $NetBSD: osf1_sysv_ipc.c,v 1.4 2003/01/18 08:32:05 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_sysv_ipc.c,v 1.3 2001/11/13 02:09:16 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_sysv_ipc.c,v 1.4 2003/01/18 08:32:05 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -39,6 +39,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_sysv_ipc.c,v 1.3 2001/11/13 02:09:16 lukem Exp
#include <sys/proc.h>
#include <sys/file.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -46,8 +47,8 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_sysv_ipc.c,v 1.3 2001/11/13 02:09:16 lukem Exp
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_shmat(p, v, retval)
struct proc *p;
osf1_sys_shmat(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -57,8 +58,8 @@ osf1_sys_shmat(p, v, retval)
}
int
osf1_sys_shmctl(p, v, retval)
struct proc *p;
osf1_sys_shmctl(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -68,8 +69,8 @@ osf1_sys_shmctl(p, v, retval)
}
int
osf1_sys_shmdt(p, v, retval)
struct proc *p;
osf1_sys_shmdt(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
@ -79,8 +80,8 @@ osf1_sys_shmdt(p, v, retval)
}
int
osf1_sys_shmget(p, v, retval)
struct proc *p;
osf1_sys_shmget(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_time.c,v 1.5 2002/03/16 20:43:55 christos Exp $ */
/* $NetBSD: osf1_time.c,v 1.6 2003/01/18 08:32:05 thorpej Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_time.c,v 1.5 2002/03/16 20:43:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_time.c,v 1.6 2003/01/18 08:32:05 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -39,6 +39,7 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_time.c,v 1.5 2002/03/16 20:43:55 christos Exp $
#include <sys/proc.h>
#include <sys/file.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -46,12 +47,13 @@ __KERNEL_RCSID(0, "$NetBSD: osf1_time.c,v 1.5 2002/03/16 20:43:55 christos Exp $
#include <compat/osf1/osf1_cvt.h>
int
osf1_sys_gettimeofday(p, v, retval)
struct proc *p;
osf1_sys_gettimeofday(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_gettimeofday_args *uap = v;
struct proc *p = l->l_proc;
struct sys_gettimeofday_args a;
struct osf1_timeval otv;
struct osf1_timezone otz;
@ -70,7 +72,7 @@ osf1_sys_gettimeofday(p, v, retval)
else
SCARG(&a, tzp) = stackgap_alloc(p, &sg, sizeof tz);
error = sys_gettimeofday(p, &a, retval);
error = sys_gettimeofday(l, &a, retval);
if (error == 0 && SCARG(uap, tp) != NULL) {
error = copyin((caddr_t)SCARG(&a, tp),
@ -100,12 +102,13 @@ osf1_sys_gettimeofday(p, v, retval)
}
int
osf1_sys_setitimer(p, v, retval)
struct proc *p;
osf1_sys_setitimer(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_setitimer_args *uap = v;
struct proc *p = l->l_proc;
struct sys_setitimer_args a;
struct osf1_itimerval o_itv, o_oitv;
struct itimerval b_itv, b_oitv;
@ -155,7 +158,7 @@ osf1_sys_setitimer(p, v, retval)
SCARG(&a, oitv) = stackgap_alloc(p, &sg, sizeof b_oitv);
if (error == 0)
error = sys_setitimer(p, &a, retval);
error = sys_setitimer(l, &a, retval);
if (error == 0 && SCARG(uap, oitv) != NULL) {
/* get the NetBSD itimerval return value */
@ -179,12 +182,13 @@ osf1_sys_setitimer(p, v, retval)
}
int
osf1_sys_getitimer(p, v, retval)
struct proc *p;
osf1_sys_getitimer(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_getitimer_args *uap = v;
struct proc *p = l->l_proc;
struct sys_getitimer_args a;
struct osf1_itimerval o_oitv;
struct itimerval b_oitv;
@ -206,7 +210,7 @@ osf1_sys_getitimer(p, v, retval)
sg = stackgap_init(p, 0);
SCARG(&a, itv) = stackgap_alloc(p, &sg, sizeof b_oitv);
if (error == 0)
error = sys_getitimer(p, &a, retval);
error = sys_getitimer(l, &a, retval);
if (error == 0 && SCARG(uap, itv) != NULL) {
/* get the NetBSD itimerval return value */
error = copyin((caddr_t)SCARG(&a, itv), (caddr_t)&b_oitv,
@ -226,12 +230,13 @@ osf1_sys_getitimer(p, v, retval)
}
int
osf1_sys_settimeofday(p, v, retval)
struct proc *p;
osf1_sys_settimeofday(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
{
struct osf1_sys_settimeofday_args *uap = v;
struct proc *p = l->l_proc;
struct sys_settimeofday_args a;
struct osf1_timeval otv;
struct osf1_timezone otz;
@ -282,7 +287,7 @@ osf1_sys_settimeofday(p, v, retval)
}
if (error == 0)
error = sys_settimeofday(p, &a, retval);
error = sys_settimeofday(l, &a, retval);
return (error);
}

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.39 2001/06/28 04:08:58 simonb Exp $
$NetBSD: syscalls.master,v 1.40 2003/01/18 08:32:05 thorpej Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -40,6 +40,7 @@
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/osf1/osf1.h>
@ -111,7 +112,7 @@
48 NOARGS { int compat_13_sys_sigprocmask(int how, \
sigset13_t mask); }
49 NOARGS { int sys___getlogin(char *namebuf, u_int namelen); }
50 NOARGS { int sys_setlogin(const char *namebuf); }
50 NOARGS { int sys___setlogin(const char *namebuf); }
51 NOARGS { int sys_acct(const char *path); }
52 UNIMPL sigpending
53 STD { int osf1_sys_classcntl(int opcode, int arg1, \