X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Ftime.h;h=672b3fc3ee23d144ef3f605e7c20533db97cd1a8;hb=2fab90a71acd3698954c08b9062db67188443dd7;hp=16ec08aeb2b4c6a592d83b0005315d71d9602987;hpb=ab8f6a6e42ff893041f7545a23e6d6a0edde07fb;p=musl diff --git a/include/time.h b/include/time.h index 16ec08ae..672b3fc3 100644 --- a/include/time.h +++ b/include/time.h @@ -35,8 +35,7 @@ extern "C" { #define __tm_zone tm_zone #endif -struct tm -{ +struct tm { int tm_sec; int tm_min; int tm_hour; @@ -78,8 +77,7 @@ char *ctime_r (const time_t *, char *); void tzset (void); -struct itimerspec -{ +struct itimerspec { struct timespec it_interval; struct timespec it_value; }; @@ -113,6 +111,8 @@ int timer_settime (timer_t, int, const struct itimerspec *__restrict, struct iti int timer_gettime (timer_t, struct itimerspec *); int timer_getoverrun (timer_t); +extern char *tzname[2]; + #endif @@ -120,7 +120,6 @@ int timer_getoverrun (timer_t); char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict); extern int daylight; extern long timezone; -extern char *tzname[2]; extern int getdate_err; struct tm *getdate (const char *); #endif