diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-14 21:14:39 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-17 21:09:18 -0500 |
commit | 04f288851aaaa7c085e27c9609a065f839ae042b (patch) | |
tree | 0fca3db1ca6898179bd0be7fdf35169e0a893c7b /newlib | |
parent | 069e400c913659432c5d1953c4fa9a696b06e340 (diff) | |
download | cygnal-04f288851aaaa7c085e27c9609a065f839ae042b.tar.gz cygnal-04f288851aaaa7c085e27c9609a065f839ae042b.tar.bz2 cygnal-04f288851aaaa7c085e27c9609a065f839ae042b.zip |
Feature test macros overhaul: sys/time.h
The inclusion of <sys/select.h> is required also by POSIX.1-2001.
setitimer is XSI, and futimesat is GNU.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/time.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 521be68db..326d1a6e4 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -43,7 +43,7 @@ #include <sys/types.h> #include <sys/timespec.h> -#if __BSD_VISIBLE +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #include <sys/select.h> #endif @@ -416,24 +416,27 @@ int tvtohz(struct timeval *tv); #include <sys/cdefs.h> __BEGIN_DECLS -int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value, - struct itimerval *__restrict __ovalue)); int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); #if __BSD_VISIBLE int _EXFUN(adjtime, (const struct timeval *, struct timeval *)); int _EXFUN(futimes, (int, const struct timeval *)); -int _EXFUN(futimesat, (int, const char *, const struct timeval [2])); int _EXFUN(lutimes, (const char *, const struct timeval *)); int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); #endif -#if __XSI_VISIBLE +#if __MISC_VISIBLE || __XSI_VISIBLE int _EXFUN(getitimer, (int __which, struct itimerval *__value)); +int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value, + struct itimerval *__restrict __ovalue)); int _EXFUN(gettimeofday, (struct timeval *__restrict __p, void *__restrict __tz)); #endif +#if __GNU_VISIBLE +int _EXFUN(futimesat, (int, const char *, const struct timeval [2])); +#endif + #ifdef _COMPILING_NEWLIB int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz)); #endif |