about summary refs log tree commit diff
path: root/include/time.h
Commit message (Collapse)AuthorAgeFilesLines
* default features: make musl usable without feature test macrosRich Felker2012-09-071-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.
* use restrict everywhere it's required by c99 and/or posix 2008Rich Felker2012-09-061-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.
* revert one change in time.h; no evidence BSD_SOURCE should expose these..Rich Felker2012-06-131-1/+1
|
* fix feature test macros in time.hRich Felker2012-06-131-5/+2
| | | | | stime is not _XOPEN_SOURCE, and some functions were missing with _BSD_SOURCE..
* add timegm function (inverse of gmtime), nonstandardRich Felker2012-06-131-0/+3
|
* support _BSD_SOURCE feature test macroRich Felker2012-05-221-2/+4
| | | | | patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
* legacy junk compatibility grab-bagRich Felker2012-04-181-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
* more locale_t interfaces (string stuff) and header updatesRich Felker2012-02-061-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).
* cleanup various minor issues reported by nszRich Felker2011-09-261-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.
* fix various errors in function signatures/prototypes found by nszRich Felker2011-09-131-1/+1
|
* fix another error from header cleanup, missing size_t in time.hRich Felker2011-02-151-1/+1
|
* more header cleanup and conformance fixes - locale.h, time.hRich Felker2011-02-141-34/+35
|
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+113