Wrap time: clock_gettime, localtime_r, strftime and the rest #13

Open
opened 2026-08-02 18:53:26 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md §4.2 (at 669b2b3)

  • time, clock_gettime, clock_getres, gettimeofday
  • localtime_r, gmtime_r, mktime, timegm, difftime
  • strftime, strptime
  • clock, times

strftime(3) returns 0 for both "the output was empty" and "it did not fit",
which is the bounded-write ambiguity aksl_snprintf already resolves -- so the
resolution is already designed, it just has to be applied here.

Files: src/, include/akstdlib.h


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md §4.2 (at 669b2b3) - [ ] `time`, `clock_gettime`, `clock_getres`, `gettimeofday` - [ ] `localtime_r`, `gmtime_r`, `mktime`, `timegm`, `difftime` - [ ] `strftime`, `strptime` - [ ] `clock`, `times` **`strftime(3)` returns 0 for both "the output was empty" and "it did not fit"**, which is the bounded-write ambiguity `aksl_snprintf` already resolves -- so the resolution is already designed, it just has to be applied here. **Files:** `src/`, `include/akstdlib.h` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.3.0 milestone 2026-08-02 18:53:26 -04:00
tachikoma added the api-gapblast-radius:mediumstatus::grooming labels 2026-08-02 18:53:26 -04:00
Sign in to join this conversation.