libc: Add nanosleep() for mesa

This commit is contained in:
Alexander van der Grinten 2017-12-13 20:25:23 +01:00
parent a4f646d694
commit a0a66c39c3
2 changed files with 7 additions and 0 deletions

View file

@ -70,6 +70,8 @@ size_t strftime(char *__restrict dest, size_t max_size,
extern "C" { extern "C" {
#endif #endif
int nanosleep(const struct timespec *, struct timespec *);
int clock_getres(clockid_t, struct timespec *); int clock_getres(clockid_t, struct timespec *);
int clock_gettime(clockid_t, struct timespec *); int clock_gettime(clockid_t, struct timespec *);
int clock_settime(clockid_t, const struct timespec *); int clock_settime(clockid_t, const struct timespec *);

View file

@ -45,6 +45,11 @@ size_t strftime(char *__restrict dest, size_t max_size,
// POSIX extensions. // POSIX extensions.
int nanosleep(const struct timespec *, struct timespec *) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
int clock_getres(clockid_t, struct timespec *) { int clock_getres(clockid_t, struct timespec *) {
__ensure(!"Not implemented"); __ensure(!"Not implemented");
__builtin_unreachable(); __builtin_unreachable();