aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdtime/timelocal.c
Commit message (Collapse)AuthorAgeFilesLines
* This completes our sync-up with -current for the memory leak patch.Jordan K. Hubbard2003-12-241-1/+1
| | | | Notes: svn path=/stable/4/; revision=123793
* MFC: 1.24, styleAndrey A. Chernov2002-08-121-11/+9
| | | | Notes: svn path=/stable/4/; revision=101725
* MFC: sync with -CURRENT's stdtime codeAlexey Zelkin2002-03-121-166/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This MFC brings to -STABLE following changes/features: . get rid of non-standard %E[Ff] formats . add %F per POSIX . add %r per POSIX (ampm_fmt) . hardcode c_fmt in a different way since used in nl_langinfo now . make '%A' and '%a', '%B' and '%b' same per POSIX . introduce non-standard md_order (month/day order locale field). This field is available to user-land apps via nl_langinfo(3) and supposed to replace all usages of %E[Ff] in more correct way. . allow POSIX legal data on 3 chars abbrev, name length and %c format WARNING: please beware about this commit. It can trigger some hidden or implicit problems with locale/time specific functions or related/dependent stuff in userland applications. Please report anything unusual! Following files/revisions were MFCed: Makefile.inc 1.11 strftime.3 1.25, 1.26 strftime.c 1.29, 1.30, 1.32 - 1.34 strptime.c 1.20 - 1.25 timelocal.c 1.12 - 1.22 timelocal.h 1.7 - 1.11 Notes: svn path=/stable/4/; revision=92149
* MFC: c_fmt as compatibility placeholderAndrey A. Chernov2000-10-261-4/+2
| | | | Notes: svn path=/stable/4/; revision=67635
* MFC: alt_month assigningAndrey A. Chernov2000-06-291-1/+1
| | | | Notes: svn path=/stable/4/; revision=62260
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-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 Notes: svn path=/head/; revision=56698
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-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(). Notes: svn path=/head/; revision=55837
* %Ex -> %Ef to not conflict with POSIXAndrey A. Chernov1999-11-301-6/+11
| | | | | | | | | 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
* Add %Ex extension to determine "%e %b" or "%b %e" orderAndrey A. Chernov1999-11-301-3/+12
| | | | | | | Separate alternative for O and E cases Notes: svn path=/head/; revision=53940
* Implement new format specifier for strftime: %OB, alternative nationalDmitrij Tejblum1999-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 Notes: svn path=/head/; revision=51186
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-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... Notes: svn path=/head/; revision=39327
* Import strptime(3) into libc. We've got permission by Kevin Ruddy toJoerg Wunsch1997-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]. Notes: svn path=/head/; revision=28021