Serenity Operating System
1/*
2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <errno.h>
8#include <sys/times.h>
9#include <syscall.h>
10
11clock_t times(struct tms* buf)
12{
13 int rc = syscall(SC_times, buf);
14 __RETURN_WITH_ERRNO(rc, rc, (clock_t)-1);
15}