summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/timelocal.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixes to locale code to properly use indirect pointers in order to preventjkh2003-06-131-1/+1
| | | | | | | memory leaks (fixes bugs earlier purported to be fixed). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc. MFC after: 2 weeks
* Style fixesache2002-08-071-9/+6
|
* Fix the style of the SCM ID's.obrien2002-03-221-2/+3
| | | | I believe have made all of libc .c's as consistent as possible.
* * style(9)'fyphantom2002-01-241-15/+15
| | | | * declare prototype for __time_load_locale() in timelocal.h
* Add my e-mail to copyrightsphantom2001-12-111-1/+1
|
* Oops, back out prev. change - POSIX require %y in d_fmtache2001-03-211-4/+4
| | | | Cosmetique - use exact POSIX string for %c
* Replace %y with %Yache2001-03-211-1/+1
|
* Fix typo in the commentache2001-03-181-1/+1
|
* Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c formatache2001-03-181-19/+10
| | | | | | | | | | | | 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
* Implement ampm_fmt (%r) per POSIXache2001-03-021-5/+17
|
* catch up to __part_load_locale() interface changephantom2001-02-131-1/+1
|
* Rewrite __time_load_locale() using ldpart.c::__part_load_locale()phantom2001-02-121-152/+14
| | | | Reviewed by: ache
* Hardcode c_fmt in a different way since used in nl_langinfo nowache2001-02-081-2/+3
|
* Export internal data structures in same manner as numeric/monetary/messagesphantom2001-02-081-3/+9
| | | | | structures exported. Protect timelocal.h from multiple inclusions.
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Treat c_fmt field as compatibility placeholderache2000-10-261-4/+2
|
* Fix assigning alt_month in compatibility codeache2000-06-291-1/+1
|
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-271-4/+4
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-121-4/+4
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* %Ex -> %Ef to not conflict with POSIXache1999-11-301-6/+11
| | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example
* Add %Ex extension to determine "%e %b" or "%b %e" orderache1999-11-301-3/+12
| | | | Separate alternative for O and E cases
* Implement new format specifier for strftime: %OB, alternative nationaldt1999-09-111-17/+51
| | | | | | | | | representation of the full month name. In the Russian locale, this alternative will be "nominative case", useful when the date designate month as a whole. E.g. month heading in a calendar. I hope it can be useful for some other locales too. Discussed with: wollman, ache
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-161-2/+2
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* Import strptime(3) into libc. We've got permission by Kevin Ruddy tojoerg1997-08-091-0/+197
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].
OpenPOWER on IntegriCloud