]> Zhao Yanbai Git Server - minix.git/commit
Implement getrusage 69/669/2
authorXiaoguang Sun <sun.xiaoguang@yoyosys.com>
Tue, 25 Jun 2013 12:41:01 +0000 (20:41 +0800)
committerGerrit Code Review <gerrit@gerrit>
Mon, 1 Jul 2013 21:00:47 +0000 (23:00 +0200)
commit64f10ee64496e37d4791fc7ea2ab1edd759e630c
treef9ca2556d167ab2dfb158ce327fc44b759b2c983
parent4241cc5d98e54db1f2b0c34883cf079dcde913d1
Implement getrusage

Implement getrusage.
These fields of struct rusage are not supported and always set to zero at this time
long ru_nswap;           /* swaps */
long ru_inblock;         /* block input operations */
long ru_oublock;         /* block output operations */
long ru_msgsnd;          /* messages sent */
long ru_msgrcv;          /* messages received */
long ru_nvcsw;           /* voluntary context switches */
long ru_nivcsw;          /* involuntary context switches */

test75.c is the unit test for this new function

Change-Id: I3f1eb69de1fce90d087d76773b09021fc6106539
41 files changed:
distrib/sets/lists/minix/mi
include/minix/callnr.h
include/minix/com.h
include/minix/syslib.h
kernel/proc.c
kernel/proc.h
kernel/proto.h
kernel/system.c
kernel/system/do_fork.c
kernel/system/do_getinfo.c
lib/libc/sys-minix/Makefile.inc
lib/libc/sys-minix/getrusage.c [new file with mode: 0644]
lib/libc/sys/Makefile.inc
lib/libexec/exec_elf.c
lib/libexec/libexec.h
servers/pm/misc.c
servers/pm/proto.h
servers/pm/table.c
servers/vfs/exec.c
servers/vfs/fproc.h
servers/vfs/misc.c
servers/vfs/proto.h
servers/vfs/table.c
servers/vm/exit.c
servers/vm/main.c
servers/vm/mem_anon.c
servers/vm/mem_anon_contig.c
servers/vm/mem_cache.c
servers/vm/mem_directphys.c
servers/vm/mem_file.c
servers/vm/mem_shared.c
servers/vm/memtype.h
servers/vm/pagefaults.c
servers/vm/proto.h
servers/vm/region.c
servers/vm/utility.c
servers/vm/vmproc.h
sys/sys/resource.h
test/Makefile
test/run
test/test75.c [new file with mode: 0644]