Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <jschauma@stevens.edu>Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
localtime: return NULL if time_t out of range of struct tmPreviously we would truncate tm.tm_year for any time_t corresponding toa year that does not fit in int. This issue was discovered because
localtime: return NULL if time_t out of range of struct tmPreviously we would truncate tm.tm_year for any time_t corresponding toa year that does not fit in int. This issue was discovered because itcaused the bash-static build to fail when linking with LLD.As reported by Rafael Espíndola: Configure has AC_FUNC_MKTIME which expands to a test of mktime that fails with the freebsd implementation. Given that, bash compiles a mktime.o file that defines just mktime and uses localtime. That goes in a .a file that is before libc. The freebsd libc defines mktime in localtime.o, which also defines localtime among other functions. When lld sees an undefined reference to mktime from libc, it uses the bash provided one and then tries to find a definition of localtime. It is found on libc's localtime.o, but now we have a duplicated error. The reason it works with bfd is that bash doesn't use mktime directly and the undefined reference from libc is resolved to the libc implementation. It would also fail to link if bash itself directly used mktime.The bash-static configure test verifies that, for many values of t, eitherlocaltime(t) returns NULL or mktime(localtime(t)) == t. This test failedwhen localtime returned a truncated tm_year.This was fixed in tzcode in 2004 but has persisted in our tree sincerS2708.Reported by: Rafael EspíndolaReviewed by: baptMFC after: 2 weeksSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D9534
Incorporate a change from OpenBSD by millert@OpenBSD.orgDon't warn about valid time zone abbreviations. POSIXthrough 2000 says that an abbreviation cannot start with ':', andcannot contain ',',
Incorporate a change from OpenBSD by millert@OpenBSD.orgDon't warn about valid time zone abbreviations. POSIXthrough 2000 says that an abbreviation cannot start with ':', andcannot contain ',', '-', '+', NUL, or a digit. POSIX from 2001on changes this rule to say that an abbreviation can contain only'-', '+', and alphanumeric characters from the portable characterset in the current locale. To be portable to both sets of rules,an abbreviation must therefore use only ASCII letters." Adaptedfrom tzcode2015f.This is needed to be able to update tzdata to a newer versionMFC after: 3 days
Merge: commit 400ecf36bb0b73f6390f9641e6cb8bbfb91a5cfd Author: Paul Eggert <eggert@cs.ucla.edu> Date: Fri Oct 12 07:53:12 2012 -0700 Assume C89.https://github.com/eggert/tz/commit/40
Merge: commit 400ecf36bb0b73f6390f9641e6cb8bbfb91a5cfd Author: Paul Eggert <eggert@cs.ucla.edu> Date: Fri Oct 12 07:53:12 2012 -0700 Assume C89.https://github.com/eggert/tz/commit/400ecf36bb0b73f6390f9641e6cb8bbfb91a5cfd
Revert WiP to contrib/tzcode accidentally committed with r274364
Add baud rate support to telnet(1)This implements part of RFC-2217It's based off a patch originally written by Sujal Patel at Isilon, andcontributions from other Isilon employees.PR: 173728Ph
Add baud rate support to telnet(1)This implements part of RFC-2217It's based off a patch originally written by Sujal Patel at Isilon, andcontributions from other Isilon employees.PR: 173728Phabric: D995Reviewed by: markj, markmMFC after: 2 weeksSponsored by: EMC / Isilon Storage Division
Fix typo. Note that although this file is under contrib, it has divergedsufficiently from upstream (including a full whitespace commit and largeportions rewritten) that this change does not move u
Fix typo. Note that although this file is under contrib, it has divergedsufficiently from upstream (including a full whitespace commit and largeportions rewritten) that this change does not move us further from theupstream.PR: docs/186608Submitted by: Jamie Landeg-Jones <jamie@dyslexicfish.net>MFC after: 3 days
tzfile.5: catch up to r204333The stdtime sources were moved from lib/libc to contrib/tzcode, and tzfile.his not an installed header, so the man page refers to its location in thesource tree.The
tzfile.5: catch up to r204333The stdtime sources were moved from lib/libc to contrib/tzcode, and tzfile.his not an installed header, so the man page refers to its location in thesource tree.The documentation could be more clear about the internal nature of theheader, but those changes should go through upstream tzcode.PR: docs/176864Approved by: hrs (mentor)
- set progname for use in usage()PR: bin/162908Submitted by: Oleg Ginzburg <olevole@olevole.ru>Approved by: sbruno@MFC after: 3 days
Fix a memory leak in tzload().Reported by: valgrindReviewed by: kibMFC after: 3 days
Do not overallocate on the stack. Threaded code might use custom stacksize.Reported by: manyTested by: Jeremie Le Hen <jeremie@le-hen.org> (previous version)Reviewed by: jillesApproved by: re (
Do not overallocate on the stack. Threaded code might use custom stacksize.Reported by: manyTested by: Jeremie Le Hen <jeremie@le-hen.org> (previous version)Reviewed by: jillesApproved by: re (bz)MFC after: 2 weeks
Sync code with tzcode2010masctime.c:* Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if asctime_r is called with a NULL struct tm pointer. (Note that asctime_r is called by ctime
Sync code with tzcode2010masctime.c:* Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if asctime_r is called with a NULL struct tm pointer. (Note that asctime_r is called by ctime_r and asctime; asctime is called by ctime.)localtime.c:* Set errno to EINVAL and return WRONG if time1 is called with a NULL struct tm pointer; avoid dereference if a NULL struct tm pointer is passed to timelocal, timegm, or timeoff. (Note that time1 is called by mktime, timegm, and timeoff; mktime is called by timelocal.)* more core-avoidance work* Change to set timezone and altzone based on time types with greatest transition times (for the benefit of Asia/Seoul).zic.8:* Warning about case-sensitivity of names, but not of abbrevationszic.c:* Conditionally output extra types with most-recently-use offsets last (for use by systems with pre-2011 versions of localtime.c, helping to ensure that globals "altzone and "timezone" get set correctly).The code has been running for nearly four weeks on my laptop runningFreeBSD 8.1 without a problem.MFC after: 1 month
Make mandoc/mdocml happy.Submitted by: Uli(?) via gmane.comp.time.tz
Update GRANDPARENTED text to match the contents of tzdata/factory r19879.This eliminates "warning: time zone abbreviation differs from POSIX" oninstallworld to an empty filesystem.Reviewed by: ed
Update GRANDPARENTED text to match the contents of tzdata/factory r19879.This eliminates "warning: time zone abbreviation differs from POSIX" oninstallworld to an empty filesystem.Reviewed by: edwinMFC after: 1 week
Remove non-contributed code.
Copy lib/libc/stdtime to contrib/tzcode/stdtime for the proper splitof contributed code and FreeBSD specific code.
From contrib/tzcode:The Makefiles are leftovers from the copies and should live in usr.sbin/zic/*From usr.sbin/zic:The sources are from a vendor contributed source, therefore shouldlive in contr
From contrib/tzcode:The Makefiles are leftovers from the copies and should live in usr.sbin/zic/*From usr.sbin/zic:The sources are from a vendor contributed source, therefore shouldlive in contrib/tzcode/zic.
Copy usr.sbin/zic to contrib/tzcode/zic for the proper split ofcontributed code and FreeBSD specific code.
12