diff options
Diffstat (limited to 'Libraries/LibC/times.cpp')
-rw-r--r-- | Libraries/LibC/times.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibC/times.cpp b/Libraries/LibC/times.cpp new file mode 100644 index 0000000000..76301ec0e0 --- /dev/null +++ b/Libraries/LibC/times.cpp @@ -0,0 +1,9 @@ +#include <Kernel/Syscall.h> +#include <errno.h> +#include <sys/times.h> + +clock_t times(struct tms* buf) +{ + int rc = syscall(SC_times, buf); + __RETURN_WITH_ERRNO(rc, rc, (clock_t)-1); +} |