Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/irix Implemented irix_sys_systeminfo()



details:   https://anonhg.NetBSD.org/src/rev/da9a653476ad
branches:  trunk
changeset: 522362:da9a653476ad
user:      manu <manu%NetBSD.org@localhost>
date:      Sun Feb 17 22:49:53 2002 +0000

description:
Implemented irix_sys_systeminfo()

diffstat:

 sys/compat/irix/files.irix         |    3 +-
 sys/compat/irix/irix_signal.c      |    6 +-
 sys/compat/irix/irix_syscall.h     |    7 +-
 sys/compat/irix/irix_syscallargs.h |  176 +-----------------------------------
 sys/compat/irix/irix_syscalls.c    |   12 +-
 sys/compat/irix/irix_sysent.c      |   14 +-
 sys/compat/irix/irix_systeminfo.c  |  171 +++++++++++++++++++++++++++++++++++
 sys/compat/irix/syscalls.master    |   71 +++++++------
 8 files changed, 243 insertions(+), 217 deletions(-)

diffs (truncated from 765 to 300 lines):

diff -r b858d59a8018 -r da9a653476ad sys/compat/irix/files.irix
--- a/sys/compat/irix/files.irix        Sun Feb 17 22:45:29 2002 +0000
+++ b/sys/compat/irix/files.irix        Sun Feb 17 22:49:53 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.irix,v 1.13 2002/01/06 21:43:10 manu Exp $
+#      $NetBSD: files.irix,v 1.14 2002/02/17 22:49:53 manu Exp $
 #
 
 file   arch/mips/mips/irix_syscall.c           compat_irix
@@ -16,6 +16,7 @@
 file   compat/irix/irix_sysent.c               compat_irix
 file   compat/irix/irix_syssgi.c               compat_irix
 file   compat/irix/irix_sysmp.c                compat_irix
+file   compat/irix/irix_systeminfo.c           compat_irix
 
 file   arch/mips/mips/svr4_machdep.c           compat_irix
 
diff -r b858d59a8018 -r da9a653476ad sys/compat/irix/irix_signal.c
--- a/sys/compat/irix/irix_signal.c     Sun Feb 17 22:45:29 2002 +0000
+++ b/sys/compat/irix/irix_signal.c     Sun Feb 17 22:49:53 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_signal.c,v 1.4 2002/02/17 20:50:06 manu Exp $ */
+/*     $NetBSD: irix_signal.c,v 1.5 2002/02/17 22:49:54 manu Exp $ */
 
 /*-
  * Copyright (c) 1994, 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.4 2002/02/17 20:50:06 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.5 2002/02/17 22:49:54 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/signal.h>
@@ -286,7 +286,7 @@
 
 #ifdef DEBUG_IRIX
        printf("irix_sys_sigreturn()\n");
-       printf("scp = %p, ucp = %p, sig = %d (%d)\n", 
+       printf("scp = %p, ucp = %p, sig = %d (%p)\n", 
            (void *)SCARG(uap, isr).scp, (void *)SCARG(uap, isr).ucp, 
            SCARG(uap, isr).signo, (void *)SCARG(uap, isr).signo);
 #endif /* DEBUG_IRIX */
diff -r b858d59a8018 -r da9a653476ad sys/compat/irix/irix_syscall.h
--- a/sys/compat/irix/irix_syscall.h    Sun Feb 17 22:45:29 2002 +0000
+++ b/sys/compat/irix/irix_syscall.h    Sun Feb 17 22:49:53 2002 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: irix_syscall.h,v 1.22 2002/02/17 20:50:07 manu Exp $ */
+/* $NetBSD: irix_syscall.h,v 1.23 2002/02/17 22:49:54 manu Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.20 2002/02/04 20:26:34 manu Exp 
+ * created from        NetBSD: syscalls.master,v 1.21 2002/02/17 20:50:07 manu Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -274,6 +274,9 @@
 /* syscall: "mmap" ret: "void *" args: "void *" "svr4_size_t" "int" "int" "int" "svr4_off_t" */
 #define        IRIX_SYS_mmap   134
 
+/* syscall: "systeminfo" ret: "long" args: "int" "char *" "long" */
+#define        IRIX_SYS_systeminfo     156
+
 /* syscall: "xstat" ret: "int" args: "const int" "const char *" "struct stat *" */
 #define        IRIX_SYS_xstat  158
 
diff -r b858d59a8018 -r da9a653476ad sys/compat/irix/irix_syscallargs.h
--- a/sys/compat/irix/irix_syscallargs.h        Sun Feb 17 22:45:29 2002 +0000
+++ b/sys/compat/irix/irix_syscallargs.h        Sun Feb 17 22:49:53 2002 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: irix_syscallargs.h,v 1.22 2002/02/17 20:50:07 manu Exp $ */
+/* $NetBSD: irix_syscallargs.h,v 1.23 2002/02/17 22:49:54 manu Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.20 2002/02/04 20:26:34 manu Exp 
+ * created from        NetBSD: syscalls.master,v 1.21 2002/02/17 20:50:07 manu Exp 
  */
 
 #ifndef _IRIX_SYS__SYSCALLARGS_H_
@@ -27,64 +27,6 @@
                } be;                                                   \
        }
 
