summaryrefslogtreecommitdiff
path: root/lib/libc/stdtime/strptime.c
Commit message (Collapse)AuthorAgeFilesLines
* Recognize the %s format.Dima Dorfman2001-07-131-0/+16
| | | | | | | | | Submitted by: Thomas Zenker <thz@lennartz-electronic.de> and Maxim Konovalov <maxim@macomnet.ru>, respectively Reviewed by: -audit Notes: svn path=/head/; revision=79664
* Get rid of non-standard %E[Ff] formats, userland apps already fixedAndrey A. Chernov2001-03-211-16/+1
| | | | Notes: svn path=/head/; revision=74578
* Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c formatAndrey A. Chernov2001-03-181-2/+13
| | | | | | | | | | | | | | | since they not allows POSIXly legal locale data. Currently, if relaxed form POSIXly legal locale data will be used right now, some programs will be broken, but it means that either locale data or programs must be fixed, not the library. Introduce non-standard md_order (month/day order) locale field to be used later via nl_langinfo(). Currently %EF and %Ef emulated using this field, but they planned for remove in future in favour of nl_langinfo() test field. Implement %F per POSIX Notes: svn path=/head/; revision=74412
* Make 'A' and 'a', 'B' and 'b' the same, per POSIXAndrey A. Chernov2001-03-181-26/+16
| | | | Notes: svn path=/head/; revision=74409
* Implement ampm_fmt (%r) per POSIXAndrey A. Chernov2001-03-021-1/+1
| | | | Notes: svn path=/head/; revision=73359
* Hardcode c_fmt in a different way since used in nl_langinfo nowAndrey A. Chernov2001-02-081-2/+2
| | | | Notes: svn path=/head/; revision=72183
* Catch up to latest chanage in timelocal structures exporting.Alexey Zelkin2001-02-081-22/+23
| | | | Notes: svn path=/head/; revision=72168
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-241-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch Notes: svn path=/head/; revision=71579
* Force "%c" to be ctime-compatibleAndrey A. Chernov2000-10-261-1/+2
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=67632
* Prevent digit-gobbling for all but %l and %e, which can't be fixed.Sheldon Hearn1999-12-081-12/+46
| | | | | | | | | | | Discuss in the BUGS section of the manpage, problems involved with the use of %C, %e, %l, %p, %U and %W. PR: 13901 Reported by: scott@chronis.pobox.com Notes: svn path=/head/; revision=54316
* Accept 12 for %l, because it's logical to expect "%l:%M" to work forSheldon Hearn1999-12-081-1/+1
| | | | | | | "12:00" and because strftime(3) does the same. Notes: svn path=/head/; revision=54301
* %Ex -> %Ef to not conflict with POSIXAndrey A. Chernov1999-11-301-1/+14
| | | | | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example Notes: svn path=/head/; revision=53960
* Stricter checking %A vs %aAndrey A. Chernov1999-11-301-11/+13
| | | | Notes: svn path=/head/; revision=53942
* Fix %C handlingAndrey A. Chernov1999-11-301-14/+52
| | | | | | | | | Use locale for %c Add %+ Add %Ex and %OB Notes: svn path=/head/; revision=53941
* Decremement by 1 the value taken for %j before assigning it to tm_yday,Sheldon Hearn1999-11-101-6/+50
| | | | | | | | | | | | | | | | | | | | which is zero-based. Correct the range checking for the value taken for %S. Add %w for the day of the week (0-6). Accept (but do nothing with) %U and %W. The comment for this change was taken from NetBSD. These changes were made after several failed attempts to contact the author of our strptime.c . PR: 10131 Submitted by: tadf@kt.rim.or.jp (Tadayoshi Funaba) Notes: svn path=/head/; revision=53083
* Add unsigned char cast to isupperAndrey A. Chernov1999-11-041-1/+1
| | | | Notes: svn path=/head/; revision=52860
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Make the new %Z addition thread-safe.David E. O'Brien1999-07-061-19/+49
| | | | Notes: svn path=/head/; revision=48614
* Actually impliment the documented %Z specifier.David E. O'Brien1999-07-041-1/+32
| | | | Notes: svn path=/head/; revision=48550
* Re-fixed to start at 1969 per the actual Posix requirement. AlsoWes Peters1999-04-251-2/+2
| | | | | | | fixed a typo on the man page. Notes: svn path=/head/; revision=46051
* Bring two-digit years up-to-date with POSIX requirements.Wes Peters1999-04-251-1/+3
| | | | | | | | | | | 70-00 are intepreted in the 20th century; 01-69 in the 21st century. (Yes, 2000 is the last year of the 20th century, not the first year of the 21st.) Submitted by: Sergey Babkin <babkin@bellatlantic.net> Notes: svn path=/head/; revision=46042
* Change return type of strptime from const char* to char*.Dmitrij Tejblum1998-09-121-3/+3
| | | | | | | const char* was wrong and nonstandard. Notes: svn path=/head/; revision=39113
* Add unsigned char cast to all ctype callsAndrey A. Chernov1997-08-131-27/+27
| | | | Notes: svn path=/head/; revision=28164
* Import strptime(3) into libc. We've got permission by Kevin Ruddy toJoerg Wunsch1997-08-091-315/+306
| | | | | | | | | | | modify the original `no modifications' copyright message, and i've included his mail into the source file. The common localization functions between strptime(3) and strftime(3) have been broken out into timelocal.[ch]. Notes: svn path=/head/; revision=28021
* Clean import of strptime(3) onto a vendor branch.Joerg Wunsch1997-08-091-0/+358
Submitted by: Powerdog Industries <kevin.ruddy@powerdog.com> Notes: svn path=/cvs2svn/branches/POWERDOG/; revision=28019