NetBSD has tzalloc(3), which returns NULL to report invalid tme zones. Cc: Paul Eggert <eggert@xxxxxxxxxxx> Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx> --- Range-diff against v0: -: --------- > 1: 72da4dab9 tzset.3: CAVEATS: Document the inability of tzset() to report errors man/man3/tzset.3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man/man3/tzset.3 b/man/man3/tzset.3 index 701cebee5..91136ff86 100644 --- a/man/man3/tzset.3 +++ b/man/man3/tzset.3 @@ -278,6 +278,9 @@ .SH CAVEATS .I tm_zone members of the broken-down time structure .BR tm (3type). +.P +This function does not report errors. +There's no way to know if the value of TZ represents a valid time zone. .SH SEE ALSO .BR date (1), .BR gettimeofday (2), base-commit: bd576aaf5fce40100133c1d48c02eacbf25594c8 -- 2.45.2
Attachment:
signature.asc
Description: PGP signature