diff --git a/sys/compat/irix/irix_syscall.h b/sys/compat/irix/irix_syscall.h index 3d1fe4240810..21555854d906 100644 --- a/sys/compat/irix/irix_syscall.h +++ b/sys/compat/irix/irix_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: irix_syscall.h,v 1.38 2002/04/22 05:58:47 manu Exp $ */ +/* $NetBSD: irix_syscall.h,v 1.39 2002/04/23 05:47:38 manu Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp + * created from NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -310,6 +310,15 @@ /* syscall: "fsync" ret: "int" args: "int" */ #define IRIX_SYS_fsync 146 +/* syscall: "fchdir" ret: "int" args: "int" */ +#define IRIX_SYS_fchdir 147 + +/* syscall: "fchown" ret: "int" args: "int" "int" "int" */ +#define IRIX_SYS_fchown 152 + +/* syscall: "fchmod" ret: "int" args: "int" "int" */ +#define IRIX_SYS_fchmod 153 + /* syscall: "systeminfo" ret: "long" args: "int" "char *" "long" */ #define IRIX_SYS_systeminfo 156 diff --git a/sys/compat/irix/irix_syscallargs.h b/sys/compat/irix/irix_syscallargs.h index da50cd2270ec..a80bd481637e 100644 --- a/sys/compat/irix/irix_syscallargs.h +++ b/sys/compat/irix/irix_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: irix_syscallargs.h,v 1.38 2002/04/22 05:58:48 manu Exp $ */ +/* $NetBSD: irix_syscallargs.h,v 1.39 2002/04/23 05:47:38 manu Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp + * created from NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp */ #ifndef _IRIX_SYS__SYSCALLARGS_H_ @@ -304,6 +304,9 @@ int sys___msync13(struct proc *, void *, register_t *); int sys_getpgrp(struct proc *, void *, register_t *); int irix_sys_setpgrp(struct proc *, void *, register_t *); int sys_fsync(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int sys___posix_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); int irix_sys_systeminfo(struct proc *, void *, register_t *); int irix_sys_xstat(struct proc *, void *, register_t *); int irix_sys_lxstat(struct proc *, void *, register_t *); diff --git a/sys/compat/irix/irix_syscalls.c b/sys/compat/irix/irix_syscalls.c index aa975e6af1dc..91c2d035357a 100644 --- a/sys/compat/irix/irix_syscalls.c +++ b/sys/compat/irix/irix_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: irix_syscalls.c,v 1.38 2002/04/22 05:58:48 manu Exp $ */ +/* $NetBSD: irix_syscalls.c,v 1.39 2002/04/23 05:47:38 manu Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp + * created from NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.38 2002/04/22 05:58:48 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: irix_syscalls.c,v 1.39 2002/04/23 05:47:38 manu Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -194,13 +194,13 @@ const char *const irix_syscallnames[] = { "setpgrp", /* 144 = setpgrp */ "#145 (unimplemented vhangup)", /* 145 = unimplemented vhangup */ "fsync", /* 146 = fsync */ - "#147 (unimplemented fchdir)", /* 147 = unimplemented fchdir */ + "fchdir", /* 147 = fchdir */ "#148 (unimplemented getrlimit)", /* 148 = unimplemented getrlimit */ "#149 (unimplemented setrlimit)", /* 149 = unimplemented setrlimit */ "#150 (unimplemented cacheflush)", /* 150 = unimplemented cacheflush */ "#151 (unimplemented cachectl)", /* 151 = unimplemented cachectl */ - "#152 (unimplemented fchown)", /* 152 = unimplemented fchown */ - "#153 (unimplemented fchmod)", /* 153 = unimplemented fchmod */ + "fchown", /* 152 = fchown */ + "fchmod", /* 153 = fchmod */ "#154 (unimplemented wait3)", /* 154 = unimplemented wait3 */ "#155 (unimplemented socketpair)", /* 155 = unimplemented socketpair */ "systeminfo", /* 156 = systeminfo */ diff --git a/sys/compat/irix/irix_sysent.c b/sys/compat/irix/irix_sysent.c index b866706d5504..0b44014636de 100644 --- a/sys/compat/irix/irix_sysent.c +++ b/sys/compat/irix/irix_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: irix_sysent.c,v 1.38 2002/04/22 05:58:48 manu Exp $ */ +/* $NetBSD: irix_sysent.c,v 1.39 2002/04/23 05:47:38 manu Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp + * created from NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.38 2002/04/22 05:58:48 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: irix_sysent.c,v 1.39 2002/04/23 05:47:38 manu Exp $"); #if defined(_KERNEL_OPT) #include "opt_ntp.h" @@ -344,8 +344,8 @@ struct sysent irix_sysent[] = { sys_nosys }, /* 145 = unimplemented vhangup */ { 1, s(struct sys_fsync_args), 0, sys_fsync }, /* 146 = fsync */ - { 0, 0, 0, - sys_nosys }, /* 147 = unimplemented fchdir */ + { 1, s(struct sys_fchdir_args), 0, + sys_fchdir }, /* 147 = fchdir */ { 0, 0, 0, sys_nosys }, /* 148 = unimplemented getrlimit */ { 0, 0, 0, @@ -354,10 +354,10 @@ struct sysent irix_sysent[] = { sys_nosys }, /* 150 = unimplemented cacheflush */ { 0, 0, 0, sys_nosys }, /* 151 = unimplemented cachectl */ - { 0, 0, 0, - sys_nosys }, /* 152 = unimplemented fchown */ - { 0, 0, 0, - sys_nosys }, /* 153 = unimplemented fchmod */ + { 3, s(struct sys___posix_fchown_args), 0, + sys___posix_fchown }, /* 152 = fchown */ + { 2, s(struct sys_fchmod_args), 0, + sys_fchmod }, /* 153 = fchmod */ { 0, 0, 0, sys_nosys }, /* 154 = unimplemented wait3 */ { 0, 0, 0, diff --git a/sys/compat/irix/syscalls.master b/sys/compat/irix/syscalls.master index 7a4d498b39f7..8e8760b74884 100644 --- a/sys/compat/irix/syscalls.master +++ b/sys/compat/irix/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp $ + $NetBSD: syscalls.master,v 1.38 2002/04/23 05:47:38 manu Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -265,13 +265,14 @@ 144 STD { int irix_sys_setpgrp(int pid, int pgid); } 145 UNIMPL vhangup 146 NOARGS { int sys_fsync(int fd); } -147 UNIMPL fchdir +147 NOARGS { int sys_fchdir(int fd); } 148 UNIMPL getrlimit 149 UNIMPL setrlimit 150 UNIMPL cacheflush 151 UNIMPL cachectl -152 UNIMPL fchown -153 UNIMPL fchmod +152 NOARGS { int sys___posix_fchown(int fd, int uid, int gid); } \ + fchown +153 NOARGS { int sys_fchmod(int fd, int mode); } 154 UNIMPL wait3 155 UNIMPL socketpair 156 STD { long irix_sys_systeminfo(int what, char *buf, \