aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
Commit message (Collapse)AuthorAgeFilesLines
...
* | MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-2/+2
| | | | | | | | Notes: svn path=/head/; revision=74870
* | Get rid of non-standard %E[Ff] formats, userland apps already fixedAndrey A. Chernov2001-03-213-33/+4
| | | | | | | | Notes: svn path=/head/; revision=74578
* | Oops, back out prev. change - POSIX require %y in d_fmtAndrey A. Chernov2001-03-211-4/+4
| | | | | | | | | | | | | | Cosmetique - use exact POSIX string for %c Notes: svn path=/head/; revision=74572
* | Replace %y with %YAndrey A. Chernov2001-03-211-1/+1
| | | | | | | | Notes: svn path=/head/; revision=74570
* | Fix typo in the commentAndrey A. Chernov2001-03-181-1/+1
| | | | | | | | Notes: svn path=/head/; revision=74414
* | Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c formatAndrey A. Chernov2001-03-185-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-024-9/+22
| | | | | | | | Notes: svn path=/head/; revision=73359
* | /^\.St/ s/-iso9945-1/-p1003.1-96/Ruslan Ermilov2001-02-261-2/+2
| | | | | | | | Notes: svn path=/head/; revision=73092
* | .St -ansiC -> .St -isoCRuslan Ermilov2001-02-261-1/+1
| | | | | | | | Notes: svn path=/head/; revision=73088
* | Back out snprintf -> sprintf change until I have time to look at it.Kris Kennaway2001-02-181-1/+1
| | | | | | | | Notes: svn path=/head/; revision=72619
* | Don't depend on lcl_mutex being a recursive mutex.Tor Egge2001-02-151-5/+5
| | | | | | | | | | | | | | Reviewed by: deischen Notes: svn path=/head/; revision=72524
* | catch up to __part_load_locale() interface changeAlexey Zelkin2001-02-131-1/+1
| | | | | | | | Notes: svn path=/head/; revision=72443
* | Rewrite __time_load_locale() using ldpart.c::__part_load_locale()Alexey Zelkin2001-02-122-153/+15
| | | | | | | | | | | | | | Reviewed by: ache Notes: svn path=/head/; revision=72406
* | Hardcode c_fmt in a different way since used in nl_langinfo nowAndrey A. Chernov2001-02-084-7/+8
| | | | | | | | Notes: svn path=/head/; revision=72183
* | Catch up to latest chanage in timelocal structures exporting.Alexey Zelkin2001-02-082-34/+36
| | | | | | | | Notes: svn path=/head/; revision=72168
* | Export internal data structures in same manner as numeric/monetary/messagesAlexey Zelkin2001-02-082-8/+14
| | | | | | | | | | | | | | | | structures exported. Protect timelocal.h from multiple inclusions. Notes: svn path=/head/; revision=72167
* | Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-246-123/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-121-1/+1
| | | | | | | | Notes: svn path=/head/; revision=70974
* | Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-293-13/+12
| | | | | | | | Notes: svn path=/head/; revision=70481
* | mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | | | | | Notes: svn path=/head/; revision=70015
* | sprintf -> snprintfKris Kennaway2000-11-261-1/+1
| | | | | | | | Notes: svn path=/head/; revision=69196
* | Create the links for the reentrant time functions.Nik Clayton2000-11-121-1/+3
| | | | | | | | | | | | | | | | PR: docs/22644 Submitted by: andrew@ugh.net.au Notes: svn path=/head/; revision=68638
* | Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-102-15/+16
| | | | | | | | Notes: svn path=/head/; revision=68575
* | For %c replace reference to asctime(3) with ctime(3) from which %c geneticallyAndrey A. Chernov2000-10-261-1/+1
| | | | | | | | | | | | | | originates Notes: svn path=/head/; revision=67658
* | Treat c_fmt field as compatibility placeholderAndrey A. Chernov2000-10-262-5/+3
| | | | | | | | Notes: svn path=/head/; revision=67634
* | Force "%c" to be ctime-compatibleAndrey A. Chernov2000-10-261-1/+2
| | | | | | | | | | | | | | Submitted by: ru Notes: svn path=/head/; revision=67632
* | Force %c to be "%a %Ef %T %Y" to eliminate problems with bad c_fmtAndrey A. Chernov2000-10-262-5/+6
| | | | | | | | | | | | | | Submitted by: ru Notes: svn path=/head/; revision=67623
* | Describe %c betterAndrey A. Chernov2000-10-241-3/+7
| | | | | | | | | | | | | | Submitted by: ru (with modifications) Notes: svn path=/head/; revision=67498
* | Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.Kris Kennaway2000-08-041-1/+3
| | | | | | | | Notes: svn path=/head/; revision=64241
* | Fix assigning alt_month in compatibility codeAndrey A. Chernov2000-06-291-1/+1
| | | | | | | | Notes: svn path=/head/; revision=62259
* | Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-214-0/+8
| | | | | | | | | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* | Temporary cosmetic change to prevent gcc-2.95.2 from doing anMartin Cracauer2000-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | optimization that generates code our current as doesn't understand. The result is bad code that damages dynamic symbol locations at runtime. Ouch. See PR bin/16862 and discussion in -current. This change will be backed out when gcc and gas are back in sync. PR: Fixes bin/16862, but not the underlying problem. Submitted by: bde Approved by: jdk Notes: svn path=/head/; revision=57822
* | Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-1/+2
| | | | | | | | | | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* | There were so far only 42 different conversion specifications inJoerg Wunsch2000-01-282-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | strftime(3), add another one. :) %z yields the local timezone's offset in hours and minutes, as used in RFC822 headers. There's a precedence for this in Lunux' libc, and Internet software (like Perl scripts) start using it. OKed by (wrt. the code freeze): jkh Notes: svn path=/head/; revision=56756
* | Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-272-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Make the quotes in the #include line visible.Sheldon Hearn2000-01-191-1/+1
| | | | | | | | Notes: svn path=/head/; revision=56286
* | Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-01-122-7/+9
| | | | | | | | | | | | | | | | | | 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
* | Remove discussion of %C in the BUGS section. The limitations on validSheldon Hearn1999-12-091-4/+0
| | | | | | | | | | | | | | | | centuries are much more serious than those mentioned and this is not the place to discuss the limitations of time_t. Notes: svn path=/head/; revision=54348
* | Prevent digit-gobbling for all but %l and %e, which can't be fixed.Sheldon Hearn1999-12-082-12/+85
| | | | | | | | | | | | | | | | | | | | | | 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-305-13/+53
| | | | | | | | | | | | | | | | | | 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
* | Document %Ex and %OBAndrey A. Chernov1999-11-301-2/+4
| | | | | | | | Notes: svn path=/head/; revision=53959
* | 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
* | Add %Ex extension to determine "%e %b" or "%b %e" orderAndrey A. Chernov1999-11-303-8/+22
| | | | | | | | | | | | | | Separate alternative for O and E cases Notes: svn path=/head/; revision=53940
* | 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
* | Implement new format specifier for strftime: %OB, alternative nationalDmitrij Tejblum1999-09-113-19/+58
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Spelling and grammar error fix.Alexey Zelkin1999-09-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | mdoc(7)'fy. PR: docs/13406 Submitted by: Garret Woolman <woolman@khavrinen.lcs.mit.edu> Reviewed by: mpp Notes: svn path=/head/; revision=50916