summaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
Commit message (Collapse)AuthorAgeFilesLines
* Fix the style of the SCM ID's.David E. O'Brien2002-03-222-3/+5
| | | | | | | I believe have made all of libc .h's as consistent as possible. Notes: svn path=/head/; revision=92991
* Fix the style of the SCM ID's.David E. O'Brien2002-03-227-25/+18
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Remove 'register' keyword.David E. O'Brien2002-03-212-75/+75
| | | | Notes: svn path=/head/; revision=92889
* * style(9)'fyAlexey Zelkin2002-01-242-33/+34
| | | | | | | * declare prototype for __time_load_locale() in timelocal.h Notes: svn path=/head/; revision=89736
* I've been meaning to do this for a while. Add an underscore to theMatthew Dillon2002-01-191-12/+12
| | | | | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee. Notes: svn path=/head/; revision=89572
* Add my e-mail to copyrightsAlexey Zelkin2001-12-111-1/+1
| | | | Notes: svn path=/head/; revision=87659
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().Matthew Dillon2001-10-281-0/+40
| | | | Notes: svn path=/head/; revision=85636
* Add routines to convert time_t to/from fixed-bit fields. These routinesMatthew Dillon2001-10-282-1/+62
| | | | | | | | | | | | | | | | | | | | | | serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week Notes: svn path=/head/; revision=85634
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-014-4/+4
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police:Ruslan Ermilov2001-08-071-2/+2
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-152-6/+6
| | | | Notes: svn path=/head/; revision=79754
* 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
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-102-2/+2
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Document "normalizing" behavior of mktime(3).Ruslan Ermilov2001-06-231-1/+12
| | | | | | | | | PR: bin/28313 Reviewed by: bde, wollman MFC after: 1 week Notes: svn path=/head/; revision=78656
* Don't mung the user's tm_sec field if we don't need to. (Belt-and-suspendersGarrett Wollman2001-06-051-1/+3
| | | | | | | | | | | | version.) PR: bin/27630 Submitted by: Arthur David Olson <ado@nci.nih.gov> Obtained from: Timezone mailing-list <tz@elsie.nci.nih.gov> MFC after: 1 month Notes: svn path=/head/; revision=77785
* 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