]> git.ipfire.org Git - thirdparty/man-pages.git/commit
timegm.3: Remove recommendation against their use
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 11 Oct 2021 11:04:02 +0000 (13:04 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Mon, 2 May 2022 21:37:17 +0000 (23:37 +0200)
commitcd17331558a012324ff52b834de2b037fa69c82c
tree2e53eca29cc070906419ae079970127b209a4eae
parentd7ba612d0ab10af2ed4e367306784212cc3f3595
timegm.3: Remove recommendation against their use

It was straight after a note that they are nonstandard functions,
which already tells the user that if portability is in mind, they
shouldn't be used, so this recommendation adds nothing in that
sense.

Also, there's a note that timelocal() should _never_ be used, due
to mktime() being identical and in the POSIX standard (it is also
in C99), so this note would also add nothing in that sense.

So the only uses not covered by those other notes are non-portable
uses of timegm(3).  In that scenario, it is an excellent function.

Cc: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/timegm.3