Added system calls: gettimeofday, getitimer, setitimer

This commit is contained in:
manu 2002-02-03 17:39:54 +00:00
parent 5b436803dd
commit 5c72031257
5 changed files with 50 additions and 27 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: irix_syscall.h,v 1.19 2002/02/03 01:21:47 manu Exp $ */
/* $NetBSD: irix_syscall.h,v 1.20 2002/02/03 17:39:54 manu Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.17 2001/12/27 11:07:24 manu Exp
* created from NetBSD: syscalls.master,v 1.18 2002/02/03 01:21:48 manu Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -256,6 +256,18 @@
/* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
#define IRIX_SYS_readlink 116
/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
#define IRIX_SYS_getitimer 125
/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
#define IRIX_SYS_setitimer 126
/* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */
#define IRIX_SYS_adjtime 127
/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" */
#define IRIX_SYS_gettimeofday 128
/* syscall: "prctl" ret: "ptrdiff_t" args: "unsigned int" "void *" */
#define IRIX_SYS_prctl 130

View File

@ -1,10 +1,10 @@
/* $NetBSD: irix_syscallargs.h,v 1.19 2002/02/03 01:21:47 manu Exp $ */
/* $NetBSD: irix_syscallargs.h,v 1.20 2002/02/03 17:39:54 manu Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.17 2001/12/27 11:07:24 manu Exp
* created from NetBSD: syscalls.master,v 1.18 2002/02/03 01:21:48 manu Exp
*/
#ifndef _IRIX_SYS__SYSCALLARGS_H_
@ -203,6 +203,10 @@ struct svr4_sys_socket_args {
syscallarg(int) protocol;
};
struct svr4_sys_gettimeofday_args {
syscallarg(struct timeval *) tp;
};
struct irix_sys_prctl_args {
syscallarg(unsigned int) option;
syscallarg(void *) arg1;
@ -376,6 +380,10 @@ int compat_09_sys_setdomainname(struct proc *, void *, register_t *);
int sys_rename(struct proc *, void *, register_t *);
int sys_symlink(struct proc *, void *, register_t *);
int sys_readlink(struct proc *, void *, register_t *);
int sys_getitimer(struct proc *, void *, register_t *);
int sys_setitimer(struct proc *, void *, register_t *);
int sys_adjtime(struct proc *, void *, register_t *);
int svr4_sys_gettimeofday(struct proc *, void *, register_t *);
int irix_sys_prctl(struct proc *, void *, register_t *);
int svr4_sys_mmap(struct proc *, void *, register_t *);
int irix_sys_xstat(struct proc *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: irix_syscalls.c,v 1.19 2002/02/03 01:21:47 manu Exp $ */
/* $NetBSD: irix_syscalls.c,v 1.20 2002/02/03 17:39:54 manu Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.17 2001/12/27 11:07:24 manu Exp
* created from NetBSD: syscalls.master,v 1.18 2002/02/03 01:21:48 manu Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.19 2002/02/03 01:21:47 manu Exp $");
__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.20 2002/02/03 17:39:54 manu Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -167,10 +167,10 @@ const char *const irix_syscallnames[] = {
"#122 (unimplemented exportfs)", /* 122 = unimplemented exportfs */
"#123 (unimplemented setregid)", /* 123 = unimplemented setregid */
"#124 (unimplemented setreuid)", /* 124 = unimplemented setreuid */
"#125 (unimplemented getitimer)", /* 125 = unimplemented getitimer */
"#126 (unimplemented setitimer)", /* 126 = unimplemented setitimer */
"#127 (unimplemented adjtime)", /* 127 = unimplemented adjtime */
"#128 (unimplemented gettimeofday)", /* 128 = unimplemented gettimeofday */
"getitimer", /* 125 = getitimer */
"setitimer", /* 126 = setitimer */
"adjtime", /* 127 = adjtime */
"gettimeofday", /* 128 = gettimeofday */
"#129 (unimplemented sproc)", /* 129 = unimplemented sproc */
"prctl", /* 130 = prctl */
"#131 (unimplemented procblk)", /* 131 = unimplemented procblk */

View File

@ -1,14 +1,14 @@
/* $NetBSD: irix_sysent.c,v 1.19 2002/02/03 01:21:48 manu Exp $ */
/* $NetBSD: irix_sysent.c,v 1.20 2002/02/03 17:39:54 manu Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.17 2001/12/27 11:07:24 manu Exp
* created from NetBSD: syscalls.master,v 1.18 2002/02/03 01:21:48 manu Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.19 2002/02/03 01:21:48 manu Exp $");
__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.20 2002/02/03 17:39:54 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
@ -295,14 +295,14 @@ struct sysent irix_sysent[] = {
sys_nosys }, /* 123 = unimplemented setregid */
{ 0, 0, 0,
sys_nosys }, /* 124 = unimplemented setreuid */
{ 0, 0, 0,
sys_nosys }, /* 125 = unimplemented getitimer */
{ 0, 0, 0,
sys_nosys }, /* 126 = unimplemented setitimer */
{ 0, 0, 0,
sys_nosys }, /* 127 = unimplemented adjtime */
{ 0, 0, 0,
sys_nosys }, /* 128 = unimplemented gettimeofday */
{ 2, s(struct sys_getitimer_args), 0,
sys_getitimer }, /* 125 = getitimer */
{ 3, s(struct sys_setitimer_args), 0,
sys_setitimer }, /* 126 = setitimer */
{ 2, s(struct sys_adjtime_args), 0,
sys_adjtime }, /* 127 = adjtime */
{ 1, s(struct svr4_sys_gettimeofday_args), 0,
svr4_sys_gettimeofday }, /* 128 = gettimeofday */
{ 0, 0, 0,
sys_nosys }, /* 129 = unimplemented sproc */
{ 2, s(struct irix_sys_prctl_args), 0,

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.18 2002/02/03 01:21:48 manu Exp $
$NetBSD: syscalls.master,v 1.19 2002/02/03 17:39:54 manu Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -231,10 +231,13 @@
122 UNIMPL exportfs
123 UNIMPL setregid
124 UNIMPL setreuid
125 UNIMPL getitimer
126 UNIMPL setitimer
127 UNIMPL adjtime
128 UNIMPL gettimeofday
125 NOARGS { int sys_getitimer(u_int which, \
struct itimerval *itv); }
126 NOARGS { int sys_setitimer(u_int which, \
struct itimerval *itv, struct itimerval *oitv); }
127 NOARGS { int sys_adjtime(struct timeval *delta, \
struct timeval *olddelta); }
128 STD { int svr4_sys_gettimeofday(struct timeval *tp); }
129 UNIMPL sproc
130 STD { ptrdiff_t irix_sys_prctl(unsigned int option, \
void *arg1); }