| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strptime(3) confused July with June with the fr_FR locale.
When parsing the month "juillet" (abbr "jul"), %B recognized it as
"juin" (abbr "jui") because the full name of the month names is
checked at the same time as the abbrevation.
The new behaviour checks the full names first before checking the
abbrevation names.
PR: kern/141939
Submitted by: Denis Chatelain <denis@tikuts.com>
Notes:
svn path=/stable/8/; revision=214079
|
| |
|
|
| |
Notes:
svn path=/stable/8/; revision=213473
|
| |
|
|
|
|
|
|
|
| |
Use pthread_once() to initialize the thread-local storage for localtime()
and gmtime() and _once() to initialize gmt state rather than home-rolled
versions using pthread mutex locks.
Notes:
svn path=/stable/8/; revision=202201
|
| |
|
|
|
|
|
|
|
|
|
| |
zic:
- Fix URL / reference to Calendrical Calculations: Third Edition
libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)
Notes:
svn path=/stable/8/; revision=201183
|
| |
|
|
|
|
|
|
|
|
|
| |
Modified locale(1) to be able to show the altmon_X fields and the
[cxX]_fmt's. Also modify the "-k list" option to display only
fields with a certain prefix.
Add the comment "(FreeBSD only)" to the altmonth_x keywords
Notes:
svn path=/stable/8/; revision=198704
|
| |
|
|
|
|
|
|
|
| |
PR: kern/63064
Submitted by: Stefan `Sec` Zehl <sec 42 org> (with some small changes)
MFC after: 1 month
Notes:
svn path=/head/; revision=195015
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=194783
|
| |
|
|
| |
Notes:
svn path=/head/; revision=193817
|
| |
|
|
|
|
|
|
|
| |
- Clarify the license for the tzcode: public domain
MFC after: 1 month
Notes:
svn path=/head/; revision=192890
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Upgrade of the tzcode from 2004a to 2009e.
Changes are numerous, but include...
- New format of the output of zic, which supports both 32 and 64
bit time_t formats.
- zdump on 64 bit platforms will actually produce some output instead
of doing nothing for a looooooooong time.
- linux_base-fX, with X >= at least 8, will work without problems related
to the local time again.
The original patch, based on the 2008e, has been running for a long
time on both my laptop and desktop machine and have been tested by
other people.
After the installation of this code and the running of zic(8), you
need to run tzsetup(8) again to install the new datafile.
Approved by: wollman@ for usr.sbin/zic
MFC after: 1 month
Notes:
svn path=/head/; revision=192625
|
| |
|
|
|
|
|
| |
always-false condition.
Notes:
svn path=/head/; revision=184458
|
| |
|
|
|
|
|
|
|
|
|
| |
as the more commonly used "a.m." and "p.m.".
Tripped over by: Callum Gibson.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=179038
|
| |
|
|
|
|
|
|
| |
replace mutex with rwlock, this should eliminate lock contention in
most cases.
Notes:
svn path=/head/; revision=177824
|
| |
|
|
|
|
|
|
|
| |
# this really should be done with pthread_once, but I've debugged this code.
Reviewed by: arch@
Notes:
svn path=/head/; revision=174766
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
net: endhostdnsent is named _endhostdnsent and is
private to netdb family of functions.
posix1e: acl_size.c has been never compiled in,
so there's no "acl_size".
rpc: "getnetid" is a static function.
stdtime: "gtime" is #ifdef'ed out in the source.
some symbols are specific only to some architectures,
e.g., ___tls_get_addr is only defined on i386.
__htonl, __htons, __ntohl and __ntohs are no longer
functions, they are now (internal) defines in
<machine/endian.h>.
Submitted by: ru
Notes:
svn path=/head/; revision=170154
|
| |
|
|
| |
Notes:
svn path=/head/; revision=169092
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
number being returned for mktime and timegm calls. Choose 48 because
that works well. This does reduce the dynamic range of tm_year from
about 2 billion years down to "only" about 9 million years. Please
contact me if this restriction poses a problem.
Due to the complexity of the code, I admit that I didn't trace down
what, exactly, was overflowing with longer bits. This fixes software
that we run on the embedded systems we have.
Notes:
svn path=/head/; revision=166102
|
| |
|
|
|
|
|
|
|
| |
clause.
# If I've done so improperly on a file, please let me know.
Notes:
svn path=/head/; revision=165903
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=165357
|
| |
|
|
| |
Notes:
svn path=/head/; revision=156613
|
| |
|
|
|
|
|
| |
Reviewed by: davidxu
Notes:
svn path=/head/; revision=156608
|
| |
|
|
|
|
|
| |
pointers.
Notes:
svn path=/head/; revision=149995
|
| |
|
|
|
|
|
|
|
|
|
| |
that have at least 3 characters.
MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.
Notes:
svn path=/head/; revision=148580
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141851
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141846
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140505
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140081
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_(use space as padding), and 0(zero padding).
These GNU extensions are widely used ones that is worthy for us to
have.
Discussed with: stefanf, roam, -current
Approved by: murray
Prodded by: ports/72722, ports/72723
MFC After: 1 month
Notes:
svn path=/head/; revision=137190
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
64 bit systems, years roughly -2^31 through 2^31 can be represented in
time_t without any trouble. 32 bit time_t systems only range from
roughly 1902 through 2038. As a consequence, none of the date munging
code for all the various calendar tweaks before then is present. There
are other problems including the fact that there was no 'year zero' and
so on. So rather than get excited about trying to figure out when the
calendar jumped by two weeks etc, simply disallow negative (ie: prior to
1900) years.
This happens to have an important side effect. If you bzero a 'struct
tm', it corresponds to 'Jan 0, 1900, 00:00 GMT'. This happens to be
representable (after canonification) in 64 bit time_t space. Zero tm
structs are generally an error and mktime normally returns -1 for them.
Interestingly, it tries to canonify the 'jan 0' to 'dec 31, 1899', ie:
year -1. This conveniently trips the negative year test above, which
means we can trivially detect the null 'tm' struct.
This actually tripped up code at work. :-/ (Don't ask)
Notes:
svn path=/head/; revision=134231
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131504
|
| |
|
|
|
|
|
|
|
| |
us closer to the vendor branch.
Requested by: wollman
Notes:
svn path=/head/; revision=130461
|
| |
|
|
| |
Notes:
svn path=/head/; revision=130414
|
| |
|
|
|
|
|
| |
was done before 5-STABLE on purpose...
Notes:
svn path=/head/; revision=130332
|
| |
|
|
|
|
|
| |
Approved by: das (mentor)
Notes:
svn path=/head/; revision=130244
|
| |
|
|
|
|
|
|
|
|
| |
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
|