Tcl Source Code

All files named "unix/tclUnixTime.c"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for unix/tclUnixTime.c

2024-12-04
17:51
Indenting file: [b4cbc04c4d] check-in: [3dd7035ccc] user: jan.nijtmans branch: core-8-branch, size: 13915
2024-08-29
08:23
Merge [f6c559b364487a9d]: Space before tab is an extremely unlikely to be correct indentation pattern. file: [ad69d47b0d] check-in: [8a11a89576] user: pooryorick branch: unchained, size: 9570
2024-08-20
15:44
Merge [19499b816370cd3f], "Fix suggestion in [86dd172271], updating Tcl_Time.sec to "long long". This is a binary incompatibility for 32-bit platforms!". file: [bef699f2e9] check-in: [891c8d0689] user: pooryorick branch: unchained, size: 9571
2024-07-20
15:59
Merge trunk [91c2f411e7e71552], TIP #636 (tip-636-tcl9-644), resolve all conflicts including those resulting from conflicting Tcl_Obj interface implementations, and relicense under GNU Affero General Public License. All tests pass. file: [2a98361b94] check-in: [d8a3450f12] user: pooryorick branch: unchained, size: 9598
2024-06-04
15:35
Space before tab is an extremely unlikely to be correct indentation pattern file: [b9cbb717d5] check-in: [f6c559b364] user: dkf branch: main, size: 9199
2024-05-28
12:38
Make TclGlob() a static function. Sentinel/indenting/comment improvements (all backported from 8.7) file: [2b9b5ea3ae] check-in: [5f6c7373c1] user: jan.nijtmans branch: core-8-6-branch, size: 13711
2024-03-20
13:14
(backport) more spacing/formatting tweaks. For now, macosx/unix/win only. file: [169bfeacdb] check-in: [dc8a99efff] user: jan.nijtmans branch: core-8-branch, size: 13916
2023-08-24
17:33
Update Tcl_Time for 32-bit systems and win64, being able to handle time > 2038. Suggested in in ticket [86dd172271] file: [3eb2548d24] check-in: [3dcef36ee2] user: jan.nijtmans branch: bug-86dd172271, size: 9200
2023-03-24
20:58
Merge 8.7 file: [4fa0551df6] check-in: [6301de2138] user: jan.nijtmans branch: main, size: 9227
20:47
Merge 8.6 file: [53c526c927] check-in: [87cd711c2a] user: jan.nijtmans branch: core-8-branch, size: 13953
20:19
Fix [15e74a2fe6]: Fix various typos file: [b7e1091c7d] check-in: [c44138ed03] user: jan.nijtmans branch: core-8-6-branch, size: 13712
2022-10-10
15:22
Merge 8.7 file: [d9688ed852] check-in: [fc703a1d88] user: jan.nijtmans branch: main, size: 9226
2022-02-21
16:35
Merge 8.7 file: [8ccf05d19c] check-in: [b84a93d7ba] user: jan.nijtmans branch: main, size: 9254
16:30
Merge 8.6 file: [bfb71eed9d] check-in: [91b14c222b] user: jan.nijtmans branch: core-8-branch, size: 13951
16:18
Fix [fb4a0a6675]: signed integer overflow in TclpGetClicks() file: [96269243a7] check-in: [8779e57115] user: jan.nijtmans branch: core-8-6-branch, size: 13710
2021-09-22
21:46
Various fixes. Not done yet file: [72073b5168] check-in: [3e61b427fa] user: jan.nijtmans branch: tcl-time-64bit, size: 8997
2021-09-21
08:36
Experiment: Make Tcl_Time a long long in stead of a struct file: [91ccd27bd6] check-in: [7d007b4694] user: jan.nijtmans branch: tcl-time-64bit, size: 9035
2021-04-03
13:53
Clean up the notifier code to not spread the hooks quite so widely file: [0e2467cf46] check-in: [a263b27340] user: dkf branch: main, size: 9219
2021-03-30
08:22
Refactoring, ahoy file: [1701a4171e] check-in: [7365fa0cf2] user: dkf branch: dkf/notifier-cleanup, size: 13875
2021-02-18
11:31
Change (internal) signatures for TclpGetClicks/TclpGetSeconds to use "unsigned long long" in stead of Tcl_WideUInt as return value. file: [8ebf436b95] check-in: [a939981a1b] user: jan.nijtmans branch: main, size: 9125
2021-01-08
21:07
Merge 8.7 (resolve conflicts) file: [8d91fccce3] check-in: [5295f674c1] user: dgp branch: main, size: 9037
09:37
Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we stopped support for MSVC 6++ Change Tcl_WideInt -> long long in various places: Tcl_WideInt could be a 128-bit type, we don't want that everywhere. file: [e4e8c96421] check-in: [174a9adac8] user: jan.nijtmans branch: tip-592, size: 13766
2020-12-08
15:42
Merge 8.7 file: [1cdb4d89de] check-in: [71493b571b] user: jan.nijtmans branch: main, size: 9051
15:31
Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet file: [f79380131b] check-in: [4254aa305b] user: jan.nijtmans branch: core-8-branch, size: 13780
2020-04-17
12:49
Clean-up some unnecessary spacing. file: [501ead2fa1] check-in: [8abc31553c] user: jan.nijtmans branch: core-8-5-branch, size: 16671
2020-03-09
16:34
merge 8.7 file: [ea49478919] check-in: [a0ed9240c8] user: dgp branch: trunk, size: 9052
15:45
TCL_UNUSED in the unix sources. file: [1d12e48e2e] check-in: [2c910028eb] user: dgp branch: core-8-branch, size: 13781
2020-02-28
12:46
Merge 8.7 file: [66495c8982] check-in: [b7af922d61] user: jan.nijtmans branch: trunk, size: 9098
2019-09-03
20:32
Mark more unused parameters file: [b95806243a] check-in: [c07dbdd62a] user: jan.nijtmans branch: cplusplus, size: 13838
2019-08-29
13:28
Merge tip-548 file: [692d52c8be] check-in: [c933888049] user: jan.nijtmans branch: cplusplus, size: 13785
2019-08-23
09:07
Merge 8.7 file: [db7f70e7ad] check-in: [0a4ebc2d56] user: jan.nijtmans branch: trunk, size: 9050
09:03
Merge 8.6 Update effective_tld_names.txt.gz to the latest version. Adapt .gitattributes and .fossil-settings/binary-glob to handle *.gz file transparently in fossil/git file: [bd9de91a2e] check-in: [0714da3ed9] user: jan.nijtmans branch: core-8-branch, size: 13767
2019-08-22
12:20
Fix [8566dc22f9]: various spelling fixes in comments file: [e889735a28] check-in: [319c60966d] user: jan.nijtmans branch: core-8-6-branch, size: 13634
12:19
Fix [8566dc22f9]: various spelling fixes in comments file: [6cbe2d8aa6] check-in: [978c80ef75] user: jan.nijtmans branch: core-8-5-branch, size: 16673
2019-08-03
20:25
Merge tip-548 (since using the *WChar* functions leads to less type-casts in c++) Als finish implementaton for MacOSX file: [c15fe1af6d] check-in: [3da6c33030] user: jan.nijtmans branch: cplusplus, size: 13770
2019-08-02
14:26
Merge 8.7 file: [2d73e0fd67] check-in: [b0fbdeb265] user: jan.nijtmans branch: trunk, size: 9050
2019-07-05
09:03
Improvement: always export both 16-bit and 32-bit UTF function file: [2a7921682f] check-in: [27f2c4cf5e] user: jan.nijtmans branch: tip-548, size: 13767
2019-07-04
06:54
Experiment: compile Tcl with C++ compiler. WIP file: [9202c85891] check-in: [99d5f9c948] user: jan.nijtmans branch: cplusplus, size: 13790
2019-04-02
19:17
Merge 8.6 file: [ea300eac5d] check-in: [1bcfcb3ac6] user: jan.nijtmans branch: androwish, size: 14917
2019-03-09
21:22
merge 8-5-event-perf-branch file: [ccc0d7b640] check-in: [697065a8e5] user: sebres branch: sebres-8-6-event-perf-branch, size: 17413
18:41
TclpScaleUTime fixed typo, only if native scaling used (tclScaleTimeProcPtr == NativeScaleTime) the relationship is 1:1 and nothing has to be done. file: [6f2a3a2e68] check-in: [fca5fb3444] user: sebres branch: sebres-8-5-event-perf-branch, size: 20443
2019-03-08
15:39
merge 8-5-event-perf-branch (no monotonic time fallbacks) file: [41453d7c6f] check-in: [ec9b47d045] user: sebres branch: sebres-8-6-event-perf-branch, size: 17413
15:38
unix: monotonic time (performance counter/wide-clicks) - implements several fallbacks for platforms without monotonic time (older Darwin, MacOSX or xcode) file: [ee6251512c] check-in: [6593536677] user: sebres branch: sebres-8-5-event-perf-branch, size: 20443
2019-03-07
08:39
Merge 8.7 file: [38a9043378] check-in: [feb76896c3] user: jan.nijtmans branch: trunk, size: 9070
2019-03-05
18:23
merge 8.7 (TIP#527, New measurement facilities in TCL: New command timerate, performance test suite) file: [916073ff2b] check-in: [e41cbd042a] user: sebres branch: trunk, size: 9071
2018-10-19
16:09
Merge trunk file: [ee8f07f6a8] check-in: [745d651613] user: jan.nijtmans branch: novem, size: 7522
2018-09-05
13:45
Merge 8.7. Change some internal function signatures, accounting for the 64-bit era. file: [066dc8478e] check-in: [4280c4f9d0] user: jan.nijtmans branch: trunk, size: 7662
2017-11-08
15:50
Tcl-9 huge cleanup: Remove many unused internal functions which do nothing more than occupy the internal stub table. file: [26ee755db5] check-in: [5b49111b6d] user: jan.nijtmans branch: tcl-9-cleanup, size: 7640
2017-07-10
08:53
merge resp. reintegrate sebres-8-5-event-perf-branch to 8.6 file: [a139406957] check-in: [fed961497a] user: sebres branch: sebres-8-6-event-perf-branch, size: 15648
2017-07-03
13:32
unix: implements wide-clicks on unix (1 wide-click == 0.001 microseconds (1 nanosecond)), so more precise now (e. g. by time measurement etc.); unix/configure: regenerated (autoconf) file: [b2fdb7e343] check-in: [701d66ce66] user: sebres branch: sebres-8-5-event-perf-branch, size: 18678
13:32
Introduced monotonic time as ultimate fix for time-jump issue (fixed for windows and unix now, TIP #302 fully implemented now); Usage of monotonic time instead of adjustment via timeJump/timeJumpEpoch is more precise and effective. New sub-command "clock monotonic" to provide monotonic time facility for tcl-level. file: [8dbc443290] check-in: [b9371d7b63] user: sebres branch: sebres-8-5-event-perf-branch, size: 18490
13:29
interim commit: trying to resolve time-freezes with new facilities timeJump/timeJumpEpoch file: [d7a6e31616] check-in: [ec9fea1726] user: sebres branch: sebres-8-5-event-perf-branch, size: 17350
2017-05-31
09:19
merge core-8-6-branch (except: the "timerate" command and the clock performance-tests are kept) file: [f9316fb878] check-in: [1922f2d481] user: jan.nijtmans branch: trunk, size: 13787
08:59
More code review, e.g. use Tcl_SetObjResult in stead of Tcl_SetResult, preventing a (char *) type case. No functional changes. file: [c6af579c25] check-in: [a666a90e03] user: jan.nijtmans branch: sebres-8-6-clock-speedup-cr1, size: 13634
2017-05-16
12:41
back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5) file: [4978d31845] check-in: [c8c40eda06] user: sebres branch: sebres-8-5-timerate, size: 16673
2017-05-11
18:53
merge trunk (to sebres-trunk-timerate) file: [2f4167e921] check-in: [53c18af29e] user: sebres branch: sebres-trunk-timerate, size: 13788
2017-05-09
21:58
back-ported branch sebres_trunk_timerate (new command "timerate" for 8.6) file: [e167ec3919] check-in: [aa888d99ab] user: sebres branch: sebres-8-6-timerate, size: 13635
2017-04-13
10:00
Merge trunk file: [a52b384952] check-in: [0169fbc878] user: jan.nijtmans branch: tkt3328635-posix-monotonic-clock, size: 13522
2017-02-09
11:36
[timerate] bug fix: missing scale conversion by Mac OSX on platform where high resolution clicks are not microseconds based; [win] use high resolution timer for the wide clicks and microseconds directly, prevent several forwards/backwards conversions; [win, unix, mac-osx] normalize some functions for common usage in different time units (clicks, micro- and nanoseconds) file: [cafff6bb7f] check-in: [ace2015c4e] user: sebres branch: sebres-trunk-timerate, size: 13616
2017-02-07
19:35
[timerate] bug fix: missing scale conversion by Mac OSX on platform where high resolution clicks are not microseconds based; [win] use high resolution timer for the wide clicks and microseconds directly, prevent several forwards/backwards conversions; [win, unix, mac-osx] normalize some functions for common usage in different time units (clicks, micro- and nanoseconds)

# Conflicts: # win/tclWinTime.c file: [8a77526f12] check-in: [6554392102] user: sebres branch: sebres-trunk-timerate, size: 13635

2017-01-17
10:28
merge trunk file: [e9a0afe730] check-in: [bcb14c7343] user: jan.nijtmans branch: semver, size: 12239
2017-01-16
12:50
Merge zipfs file: [86c755c2b8] check-in: [79d25736fb] user: jan.nijtmans branch: androwish, size: 13369
2017-01-11
14:39
merge trunk file: [2c9522dc49] check-in: [787a8c193b] user: jan.nijtmans branch: novem, size: 7500
2017-01-09
17:51
Merge bug_b87ad7e914 file: [aeebdbe4b4] check-in: [0f88ee352f] user: sebres branch: core-8-6-branch, size: 12086
09:08
Fix for [b87ad7e914], rebased to core-8-5-branch (who said fossil doesn't have 'rebase'...), and moved the definition of "struct _timeb t" to the top of the function. This branch is ready to be merged to core-8-5-branch, it looks good to me. Thanks to sebres (Dipl. Ing. Sergey G. Brester) file: [7ed9d16181] check-in: [b23e0b20c4] user: jan.nijtmans branch: bug_b87ad7e914, size: 15124
2017-01-02
14:31
[win] bug fix in NativeGetTime: each call of it blurs current performance counters actualized in calibration thread in UpdateTimeEachSecond; This entails that sometimes sporadically time-drifts resp. jump-esque time-shifts occurred, what for example produces very confusing results during time measurement. [unix] wrong cast fixed in TclpGetWideClicks: multiplication with 1000000 in long int may cause overflow

See ticket b87ad7e9146832d505f9a430d779c5313c440256 file: [4c514aa095] check-in: [b6fc234ef3] user: sebres branch: bug_b87ad7e914, size: 12067

2016-09-26
15:38
Merge core-8-6-branch. upstream androwish modifications. file: [5128b62419] check-in: [88fd04e92c] user: jan.nijtmans branch: androwish, size: 13370
09:35
[3328635] Latest patch from Christian Werner file: [e1c0f09e77] check-in: [965d56c3af] user: jan.nijtmans branch: tkt3328635-posix-monotonic-clock, size: 13351
2016-06-30
13:55
Merge trunk file: [c2bab5766f] check-in: [f1bf3ef179] user: jan.nijtmans branch: semver, size: 12240
13:16
Simplify use of "struct" keyword in many places. file: [7a861a9ced] check-in: [2e6ea5716f] user: jan.nijtmans branch: trunk, size: 12068
2016-03-30
20:03
The following patch against a stock tcl 8.6.5 source tree tries to

implement most of TIP #302 for UN*X and WIN32/64:

* use clock_gettime(CLOCK_MONOTONIC) for relative timing (UN*X)
when available (tested at runtime)
* use PTHREAD_CONDATTR_SETCLOCK et.al. for pthread_cond (UN*X)
when available (tested at runtime)
* use GetTickCount64() for relative timing (WIN64)
* use GetTickCount() for relative timing (WIN32 for WINNT<6.0)
* configure (UN*X) detects availabilty of clock_gettime() and
pthread_condattr_setclock() plus adds optional -lrt to LIBS
* configure (WIN32) adds command line option --with-tickcount
to turn on GetTickCount*() usage

Trade-off: implementation eliminates virtualized time, unfortunately.

Best regards,

Christian Werner

--- missing merge ---

diff -ur tcl8.6.5-orig/win/configure.in tcl8.6.5/win/configure.in

--- tcl8.6.5-orig/win/configure.in 2016-02-29 20:13:09.000000000 +0100

+++ tcl8.6.5/win/configure.in 2016-03-25 06:47:47.712516747 +0100

@@ -142,6 +142,15 @@

])
AC_DEFINE(HAVE_ZLIB, 1, [Is there an installed zlib?])

