ladybird/Libraries/LibC/times.cpp

10 lines
189 B
C++
Raw Normal View History

#include <Kernel/Syscall.h>
2019-06-07 11:49:03 +02:00
#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);
}