From 688bdd6550c82df363b157ec5f3a89cbd5a21abb Mon Sep 17 00:00:00 2001 From: das Date: Sat, 14 Mar 2009 19:15:13 +0000 Subject: Namespace: adjtime(), futimes(), futimesat(), lutimes(), and settimeofday() are BSD extensions. Also include in user code, since this header is also supposed to define most of the symbols there. --- sys/sys/time.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'sys/sys/time.h') diff --git a/sys/sys/time.h b/sys/sys/time.h index 7512840..0185c31 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -316,17 +316,25 @@ int tvtohz(struct timeval *tv); #include #include +#include __BEGIN_DECLS +int setitimer(int, const struct itimerval *, struct itimerval *); +int utimes(const char *, const struct timeval *); + +#if __BSD_VISIBLE int adjtime(const struct timeval *, struct timeval *); int futimes(int, const struct timeval *); -int getitimer(int, struct itimerval *); -int gettimeofday(struct timeval *, struct timezone *); +int futimesat(int, const char *, const struct timeval [2]); int lutimes(const char *, const struct timeval *); -int setitimer(int, const struct itimerval *, struct itimerval *); int settimeofday(const struct timeval *, const struct timezone *); -int utimes(const char *, const struct timeval *); -int futimesat(int, const char *, const struct timeval [2]); +#endif + +#if __XSI_VISIBLE +int getitimer(int, struct itimerval *); +int gettimeofday(struct timeval *, struct timezone *); +#endif + __END_DECLS #endif /* !_KERNEL */ -- cgit v1.1