1) Microoptimize %p case.
authorache <ache@FreeBSD.org>
Wed, 21 Sep 2016 06:44:32 +0000 (06:44 +0000)
committerache <ache@FreeBSD.org>
Wed, 21 Sep 2016 06:44:32 +0000 (06:44 +0000)
commit451206213bc67524db0f7bb1cb01a6bf380d6060
treec09831add74e0a1f4fa7e1ea7860160cdd24d22a
parentdabe14a5c1cfb938f5e906d4f1b661eeb89b9ac8
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.

MFC after:      7 days
lib/libc/stdtime/strptime.c