summaryrefslogtreecommitdiff
path: root/LibC/times.cpp
blob: 0fe57c1a9eaa78dd5522814ef762ac50da0a1dd0 (plain)
1
2
3
4
5
6
7
8
9
#include <sys/times.h>
#include <errno.h>
#include <Kernel/Syscall.h>

clock_t times(struct tms* buf)
{
    int rc = Syscall::invoke(Syscall::SC_times, (dword)buf);
    __RETURN_WITH_ERRNO(rc, rc, (clock_t)-1);
}