glibc/misc
Adhemerval Zanella f9a7554009 Change most internal uses of time to __clock_gettime.
As for gettimeofday, time will be implemented based on clock_gettime
on all platforms and internal code should use clock_gettime
directly.  In addition to removing a layer of indirection, this will
allow us to remove the PLT-bypass gunk for gettimeofday.

The changed code always assumes __clock_gettime (CLOCK_REALTIME)
or __clock_gettime (CLOCK_REALTIME_COARSE) (for Linux case) cannot
fail, using the same rationale for gettimeofday change.  And internal
helper was added (time_now).

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

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2019-10-30 17:11:10 -03:00
..
bits Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sys Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
acct.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
allocate_once.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ar.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
brk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug18240.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug-hsearch1.c
chflags.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
chroot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
daemon.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
dirname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
efgcvt_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
efgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
err.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
err.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
error.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
error.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fchflags.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fdatasync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fgetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
flistxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fremovexattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fsetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fstab.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fstab.h
fsync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ftruncate64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ftruncate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
futimes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
futimesat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getauxval.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getclktck.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getdomain.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getdtsz.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gethostid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gethostname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getloadavg.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getpagesize.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getpass.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getsysstats.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getttyent.c Fix -Os getc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:01:11 +00:00
getusershell.c
getxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gtty.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hsearch_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ifunc-impl-list.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
init-misc.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
insremque.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lgetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
libgen.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
listxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
llistxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lremovexattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lsetxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lutimes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
madvise.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
makedev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Makefile Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mincore.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkdtemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemp64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemps64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkostemps.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemp64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemps64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mkstemps.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mktemp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mlockall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mmap64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mmap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mntent_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mntent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mntent.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mprotect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
msync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
munlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
munlockall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
munmap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv64v2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
preadv.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pselect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ptrace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev64v2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
pwritev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
qefgcvt_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
qefgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
readv.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
reboot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
regexp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
regexp.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
remap_file_pages.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
removexattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
revoke.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sbrk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
search.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
select.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setdomain.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setegid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
seteuid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sethostid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sethostname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setregid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setreuid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
setxattr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sgtty.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sstk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stab.h
stty.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
swapoff.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
swapon.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sync.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syncfs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syscall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
syscall.h
sysexits.h
syslog.c Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
syslog.h
truncate64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
truncate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-allocate_once.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-atomic-long.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-atomic.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-dbl-efgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-dirname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-efgcvt-template.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-empty.c Move all tests out of the csu subdirectory 2016-12-21 11:52:19 +01:00
tst-error1.c Split DIAG_* macros to new header libc-diag.h. 2017-02-25 09:59:46 -05:00
tst-fdset.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-gethostid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-hsearch.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-insremque.c
tst-ldbl-efgcvt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-ldbl-error.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-ldbl-warn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-makedev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent2.c Fix warning in misc/tst-mntent2.c. 2014-12-16 10:27:16 +01:00
tst-mntent-autofs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent-blank-corrupt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent-blank-passno.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-mntent.c getmntent: fix memory corruption w/blank lines [BZ #18887] 2015-08-29 18:07:00 -04:00
tst-preadvwritev2-common.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev64v2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev-common.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-preadvwritev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-pselect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-tsearch.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-warn-wide.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ttyent.h
ttyslot.c As a minor cleanup remove the (r)index defines from include/string.h as 2017-02-06 18:15:18 +00:00
ualarm.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
usleep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ustat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
utimes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Versions misc: Add twalk_r function 2019-05-02 11:42:51 +02:00
vhangup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
writev.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00