-struct svr4_sys_open_args {
-       syscallarg(const char *) path;
-       syscallarg(int) flags;
-       syscallarg(int) mode;
-};
-
-struct svr4_sys_creat_args {
-       syscallarg(const char *) path;
-       syscallarg(int) mode;
-};
-
-struct svr4_sys_execv_args {
-       syscallarg(const char *) path;
-       syscallarg(char **) argp;
-};
-
-struct svr4_sys_time_args {
-       syscallarg(svr4_time_t *) t;
-};
-
-struct svr4_sys_break_args {
-       syscallarg(caddr_t) nsize;
-};
-
-struct svr4_sys_alarm_args {
-       syscallarg(unsigned) sec;
-};
-
-struct svr4_sys_fstat_args {
-       syscallarg(int) fd;
-       syscallarg(struct svr4_stat *) sb;
-};
-
-struct svr4_sys_utime_args {
-       syscallarg(const char *) path;
-       syscallarg(struct svr4_utimbuf *) ubuf;
-};
-
-struct svr4_sys_access_args {
-       syscallarg(const char *) path;
-       syscallarg(int) flags;
-};
-
-struct svr4_sys_nice_args {
-       syscallarg(int) prio;
-};
-
-struct svr4_sys_kill_args {
-       syscallarg(int) pid;
-       syscallarg(int) signum;
-};
-
-struct svr4_sys_pgrpsys_args {
-       syscallarg(int) cmd;
-       syscallarg(int) pid;
-       syscallarg(int) pgid;
-};
-
 struct irix_sys_syssgi_args {
        syscallarg(int) request;
        syscallarg(void *) arg1;
@@ -94,39 +36,6 @@
        syscallarg(void *) arg5;
 };
 
-struct svr4_sys_times_args {
-       syscallarg(struct tms *) tp;
-};
-
-struct svr4_sys_msgsys_args {
-       syscallarg(int) what;
-       syscallarg(int) a2;
-       syscallarg(int) a3;
-       syscallarg(int) a4;
-       syscallarg(int) a5;
-};
-
-struct svr4_sys_shmsys_args {
-       syscallarg(int) what;
-       syscallarg(int) a2;
-       syscallarg(int) a3;
-       syscallarg(int) a4;
-};
-
-struct svr4_sys_semsys_args {
-       syscallarg(int) what;
-       syscallarg(int) a2;
-       syscallarg(int) a3;
-       syscallarg(int) a4;
-       syscallarg(int) a5;
-};
-
-struct svr4_sys_ioctl_args {
-       syscallarg(int) fd;
-       syscallarg(u_long) com;
-       syscallarg(caddr_t) data;
-};
-
 struct irix_sys_sysmp_args {
        syscallarg(int) cmd;
        syscallarg(void *) arg1;
@@ -135,30 +44,6 @@
        syscallarg(void *) arg4;
 };
 
-struct svr4_sys_utssys_args {
-       syscallarg(void *) a1;
-       syscallarg(void *) a2;
-       syscallarg(int) sel;
-       syscallarg(void *) a3;
-};
-
-struct svr4_sys_execve_args {
-       syscallarg(const char *) path;
-       syscallarg(char **) argp;
-       syscallarg(char **) envp;
-};
-
-struct svr4_sys_fcntl_args {
-       syscallarg(int) fd;
-       syscallarg(int) cmd;
-       syscallarg(char *) arg;
-};
-
-struct svr4_sys_ulimit_args {
-       syscallarg(int) cmd;
-       syscallarg(long) newlimit;
-};
-
 struct irix_sys_lseek64_args {
        syscallarg(int) fd;
        syscallarg(int) pad1;
@@ -179,46 +64,19 @@
        syscallarg(long) ticks;
 };
 
-struct svr4_sys_getmsg_args {
-       syscallarg(int) fd;
-       syscallarg(struct svr4_strbuf *) ctl;
-       syscallarg(struct svr4_strbuf *) dat;
-       syscallarg(int *) flags;
-};
-
-struct svr4_sys_putmsg_args {
-       syscallarg(int) fd;
-       syscallarg(struct svr4_strbuf *) ctl;
-       syscallarg(struct svr4_strbuf *) dat;
-       syscallarg(int) flags;
-};
-
 struct irix_sys_sigreturn_args {
        syscallarg(struct irix_sigreturna) isr;
 };
 
-struct svr4_sys_socket_args {
-       syscallarg(int) domain;
-       syscallarg(int) type;
-       syscallarg(int) protocol;
-};
-
-struct svr4_sys_gettimeofday_args {
-       syscallarg(struct timeval *) tp;
-};
-
 struct irix_sys_prctl_args {
        syscallarg(unsigned int) option;
        syscallarg(void *) arg1;
 };
 
-struct svr4_sys_mmap_args {
-       syscallarg(void *) addr;
-       syscallarg(svr4_size_t) len;
-       syscallarg(int) prot;
-       syscallarg(int) flags;
-       syscallarg(int) fd;
-       syscallarg(svr4_off_t) pos;
+struct irix_sys_systeminfo_args {
+       syscallarg(int) what;
+       syscallarg(char *) buf;
+       syscallarg(long) len;
 };
 
 struct irix_sys_xstat_args {
@@ -239,27 +97,6 @@
        syscallarg(struct stat *) buf;
 };
 
-struct svr4_sys_sigaction_args {
-       syscallarg(int) signum;
-       syscallarg(const struct svr4_sigaction *) nsa;
-       syscallarg(struct svr4_sigaction *) osa;
-};
-
-struct svr4_sys_sigpending_args {
-       syscallarg(int) what;
-       syscallarg(svr4_sigset_t *) set;
-};
-
-struct svr4_sys_sigprocmask_args {
-       syscallarg(int) how;
-       syscallarg(const svr4_sigset_t *) set;
-       syscallarg(svr4_sigset_t *) oset;
-};
-
-struct svr4_sys_sigsuspend_args {
-       syscallarg(const svr4_sigset_t *) set;
-};
-
 struct irix_sys_getcontext_args {
        syscallarg(irix_ucontext_t *) ucp;



Home | Main Index | Thread Index | Old Index