glibc/time
Zack Weinberg 1baae4aa6f
Don't use the argument to time.
It doesn't make sense to remove all the internal uses of time.
It's still a standard ISO C function, and its callers don't need
sub-second resolution and would be unnecessarily complicated if
they had to declare a struct timespec instead of just a time_t.
However, a handful of places were using the vestigial "result"
argument instead of the return value, which is slightly less
efficient and also looks strange.  Correct this.

	* misc/syslog.c (__vsyslog_internal)
	* time/getdate.c (__getdate_r)
	* time/tst_wcsftime.c (main):
	Use return value of time, not its argument.

	* string/strfry.c (strfry)
	* sysdeps/mach/sleep.c (__sleep):
	Remove unnecessary casts of NULL in calls to time.
2019-08-21 08:26:36 -04:00
..
bits/types
sys Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
adjtime.c
alt_digit.c Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
asctime.c Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
bug-asctime_r.c
bug-asctime.c
bug-getdate1.c
bug-mktime1.c
bug-mktime4.c
clock.c
clocktest.c
ctime_r.c
ctime.c
datemsk
Depend
difftime.c
dysize.c
era.c
ftime.c
getdate.c Don't use the argument to time. 2019-08-21 08:26:36 -04:00
getitimer.c
gettimeofday.c
gmtime.c
lc-time-cleanup.c
localtime.c
Makefile time: Add tests for Minguo calendar [BZ #24293] 2019-04-02 16:42:04 +09:00
mktime-internal.h Make mktime etc. compatible with __time64_t 2019-04-30 09:02:17 -07:00
mktime.c Make mktime etc. compatible with __time64_t 2019-04-30 09:02:17 -07:00
offtime.c
setitimer.c
settimeofday.c
stime.c
strftime_l.c Fix a few whitespace arrangement inconsistencies in time/strftime_l.c 2019-02-11 12:13:55 +09:00
strftime.c
strptime_l.c Fix strptime era handling, add more strftime tests [BZ #24394] 2019-04-01 14:19:16 -04:00
strptime.c
test_time.c Add some spaces before '('. 2019-02-27 13:55:45 +00:00
time.c
time.h
timegm.c Make mktime etc. compatible with __time64_t 2019-04-30 09:02:17 -07:00
timespec_get.c
tst_wcsftime.c Don't use the argument to time. 2019-08-21 08:26:36 -04:00
tst-ftime_l.c
tst-ftime.c
tst-getdate.c
tst-mktime2.c
tst-mktime3.c
tst-mktime.c
tst-posixtz.c
tst-strftime2.c ja_JP locale: Add entry for the new Japanese era [BZ #22964] 2019-04-02 16:46:55 +09:00
tst-strftime3.c time/tst-strftime3.c: Disable snprintf warning. 2019-04-03 17:49:43 -04:00
tst-strftime.c
tst-strptime2.c
tst-strptime3.c
tst-strptime-whitespace.c
tst-strptime.c
tst-tzname.c
tst-y2039.c
tzfile.c Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
tzset.c time: Use int, not long int, for internal GMT offsets 2019-02-03 09:55:41 +01:00
Versions
wcsftime_l.c
wcsftime.c