serenity/LibC/times.cpp
2019-06-07 11:49:03 +02:00

9 lines
189 B
C++

#include <Kernel/Syscall.h>
#include <errno.h>
#include <sys/times.h>
clock_t times(struct tms* buf)
{
int rc = syscall(SC_times, buf);
__RETURN_WITH_ERRNO(rc, rc, (clock_t)-1);
}