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 SGI_RUSAGE command to syssgi (this is ...



details:   https://anonhg.NetBSD.org/src/rev/532a20d56b2f
branches:  trunk
changeset: 538108:532a20d56b2f
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Oct 12 08:53:46 2002 +0000

description:
Added SGI_RUSAGE command to syssgi (this is a BSD rusage)

diffstat:

 sys/compat/irix/irix_syssgi.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r f1bb57dc6a04 -r 532a20d56b2f sys/compat/irix/irix_syssgi.c
--- a/sys/compat/irix/irix_syssgi.c     Sat Oct 12 08:42:21 2002 +0000
+++ b/sys/compat/irix/irix_syssgi.c     Sat Oct 12 08:53:46 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_syssgi.c,v 1.30 2002/09/27 15:37:04 provos Exp $ */
+/*     $NetBSD: irix_syssgi.c,v 1.31 2002/10/12 08:53:46 manu Exp $ */
 
 /*-
  * Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.30 2002/09/27 15:37:04 provos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.31 2002/10/12 08:53:46 manu Exp $");
 
 #include "opt_ddb.h"
 
@@ -165,6 +165,15 @@
                    (int)SCARG(uap, arg2), p, retval);
                break;
 
+       case IRIX_SGI_RUSAGE: { /* BSD getrusage(2) */
+               struct sys_getrusage_args cup;
+
+               SCARG(&cup, who) = (int)SCARG(uap, arg1);
+               SCARG(&cup, rusage) = (struct rusage *)SCARG(uap, arg2);
+               return sys_getrusage(p, &cup, retval);
+               break;
+       }
+
        case IRIX_SGI_RDNAME: { /* Read Processes' name */
                struct proc *tp;
 



Home | Main Index | Thread Index | Old Index