summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
Commit message (Collapse)AuthorAgeFilesLines
* Style: One space between "restrict" qualifier and "*".tjr2002-09-064-12/+12
|
* Fix a nasty bug exposed by mktime() when time_t is significantly biggerpeter2002-09-031-0/+6
| | | | | | | than 32 bits. It was trying to figure out things like the day of week of when time_t is roughly 2^62 etc. Make a better guess for the starting point for the binary search that works on both 32 and 64 bit types. I have been using this for a while now.
* Use one line for each function argument to keep the linerobert2002-08-152-2/+11
| | | | | | | width smaller than 80 columns. Thanks to Ruslan for an explanation of multiple ways to achieve this.
* - Add the 'restrict' qualifier to the function definition ofrobert2002-08-142-7/+5
| | | | | | | | | strftime(3) for IEEE Std 1003.1-2001 compliance and remove excessive usage of the 'const' qualifier that was neither present in the prototype in the publice header, nor in the local prototype just above the function definition. - Replace the K&R function definition with a ANSI-C one. - Update the prototype of strftime(3) in its manual page.
* - Add the C99 'restrict' qualifier using the '__restrict' macro torobert2002-08-142-2/+3
| | | | | function prototype and definition of strptime(3). - Update the manual page.
* Style fixesache2002-08-071-9/+6
|
* Move dillon's time conversion functions to a new header <timeconv.h>.wollman2002-06-171-1/+1
| | | | | | Since they were never documented and have never appeared in a FreeBSD release, no repo-copy of the header is done. This removes namespace pollution from <time.h>.
* Grammar nit: treat "contents" as plural.archie2002-05-311-1/+1
|
* Remove use of __P() (actually P()) from code now that it's no longeralfred2002-05-282-42/+42
| | | | available.
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-13/+0
| | | | Submitted by: keramida
* Fix fd leak. Threads people: does the call above to `access' need to bewollman2002-05-031-1/+3
| | | | | | | underscored as well? PR: 37717 Submitted by: fred@clift.org (slightly modified by me)
* Fix the style of the SCM ID's.obrien2002-03-222-3/+5
| | | | I believe have made all of libc .h's as consistent as possible.
* Fix the style of the SCM ID's.obrien2002-03-227-25/+18
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove 'register' keyword.obrien2002-03-212-75/+75
|
* * style(9)'fyphantom2002-01-242-33/+34
| | | | * declare prototype for __time_load_locale() in timelocal.h
* I've been meaning to do this for a while. Add an underscore to thedillon2002-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.
* Add my e-mail to copyrightsphantom2001-12-111-1/+1
|
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().dillon2001-10-281-0/+40
|
* Add routines to convert time_t to/from fixed-bit fields. These routinesdillon2001-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
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-014-4/+4
|
* mdoc(7) police:ru2001-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.
* Remove whitespace at EOL.dd2001-07-152-6/+6
|
* Recognize the %s format.dd2001-07-131-0/+16
| | | | | | Submitted by: Thomas Zenker <thz@lennartz-electronic.de> and Maxim Konovalov <maxim@macomnet.ru>, respectively Reviewed by: -audit
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-102-2/+2
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* Document "normalizing" behavior of mktime(3).ru2001-06-231-1/+12
| | | | | | PR: bin/28313 Reviewed by: bde, wollman MFC after: 1 week
* Don't mung the user's tm_sec field if we don't need to. (Belt-and-suspenderswollman2001-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
* MAN[1-9] -> MAN.ru2001-03-271-2/+2
|
* Get rid of non-standard %E[Ff] formats, userland apps already fixedache2001-03-213-33/+4
|
* 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-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
* Make 'A' and 'a', 'B' and 'b' the same, per POSIXache2001-03-181-26/+16
|
* Implement ampm_fmt (%r) per POSIXache2001-03-024-9/+22
|
* /^\.St/ s/-iso9945-1/-p1003.1-96/ru2001-02-261-2/+2
|
* .St -ansiC -> .St -isoCru2001-02-261-1/+1
|
* Back out snprintf -> sprintf change until I have time to look at it.kris2001-02-181-1/+1
|
* Don't depend on lcl_mutex being a recursive mutex.tegge2001-02-151-5/+5
| | | | Reviewed by: deischen
* catch up to __part_load_locale() interface changephantom2001-02-131-1/+1
|
* Rewrite __time_load_locale() using ldpart.c::__part_load_locale()phantom2001-02-122-153/+15
| | | | Reviewed by: ache
* Hardcode c_fmt in a different way since used in nl_langinfo nowache2001-02-084-7/+8
|
* Catch up to latest chanage in timelocal structures exporting.phantom2001-02-082-34/+36
|
* Export internal data structures in same manner as numeric/monetary/messagesphantom2001-02-082-8/+14
| | | | | structures exported. Protect timelocal.h from multiple inclusions.
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-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
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.ru2001-01-121-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-293-13/+12
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* sprintf -> snprintfkris2000-11-261-1/+1
|
* Create the links for the reentrant time functions.nik2000-11-121-1/+3
| | | | | PR: docs/22644 Submitted by: andrew@ugh.net.au
OpenPOWER on IntegriCloud