ftime.3: glibc 2.33 has removed ftime()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-10-24 19:24:01 +02:00
parent c751bb1e0f
commit 37fac7c6b2
1 changed files with 10 additions and 2 deletions

View File

@ -36,8 +36,7 @@ ftime \- return date and time
.BI "int ftime(struct timeb *" tp ); .BI "int ftime(struct timeb *" tp );
.SH DESCRIPTION .SH DESCRIPTION
.BR NOTE : .BR NOTE :
This function is deprecated, and will be removed in a future version of This function is no longer provided by the GNU C library.
the GNU C library.
Use Use
.BR clock_gettime (2) .BR clock_gettime (2)
instead. instead.
@ -74,6 +73,15 @@ fields are unspecified; avoid relying on them.
.SH RETURN VALUE .SH RETURN VALUE
This function always returns 0. This function always returns 0.
(POSIX.1-2001 specifies, and some systems document, a \-1 error return.) (POSIX.1-2001 specifies, and some systems document, a \-1 error return.)
.SH VERSIONS
Starting with glibc 2.33, the
.BR ftime ()
function and the
.I <sys/timeb.h>
header have been removed.
To support old binaries,
glibc contines to provide a compatibility symbol for
applications linked against glibc 2.32 and earlier.
.SH ATTRIBUTES .SH ATTRIBUTES
For an explanation of the terms used in this section, see For an explanation of the terms used in this section, see
.BR attributes (7). .BR attributes (7).