From 83c8b58d93f7d2a9f0775dbac575d332398e0218 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 16 Apr 2017 13:07:51 +0200 Subject: [PATCH] : For clarity, add prototypes (in #if 0) for missing functions. --- include/time.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/time.h b/include/time.h index 23699e6cf0..665ed72093 100644 --- a/include/time.h +++ b/include/time.h @@ -151,7 +151,9 @@ char *asctime(const struct tm *); clock_t clock(void); char *ctime(const time_t *); double difftime(time_t, time_t); -/* XXX missing: getdate() */ +#if 0 /* XXX missing */ +struct tm *getdate(const char *); +#endif struct tm *gmtime(const time_t *); struct tm *localtime(const time_t *); time_t mktime(struct tm *); @@ -167,7 +169,6 @@ void tzset(void); int clock_getres(clockid_t, struct timespec *); int clock_gettime(clockid_t, struct timespec *); int clock_settime(clockid_t, const struct timespec *); -/* XXX missing: clock_nanosleep() */ int nanosleep(const struct timespec *, struct timespec *); #endif /* __POSIX_VISIBLE >= 199309 */ @@ -182,6 +183,7 @@ struct tm *localtime_r(const time_t *, struct tm *); #if 0 /* XXX missing */ struct sigevent; int clock_getcpuclockid(pid_t, clockid_t *); +int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); int timer_create(clockid_t, struct sigevent *__restrict, timer_t *__restrict); int timer_delete(timer_t); int timer_gettime(timer_t, struct itimerspec *); -- 2.11.4.GIT