Serenity Operating System
at master 15 lines 299 B view raw
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}