summaryrefslogtreecommitdiffstats
path: root/src/xtime.c
Commit message (Collapse)AuthorAgeFilesLines
* xtime: Don't use timegm() on FreeBSD+msanTavian Barnes2024-05-061-1/+3
|
* xtime: Use the libc's timegm() if presentTavian Barnes2024-05-061-3/+33
|
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* xtime: Don't update tm if xtimegm() overflowsTavian Barnes2024-03-261-29/+33
|
* Re-run include-what-you-useTavian Barnes2024-03-111-1/+0
|
* tests/xtime: Add tests for integer overflowTavian Barnes2024-03-101-1/+3
|
* xtime: Call tzset() from main() instead of lazilyTavian Barnes2024-03-071-33/+1
| | | | | | | | | | | | | POSIX specifies[1] that If a thread accesses tzname, daylight, or timezone directly while another thread is in a call to tzset(), or to any function that is required or allowed to set timezone information as if by calling tzset(), the behavior is undefined. So calling it lazily from arbitrary threads is risky. [1]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tzset.html
* xtime: Fix some xgetdate() bugsTavian Barnes2024-02-281-9/+24
| | | | And add some more test cases.
* Formatting fixesTavian Barnes2023-09-271-6/+6
|
* xtime: Make lazy tzset() call thread-safeTavian Barnes2023-06-121-10/+12
|
* config: Provide <stdalign.h> and <stdbool.h>Tavian Barnes2023-05-111-1/+1
| | | | In anticipation of C23, since those headers won't be necessary any more.
* Replace license boilerplate with SPDX tagsTavian Barnes2023-01-251-15/+2
| | | | | | | And while I'm at it, remove years from copyright declarations. Link: https://spdx.dev/about/ Link: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/
* tests/xtouch: Add some missing POSIX touch featuresTavian Barnes2022-11-081-1/+1
|
* xtime: Move parse_gettime() to xgettime()Tavian Barnes2022-11-071-0/+16
|
* xtime: s/parse_timestamp/xgetdate/Tavian Barnes2022-11-071-10/+10
|
* Source / Include Folder (#88)トトも2022-04-161-0/+323
Moved Source Files Into `src` Folder