]> git.ipfire.org Git - thirdparty/glibc.git/commit
Demote ftime to a compat symbol; don’t install sys/timeb.h.
authorZack Weinberg <zackw@panix.com>
Sat, 17 Aug 2019 00:56:02 +0000 (20:56 -0400)
committerZack Weinberg <zackw@panix.com>
Mon, 6 Jan 2020 20:31:48 +0000 (15:31 -0500)
commit9ac2398ef958e164ecbb918547aa493818a22942
treea4f8e84d6b140e003009bf409457756f59802469
parentcbce69e70dc4b04fefcc7257e593733b8b03856c
Demote ftime to a compat symbol; don’t install sys/timeb.h.

ftime is an obsolete variation on gettimeofday, offering only
millisecond time resolution; it was probably a system call in ooold
versions of BSD Unix.  It is the only function declared by
sys/timeb.h.  It was deprecated in POSIX.1-2001 and removed from
POSIX.1-2008.  In glibc 2.31, we marked its declaration with
__attribute_deprecated__.

Demote it to a compat symbol and stop installing sys/timeb.h.
Remove the minimal test of it (time/tst-ftime.c).

Rename time/tst-ftime_l.c to tst-strftime_l.c; this test program has
never had anything to do with ftime, it tests strftime_l.
conform/Makefile
time/Makefile
time/ftime.c
time/sys/timeb.h [deleted file]
time/tst-ftime.c [deleted file]
time/tst-strftime_l.c [moved from time/tst-ftime_l.c with 100% similarity]