minix/servers/pm
Xiaoguang Sun 64f10ee644 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
2013-07-01 23:00:47 +02:00
..
alarm.c libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
break.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
const.h Fix a few compile time warnings 2010-07-02 12:41:19 +00:00
exec.c various warning/errorwarning fixes for gcc47 2012-08-27 16:19:18 +02:00
forkexit.c vm: fix a null dereference on out-of-memory 2012-11-09 18:36:51 +01:00
getset.c fix some warnings 2013-05-31 20:57:39 +00:00
glo.h No more intel/minix segments. 2012-07-15 22:30:15 +02:00
main.c Restore poweroff to some of it's former glory (on QEMU, at least) 2012-11-21 20:28:37 +01:00
Makefile Cleanup: Remove minix.bootprog.mk 2013-03-06 11:56:56 +01:00
mcontext.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
misc.c Implement getrusage 2013-07-01 23:00:47 +02:00
mproc.h Implement issetugid syscall 2011-11-28 10:03:43 +00:00
param.h libc: add adjtime() system call. 2013-04-04 15:04:54 +02:00
pm.h Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
profile.c profiling related cleanup 2012-07-15 21:56:55 +02:00
proto.h Implement getrusage 2013-07-01 23:00:47 +02:00
schedule.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
signal.c PM: do not panic if sys_sigsend returns ENOMEM 2012-11-09 16:11:02 +00:00
table.c Implement getrusage 2013-07-01 23:00:47 +02:00
time.c libc: add adjtime() system call. 2013-04-04 15:04:54 +02:00
trace.c drop from segments physcopy/vircopy invocations 2012-06-18 12:28:40 +00:00
type.h Removed 'system process' magic from PM and FS. 2005-05-13 08:57:08 +00:00
utility.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00