ladybird/LibC/times.cpp

10 lines
189 B
C++
Raw Normal View History

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