ladybird/Userland/Libraries/LibC/times.cpp

16 lines
299 B
C++
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
2019-06-07 12:49:03 +03:00
#include <errno.h>
#include <sys/times.h>
#include <syscall.h>
clock_t times(struct tms* buf)
{
int rc = syscall(SC_times, buf);
__RETURN_WITH_ERRNO(rc, rc, (clock_t)-1);
}