diff options
author | Elliott Hughes <enh@google.com> | 2023-06-20 15:36:11 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2023-06-22 09:51:01 -0700 |
commit | 31fc69f67fc49b1a08f5561ae62d098106da6565 (patch) | |
tree | 9f784d9239cae9d4dea25a6d7ee2e36df19ba07d /docs | |
parent | a43db276fdfa997e54b4edfda848d071c039ea92 (diff) | |
download | bionic-31fc69f67fc49b1a08f5561ae62d098106da6565.tar.gz |
Fix tzalloc(nullptr) and add a test.
This works (by reading /etc/localtime) on NetBSD, but not on Android
since we have no such file. Fix that by using our equivalent system
property instead.
Also s/time zone/timezone/ in documentation and comments. We've always
been inconsistent about this (as is upstream in code comments and
documentation) but it seems especially odd now we expose a _type_ that
spells it "timezone" to talk of "time zone" even as we're describing
that type and its associated functions.
Bug: https://github.com/chronotope/chrono/issues/499
Test: treehugger
Change-Id: I142995a3ab4deff1073a0aa9e63ce8eac850b93d
Diffstat (limited to 'docs')
-rw-r--r-- | docs/status.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/status.md b/docs/status.md index 308c35434..1838b85f0 100644 --- a/docs/status.md +++ b/docs/status.md @@ -59,7 +59,7 @@ New libc functions in V (API level 35): * `timespec_getres` (C23 addition). * `localtime_rz`, `mktime_z`, `tzalloc`, and `tzfree` (NetBSD extensions implemented in tzcode, and the "least non-standard" - functions for avoiding $TZ if you need to use multiple time zones in + functions for avoiding $TZ if you need to use multiple timezones in multi-threaded C). * `mbsrtowcs_l` and `wcsrtombs_l` aliases for `mbsrtowcs` and `wcsrtombs`. |