X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=include%2Fsys%2Ftime.h;h=cdc67ef650fe3cd758b579052df907f8b56baab6;hb=07616721f1fa6cb215ffbef23441cae80412484f;hp=bfe1414e86fbc5b95f87680d022c6042cdd175c0;hpb=ad87c2eecf70c6f2852a4908b04a6329cbebaf7d;p=musl diff --git a/include/sys/time.h b/include/sys/time.h index bfe1414e..cdc67ef6 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -10,15 +10,11 @@ extern "C" { int gettimeofday (struct timeval *__restrict, void *__restrict); -#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \ - || defined(_BSD_SOURCE) - #define ITIMER_REAL 0 #define ITIMER_VIRTUAL 1 #define ITIMER_PROF 2 -struct itimerval -{ +struct itimerval { struct timeval it_interval; struct timeval it_value; }; @@ -27,8 +23,6 @@ int getitimer (int, struct itimerval *); int setitimer (int, const struct itimerval *__restrict, struct itimerval *__restrict); int utimes (const char *, const struct timeval [2]); -#endif - #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) struct timezone { int tz_minuteswest; @@ -62,6 +56,20 @@ int adjtime (const struct timeval *, struct timeval *); (void)0 ) #endif +#if _REDIR_TIME64 +__REDIR(gettimeofday, __gettimeofday_time64); +__REDIR(getitimer, __getitimer_time64); +__REDIR(setitimer, __setitimer_time64); +__REDIR(utimes, __utimes_time64); +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +__REDIR(futimes, __futimes_time64); +__REDIR(futimesat, __futimesat_time64); +__REDIR(lutimes, __lutimes_time64); +__REDIR(settimeofday, __settimeofday_time64); +__REDIR(adjtime, __adjtime64); +#endif +#endif + #ifdef __cplusplus } #endif