Skip to content

Commit

Permalink
options/ansi: Implement clock_nanosleep naively
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Dec 5, 2023
1 parent 85862a4 commit 4f099d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions options/ansi/generic/time-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,9 @@ int clock_gettime(clockid_t clock, struct timespec *time) {
return 0;
}

int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *) {
__ensure(!"clock_nanosleep() not implemented");
__builtin_unreachable();
int clock_nanosleep(clockid_t, int, const struct timespec *req, struct timespec *) {
mlibc::infoLogger() << "clock_nanosleep is implemented as nanosleep!" << frg::endlog;
return nanosleep(req, nullptr);
}

int clock_settime(clockid_t, const struct timespec *) {
Expand Down

0 comments on commit 4f099d2

Please sign in to comment.