summaryrefslogtreecommitdiff
path: root/include/time.h
AgeCommit message (Collapse)AuthorLines
2012-09-07default features: make musl usable without feature test macrosRich Felker-5/+1
the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
2012-09-06use restrict everywhere it's required by c99 and/or posix 2008Rich Felker-8/+14
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2012-06-13revert one change in time.h; no evidence BSD_SOURCE should expose these..Rich Felker-1/+1
2012-06-13fix feature test macros in time.hRich Felker-5/+2
stime is not _XOPEN_SOURCE, and some functions were missing with _BSD_SOURCE..
2012-06-13add timegm function (inverse of gmtime), nonstandardRich Felker-0/+3
2012-05-22support _BSD_SOURCE feature test macroRich Felker-2/+4
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
2012-04-18legacy junk compatibility grab-bagRich Felker-0/+5
- add the rest of the junk traditionally in sys/param.h - add prototypes for some nonstandard functions - add _GNU_SOURCE to their source files so the compiler can check proto
2012-02-06more locale_t interfaces (string stuff) and header updatesRich Felker-0/+3
this should be everything except for some functions where the non-_l version isn't even implemented yet (mainly some non-ISO-C wcs* functions).
2011-09-26cleanup various minor issues reported by nszRich Felker-1/+0
the changes to syscall_ret are mostly no-ops in the generated code, just cleanup of type issues and removal of some implementation-defined behavior. the one exception is the change in the comparison value, which is fixed so that 0xf...f000 (which in principle could be a valid return value for mmap, although probably never in reality) is not treated as an error return.
2011-09-13fix various errors in function signatures/prototypes found by nszRich Felker-1/+1
2011-02-15fix another error from header cleanup, missing size_t in time.hRich Felker-1/+1
2011-02-14more header cleanup and conformance fixes - locale.h, time.hRich Felker-34/+35
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+113