History log of /seL4-refos-master/libs/libmuslc/src/time/strptime.c
Revision Date Author Comments
# f33b1758 20-Oct-2016 Rich Felker <dalias@aerifal.cx>

fix gratuitous undefined behavior in strptime

accessing an object of type const char *restrict as if it had type
char * is not defined.


# 348fc556 14-May-2014 Timo Teräs <timo.teras@iki.fi>

implement %y and %C specifiers in strptime


# dec66750 19-May-2014 Rich Felker <dalias@aerifal.cx>

fix unhandled cases in strptime

%C, %U, %W, and %y handling were completely missing; %C wrongly
fell-through to unrelated cases, and the rest returned failure. for
now, they all parse numbers in the proper forms and range-check the
values, but they do not store the value anywhere.

it's not clear to me whether, as "derived" fields, %U and %W should
produce any result. they certainly cannot produce a result unless the
year and weekday are also converted, but in this case it might be
desirable for them to do so. clarification is needed on the intended
behavior of strptime in cases like this.

%C and %y have well-defined behavior as long as they are used together
(and %y is defined by itself but may change in the future).
implementing them (including their correct interaction) is left as a
later change to be made.

finally, strptime now rejects unknown/invalid format characters
instead of ignoring them.


# 57174444 11-Dec-2013 Szabolcs Nagy <nsz@port70.net>

include cleanups: remove unused headers and add feature test macros


# 400c5e5c 06-Sep-2012 Rich Felker <dalias@aerifal.cx>

use restrict everywhere it's required by c99 and/or posix 2008

to deal with the fact that the public headers may be used with pre-c99
compilers, __restrict is used in place of restrict, and defined
appropriately for any supported compiler. we also avoid the form
[restrict] since older versions of gcc rejected it due to a bug in the
original c99 standard, and instead use the form *restrict.


# 536db2b5 01-Mar-2012 Rich Felker <dalias@aerifal.cx>

fix bugs in strptime handling of string day/month names, literals


# 5989dde3 05-Sep-2011 Rich Felker <dalias@aerifal.cx>

strptime: fix use of uninitialized dest field in converting integer


# 47a8816d 16-Aug-2011 Rich Felker <dalias@aerifal.cx>

partially working strptime

it's missing at least:
- derived fields
- week numbers
- short year (without century) support
- locale modifiers


# 0b44a031 11-Feb-2011 Rich Felker <dalias@aerifal.cx>

initial check-in, version 0.5.0