Merge the nathanw_sa branch.
This commit is contained in:
parent
27bb1001b7
commit
df6b501dd4
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/signal.h>
|
||||||
#include <sys/signalvar.h>
|
#include <sys/signalvar.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/exec.h>
|
#include <sys/exec.h>
|
||||||
#include <sys/vnode.h>
|
#include <sys/vnode.h>
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/signal.h>
|
||||||
#include <sys/signalvar.h>
|
#include <sys/signalvar.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/exec.h>
|
#include <sys/exec.h>
|
||||||
#include <sys/vnode.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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_fcntl(p, v, retval)
|
osf1_sys_fcntl(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_fcntl_args *uap = v;
|
struct osf1_sys_fcntl_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_fcntl_args a;
|
struct sys_fcntl_args a;
|
||||||
struct osf1_flock oflock;
|
struct osf1_flock oflock;
|
||||||
struct flock nflock;
|
struct flock nflock;
|
||||||
|
@ -176,7 +178,7 @@ osf1_sys_fcntl(p, v, retval)
|
||||||
if (leftovers != 0)
|
if (leftovers != 0)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
error = sys_fcntl(p, &a, retval);
|
error = sys_fcntl(l, &a, retval);
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
@ -209,8 +211,8 @@ osf1_sys_fcntl(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_fpathconf(p, v, retval)
|
osf1_sys_fpathconf(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -224,7 +226,7 @@ osf1_sys_fpathconf(p, v, retval)
|
||||||
&SCARG(&a, name));
|
&SCARG(&a, name));
|
||||||
|
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_fpathconf(p, &a, retval);
|
error = sys_fpathconf(l, &a, retval);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -233,12 +235,13 @@ osf1_sys_fpathconf(p, v, retval)
|
||||||
* Return status information about a file descriptor.
|
* Return status information about a file descriptor.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
osf1_sys_fstat(p, v, retval)
|
osf1_sys_fstat(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_fstat_args *uap = v;
|
struct osf1_sys_fstat_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct filedesc *fdp = p->p_fd;
|
struct filedesc *fdp = p->p_fd;
|
||||||
struct file *fp;
|
struct file *fp;
|
||||||
struct stat ub;
|
struct stat ub;
|
||||||
|
@ -264,12 +267,13 @@ osf1_sys_fstat(p, v, retval)
|
||||||
* Return status information about a file descriptor.
|
* Return status information about a file descriptor.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
osf1_sys_fstat2(p, v, retval)
|
osf1_sys_fstat2(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_fstat2_args *uap = v;
|
struct osf1_sys_fstat2_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct filedesc *fdp = p->p_fd;
|
struct filedesc *fdp = p->p_fd;
|
||||||
struct file *fp;
|
struct file *fp;
|
||||||
struct stat ub;
|
struct stat ub;
|
||||||
|
@ -292,8 +296,8 @@ osf1_sys_fstat2(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_ftruncate(p, v, retval)
|
osf1_sys_ftruncate(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -304,12 +308,12 @@ osf1_sys_ftruncate(p, v, retval)
|
||||||
SCARG(&a, pad) = 0;
|
SCARG(&a, pad) = 0;
|
||||||
SCARG(&a, length) = SCARG(uap, length);
|
SCARG(&a, length) = SCARG(uap, length);
|
||||||
|
|
||||||
return sys_ftruncate(p, &a, retval);
|
return sys_ftruncate(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_lseek(p, v, retval)
|
osf1_sys_lseek(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -321,5 +325,5 @@ osf1_sys_lseek(p, v, retval)
|
||||||
SCARG(&a, offset) = SCARG(uap, offset);
|
SCARG(&a, offset) = SCARG(uap, offset);
|
||||||
SCARG(&a, whence) = SCARG(uap, whence);
|
SCARG(&a, whence) = SCARG(uap, whence);
|
||||||
|
|
||||||
return sys_lseek(p, &a, retval);
|
return sys_lseek(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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)
|
#if defined(_KERNEL_OPT)
|
||||||
#include "opt_syscall_debug.h"
|
#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/signal.h>
|
||||||
#include <sys/signalvar.h>
|
#include <sys/signalvar.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/exec.h>
|
#include <sys/exec.h>
|
||||||
#include <sys/vnode.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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_access(p, v, retval)
|
osf1_sys_access(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_access_args *uap = v;
|
struct osf1_sys_access_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_access_args a;
|
struct sys_access_args a;
|
||||||
unsigned long leftovers;
|
unsigned long leftovers;
|
||||||
caddr_t sg;
|
caddr_t sg;
|
||||||
|
@ -113,16 +115,17 @@ osf1_sys_access(p, v, retval)
|
||||||
if (leftovers != 0)
|
if (leftovers != 0)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
return sys_access(p, &a, retval);
|
return sys_access(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_execve(p, v, retval)
|
osf1_sys_execve(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_execve_args *uap = v;
|
struct osf1_sys_execve_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_execve_args ap;
|
struct sys_execve_args ap;
|
||||||
caddr_t sg;
|
caddr_t sg;
|
||||||
|
|
||||||
|
@ -133,7 +136,7 @@ osf1_sys_execve(p, v, retval)
|
||||||
SCARG(&ap, argp) = SCARG(uap, argp);
|
SCARG(&ap, argp) = SCARG(uap, argp);
|
||||||
SCARG(&ap, envp) = SCARG(uap, envp);
|
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 */
|
/* ARGSUSED */
|
||||||
int
|
int
|
||||||
osf1_sys_lstat(p, v, retval)
|
osf1_sys_lstat(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_lstat_args *uap = v;
|
struct osf1_sys_lstat_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
struct osf1_stat osb;
|
struct osf1_stat osb;
|
||||||
int error;
|
int error;
|
||||||
|
@ -174,12 +178,13 @@ osf1_sys_lstat(p, v, retval)
|
||||||
*/
|
*/
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
int
|
int
|
||||||
osf1_sys_lstat2(p, v, retval)
|
osf1_sys_lstat2(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_lstat2_args *uap = v;
|
struct osf1_sys_lstat2_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
struct osf1_stat2 osb;
|
struct osf1_stat2 osb;
|
||||||
int error;
|
int error;
|
||||||
|
@ -203,12 +208,13 @@ osf1_sys_lstat2(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_mknod(p, v, retval)
|
osf1_sys_mknod(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_mknod_args *uap = v;
|
struct osf1_sys_mknod_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_mknod_args a;
|
struct sys_mknod_args a;
|
||||||
caddr_t sg;
|
caddr_t sg;
|
||||||
|
|
||||||
|
@ -219,16 +225,17 @@ osf1_sys_mknod(p, v, retval)
|
||||||
SCARG(&a, mode) = SCARG(uap, mode);
|
SCARG(&a, mode) = SCARG(uap, mode);
|
||||||
SCARG(&a, dev) = osf1_cvt_dev_to_native(SCARG(uap, dev));
|
SCARG(&a, dev) = osf1_cvt_dev_to_native(SCARG(uap, dev));
|
||||||
|
|
||||||
return sys_mknod(p, &a, retval);
|
return sys_mknod(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_open(p, v, retval)
|
osf1_sys_open(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_open_args *uap = v;
|
struct osf1_sys_open_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_open_args a;
|
struct sys_open_args a;
|
||||||
const char *path;
|
const char *path;
|
||||||
caddr_t sg;
|
caddr_t sg;
|
||||||
|
@ -260,16 +267,17 @@ osf1_sys_open(p, v, retval)
|
||||||
CHECK_ALT_EXIST(p, &sg, path);
|
CHECK_ALT_EXIST(p, &sg, path);
|
||||||
SCARG(&a, path) = path;
|
SCARG(&a, path) = path;
|
||||||
|
|
||||||
return sys_open(p, &a, retval);
|
return sys_open(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_pathconf(p, v, retval)
|
osf1_sys_pathconf(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_pathconf_args *uap = v;
|
struct osf1_sys_pathconf_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_pathconf_args a;
|
struct sys_pathconf_args a;
|
||||||
caddr_t sg;
|
caddr_t sg;
|
||||||
int error;
|
int error;
|
||||||
|
@ -283,7 +291,7 @@ osf1_sys_pathconf(p, v, retval)
|
||||||
&SCARG(&a, name));
|
&SCARG(&a, name));
|
||||||
|
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_pathconf(p, &a, retval);
|
error = sys_pathconf(l, &a, retval);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -293,12 +301,13 @@ osf1_sys_pathconf(p, v, retval)
|
||||||
*/
|
*/
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
int
|
int
|
||||||
osf1_sys_stat(p, v, retval)
|
osf1_sys_stat(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_stat_args *uap = v;
|
struct osf1_sys_stat_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
struct osf1_stat osb;
|
struct osf1_stat osb;
|
||||||
int error;
|
int error;
|
||||||
|
@ -326,12 +335,13 @@ osf1_sys_stat(p, v, retval)
|
||||||
*/
|
*/
|
||||||
/* ARGSUSED */
|
/* ARGSUSED */
|
||||||
int
|
int
|
||||||
osf1_sys_stat2(p, v, retval)
|
osf1_sys_stat2(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_stat2_args *uap = v;
|
struct osf1_sys_stat2_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
struct osf1_stat2 osb;
|
struct osf1_stat2 osb;
|
||||||
int error;
|
int error;
|
||||||
|
@ -355,12 +365,13 @@ osf1_sys_stat2(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_truncate(p, v, retval)
|
osf1_sys_truncate(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_truncate_args *uap = v;
|
struct osf1_sys_truncate_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_truncate_args a;
|
struct sys_truncate_args a;
|
||||||
caddr_t sg;
|
caddr_t sg;
|
||||||
|
|
||||||
|
@ -371,16 +382,17 @@ osf1_sys_truncate(p, v, retval)
|
||||||
SCARG(&a, pad) = 0;
|
SCARG(&a, pad) = 0;
|
||||||
SCARG(&a, length) = SCARG(uap, length);
|
SCARG(&a, length) = SCARG(uap, length);
|
||||||
|
|
||||||
return sys_truncate(p, &a, retval);
|
return sys_truncate(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_utimes(p, v, retval)
|
osf1_sys_utimes(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_utimes_args *uap = v;
|
struct osf1_sys_utimes_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_utimes_args a;
|
struct sys_utimes_args a;
|
||||||
struct osf1_timeval otv;
|
struct osf1_timeval otv;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
@ -414,7 +426,7 @@ osf1_sys_utimes(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_utimes(p, &a, retval);
|
error = sys_utimes(l, &a, retval);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/malloc.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/exec.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!
|
* the other word of our iov_len is zero!
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
osf1_sys_readv(p, v, retval)
|
osf1_sys_readv(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_readv_args *uap = v;
|
struct osf1_sys_readv_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_readv_args a;
|
struct sys_readv_args a;
|
||||||
struct osf1_iovec *oio;
|
struct osf1_iovec *oio;
|
||||||
struct iovec *nio;
|
struct iovec *nio;
|
||||||
|
@ -116,7 +118,7 @@ osf1_sys_readv(p, v, retval)
|
||||||
|
|
||||||
if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize)))
|
if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize)))
|
||||||
goto punt;
|
goto punt;
|
||||||
error = sys_readv(p, &a, retval);
|
error = sys_readv(l, &a, retval);
|
||||||
|
|
||||||
punt:
|
punt:
|
||||||
free(oio, M_TEMP);
|
free(oio, M_TEMP);
|
||||||
|
@ -125,12 +127,13 @@ punt:
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_select(p, v, retval)
|
osf1_sys_select(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_select_args *uap = v;
|
struct osf1_sys_select_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_select_args a;
|
struct sys_select_args a;
|
||||||
struct osf1_timeval otv;
|
struct osf1_timeval otv;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
@ -165,18 +168,19 @@ osf1_sys_select(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_select(p, &a, retval);
|
error = sys_select(l, &a, retval);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_writev(p, v, retval)
|
osf1_sys_writev(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_writev_args *uap = v;
|
struct osf1_sys_writev_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_writev_args a;
|
struct sys_writev_args a;
|
||||||
struct osf1_iovec *oio;
|
struct osf1_iovec *oio;
|
||||||
struct iovec *nio;
|
struct iovec *nio;
|
||||||
|
@ -206,7 +210,7 @@ osf1_sys_writev(p, v, retval)
|
||||||
|
|
||||||
if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize)))
|
if ((error = copyout(nio, (caddr_t)SCARG(&a, iovp), nsize)))
|
||||||
goto punt;
|
goto punt;
|
||||||
error = sys_writev(p, &a, retval);
|
error = sys_writev(l, &a, retval);
|
||||||
|
|
||||||
punt:
|
punt:
|
||||||
free(oio, M_TEMP);
|
free(oio, M_TEMP);
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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)
|
#if defined(_KERNEL_OPT)
|
||||||
#include "opt_compat_43.h"
|
#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/ioctl.h>
|
||||||
#include <sys/termios.h>
|
#include <sys/termios.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.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;
|
extern int scdebug;
|
||||||
#endif
|
#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));
|
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));
|
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));
|
register_t *retval, int cmd, int dir, int len));
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_ioctl(p, v, retval)
|
osf1_sys_ioctl(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -146,19 +147,19 @@ osf1_sys_ioctl(p, v, retval)
|
||||||
SCARG(&a, data) = SCARG(uap, data);
|
SCARG(&a, data) = SCARG(uap, data);
|
||||||
switch (group) {
|
switch (group) {
|
||||||
case 'f':
|
case 'f':
|
||||||
return osf1_ioctl_f(p, &a, retval, cmd, dir, len);
|
return osf1_ioctl_f(l, &a, retval, cmd, dir, len);
|
||||||
case 'i':
|
case 'i':
|
||||||
return osf1_ioctl_i(p, &a, retval, cmd, dir, len);
|
return osf1_ioctl_i(l, &a, retval, cmd, dir, len);
|
||||||
case 't':
|
case 't':
|
||||||
return osf1_ioctl_t(p, &a, retval, cmd, dir, len);
|
return osf1_ioctl_t(l, &a, retval, cmd, dir, len);
|
||||||
default:
|
default:
|
||||||
return (ENOTTY);
|
return (ENOTTY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
osf1_ioctl_f(p, uap, retval, cmd, dir, len)
|
osf1_ioctl_f(l, uap, retval, cmd, dir, len)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
struct sys_ioctl_args *uap;
|
struct sys_ioctl_args *uap;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
int cmd;
|
int cmd;
|
||||||
|
@ -181,12 +182,12 @@ osf1_ioctl_f(p, uap, retval, cmd, dir, len)
|
||||||
return (ENOTTY);
|
return (ENOTTY);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sys_ioctl(p, uap, retval);
|
return sys_ioctl(l, uap, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
osf1_ioctl_i(p, uap, retval, cmd, dir, len)
|
osf1_ioctl_i(l, uap, retval, cmd, dir, len)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
struct sys_ioctl_args *uap;
|
struct sys_ioctl_args *uap;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
int cmd;
|
int cmd;
|
||||||
|
@ -215,12 +216,12 @@ osf1_ioctl_i(p, uap, retval, cmd, dir, len)
|
||||||
return (ENOTTY);
|
return (ENOTTY);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sys_ioctl(p, uap, retval);
|
return sys_ioctl(l, uap, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
osf1_ioctl_t(p, uap, retval, cmd, dir, len)
|
osf1_ioctl_t(l, uap, retval, cmd, dir, len)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
struct sys_ioctl_args *uap;
|
struct sys_ioctl_args *uap;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
int cmd;
|
int cmd;
|
||||||
|
@ -249,5 +250,5 @@ osf1_ioctl_t(p, uap, retval, cmd, dir, len)
|
||||||
return (ENOTTY);
|
return (ENOTTY);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sys_ioctl(p, uap, retval);
|
return sys_ioctl(l, uap, retval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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)
|
#if defined(_KERNEL_OPT)
|
||||||
#include "opt_syscall_debug.h"
|
#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/signal.h>
|
||||||
#include <sys/signalvar.h>
|
#include <sys/signalvar.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/exec.h>
|
#include <sys/exec.h>
|
||||||
#include <sys/vnode.h>
|
#include <sys/vnode.h>
|
||||||
|
@ -102,8 +103,8 @@ extern int scdebug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_classcntl(p, v, retval)
|
osf1_sys_classcntl(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -113,8 +114,8 @@ osf1_sys_classcntl(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_reboot(p, v, retval)
|
osf1_sys_reboot(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -130,16 +131,17 @@ osf1_sys_reboot(p, v, retval)
|
||||||
|
|
||||||
SCARG(&a, bootstr) = NULL;
|
SCARG(&a, bootstr) = NULL;
|
||||||
|
|
||||||
return sys_reboot(p, &a, retval);
|
return sys_reboot(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_set_program_attributes(p, v, retval)
|
osf1_sys_set_program_attributes(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_set_program_attributes_args *uap = v;
|
struct osf1_sys_set_program_attributes_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
segsz_t tsize, dsize;
|
segsz_t tsize, dsize;
|
||||||
|
|
||||||
tsize = btoc(SCARG(uap, tsize));
|
tsize = btoc(SCARG(uap, tsize));
|
||||||
|
@ -159,7 +161,7 @@ osf1_sys_set_program_attributes(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
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;
|
extern int ncpus;
|
||||||
struct osf1_sys_getsysinfo_args *uap = v;
|
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;
|
retval[0] = 1;
|
||||||
break;
|
break;
|
||||||
case OSF_GET_IEEE_FP_CONTROL:
|
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 |= 1ULL << 63;
|
||||||
fpflags &= ~IEEE_INHERIT;
|
fpflags &= ~IEEE_INHERIT;
|
||||||
}
|
}
|
||||||
|
@ -266,8 +268,8 @@ osf1_sys_getsysinfo(struct proc *p, void *v, register_t *retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_setsysinfo(p, v, retval)
|
osf1_sys_setsysinfo(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -284,7 +286,7 @@ osf1_sys_setsysinfo(p, v, retval)
|
||||||
break;
|
break;
|
||||||
if (temp >> 63 != 0)
|
if (temp >> 63 != 0)
|
||||||
temp |= IEEE_INHERIT;
|
temp |= IEEE_INHERIT;
|
||||||
alpha_write_fp_c(p, temp);
|
alpha_write_fp_c(l, temp);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
uprintf("osf1_setsysinfo called with op=%ld\n", SCARG(uap, op));
|
uprintf("osf1_setsysinfo called with op=%ld\n", SCARG(uap, op));
|
||||||
|
@ -295,8 +297,8 @@ osf1_sys_setsysinfo(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sysinfo(p, v, retval)
|
osf1_sys_sysinfo(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -366,8 +368,8 @@ dont_care:
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_uname(p, v, retval)
|
osf1_sys_uname(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -397,8 +399,8 @@ osf1_sys_uname(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_usleep_thread(p, v, retval)
|
osf1_sys_usleep_thread(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -421,7 +423,7 @@ osf1_sys_usleep_thread(p, v, retval)
|
||||||
tv = time;
|
tv = time;
|
||||||
splx(s);
|
splx(s);
|
||||||
|
|
||||||
tsleep(p, PUSER|PCATCH, "uslpthrd", ticks); /* XXX */
|
tsleep(l, PUSER|PCATCH, "uslpthrd", ticks); /* XXX */
|
||||||
|
|
||||||
if (SCARG(uap, slept) != NULL) {
|
if (SCARG(uap, slept) != NULL) {
|
||||||
s = splclock();
|
s = splclock();
|
||||||
|
@ -438,12 +440,13 @@ osf1_sys_usleep_thread(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_wait4(p, v, retval)
|
osf1_sys_wait4(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_wait4_args *uap = v;
|
struct osf1_sys_wait4_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_wait4_args a;
|
struct sys_wait4_args a;
|
||||||
struct osf1_rusage osf1_rusage;
|
struct osf1_rusage osf1_rusage;
|
||||||
struct rusage netbsd_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);
|
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) {
|
if (error == 0 && SCARG(&a, rusage) != NULL) {
|
||||||
error = copyin((caddr_t)SCARG(&a, rusage),
|
error = copyin((caddr_t)SCARG(&a, rusage),
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -31,13 +31,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <uvm/uvm.h> /* XXX see mmap emulation */
|
#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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_madvise(p, v, retval)
|
osf1_sys_madvise(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -98,7 +99,7 @@ osf1_sys_madvise(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
error = sys_madvise(p, &a, retval);
|
error = sys_madvise(l, &a, retval);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NetBSD madvise() currently always returns ENOSYS.
|
* NetBSD madvise() currently always returns ENOSYS.
|
||||||
|
@ -112,12 +113,13 @@ osf1_sys_madvise(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_mmap(p, v, retval)
|
osf1_sys_mmap(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_mmap_args *uap = v;
|
struct osf1_sys_mmap_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_mmap_args a;
|
struct sys_mmap_args a;
|
||||||
unsigned long leftovers;
|
unsigned long leftovers;
|
||||||
|
|
||||||
|
@ -204,12 +206,12 @@ done:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sys_mmap(p, &a, retval);
|
return sys_mmap(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_mprotect(p, v, retval)
|
osf1_sys_mprotect(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -226,5 +228,5 @@ osf1_sys_mprotect(p, v, retval)
|
||||||
if (leftovers != 0)
|
if (leftovers != 0)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
return sys_mprotect(p, &a, retval);
|
return sys_mprotect(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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)
|
#if defined(_KERNEL_OPT)
|
||||||
#include "fs_nfs.h"
|
#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/kernel.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/vnode.h>
|
#include <sys/vnode.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.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 *));
|
struct osf1_sys_mount_args *, struct sys_mount_args *));
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_fstatfs(p, v, retval)
|
osf1_sys_fstatfs(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_fstatfs_args *uap = v;
|
struct osf1_sys_fstatfs_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct file *fp;
|
struct file *fp;
|
||||||
struct mount *mp;
|
struct mount *mp;
|
||||||
struct statfs *sp;
|
struct statfs *sp;
|
||||||
|
@ -140,12 +142,13 @@ osf1_sys_fstatfs(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_getfsstat(p, v, retval)
|
osf1_sys_getfsstat(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_getfsstat_args *uap = v;
|
struct osf1_sys_getfsstat_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct mount *mp, *nmp;
|
struct mount *mp, *nmp;
|
||||||
struct statfs *sp;
|
struct statfs *sp;
|
||||||
struct osf1_statfs osfs;
|
struct osf1_statfs osfs;
|
||||||
|
@ -188,8 +191,8 @@ osf1_sys_getfsstat(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_mount(p, v, retval)
|
osf1_sys_mount(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -205,12 +208,12 @@ osf1_sys_mount(p, v, retval)
|
||||||
|
|
||||||
switch (SCARG(uap, type)) {
|
switch (SCARG(uap, type)) {
|
||||||
case OSF1_MOUNT_NFS:
|
case OSF1_MOUNT_NFS:
|
||||||
if ((error = osf1_mount_nfs(p, uap, &a)))
|
if ((error = osf1_mount_nfs(l->l_proc, uap, &a)))
|
||||||
return error;
|
return error;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OSF1_MOUNT_MFS:
|
case OSF1_MOUNT_MFS:
|
||||||
if ((error = osf1_mount_mfs(p, uap, &a)))
|
if ((error = osf1_mount_mfs(l->l_proc, uap, &a)))
|
||||||
return error;
|
return error;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -218,16 +221,17 @@ osf1_sys_mount(p, v, retval)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sys_mount(p, &a, retval);
|
return sys_mount(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_statfs(p, v, retval)
|
osf1_sys_statfs(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_statfs_args *uap = v;
|
struct osf1_sys_statfs_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct mount *mp;
|
struct mount *mp;
|
||||||
struct statfs *sp;
|
struct statfs *sp;
|
||||||
struct osf1_statfs osfs;
|
struct osf1_statfs osfs;
|
||||||
|
@ -249,8 +253,8 @@ osf1_sys_statfs(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_unmount(p, v, retval)
|
osf1_sys_unmount(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -266,7 +270,7 @@ osf1_sys_unmount(p, v, retval)
|
||||||
(SCARG(uap, flags) & OSF1_MNT_NOFORCE) == 0)
|
(SCARG(uap, flags) & OSF1_MNT_NOFORCE) == 0)
|
||||||
SCARG(&a, flags) |= MNT_FORCE;
|
SCARG(&a, flags) |= MNT_FORCE;
|
||||||
|
|
||||||
return sys_unmount(p, &a, retval);
|
return sys_unmount(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,12 +58,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.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().
|
* setuid(), you'll get a correct description of setgid().
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
osf1_sys_setgid(p, v, retval)
|
osf1_sys_setgid(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_setgid_args *uap = v;
|
struct osf1_sys_setgid_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct pcred *pc = p->p_cred;
|
struct pcred *pc = p->p_cred;
|
||||||
gid_t gid = SCARG(uap, gid);
|
gid_t gid = SCARG(uap, gid);
|
||||||
int error;
|
int error;
|
||||||
|
@ -117,12 +119,13 @@ osf1_sys_setgid(p, v, retval)
|
||||||
* this function call.
|
* this function call.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
osf1_sys_setuid(p, v, retval)
|
osf1_sys_setuid(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_setuid_args *uap = v;
|
struct osf1_sys_setuid_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct pcred *pc = p->p_cred;
|
struct pcred *pc = p->p_cred;
|
||||||
uid_t uid = SCARG(uap, uid);
|
uid_t uid = SCARG(uap, uid);
|
||||||
int error;
|
int error;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -31,12 +31,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <sys/resourcevar.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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_getrlimit(p, v, retval)
|
osf1_sys_getrlimit(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -84,16 +85,17 @@ osf1_sys_getrlimit(p, v, retval)
|
||||||
/* XXX should translate */
|
/* XXX should translate */
|
||||||
SCARG(&a, rlp) = SCARG(uap, rlp);
|
SCARG(&a, rlp) = SCARG(uap, rlp);
|
||||||
|
|
||||||
return sys_getrlimit(p, &a, retval);
|
return sys_getrlimit(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_getrusage(p, v, retval)
|
osf1_sys_getrusage(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_getrusage_args *uap = v;
|
struct osf1_sys_getrusage_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_getrusage_args a;
|
struct sys_getrusage_args a;
|
||||||
struct osf1_rusage osf1_rusage;
|
struct osf1_rusage osf1_rusage;
|
||||||
struct rusage netbsd_rusage;
|
struct rusage netbsd_rusage;
|
||||||
|
@ -117,7 +119,7 @@ osf1_sys_getrusage(p, v, retval)
|
||||||
sg = stackgap_init(p, 0);
|
sg = stackgap_init(p, 0);
|
||||||
SCARG(&a, rusage) = stackgap_alloc(p, &sg, sizeof netbsd_rusage);
|
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)
|
if (error == 0)
|
||||||
error = copyin((caddr_t)SCARG(&a, rusage),
|
error = copyin((caddr_t)SCARG(&a, rusage),
|
||||||
(caddr_t)&netbsd_rusage, sizeof netbsd_rusage);
|
(caddr_t)&netbsd_rusage, sizeof netbsd_rusage);
|
||||||
|
@ -131,8 +133,8 @@ osf1_sys_getrusage(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_setrlimit(p, v, retval)
|
osf1_sys_setrlimit(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -169,5 +171,5 @@ osf1_sys_setrlimit(p, v, retval)
|
||||||
/* XXX should translate */
|
/* XXX should translate */
|
||||||
SCARG(&a, rlp) = SCARG(uap, rlp);
|
SCARG(&a, rlp) = SCARG(uap, rlp);
|
||||||
|
|
||||||
return sys_setrlimit(p, &a, retval);
|
return sys_setrlimit(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/signalvar.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
|
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.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
|
#if 0
|
||||||
int
|
int
|
||||||
osf1_sys_kill(p, v, retval)
|
osf1_sys_kill(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -65,17 +66,18 @@ osf1_sys_kill(p, v, retval)
|
||||||
|
|
||||||
SCARG(&ka, pid) = SCARG(uap, pid);
|
SCARG(&ka, pid) = SCARG(uap, pid);
|
||||||
SCARG(&ka, signum) = osf1_to_native_signo[SCARG(uap, signum)];
|
SCARG(&ka, signum) = osf1_to_native_signo[SCARG(uap, signum)];
|
||||||
return sys_kill(p, &ka, retval);
|
return sys_kill(l, &ka, retval);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sigaction(p, v, retval)
|
osf1_sys_sigaction(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_sigaction_args *uap = v;
|
struct osf1_sys_sigaction_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct osf1_sigaction *nosa, *oosa, tmposa;
|
struct osf1_sigaction *nosa, *oosa, tmposa;
|
||||||
struct sigaction *nbsa, *obsa, tmpbsa;
|
struct sigaction *nbsa, *obsa, tmpbsa;
|
||||||
struct sys___sigaction14_args sa;
|
struct sys___sigaction14_args sa;
|
||||||
|
@ -105,7 +107,7 @@ osf1_sys_sigaction(p, v, retval)
|
||||||
SCARG(&sa, nsa) = nbsa;
|
SCARG(&sa, nsa) = nbsa;
|
||||||
SCARG(&sa, osa) = obsa;
|
SCARG(&sa, osa) = obsa;
|
||||||
|
|
||||||
if ((error = sys___sigaction14(p, &sa, retval)) != 0)
|
if ((error = sys___sigaction14(l, &sa, retval)) != 0)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
if (oosa != NULL) {
|
if (oosa != NULL) {
|
||||||
|
@ -120,12 +122,13 @@ osf1_sys_sigaction(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sigaltstack(p, v, retval)
|
osf1_sys_sigaltstack(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_sigaltstack_args *uap = v;
|
struct osf1_sys_sigaltstack_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct osf1_sigaltstack *noss, *ooss, tmposs;
|
struct osf1_sigaltstack *noss, *ooss, tmposs;
|
||||||
struct sigaltstack *nbss, *obss, tmpbss;
|
struct sigaltstack *nbss, *obss, tmpbss;
|
||||||
struct sys___sigaltstack14_args sa;
|
struct sys___sigaltstack14_args sa;
|
||||||
|
@ -155,7 +158,7 @@ osf1_sys_sigaltstack(p, v, retval)
|
||||||
SCARG(&sa, nss) = nbss;
|
SCARG(&sa, nss) = nbss;
|
||||||
SCARG(&sa, oss) = obss;
|
SCARG(&sa, oss) = obss;
|
||||||
|
|
||||||
if ((error = sys___sigaltstack14(p, &sa, retval)) != 0)
|
if ((error = sys___sigaltstack14(l, &sa, retval)) != 0)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
if (obss != NULL) {
|
if (obss != NULL) {
|
||||||
|
@ -171,12 +174,13 @@ osf1_sys_sigaltstack(p, v, retval)
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
int
|
int
|
||||||
osf1_sys_signal(p, v, retval)
|
osf1_sys_signal(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_signal_args *uap = v;
|
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 signum = osf1_to_native_signo[OSF1_SIGNO(SCARG(uap, signum))];
|
||||||
int error;
|
int error;
|
||||||
caddr_t sg = stackgap_init(p, 0);
|
caddr_t sg = stackgap_init(p, 0);
|
||||||
|
@ -200,7 +204,7 @@ osf1_sys_signal(p, v, retval)
|
||||||
|
|
||||||
SCARG(&sa, how) = SIG_BLOCK;
|
SCARG(&sa, how) = SIG_BLOCK;
|
||||||
SCARG(&sa, mask) = sigmask(signum);
|
SCARG(&sa, mask) = sigmask(signum);
|
||||||
return sys_sigprocmask(p, &sa, retval);
|
return sys_sigprocmask(l, &sa, retval);
|
||||||
}
|
}
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
|
@ -224,7 +228,7 @@ osf1_sys_signal(p, v, retval)
|
||||||
#endif
|
#endif
|
||||||
if ((error = copyout(&sa, nbsa, sizeof(sa))) != 0)
|
if ((error = copyout(&sa, nbsa, sizeof(sa))) != 0)
|
||||||
return error;
|
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",
|
DPRINTF(("signal: sigaction failed: %d\n",
|
||||||
error));
|
error));
|
||||||
*retval = (int)OSF1_SIG_ERR;
|
*retval = (int)OSF1_SIG_ERR;
|
||||||
|
@ -242,7 +246,7 @@ osf1_sys_signal(p, v, retval)
|
||||||
|
|
||||||
SCARG(&sa, how) = SIG_BLOCK;
|
SCARG(&sa, how) = SIG_BLOCK;
|
||||||
SCARG(&sa, mask) = sigmask(signum);
|
SCARG(&sa, mask) = sigmask(signum);
|
||||||
return sys_sigprocmask(p, &sa, retval);
|
return sys_sigprocmask(l, &sa, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
case OSF1_SIGRELSE_MASK:
|
case OSF1_SIGRELSE_MASK:
|
||||||
|
@ -251,7 +255,7 @@ osf1_sys_signal(p, v, retval)
|
||||||
|
|
||||||
SCARG(&sa, how) = SIG_UNBLOCK;
|
SCARG(&sa, how) = SIG_UNBLOCK;
|
||||||
SCARG(&sa, mask) = sigmask(signum);
|
SCARG(&sa, mask) = sigmask(signum);
|
||||||
return sys_sigprocmask(p, &sa, retval);
|
return sys_sigprocmask(l, &sa, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
case OSF1_SIGIGNORE_MASK:
|
case OSF1_SIGIGNORE_MASK:
|
||||||
|
@ -269,7 +273,7 @@ osf1_sys_signal(p, v, retval)
|
||||||
sa.sa_flags = 0;
|
sa.sa_flags = 0;
|
||||||
if ((error = copyout(&sa, bsa, sizeof(sa))) != 0)
|
if ((error = copyout(&sa, bsa, sizeof(sa))) != 0)
|
||||||
return error;
|
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"));
|
DPRINTF(("sigignore: sigaction failed\n"));
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
@ -281,7 +285,7 @@ osf1_sys_signal(p, v, retval)
|
||||||
struct sys_sigsuspend_args sa;
|
struct sys_sigsuspend_args sa;
|
||||||
|
|
||||||
SCARG(&sa, mask) = p->p_sigmask & ~sigmask(signum);
|
SCARG(&sa, mask) = p->p_sigmask & ~sigmask(signum);
|
||||||
return sys_sigsuspend(p, &sa, retval);
|
return sys_sigsuspend(l, &sa, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -290,12 +294,13 @@ osf1_sys_signal(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sigpending(p, v, retval)
|
osf1_sys_sigpending(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_sigpending_args *uap = v;
|
struct osf1_sys_sigpending_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
sigset_t bss;
|
sigset_t bss;
|
||||||
osf1_sigset_t oss;
|
osf1_sigset_t oss;
|
||||||
|
|
||||||
|
@ -306,12 +311,13 @@ osf1_sys_sigpending(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sigprocmask(p, v, retval)
|
osf1_sys_sigprocmask(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_sigprocmask_args *uap = v;
|
struct osf1_sys_sigprocmask_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
osf1_sigset_t oss;
|
osf1_sigset_t oss;
|
||||||
sigset_t bss;
|
sigset_t bss;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
@ -358,8 +364,8 @@ osf1_sys_sigprocmask(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sigsuspend(p, v, retval)
|
osf1_sys_sigsuspend(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -375,6 +381,6 @@ osf1_sys_sigsuspend(p, v, retval)
|
||||||
osf1_cvt_sigset_to_native(&oss, &bss);
|
osf1_cvt_sigset_to_native(&oss, &bss);
|
||||||
|
|
||||||
SCARG(&sa, mask) = bss;
|
SCARG(&sa, mask) = bss;
|
||||||
return sys_sigsuspend(p, &sa, retval);
|
return sys_sigsuspend(l, &sa, retval);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/proc.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
#include <sys/socketvar.h>
|
#include <sys/socketvar.h>
|
||||||
#include <sys/exec.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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_recvmsg_xopen(p, v, retval)
|
osf1_sys_recvmsg_xopen(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -87,12 +88,13 @@ osf1_sys_recvmsg_xopen(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sendmsg_xopen(p, v, retval)
|
osf1_sys_sendmsg_xopen(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_sendmsg_xopen_args *uap = v;
|
struct osf1_sys_sendmsg_xopen_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_sendmsg_args a;
|
struct sys_sendmsg_args a;
|
||||||
struct osf1_msghdr_xopen osf_msghdr;
|
struct osf1_msghdr_xopen osf_msghdr;
|
||||||
struct osf1_iovec_xopen osf_iovec, *osf_iovec_ptr;
|
struct osf1_iovec_xopen osf_iovec, *osf_iovec_ptr;
|
||||||
|
@ -159,12 +161,12 @@ printf("sendmsg flags leftover: 0x%lx\n", leftovers);
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sys_sendmsg(p, &a, retval);
|
return sys_sendmsg(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_sendto(p, v, retval)
|
osf1_sys_sendto(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -184,12 +186,12 @@ osf1_sys_sendto(p, v, retval)
|
||||||
if (leftovers != 0)
|
if (leftovers != 0)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
return sys_sendto(p, &a, retval);
|
return sys_sendto(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_socket(p, v, retval)
|
osf1_sys_socket(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -205,12 +207,12 @@ osf1_sys_socket(p, v, retval)
|
||||||
SCARG(&a, type) = SCARG(uap, type);
|
SCARG(&a, type) = SCARG(uap, type);
|
||||||
SCARG(&a, protocol) = SCARG(uap, protocol);
|
SCARG(&a, protocol) = SCARG(uap, protocol);
|
||||||
|
|
||||||
return sys_socket(p, &a, retval);
|
return sys_socket(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_socketpair(p, v, retval)
|
osf1_sys_socketpair(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -227,5 +229,5 @@ osf1_sys_socketpair(p, v, retval)
|
||||||
SCARG(&a, protocol) = SCARG(uap, protocol);
|
SCARG(&a, protocol) = SCARG(uap, protocol);
|
||||||
SCARG(&a, rsv) = SCARG(uap, rsv);
|
SCARG(&a, rsv) = SCARG(uap, rsv);
|
||||||
|
|
||||||
return sys_socketpair(p, &a, retval);
|
return sys_socketpair(l, &a, retval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/proc.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_shmat(p, v, retval)
|
osf1_sys_shmat(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -57,8 +58,8 @@ osf1_sys_shmat(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_shmctl(p, v, retval)
|
osf1_sys_shmctl(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -68,8 +69,8 @@ osf1_sys_shmctl(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_shmdt(p, v, retval)
|
osf1_sys_shmdt(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
@ -79,8 +80,8 @@ osf1_sys_shmdt(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_shmget(p, v, retval)
|
osf1_sys_shmget(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.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/proc.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.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>
|
#include <compat/osf1/osf1_cvt.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_gettimeofday(p, v, retval)
|
osf1_sys_gettimeofday(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_gettimeofday_args *uap = v;
|
struct osf1_sys_gettimeofday_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_gettimeofday_args a;
|
struct sys_gettimeofday_args a;
|
||||||
struct osf1_timeval otv;
|
struct osf1_timeval otv;
|
||||||
struct osf1_timezone otz;
|
struct osf1_timezone otz;
|
||||||
|
@ -70,7 +72,7 @@ osf1_sys_gettimeofday(p, v, retval)
|
||||||
else
|
else
|
||||||
SCARG(&a, tzp) = stackgap_alloc(p, &sg, sizeof tz);
|
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) {
|
if (error == 0 && SCARG(uap, tp) != NULL) {
|
||||||
error = copyin((caddr_t)SCARG(&a, tp),
|
error = copyin((caddr_t)SCARG(&a, tp),
|
||||||
|
@ -100,12 +102,13 @@ osf1_sys_gettimeofday(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_setitimer(p, v, retval)
|
osf1_sys_setitimer(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_setitimer_args *uap = v;
|
struct osf1_sys_setitimer_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_setitimer_args a;
|
struct sys_setitimer_args a;
|
||||||
struct osf1_itimerval o_itv, o_oitv;
|
struct osf1_itimerval o_itv, o_oitv;
|
||||||
struct itimerval b_itv, b_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);
|
SCARG(&a, oitv) = stackgap_alloc(p, &sg, sizeof b_oitv);
|
||||||
|
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_setitimer(p, &a, retval);
|
error = sys_setitimer(l, &a, retval);
|
||||||
|
|
||||||
if (error == 0 && SCARG(uap, oitv) != NULL) {
|
if (error == 0 && SCARG(uap, oitv) != NULL) {
|
||||||
/* get the NetBSD itimerval return value */
|
/* get the NetBSD itimerval return value */
|
||||||
|
@ -179,12 +182,13 @@ osf1_sys_setitimer(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_getitimer(p, v, retval)
|
osf1_sys_getitimer(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_getitimer_args *uap = v;
|
struct osf1_sys_getitimer_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_getitimer_args a;
|
struct sys_getitimer_args a;
|
||||||
struct osf1_itimerval o_oitv;
|
struct osf1_itimerval o_oitv;
|
||||||
struct itimerval b_oitv;
|
struct itimerval b_oitv;
|
||||||
|
@ -206,7 +210,7 @@ osf1_sys_getitimer(p, v, retval)
|
||||||
sg = stackgap_init(p, 0);
|
sg = stackgap_init(p, 0);
|
||||||
SCARG(&a, itv) = stackgap_alloc(p, &sg, sizeof b_oitv);
|
SCARG(&a, itv) = stackgap_alloc(p, &sg, sizeof b_oitv);
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_getitimer(p, &a, retval);
|
error = sys_getitimer(l, &a, retval);
|
||||||
if (error == 0 && SCARG(uap, itv) != NULL) {
|
if (error == 0 && SCARG(uap, itv) != NULL) {
|
||||||
/* get the NetBSD itimerval return value */
|
/* get the NetBSD itimerval return value */
|
||||||
error = copyin((caddr_t)SCARG(&a, itv), (caddr_t)&b_oitv,
|
error = copyin((caddr_t)SCARG(&a, itv), (caddr_t)&b_oitv,
|
||||||
|
@ -226,12 +230,13 @@ osf1_sys_getitimer(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
osf1_sys_settimeofday(p, v, retval)
|
osf1_sys_settimeofday(l, v, retval)
|
||||||
struct proc *p;
|
struct lwp *l;
|
||||||
void *v;
|
void *v;
|
||||||
register_t *retval;
|
register_t *retval;
|
||||||
{
|
{
|
||||||
struct osf1_sys_settimeofday_args *uap = v;
|
struct osf1_sys_settimeofday_args *uap = v;
|
||||||
|
struct proc *p = l->l_proc;
|
||||||
struct sys_settimeofday_args a;
|
struct sys_settimeofday_args a;
|
||||||
struct osf1_timeval otv;
|
struct osf1_timeval otv;
|
||||||
struct osf1_timezone otz;
|
struct osf1_timezone otz;
|
||||||
|
@ -282,7 +287,7 @@ osf1_sys_settimeofday(p, v, retval)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
error = sys_settimeofday(p, &a, retval);
|
error = sys_settimeofday(l, &a, retval);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
|
#include <sys/sa.h>
|
||||||
#include <sys/syscallargs.h>
|
#include <sys/syscallargs.h>
|
||||||
|
|
||||||
#include <compat/osf1/osf1.h>
|
#include <compat/osf1/osf1.h>
|
||||||
|
@ -111,7 +112,7 @@
|
||||||
48 NOARGS { int compat_13_sys_sigprocmask(int how, \
|
48 NOARGS { int compat_13_sys_sigprocmask(int how, \
|
||||||
sigset13_t mask); }
|
sigset13_t mask); }
|
||||||
49 NOARGS { int sys___getlogin(char *namebuf, u_int namelen); }
|
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); }
|
51 NOARGS { int sys_acct(const char *path); }
|
||||||
52 UNIMPL sigpending
|
52 UNIMPL sigpending
|
||||||
53 STD { int osf1_sys_classcntl(int opcode, int arg1, \
|
53 STD { int osf1_sys_classcntl(int opcode, int arg1, \
|
||||||
|
|
Loading…
Reference in New Issue