summaryrefslogtreecommitdiffstats
path: root/src/xtime.h
Commit message (Collapse)AuthorAgeFilesLines
* xtime: Add a wrapper for timer_create()/setitimer()Tavian Barnes13 days1-0/+23
| | | | | | setitimer() is obsolescent in POSIX 2008 and removed from POSIX 2024. However, at least macOS doesn't implement the new timer_create() API, so we still need the setitimer() fallback.
* Adjust in/out parameter docsTavian Barnes13 days1-7/+7
|
* Write @arg instead of @param arg in doc commentsTavian Barnes2024-10-011-6/+6
|
* xtime: Remove xgettime()Tavian Barnes2024-08-091-10/+0
| | | | clock_gettime() is available everywhere by now.
* xtime: Call tzset() from main() instead of lazilyTavian Barnes2024-03-071-24/+0
| | | | | | | | | | | | | 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
* 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/
* xtime: Move parse_gettime() to xgettime()Tavian Barnes2022-11-071-0/+10
|
* xtime: s/parse_timestamp/xgetdate/Tavian Barnes2022-11-071-1/+1
|
* Source / Include Folder (#88)トトも2022-04-161-0/+86
Moved Source Files Into `src` Folder