+AC_ARG_WITH(tickcount,

+ AC_HELP_STRING([--with-tickcount],

+ [use GetTickCount for timers, turns off interp time limits]),

+ [tcl_ok=$withval], [tcl_ok=no])

+AC_MSG_RESULT([$tcl_ok])

+if test $tcl_ok = yes; then

+ AC_DEFINE(WIN32_USE_TICKCOUNT, 1, [Use GetTickCount for timers?])

+fi

+

AC_CHECK_TYPE([intptr_t], [ AC_DEFINE([HAVE_INTPTR_T], 1, [Do we have the intptr_t type?])], [ AC_CACHE_CHECK([for pointer-size signed integer type], tcl_cv_intptr_t, [
file: [43614d4cc9] check-in: [6fa1088680] user: oehhar branch: tip-302, size: 12332
2016-01-06
11:46
Merge trunk. If TCL_NO_DEPRECATED is defined, make all internal stub funcions MODULE_SCOPE file: [f374c3fe5d] check-in: [89443c0c3d] user: jan.nijtmans branch: semver, size: 12259
2015-07-15
09:22
Merge trunk. Remove TclpLocaltime, TclpGmtime and TclpGetDate completely, in order to prove that those functions are not used anywhere within Tcl any more. They are only retained for the internal stub entries, which might be used by extensions, but androwish doesn't use that. file: [3380096265] check-in: [b7425eb31e] user: jan.nijtmans branch: androwish, size: 7990
2015-06-21
22:29
Branch for androwish, as help to keep track on which android-specific changes could be included into the core without harm. file: [c7313c9fdf] check-in: [fe175c2a4e] user: jan.nijtmans branch: androwish, size: 12132
2014-11-14
09:47
merge trunk file: [111fcc9c25] check-in: [b83be1ab3b] user: jan.nijtmans branch: novem, size: 7501
09:44
Remove a number of eol-spaces. No change in functionality. file: [ee0fac3efc] check-in: [43b5a95f6d] user: jan.nijtmans branch: trunk, size: 12087
2014-09-05
19:04
Remove unused macros. file: [4ce4c82163] check-in: [c750138b4b] user: dgp branch: trunk, size: 12088
2013-01-30
08:19
merge changes from trunk file: [6b38bbcca3] check-in: [fc2438ef5f] user: dkf branch: novem-no-startcmd, size: 9374
2013-01-25
13:07
Another memory leak, and one Tcl_Free -> ckfree file: [f60cfd1465] check-in: [479be4881a] user: jan.nijtmans branch: initsubsystems, size: 12186
2013-01-08
21:42
remove some unused static functions/variables file: [eec80c1a69] check-in: [a257559487] user: jan.nijtmans branch: novem, size: 7502
2012-11-26
14:29
Removed functions marked deprecated or obsolete for a long time: Tcl_Backslash, Tcl_EvalFile, Tcl_GlobalEvalObj, Tcl_GlobalEval, Tcl_EvalTokens. Remove Tcl_FindExecutable from stub table: It is needed by embedders, not extenders. Remove TclpGetDate, TclpGmtime, TclpLocaltime: it isn't use anywhere since the new clock implementation. Remove TclWinConvertWSAError, it's the same as TclWinConvertError. file: [3e70c34457] check-in: [6b2cf92413] user: jan.nijtmans branch: novem, size: 9376
2012-08-20
06:49
remove unnecessary struct names, which only pollute the "struct" namespace for te compiler. file: [28ecf28a48] check-in: [db442914c7] user: jan.nijtmans branch: jn-no-struct-names, size: 12169
2012-04-03
10:58
[Bug 3514475]: remove TclpGetTimeZone and TclpGetTZName file: [2d6cc5c996] check-in: [571970a62f] user: jan.nijtmans branch: bug-3514475, size: 12188
2011-03-25
14:05
Remove Tclp(Local|Gm)time_unix forwarders, the same can be done directly file: [8e4c3b508d] check-in: [24d1308684] user: jan.nijtmans branch: trunk, size: 15056
13:46
fix genStubs.tcl in one place where it generated "void *" in stead of "VOID *" Remove Tclp(Local|Gm)time_unix forwarders, the same can be done directly Some more void -> VOID transitions file: [2c50481f69] check-in: [491f6fe449] user: jan.nijtmans branch: core-8-5-branch, size: 15125
13:13
Remove Tclp(Local|Gm)time_unix forwarders, the same can be done directly Some void -> VOID transitions file: [1350022700] check-in: [288986ffb1] user: jan.nijtmans branch: core-8-4-branch, size: 11150
2011-03-02
20:27
Now that we're no longer using SCM based on RCS, the RCS Keyword lines cause more harm than good. Purged them (except in zlib files). file: [6201357be8] check-in: [c64f310d38] user: dgp branch: trunk, size: 15341
16:06
Now that we're no longer using SCM based on RCS, the RCS Keyword lines cause more harm than good. Purged them. file: [77225f8647] check-in: [79367df0f0] user: dgp branch: core-8-5-branch, size: 15438
2011-03-01
15:38
Now that we're no longer using SCM based on RCS, the RCS Keyword lines cause more harm than good. Purged them. file: [1dc6490424] check-in: [90b4acd7bd] user: dgp branch: core-8-4-branch, size: 11591
2010-11-23
13:11
Jump. file: [07d88d0ea5] check-in: [f8ff91db3f] user: andreask branch: activestate-nre-excised-variant-1-roll-forward, size: 15413
2010-11-22
16:07
Next @380. OO Stacktraces broken. file: [7d98385370] check-in: [1713113dd4] user: andreask branch: activestate-nre-excised-variant-1-roll-forward, size: 15494
2010-03-14
16:53
merge updates from HEAD file: [5ea94f6592] check-in: [5bf14f403a] user: dgp branch: dgp-refactor, size: 15418
14:59
Squelch unnecessary parens, shorten overlong comment lines. file: [81d8609f5f] check-in: [6b7147d1ee] user: dkf branch: trunk, size: 15413
2010-02-26
01:21
merge updates from HEAD file: [a66ac9a3b9] check-in: [ec93238882] user: dgp branch: dgp-refactor, size: 15486
2010-02-25
22:20
[ tcl-Feature Requests-2958832 ] Further speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts. file: [92df2d58fc] check-in: [b28fef8499] user: nijtmans branch: trunk, size: 15486
2008-11-10
02:18
merge updates from HEAD file: [d5a2d82016] check-in: [4a9c1325dc] user: dgp branch: dgp-refactor, size: 15499
2008-10-26
12:45
Style improvements - invoking callbacks without visual junk. file: [78e8763384] check-in: [de3bfd137a] user: dkf branch: trunk, size: 15494
2008-06-25
15:56
merge updates from 8.5 branch file: [06dc19b1df] check-in: [affd52009d] user: dgp branch: core-stabilizer-branch, size: 15514
2008-05-11
04:22
merge updates from HEAD file: [bdb7ee42d2] check-in: [b084fd8e3a] user: dgp branch: dgp-refactor, size: 15515
2008-04-27
22:21
Get rid of pre-C89-isms (esp. CONST vs const). file: [3f404a6bf3] check-in: [2d205c22fb] user: dkf branch: trunk, size: 15510
2008-04-15
19:19
merge updates from HEAD file: [9853b780eb] check-in: [dc626ebb84] user: dgp branch: dgp-refactor, size: 15515
2008-04-14
17:54
* unix/tclUnixTime.c (NativeGetTime): Removed obsolete use of 'struct timezone' in the call to 'gettimeofday'. [Bug 1942197]. file: [b0d41680f8] check-in: [b5d4ae05ac] user: kennykb branch: trunk, size: 15514
17:49
* unix/tclUnixTime.c (NativeGetTime): Removed obsolete use of 'struct timezone' in the call to 'gettimeofday'. [Bug 1942197]. file: [2ca6eb75ba] check-in: [ec37817fc4] user: kennykb branch: core-8-5-branch, size: 15518
17:34
* unix/tclUnixTime.c (TclpGetClicks, Tcl_GetTime): Removed obsolete use of 'struct timezone' in the call to 'gettimeofday'. [Bug 1942197]. file: [8bdb0aa90c] check-in: [306c35f2c3] user: kennykb branch: core-8-4-branch, size: 11671
2007-12-13
15:22
merge stable branch onto HEAD file: [1d6386b1b4] check-in: [d1f7550cd9] user: dgp branch: trunk, size: 15533
2007-11-12
20:40
merge updates from HEAD file: [f7467ac320] check-in: [27f428842c] user: dgp branch: dgp-refactor, size: 15538
19:18
merge updates from HEAD file: [b79a57833a] check-in: [72c5ac9502] user: dgp branch: core-stabilizer-branch, size: 15537
2007-11-10
20:49
* unix/tclUnixTime.c (TclpWideClicksToNanoseconds): fix issues with * generic/tclInt.h: int64_t overflow.
file: [4057e6fa85] check-in: [1d05f14a23] user: das branch: trunk, size: 15533
2007-09-07
03:15
merge updates from HEAD file: [18fb0f4fd0] check-in: [2c46d786c6] user: dgp branch: dgp-refactor, size: 15565
2007-09-04
17:43
merge updates from HEAD file: [9ff27d742c] check-in: [93ee5fafc4] user: dgp branch: core-stabilizer-branch, size: 15564
2007-08-03
13:51
Tidying up. file: [bb489f65c8] check-in: [6951cb3f0c] user: dkf branch: trunk, size: 15560
2007-04-21
19:52
* generic/tclInt.decls: Yet another round of attempting * generic/tclInt.h: to get the correct type signature * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime. * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST' * win/tclWinTime.c: and not a 'CONST time_t*'! * generic/tclIntDecls.h: [Bug 1677275] * generic/tclIntPlatDecls.h: Regenerated. file: [748a78f314] check-in: [c109ead7b6] user: kennykb branch: core-8-4-branch, size: 11717
2007-04-19
19:16
merge updates from HEAD file: [4a1b6347fa] check-in: [8840f48041] user: dgp branch: dgp-refactor, size: 15568
2007-04-17
14:49
Eliminate use of (VOID*) casts when calling memset or memcpy. file: [bf0567b42c] check-in: [45b4948945] user: dkf branch: trunk, size: 15563
2007-04-16
18:35
Merge updates from HEAD file: [b1e25764f0] check-in: [5bd14e2124] user: dgp branch: dgp-refactor, size: 15614
13:36
Complete the purge of K&R function definitions from manually-written code. file: [6519757118] check-in: [645aed2fcd] user: dkf branch: trunk, size: 15609
2007-04-08
14:58
Merge updates from HEAD; may not build file: [899518d249] check-in: [8dc7079178] user: dgp branch: dgp-refactor, size: 15608
2007-03-19
17:06
* generic/tclEvent.c (Tcl_CreateThread): Replaced some calls to * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging.
file: [44f757e32a] check-in: [801b5dc41c] user: dgp branch: core-8-4-branch, size: 11713
16:59
* generic/tclBasic.c (Tcl_CreateMathFunc): Replaced some * generic/tclEvent.c (Tcl_CreateThread): calls to Tcl_Alloc() * generic/tclObj.c (UpdateStringOfBignum): with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging.
file: [062917b579] check-in: [65a357c8fc] user: dgp branch: trunk, size: 15604
2006-08-29
16:19
merge updates from HEAD file: [e3f4ae5e23] check-in: [e1feeec3e7] user: dgp branch: dgp-refactor, size: 15612
2006-08-21
01:08
* generic/tclClock.c (ClockClicksObjCmd): add support for Darwin * generic/tclCmdMZ.c (Tcl_TimeObjCmd): nanosecond resolution timer * generic/tclInt.h: to [clock clicks] and [time] * unix/configure.in (Darwin): when TCL_WIDE_CLICKS defined. * unix/tclUnixTime.c (TclpGetWideClicks, TclpWideClicksToNanoseconds): * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
file: [993584f0b2] check-in: [26f9667ec2] user: das branch: trunk, size: 15608
2005-11-03
17:52
merge updates from HEAD file: [5fa71a1bed] check-in: [d827b9cf1e] user: dgp branch: dgp-refactor, size: 13405
2005-11-02
23:26
ANSIfy file: [da464455d3] check-in: [19a0a6a899] user: dkf branch: trunk, size: 13401
2005-08-02
18:14
merge updates from HEAD file: [e717d58d70] check-in: [10feab7c07] user: dgp branch: kennykb-numerics-branch, size: 13611
2005-07-26
04:11
Merge updates from HEAD file: [e0b72fb721] check-in: [8351a734a6] user: dgp branch: dgp-refactor, size: 13611
2005-07-20
23:16
Getting more systematic about style file: [6ebd777533] check-in: [0c5cea4d81] user: dkf branch: trunk, size: 13607
2005-06-13
01:45
*** MERGE WITH HEAD *** (tag msofer-wcodes-20050611)
file: [af239436c0] check-in: [d666b09ed5] user: msofer branch: msofer-wcodes-branch, size: 13848
2005-05-10
18:33
Merged kennykb-numerics-branch back to the head; TIPs 132 and 232 file: [fb4ea255ab] check-in: [1cc2336920] user: kennykb branch: trunk, size: 13845
2005-03-15
16:29
replaced 'long' times with wides, to cope with Win64 file: [0bca2b0390] check-in: [d41af48065] user: kennykb branch: core-8-4-branch, size: 11721
2005-02-02
15:53
sync with head, add TclStrToD (TIP #132) file: [5490666759] check-in: [82ce6a0c40] user: kennykb branch: kennykb-numerics-branch, size: 13849
2005-01-24
21:43
merge updates from HEAD file: [7be8d1baa0] check-in: [3e37b6975d] user: dgp branch: dgp-refactor, size: 13845
2005-01-21
22:24
* generic/tclStubInit.c: Regenerated the stubs support code from * generic/tclDecls.h: the modified tcl.decls (TIP #233, see below).
* doc/GetTime.3: Implemented TIP #233, i.e. the * generic/tcl.decls: 'Virtualization of Tcl's Sense of Time'. * generic/tcl.h: Declared, implemented, and documented the * generic/tclInt.h: specified new API functions. Moved the * unix/tclUnixEvent.c: native (OS) access to time information * unix/tclUnixNotfy.c: into standard handler functions. Inserted * unix/tclUnixTime.c: hooks calling on the handlers where native * win/tclWinNotify.c: access was done before, and where scaling * win/tclWinTime.c: between domains (real/virtual) is required.
file: [dbfae6b9e1] check-in: [8e9949daa2] user: andreas_kupries branch: trunk, size: 13853
2004-10-28
16:06
added CONST to TclpLocaltime and TclpGmtime param throughout file: [0642c4956b] check-in: [d3a95fedcf] user: kennykb branch: core-8-4-branch, size: 11723
2004-09-30
00:51
merge updates from HEAD file: [f6865fa4cc] check-in: [6cd7cf6875] user: dgp branch: dgp-refactor, size: 10653
2004-09-27
14:31
many more TIP 173 changes file: [5a8369246c] check-in: [e64761cd12] user: kennykb branch: trunk, size: 10653
2004-05-17
18:42
merge updates from HEAD file: [27b22489eb] check-in: [5741c7bde9] user: dgp branch: dgp-refactor, size: 12319
14:26
* generic/tclInt.decls: Restored TclpTime_t kludge to all * generic/tclIntPlatDecls.h: places where it appeared before the * unix/tclUnixPort.h changes of 14 May, because use of * unix/tclUnixTime.h native time_t in its place requires * win/tclWinTime.h: the 8.5 header reforms. [Bug #955146]
file: [630ec02746] check-in: [23544a04ac] user: kennykb branch: core-8-4-branch, size: 11699
2004-05-14
21:43
2004-05-14 Kevin B. Kenny <[email protected]>
* generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h:
* generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848]
* unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong.
* unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848]
* tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately.
* win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
file: [f1af06c369] check-in: [44753d7a62] user: kennykb branch: trunk, size: 12319
21:41
2004-05-14 Kevin B. Kenny <[email protected]>
* generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h:
* generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848]
* unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong.
* unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848]
* tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately.
* win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
file: [5b89601487] check-in: [27f78ca91b] user: kennykb branch: core-8-4-branch, size: 11627
2004-04-09
20:57
Merge updates from HEAD file: [b3b526356f] check-in: [5b5c8133e5] user: dgp branch: dgp-refactor, size: 10866
2004-04-06
22:25
Patch 922727 committed. Implements three changes:
* generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only.
* generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same.
* win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
file: [8a8c7b1ba5] check-in: [2e5b18c85c] user: dgp branch: trunk, size: 10862
2004-03-26
22:28
Merge updates from HEAD. file: [e87150b4dd] check-in: [6e8d2d7ba1] user: dgp branch: dgp-refactor, size: 10887
2004-03-18
18:55
* generic/tclIntDecls.h: Removed TclpTime_t. It wasn't really needed, * generic/tclInt.h: but caused warnings related to * generic/tclInt.decls: strict aliasing with GCC 3.3. * generic/tclClock.c: * generic/tclDate.c: * generic/tclGetDate.y: * win/tclWinTime.c: * unix/tclUnixTime.c: file: [0d3ea4820a] check-in: [dab531a337] user: rmax branch: trunk, size: 10884
2003-05-19
17:25
Corrected a bug in conversion of non-ASCII chars in the format string. file: [b770895dcc] check-in: [38ad353596] user: kennykb branch: trunk, size: 10926
05:42
* unix/tclUnixTime.c: fixed typo.
file: [02f3725a6b] check-in: [9236a51311] user: das branch: trunk, size: 10742
2003-05-18
19:48
* compat/strftime.c: Modified TclpStrftime to return its * generic/tclClock.c: result in UTF-8 encoding, and removed * mac/tclMacTime.c: the conversion from system encoding to * unix/tclUnixTime.c: UTF-8 from [clock format]. Needed to * win/tclWinTime.c: avoid double conversion of the timezone name on Windows systems. [Bug 624408]
file: [3171783e06] check-in: [24ccf14ddd] user: kennykb branch: trunk, size: 10746
2002-08-20
20:25
merged with trunk at tag macosx-8-4-merge-2002-08-20-trunk file: [cccd86d1b7] check-in: [354986d9c3] user: das branch: macosx-8-4-branch, size: 10165
2002-07-19
12:31
Global symbols are now all either prefixed with 'tcl' (or 'Tcl' or ...) or have file-scope. file: [b7ee9e7437] check-in: [86e27ff753] user: dkf branch: trunk, size: 10160
2002-06-26
13:42
* unix/tclUnixTime.c: Make [clock format] respect locale settings. * tests/clock.test: Bug #565880. ***POTENTIAL INCOMPATIBILITY***
file: [9c607ab4be] check-in: [a6557623af] user: rmax branch: trunk, size: 10216
2002-06-10
05:33
Merging with TOT as of 06/09/2002. file: [de521820c4] check-in: [73b68fb238] user: wolfsuit branch: macosx-8-4-branch, size: 10177
2002-05-29
00:19
* tests/clock.test: added clock-9.1 * compat/strftime.c: * generic/tclClock.c: * generic/tclInt.decls: * generic/tclIntDecls.h: * unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by using an env(TZ) setting trick for in clock format -gmt 1. This also makes %s seem to work correctly with -gmt 1 as well as making it a lot faster by avoid the env(TZ) hack. TclpStrftime now takes useGMT as an arg. [Bug #559376]
file: [3099eb7642] check-in: [4d47e1cec7] user: hobbs branch: trunk, size: 10169
2002-05-24
19:36
* tests/clock.test: added clock-9.1 * compat/strftime.c: * generic/tclClock.c: * generic/tclInt.decls: * generic/tclIntDecls.h: * unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by using an env(TZ) setting trick for in clock format -gmt 1. This also makes %s seem to work correctly with -gmt 1 as well as making it a lot faster by avoid the env(TZ) hack. TclpStrftime now takes useGMT as an arg. [Bug #559376]
file: [b1dd423040] check-in: [401402d028] user: hobbs branch: core-8-3-1-branch, size: 7490
2002-02-05
02:21
Merging with the current TOT. Very few conflicts, mostly in the generated files. file: [fab2ea380d] check-in: [f469a31a06] user: wolfsuit branch: macosx-8-4-branch, size: 10112
2001-11-21
02:36
added TIP#73 patch #483500 from Kevin Kenny. This deprecates TclpGetTime in favor of new Tcl_GetTime. file: [5b85e9ea87] check-in: [ad0e26f63b] user: hobbs branch: trunk, size: 10104
2001-05-19
16:11
Update to head -> S4-0-2 file: [c7fff59497] check-in: [1b2b2b84cf] user: msofer branch: msofer-bcEngine, size: 10108
2001-04-10
18:32
Altered tclUnixTime.c in hopes of better K&R compatibility. file: [e7157a8526] check-in: [e984e525c2] user: kennykb branch: trunk, size: 10106
15:43
Oops. Committed the wrong copy of the source with the last commit five minutes ago. file: [c5445d54f8] check-in: [b6db3ba81c] user: kennykb branch: trunk, size: 10006
15:39
Fixed silly typo in calls to 'gmtime' and 'localtime'. file: [85c67b7c15] check-in: [436fdc174b] user: kennykb branch: trunk, size: 9997
2001-04-09
23:02
Changes to support re-entrant coding of gmtime and localtime. (Bugs #219136 and #232558) file: [623d428833] check-in: [4962ea9dd5] user: kennykb branch: trunk, size: 9995
2000-08-08
19:03
Deleted: Created branch tclpro-1-5-0-synthetic check-in: [e979569c4f] user: cvs2fossil branch: tclpro-1-5-0-synthetic, size: 0
2000-01-14
22:15
* unix/tclUnixTime.c: New clock format format.

* compat/strftime.c: New clock format format.

* generic/tclGetDate.y: New clock scan format. file: [993c42af30] check-in: [53023d030d] user: ericm branch: trunk, size: 7421

1999-07-22
01:26
revert changes to TclpStrftime, not needed for internal functions. file: [b3b09d30e2] check-in: [a4cee78edc] user: redman branch: trunk, size: 7010
01:08
* doc/Utf.3: * generic/tcl.decls: * generic/tclInt.decls: * generic/tclDecls.h: * generic/tclIntDecls.h: * generic/tclUtf.c: * compat/strftime.c: * unix/tclUnixTime.c: Changed function declarations in non-platform-specific APIs to use "unsigned long" instead of "size_t", which may not be defined on certain compilers (rather than include sys/types.h, which may not exist). file: [521b810969] check-in: [22b143003b] user: redman branch: trunk, size: 7033
1999-04-21
00:42
Deleted: Added comments for 4/19 and 4/20 check-in: [6c6fc5d7b2] user: redman branch: scriptics-tclpro-1-2-old, size: 0
1999-04-16
00:46
merged tcl 8.1 branch back into the main trunk file: [bf126a08a8] check-in: [f3b32fb71c] user: stanton branch: trunk, size: 7011
1999-03-25
00:34
fixed compiler errors/warnings on VC++ 5.0/6.0 and HP-UX native compiler without -Aa or -Ae file: [be5c27a1e5] check-in: [e1542205dd] user: redman branch: core-8-1-branch-old, size: 7014
1999-03-11
19:28
Deleted: Add documentation for Tcl_GetVersion() check-in: [940e47cf48] user: redman branch: scriptics-tclpro-1-2, size: 0
1999-03-10
06:49
Integrated stubs mechanism from 8.0 into 8.1 file: [cae2f41341] check-in: [ddb86b8d93] user: stanton branch: core-8-1-branch-old, size: 7015
05:52
Merged stubs changes into mainline for 8.0 file: [9b50e94fd0] check-in: [1969693351] user: stanton branch: trunk, size: 6893
1999-03-08
20:14
First pass at integrating stubs mechanism from 8.0. file: [3c6cb0d9c8] check-in: [eeba5fd9e9] user: stanton branch: dev-8-1-stubs-branch, size: 7019
1999-03-04
00:58
* unix/tclUnixTime.c: Added TclpGetDate and TclStrftime.

* win/tclWinTime.c: * unix/tclUnixTime.c: * mac/tclMacTime.c: * generic/tclDate.c: * generic/tclClock.c: Created a new opaque TclpTime_t type so generic functions that depend on the format of time_t can appear in the generic header files. file: [42ae3f147b] check-in: [da995fce8e] user: stanton branch: dev-stubs-branch, size: 6897

1998-12-10
21:21
* Fixed lots of files that used TCL_THREAD instead of TCL_THREADS.

* generic/tclEncoding.c (Tcl_FreeEncoding): Moved most of the code into a static FreeEncoding routine that does not grab the encodingMutex to avoid deadlocks/races when called from other routines that already have the mutex. file: [e7dd1f7d38] check-in: [09f356baa2] user: stanton branch: core-8-1-branch-old, size: 5860

1998-11-11
04:54
lots of lint wrapped mutex declarations in ifdefs to avoid compiler warnings file: [96c6c52c2c] check-in: [9535a849c1] user: stanton branch: core-8-1-branch-old, size: 5859
1998-09-24
23:58
merging changes from 8.0.3 into 8.1a2 file: [216de3b021] check-in: [1c3c1ab19f] user: stanton branch: core-8-1-branch-old, size: 5834
1998-09-21
23:39
Added contents of Tcl 8.1a2 file: [35eab0539e] check-in: [8c56dc8868] user: stanton branch: core-8-1-branch-old, size: 5809
1998-09-14
18:39
Replaced SCCS strings, fixed binary files file: [17b29a5aad] check-in: [196f92fd17] user: stanton branch: trunk, size: 5740
1998-03-26
14:56
Added: Initial revision file: [e1e4ea9d71] check-in: [f86c34e38d] user: rjohnson branch: trunk, size: 5719