HomeFreeBSD

libc: Improve description of mktime() / timegm().

Description

libc: Improve description of mktime() / timegm().

  • Mention that mktime() and timegm() set errno on failure.
  • Correctly determining whether mktime() / timegm() succeeded with arbitrary input (where -1 can be a valid result) is non-trivial. Document the recommended procedure.

PR: 277863
MFC after: 1 week
Reviewed by: pauamma_gundo.com, gbe
Differential Revision: https://reviews.freebsd.org/D44503

Details

Provenance
desAuthored on Mar 27 2024, 10:03 AM
Reviewer
pauamma_gundo.com
Differential Revision
D44503: libc: Improve description of mktime() / timegm().
Parents
rGd9a9f23d0b3f: diff: Integrate libdiff from OpenBSD GoT.
Branches
Unknown
Tags
Unknown