minix/lib/libc/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
..
__quotactl.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
_brk.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_exit.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_fork.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_getcontext.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_create.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
_lwp_ctl.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
_lwp_detach.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_exit.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_getname.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_getprivate.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_kill.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_park.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_self.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_setname.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_suspend.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_unpark.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_unpark_all.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_wait.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_lwp_wakeup.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_pipe.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_sbrk.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
accept.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
access.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
acct.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
adjtime.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
adjtime.c VFS: add ability to open files O_CLOEXEC 2013-02-28 10:08:53 +00:00
bind.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
brk.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
chdir.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
chflags.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
chmod.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
chown.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
chroot.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
clock_settime.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
clock_settime.c VFS: add ability to open files O_CLOEXEC 2013-02-28 10:08:53 +00:00
clone.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
close.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
connect.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
dup.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
execve.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
extattr_get_file.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
fcntl.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
fdatasync.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fhopen.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
flock.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
fork.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fsync.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ftruncate.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getcontext.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getdents.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getfh.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getgid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getgroups.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getitimer.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getlogin.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getpeername.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getpgrp.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getpid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getpriority.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getrlimit.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getrusage.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getsid.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getsockname.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
getsockopt.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
gettimeofday.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getuid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getvfsstat.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
intro.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ioctl.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
issetugid.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
kill.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
kqueue.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
ktrace.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lfs_bmapv.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lfs_markv.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lfs_segclean.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lfs_segwait.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
link.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
Lint___clone.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint___sigaction14.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint___syscall.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint___vfork14.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
Lint_brk.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_clone.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_exect.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_getcontext.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_pipe.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_ptrace.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_sbrk.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Lint_syscall.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
listen.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lseek.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lseek.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
madvise.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
Makefile.inc Implement getrusage 2013-07-01 23:00:47 +02:00
makelintstub Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mincore.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
minherit.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
mkdir.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
mkfifo.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
mknod.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mlock.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mlockall.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
mmap.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mmap.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
modctl.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mount.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mprotect.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
mremap.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
msgctl.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
msgget.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
msgrcv.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
msgsnd.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
msync.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
munmap.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
nanosleep.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
nfssvc.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ntp_adjtime.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ntp_adjtime.c VFS: add ability to open files O_CLOEXEC 2013-02-28 10:08:53 +00:00
open.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
pathconf.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
pipe.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
pmc_control.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
poll.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
posix_fadvise.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
posix_fadvise.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
posix_madvise.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
pread.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
preadv.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
profil.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ptrace.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
pwrite.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
pwritev.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
rasctl.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
read.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
readlink.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
reboot.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
recv.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
rename.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
revoke.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
rmdir.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sa_enable.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sa_register.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sa_setconcurrency.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sa_stacks.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sa_yield.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sched.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
select.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
semctl.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
semctl.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
semget.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
semop.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
send.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
setgroups.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setpgid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setregid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setreuid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setsid.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
settimeofday.c VFS: add ability to open files O_CLOEXEC 2013-02-28 10:08:53 +00:00
setuid.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shmat.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shmctl.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shmget.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shutdown.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigaction.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
sigaltstack.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
sigpending.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigprocmask.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigqueue.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigqueue.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigstack.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigsuspend.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigtimedwait.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
sigtimedwait.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigwait.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
sigwaitinfo.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
socket.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
socketpair.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
stat.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
statvfs.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
statvfs.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
swapctl.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
swapon.3 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
swapon.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
symlink.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sync.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sysarch.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
syscall.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
timer_create.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
timer_delete.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
timer_settime.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
truncate.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
truncate.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
umask.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
undelete.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
unlink.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
utimes.2 Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
utrace.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
uuidgen.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
vfork.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
wait.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
write.2 Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00