]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r306075,r306109
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Sep 2016 20:54:47 +0000 (20:54 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Sep 2016 20:54:47 +0000 (20:54 +0000)
commit704034569a8725470b7d6a611119f5622c593d68
treeac1384ec9d295073c5901f83349cf32fbd05714e
parent94c1569e53f1cdf454f448c7238c454f7c11bbdb
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/9@306416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdtime/strptime.c