2018-11-05 13:40:48 -02:00
|
|
|
#include <sys/times.h>
|
2018-12-02 22:12:26 -02:00
|
|
|
#include <errno.h>
|
|
|
|
|
#include <Kernel/Syscall.h>
|
2018-11-05 13:40:48 -02:00
|
|
|
|
2018-12-02 22:12:26 -02:00
|
|
|
clock_t times(struct tms* buf)
|
2018-11-05 13:40:48 -02:00
|
|
|
{
|
2018-12-02 22:12:26 -02:00
|
|
|
int rc = Syscall::invoke(Syscall::SC_times, (dword)buf);
|
|
|
|
|
__RETURN_WITH_ERRNO(rc, rc, (clock_t)-1);
|
2018-11-05 13:40:48 -02:00
|
|
|
}
|