| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
was rejected as a range error, while any values less than LONG_MIN
were silently substituted with LONG_MIN.  Furthermore, on some
platforms `time_t' has less range than `long' (e.g. alpha), which may
give incorrect results when parsing some strings.
Notes:
    svn path=/head/; revision=122830
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=119893
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
Notes:
    svn path=/head/; revision=116274
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
on the previous behaviour. This also brings strptime(3) behaviour back in line
with the other BSDs.
Approved by:	markm (mentor)
Notes:
    svn path=/head/; revision=114285
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
strange things might happen when garbage values in the struct
get passed in to localtime_r() and family.
Noticed by:	marcus
Approved by:	markm (mentor)(implicit)
Notes:
    svn path=/head/; revision=113104
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
from strptime(3). Previously, they would get filled only
for the %s specifier and as a side effect of using the
the %Z specifier with a GMT time zone.
PR:		misc/48993
Approved by:	markm (mentor)
Silence on:	-standards
Notes:
    svn path=/head/; revision=112787
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
desired strptime(3) reentrancy by adding an extra argument to _strptime()
instead.
Approved by:	markm (mentor)
MFC:		4 weeks
Notes:
    svn path=/head/; revision=112156
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by:	/sbin/md5
Notes:
    svn path=/head/; revision=111010
 | 
| | 
| 
| 
| 
| 
| 
|  | 
in the format string correctly.
Notes:
    svn path=/head/; revision=108653
 | 
| | 
| 
| 
| 
| 
| 
|  | 
characters in the format string correctly.
Notes:
    svn path=/head/; revision=108652
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=108085
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=108083
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=108037
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
conversion specifications to completely specify the resulting struct tm.
PR:		46331
Submitted by:	Christian S.J. Peron
MFC after:	2 weeks
Notes:
    svn path=/head/; revision=108013
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
localtime/mktime/tmcomp and friends on ia64.
Approved by:	re
Notes:
    svn path=/head/; revision=107648
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
when trying to store the year in a signed int.  The maximum time_t on ia64
is around 292 billion years in the future, but 'int' and struct tm.tm_year
can only represent then ext 2.1 billion years or so.
This solves the problem of mktime/localtime looping on ia64.  Unfortunately,
the standards say that tm_year is an 'int', so we are still stuck with a
y2147483647 bug.  bash2's configure script looks for bugs in mktime() and
fails on ia64 because of this.  However, mktime() on FreeBSD fails the test
normally anyway so this is no big loss.
This change does not affect any other platforms besides ia64.
Approved by:	re
Notes:
    svn path=/head/; revision=107480
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=107052
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=105150
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=103012
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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.
Notes:
    svn path=/head/; revision=102885
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
width smaller than 80 columns.
Thanks to Ruslan for an explanation of multiple ways to
achieve this.
Notes:
    svn path=/head/; revision=101936
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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.
Notes:
    svn path=/head/; revision=101888
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
function prototype and definition of strptime(3).
 - Update the manual page.
Notes:
    svn path=/head/; revision=101886
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=101471
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
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>.
Notes:
    svn path=/head/; revision=98313
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=97682
 | 
| | 
| 
| 
| 
| 
| 
|  | 
available.
Notes:
    svn path=/head/; revision=97423
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Submitted by: keramida
Notes:
    svn path=/head/; revision=97407
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
underscored as well?
PR:		37717
Submitted by:	fred@clift.org (slightly modified by me)
Notes:
    svn path=/head/; revision=95989
 | 
| | 
| 
| 
| 
| 
| 
|  | 
I believe have made all of libc .h's as consistent as possible.
Notes:
    svn path=/head/; revision=92991
 | 
| | 
| 
| 
| 
| 
| 
|  | 
I believe have made all of libc .c's as consistent as possible.
Notes:
    svn path=/head/; revision=92986
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=92889
 | 
| | 
| 
| 
| 
| 
| 
|  | 
* declare prototype for __time_load_locale() in timelocal.h
Notes:
    svn path=/head/; revision=89736
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=87659
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=85636
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=84306
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=79754
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
Submitted by:	Thomas Zenker <thz@lennartz-electronic.de> and
		    Maxim Konovalov <maxim@macomnet.ru>, respectively
Reviewed by:	-audit
Notes:
    svn path=/head/; revision=79664
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=79531
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=79454
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
PR:		bin/28313
Reviewed by:	bde, wollman
MFC after:	1 week
Notes:
    svn path=/head/; revision=78656
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=74870
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=74578
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Cosmetique - use exact POSIX string for %c
Notes:
    svn path=/head/; revision=74572
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=74570
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=74414
 |