Go to file
Zack Weinberg 2b5fea833b Consolidate and deprecate ftime
ftime is an obsolete variation on gettimeofday, offering only
millisecond time resolution; it was probably a system call in ooold
versions of BSD Unix.  For historic reasons, we had three
implementations of it.  These are all consolidated into time/ftime.c,
and then the function is deprecated.

For some reason, the implementation of ftime in terms of gettimeofday
was rounding rather than truncating microseconds to milliseconds.  In
all the other places where we use a higher-resolution time function to
implement a lower-resolution one, we truncate.  ftime is changed to
match, just for tidiness' sake.

Like gettimeofday, ftime tries to report the time zone, and using that
information is always a bug.  This patch dummies out the reported
timezone information; the timezone and dstflag fields of the
returned "struct timeb" will always be zero.

Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
powerpc64-linux-gnu, and powerpc-linux-gnu.

Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
2019-10-30 17:11:10 -03:00
argp
assert
benchtests
bits Define __STATFS_MATCHES_STATFS64 2019-10-24 09:14:26 -07:00
catgets
ChangeLog.old Undo accidental commit to ChangeLog.19. 2019-10-18 16:09:10 -04:00
conform sysvipc: Set ipc_perm mode as mode_t (BZ#18231) 2019-10-10 17:33:27 -03:00
crypt
csu
ctype
debug
dirent
dlfcn dlfcn: Remove remnants of caller sensitivity from dlinfo 2019-10-16 18:21:30 +02:00
elf elf: Use nocancel pread64() instead of lseek()+read() 2019-10-18 15:55:33 -04:00
gmon
gnulib
grp
gshadow
hesiod
htl
hurd time: Introduce function to check correctness of nanoseconds value 2019-10-27 21:49:25 +01:00
iconv
iconvdata
include Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
inet Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
intl
io time: Introduce function to check correctness of nanoseconds value 2019-10-27 21:49:25 +01:00
libio
locale loadarchive: guard against locale-archive corruption (Bug #25115) 2019-10-18 20:40:54 -04:00
localedata Add Transliterations for Unicode Misc. Mathematical Symbols-A/B [BZ #23132] 2019-10-25 19:45:55 +02:00
login Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
mach
malloc
manual manual: Remove warning in the documentation of the abort function 2019-10-11 20:15:24 +02:00
math Remove x64 _finite tests and references 2019-10-21 14:29:12 -03:00
mathvec
misc Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
nis Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
nptl Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
nptl_db
nscd Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
nss Comment out initgroups from example nsswitch.conf (Bug 25146) 2019-10-29 13:08:24 -04:00
po
posix posix: Use posix_spawn for wordexp 2019-10-09 17:48:41 -03:00
pwd
resolv Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
string Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
sunrpc Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
support Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
sysdeps Consolidate and deprecate ftime 2019-10-30 17:11:10 -03:00
sysvipc Remove libc_hidden_def from __semtimedop stub 2019-10-17 21:36:34 +02:00
termios
time Consolidate and deprecate ftime 2019-10-30 17:11:10 -03:00
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in sparc: Assume GOTDATA support in the toolchain 2019-10-09 19:15:33 +02:00
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile Install charmaps uncompressed in testroot 2019-10-24 17:01:04 -04:00
Makefile.help Add run-one-test convenience target and makefile help text 2019-10-18 15:46:04 -04:00
Makefile.in
Makerules
NEWS Consolidate and deprecate ftime 2019-10-30 17:11:10 -03:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.