times.cpp 299 B

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