]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r306075,r306109
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Sep 2016 20:49:33 +0000 (20:49 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Sep 2016 20:49:33 +0000 (20:49 +0000)
commit3346c9580b0ec44c8d716d01c6d4d3ac6c34a787
tree8ce693da67554255d15c752d12a500be0475a57b
parent1c96f985f9dd2b5ed11d1f9fe5260e8f0f7f77f0
MFC r306075,r306109

1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week (week 0) request and no such week in the
year.
5) Fix yday formula when Sunday requested and the week started from Monday.
6) Fail with impossible yday for incomplete week (week 0) and direct %w/%u
request.
7) Shift yday/wday to the first day of the year, if incomplete week
(week 0) requested and no %w/%u used.
8) For already non-standard %z extension implement GNU compatible formats:
+hh and -hh.
9) Check for incorrect values for %z.

PR:     212983 (case 3 only)

git-svn-id: svn://svn.freebsd.org/base/stable/10@306414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdtime/strptime.c