Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/irix Added fchdir, fchown and fchmod system calls



details:   https://anonhg.NetBSD.org/src/rev/7ee44e94b52f
branches:  trunk
changeset: 525995:7ee44e94b52f
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Apr 23 05:47:38 2002 +0000

description:
Added fchdir, fchown and fchmod system calls

diffstat:

 sys/compat/irix/irix_syscall.h     |  13 +++++++++++--
 sys/compat/irix/irix_syscallargs.h |   7 +++++--
 sys/compat/irix/irix_syscalls.c    |  12 ++++++------
 sys/compat/irix/irix_sysent.c      |  18 +++++++++---------
 sys/compat/irix/syscalls.master    |   9 +++++----
 5 files changed, 36 insertions(+), 23 deletions(-)

diffs (170 lines):

diff -r e666dfa2a3f3 -r 7ee44e94b52f sys/compat/irix/irix_syscall.h
--- a/sys/compat/irix/irix_syscall.h    Tue Apr 23 02:39:33 2002 +0000
+++ b/sys/compat/irix/irix_syscall.h    Tue Apr 23 05:47:38 2002 +0000
@@ -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 -r e666dfa2a3f3 -r 7ee44e94b52f sys/compat/irix/irix_syscallargs.h
--- a/sys/compat/irix/irix_syscallargs.h        Tue Apr 23 02:39:33 2002 +0000
+++ b/sys/compat/irix/irix_syscallargs.h        Tue Apr 23 05:47:38 2002 +0000
@@ -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_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 -r e666dfa2a3f3 -r 7ee44e94b52f sys/compat/irix/irix_syscalls.c
--- a/sys/compat/irix/irix_syscalls.c   Tue Apr 23 02:39:33 2002 +0000
+++ b/sys/compat/irix/irix_syscalls.c   Tue Apr 23 05:47:38 2002 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
        "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 -r e666dfa2a3f3 -r 7ee44e94b52f sys/compat/irix/irix_sysent.c
--- a/sys/compat/irix/irix_sysent.c     Tue Apr 23 02:39:33 2002 +0000
+++ b/sys/compat/irix/irix_sysent.c     Tue Apr 23 05:47:38 2002 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
            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 @@
            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 -r e666dfa2a3f3 -r 7ee44e94b52f sys/compat/irix/syscalls.master
--- a/sys/compat/irix/syscalls.master   Tue Apr 23 02:39:33 2002 +0000
+++ b/sys/compat/irix/syscalls.master   Tue Apr 23 05:47:38 2002 +0000
@@ -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, \



Home | Main Index | Thread Index | Old Index