mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
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>
This commit is contained in:
parent
069e400c91
commit
04f288851a
@ -43,7 +43,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/timespec.h>
|
#include <sys/timespec.h>
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -416,24 +416,27 @@ int tvtohz(struct timeval *tv);
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__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));
|
int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp));
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
int _EXFUN(adjtime, (const struct timeval *, struct timeval *));
|
int _EXFUN(adjtime, (const struct timeval *, struct timeval *));
|
||||||
int _EXFUN(futimes, (int, const 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(lutimes, (const char *, const struct timeval *));
|
||||||
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
|
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
#if __MISC_VISIBLE || __XSI_VISIBLE
|
||||||
int _EXFUN(getitimer, (int __which, struct itimerval *__value));
|
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,
|
int _EXFUN(gettimeofday, (struct timeval *__restrict __p,
|
||||||
void *__restrict __tz));
|
void *__restrict __tz));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GNU_VISIBLE
|
||||||
|
int _EXFUN(futimesat, (int, const char *, const struct timeval [2]));
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _COMPILING_NEWLIB
|
#ifdef _COMPILING_NEWLIB
|
||||||
int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz));
|
int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user