X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Ftime.h;h=98d0111f58f0cfd67021af234c262ecdf39745a5;hb=ba6a9e7734aaff8f4e7d49b888f9dd1954bc92b1;hp=a9e1d8fad79d9ad777c1c1afc23275572bf5307a;hpb=131b5be2f44012ae952f5883e13c1ae72ce3b033;p=musl diff --git a/include/time.h b/include/time.h index a9e1d8fa..98d0111f 100644 --- a/include/time.h +++ b/include/time.h @@ -13,6 +13,7 @@ extern "C" { #endif +#define __NEED_size_t #define __NEED_time_t #define __NEED_clock_t @@ -21,8 +22,8 @@ extern "C" { #define __NEED_struct_timespec #define __NEED_clockid_t #define __NEED_timer_t -#define __NEED_size_t #define __NEED_pid_t +#define __NEED_locale_t #endif #include @@ -58,6 +59,8 @@ char *ctime (const time_t *); #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +size_t strftime_l (char *, size_t, const char *, const struct tm *, locale_t); + struct tm *gmtime_r (const time_t *, struct tm *); struct tm *localtime_r (const time_t *, struct tm *); char *asctime_r (const struct tm *, char *); @@ -85,7 +88,6 @@ int clock_settime (clockid_t, const struct timespec *); int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); int clock_getcpuclockid (pid_t, clockid_t *); -/* FIXME..?? */ struct sigevent; int timer_create (clockid_t, struct sigevent *, timer_t *); int timer_delete (timer_t); @@ -102,7 +104,12 @@ extern int daylight; extern long timezone; extern char *tzname[2]; extern int getdate_err; -extern struct tm *getdate (const char *); +struct tm *getdate (const char *); +#endif + + +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +int stime(time_t *); #endif