| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on signed integer overflow wrapping. Otherwise mktime(3) and timegm(3)
can hang, in case the timestamp passed in struct tm is not representable
in a time_t. Specifically, any timestamp after 2038-01-19 03:14:07, in
combination with a 32-bit time_t.
Note that it would be better to change the code to not rely on undefined
behaviour, but it is contributed code, and it is not entirely trivial to
fix the issue properly.
MFC after: 3 days
Notes:
svn path=/head/; revision=248672
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Makefiles:
- libc/stdtime/strftime.3
- libc/stdtime/strptime.3
- libc/stdlib/strfmon.3
Reviewed by: theraven
Approved by: gabor (mentor)
Notes:
svn path=/head/; revision=237573
|
|
|
|
| |
Notes:
svn path=/head/; revision=237211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter. Also
adds support for per-thread locales. This work was funded by the FreeBSD
Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes)
Approved by: dim (mentor)
Notes:
svn path=/head/; revision=227753
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
MFC after: 1 week
Notes:
svn path=/head/; revision=207830
|
|
|
|
|
|
|
| |
to contrib/tzcode/stdtime.
Notes:
svn path=/head/; revision=204347
|
|
|
|
| |
Notes:
svn path=/head/; revision=203958
|
|
|
|
|
|
|
|
|
|
| |
methods are only invoked when __isthreaded is true at which point it is safe
to use _pthread_once() directly.
MFC after: 1 week
Notes:
svn path=/head/; revision=201669
|
|
|
|
|
|
|
|
|
| |
the results of gmtime() instead of using a pthread mutex directly.
MFC after: 1 week
Notes:
svn path=/head/; revision=201270
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
zic:
- Fix URL / reference to Calendrical Calculations: Third Edition
libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)
MFC after: 1 week
Notes:
svn path=/head/; revision=200832
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/tzcode/dist/; revision=183400
|
| |
| |
| |
| |
| |
| |
| | |
Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode2004a.tar.gz
Notes:
svn path=/vendor/tzcode/dist/; revision=130459
|
| |
| |
| |
| |
| |
| |
| | |
Update man page to reflect reality.
Notes:
svn path=/vendor/tzcode/dist/; revision=42986
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
primarily bugfixes, but is also contains a disclaimer of copyright.
As we are completely off the vendor branch here, this import has
no effect on the source tree.
Notes:
svn path=/vendor/tzcode/dist/; revision=17208
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/tzcode/dist/; revision=13122
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
the results of localtime() instead of using a pthread mutex directly.
MFC after: 1 week
Notes:
svn path=/head/; revision=200797
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
an init routine run on the first invocation via _once().
MFC after: 1 week
Notes:
svn path=/head/; revision=199607
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
PR: threads/138603
Submitted by: Mikulas Patocka
MFC after: 1 week
Notes:
svn path=/head/; revision=197189
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=196752
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|