minix/sys/sys
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
..
ansi.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
atomic.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
bitops.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
boot_flag.h Remove libkern, leave just header. 2012-02-09 18:54:42 +01:00
bootblock.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
bswap.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
cdefs.h Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
cdefs_aout.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
cdefs_elf.h LLVM bitcode for almost the whole source tree 2013-06-18 10:49:53 +02:00
condvar.h Remove libkern, leave just header. 2012-02-09 18:54:42 +01:00
ctype_bits.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ctype_inline.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
dirent.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
disk.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
disklabel.h Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
disklabel_acorn.h ARM updates 2013-01-17 10:03:58 +01:00
disklabel_gpt.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
dkbad.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
dkio.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
endian.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
errno.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
exec.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
exec_elf.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
extattr.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
fcntl.h utimens(2) system call 2013-04-12 18:55:39 +00:00
fd_set.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
featuretest.h Compatibility check for autotools 2013-02-26 09:44:25 +00:00
file.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
float_ieee754.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
fstypes.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
gcq.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
gmon.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
hash.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ieee754.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
inttypes.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ioccom.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ioctl.h fb: introduce framebuffer support to Minix 2013-02-21 10:29:08 +00:00
iostat.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ipc.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
localedef.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
lock.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
lwp.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
Makefile ARM updates 2013-01-17 10:03:58 +01:00
md4.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
md5.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
mman.h vfs: mmap support 2013-05-31 15:42:00 +00:00
mount.h Downgrading to netbsd zlib version 2013-04-09 16:43:13 +02:00
mtio.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
mutex.h Remove libkern, leave just header. 2012-02-09 18:54:42 +01:00
null.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
param.h ARM updates 2013-01-17 10:03:58 +01:00
poll.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ptrace.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ptree.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
queue.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
ras.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
rbtree.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
reboot.h Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
resource.h Implement getrusage 2013-07-01 23:00:47 +02:00
rmd160.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
rwlock.h Remove libkern, leave just header. 2012-02-09 18:54:42 +01:00
select.h Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
sem.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
sha1.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
sha2.h Add mk and h files needed for cross compilation 2012-06-18 10:53:37 +00:00
shm.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
siginfo.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
signal.h Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
sigtypes.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
socket.h Downgrading to netbsd zlib version 2013-04-09 16:43:13 +02:00
specificdata.h Removing useless minix/types.h header 2012-12-07 13:58:06 +01:00
stat.h utimens(2) system call 2013-04-12 18:55:39 +00:00
statvfs.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
stdarg.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
stdint.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
sysctl.h Remove obsolete warning in sys/sys/sysctl header 2013-04-05 13:24:18 +02:00
syslimits.h Downgrading to netbsd zlib version 2013-04-09 16:43:13 +02:00
syslog.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
termios.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
time.h utimens(2) system call 2013-04-12 18:55:39 +00:00
times.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
tls.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
tree.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ttycom.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ttydefaults.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
types.h Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
ucontext.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
ucred.h Spring cleanup 2013-03-06 09:56:08 +00:00
uio.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
un.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
unistd.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
utsname.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
uuid.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00
wait.h Moving all NetBSD headers back where they belong. 2013-01-14 11:36:25 +01:00