X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Ftime.h;h=cdc67ef650fe3cd758b579052df907f8b56baab6;hb=a0217a2ff78ce88fe90e3345d2ee35ab53e3901e;hp=e4b379aea85901146ae5ea4e1a1dccda4972d1e5;hpb=befa5866ee30d09c0c96e88af2eabff5911342ea;p=musl diff --git a/include/sys/time.h b/include/sys/time.h index e4b379ae..cdc67ef6 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -10,9 +10,6 @@ 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 @@ -26,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; @@ -61,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