Skip to content

Commit

Permalink
options/posix: Stub clock_getcpuclockid
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Dec 13, 2024
1 parent 4b21d4f commit b8bf1a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions options/ansi/include/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ char *asctime_r(const struct tm *__tm, char *__buf);
char *ctime_r(const time_t *__timer, char *__buf);

#if __MLIBC_POSIX_OPTION
#include <abi-bits/pid_t.h>
char *strptime(const char *__restrict __buf, const char *__restrict __format,
struct tm *__restrict __tm);
int clock_getcpuclockid(pid_t __pid, clockid_t *__clockid);
#endif /* __MLIBC_POSIX_OPTION */

#endif /* !__MLIBC_ABI_ONLY */
Expand Down
5 changes: 5 additions & 0 deletions options/posix/generic/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,3 +503,8 @@ char *strptime(const char *__restrict s, const char *__restrict format, struct t

return result;
}

int clock_getcpuclockid(pid_t, clockid_t *) {
__ensure(!"Not implemented");
__builtin_unreachable();
}

0 comments on commit b8bf1a4

Please sign in to comment.