Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use TclListObjLength/TclListObjGetElements in stead of ↵ | jan.nijtmans | 2022-02-10 | 1 | -1/+1 |
| | | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type | ||||
* | IntRep -> InternalRep. Internal changes only. | jan.nijtmans | 2021-10-19 | 1 | -9/+9 |
| | |||||
* | Fix [24b9181478]: Fix unsafe buffer lifetime | jan.nijtmans | 2021-05-03 | 1 | -1/+2 |
|\ | |||||
| * | Fix [24b9181478]: Fix unsafe buffer lifetime | jan.nijtmans | 2021-05-03 | 1 | -1/+2 |
| | | |||||
* | | Fix warning: /home/jboss/workspace/tcl8.7/generic/tclIO.c:9997:27: warning: ↵ | jan.nijtmans | 2020-10-23 | 1 | -2/+2 |
| | | | | | | | | | | | | writing 1 byte into a region of size 0 [-Wstringop-overflow=] 9997 | RemovePoint(nextPtr)[0] = '\r'; | ^ | ||||
* | | Fix [e87000d8425ab86a]: crash for "fconfigure stdout" in Win32. | jan.nijtmans | 2020-08-12 | 1 | -1/+1 |
| | | | | | | Even though the crash cannot happen in Tcl 8.6, the function Tcl_BadChannelOption() was to blame, so better fix that in 8.6 too. | ||||
* | | Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵ | jan.nijtmans | 2020-08-11 | 1 | -3/+3 |
| | | | | | | | | size_t or int | ||||
* | | fixes [f583715154] - tclUnixSock.c: introduced ThreadActionProc considering ↵ | sebres | 2020-03-31 | 1 | -0/+26 |
| | | | | | | | | a transfer of async-connecting channel between threads; cherry-picked some prevention against invalid thread owner addressed in [815e246806] | ||||
* | | Move setting of interpreter error-message from tclUnixSock.c to tclIO.c, ↵ | jan.nijtmans | 2020-03-05 | 1 | -19/+14 |
| | | | | | | | | | | since the same should be done for all channel types. (Thanks, Don, for noticing this!) Also, ENOTCONN for a half-close should not be fatal, just a EINVAL, when doing it as part of a full close. See: [65c9cd1534] | ||||
* | | Implement WideSeekProc() for all channels which have a SeekProc(). Implement ↵ | jan.nijtmans | 2020-03-04 | 1 | -382/+464 |
| | | | | | | | | | | Close2Proc() for all channels, as minimal wrapper around CloseProc(). Backported (with comments) and adapted from core-8-branch. | ||||
* | | Merge 8.5 | jan.nijtmans | 2020-02-24 | 1 | -1/+1 |
|\ \ | |/ | |||||
* | | Simplify the use of HaveVersion() in Channel handling. Nothing functional, ↵ | jan.nijtmans | 2020-01-30 | 1 | -69/+31 |
| | | | | | | | | only code clean-up. | ||||
* | | Change LSTATUS to LONG, since older SDK's don't know it. core.tcl.tk -> ↵ | jan.nijtmans | 2019-10-05 | 1 | -1/+1 |
|\ \ | |/ | | | | | core.tcl-lang.org and http -> https | ||||
* | | merge core-8-5-branch (fixes [1873ea0ee4f01b26]: wrong initialization of ↵ | sebres | 2018-03-05 | 1 | -9/+13 |
|\ \ | |/ | | | | | std-channels ...) | ||||
| * | fixes [1873ea0ee4f01b26]: wrong initialization of std-channels, if no ↵ | sebres | 2018-03-05 | 1 | -9/+13 |
| | | | | | | | | std-handles available at all (e. g. non-console application, like "tk") | ||||
* | | Fix [b58e6897034fc5292c9d36ba8099d9a835c98172|b58e689703]: Return value of ↵ | jan.nijtmans | 2017-10-23 | 1 | -1/+1 |
| | | | | | | | | 'Tcl_Flush' | ||||
* | | In comments and documentation, distinguish between __int64 (a Microsoft ↵ | jan.nijtmans | 2017-03-29 | 1 | -1/+1 |
| | | | | | | | | 64-bit integer type) and int64_t (C99 equivalent) | ||||
* | | compatability -> compatibility | jan.nijtmans | 2016-12-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | compatability -> compatibility | jan.nijtmans | 2016-12-01 | 1 | -1/+1 |
| | | |||||
* | | [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached ↵ | dgp | 2016-07-18 | 1 | -86/+73 |
|\ \ | |/ | | | | | channel name lookups. | ||||
| * | [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached | dgp | 2016-07-18 | 1 | -85/+76 |
| | | | | | | channel name lookups. | ||||
* | | [261a8a79f0] Integer overflow leads to segfault. | dgp | 2015-11-10 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | [261a8a79f0] Integer overflow leads to segfault. | dgp | 2015-11-10 | 1 | -1/+1 |
| | | |||||
| * | Backout of failed attempt to fix [32ae34e63a] got checked into wrong branch. | dgp | 2015-10-23 | 1 | -43/+4 |
| | | |||||
* | | Backout failed attempt to fix [32ae34e63a]. | dgp | 2015-09-25 | 1 | -43/+4 |
|\ \ | |/ | |||||
* | | [e0a7b3e5f8] Add missing UpdateInterest call in DoRead(). | dgp | 2015-09-23 | 1 | -3/+10 |
|\ \ | |/ | |||||
| * | merge 8.5 | dgp | 2015-09-23 | 1 | -4/+43 |
| |\ | |||||
| * | | Add the critical missing UpdateInterest() call at the exit of DoRead(). | dgp | 2015-08-10 | 1 | -3/+10 |
| | | | | | | | | | | | | | | | | | | (Compare with same approach in DoReadChars()). This involves removing some other calls that are now replaced by the new one. Also marked several UpdateInterest() calls throughout tclIO.c with comments raising the suspicion that they serve no function. | ||||
* | | | [32ae34e63a] Prevent segfaults and data corruption when CopyData() is called ↵ | dgp | 2015-09-23 | 1 | -4/+43 |
|\ \ \ | | |/ | |/| | | | | | | | recursively. Mark new test io-53.20 as "knownBug". It demos some unknown flaw in MoveBytes(). | ||||
| * | | Protect CopyState buffer from conflicting uses when CopyData() is called | dgp | 2015-09-23 | 1 | -0/+7 |
| | | | | | | | | | recursively. Also, have ReflectWatch() always give driver a chance to act. | ||||
| * | | CopyData() now tolerates recursion enough so that io-53.18 does not segfault. | dgp | 2015-09-23 | 1 | -21/+9 |
| | | | |||||
| * | | WIP | dgp | 2015-09-23 | 1 | -3/+47 |
| |/ | |||||
* | | [b1534b438b] Prevent read outside buffer boundaries. | dgp | 2015-07-15 | 1 | -1/+12 |
|\ \ | |/ | |||||
| * | [b1534b438b] Prevent read outside buffer boundaries. | dgp | 2015-07-15 | 1 | -1/+12 |
| | | |||||
* | | Revert some refcount changes on I/O structs. | dgp | 2015-07-02 | 1 | -2/+2 |
| | | | | | | | | | | | | | | These are refcounts on structs, not Tcl_Obj's. Their scheme doesn't suffer the same difficulties and histories as Tcl_Obj's, and they need not copy every detail, appropriate or not, from Tcl_Obj refcount management. The "significant value" -- as dkf puts it -- for the struct refcounting scheme is 0 not 1. | ||||
* | | Another round of refCount consistancy improvements. | jan.nijtmans | 2015-07-02 | 1 | -29/+28 |
| | | |||||
* | | [894da183c8] Test and fix for regression in flushing blocked channels. | dgp | 2015-04-29 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | [894da183c8] Test and fix for regression in flushing blocked channels. | dgp | 2015-04-29 | 1 | -1/+4 |
| |\ | |||||
| | * | [894da183c8] Fix and test for bug at the point it was introduced. | dgp | 2015-04-29 | 1 | -0/+3 |
| | | | |||||
* | | | [879a0747be] Repair handling of incomplete multi-byte chars at the ends of ↵ | dgp | 2015-04-24 | 1 | -6/+53 |
|\ \ \ | |/ / | | | | | | | input buffers. Also properly reset input encoding flags when cycling through a fleeting EOF condition. | ||||
| * | | [879a0747be] Repair handling of incomplete multi-byte chars at the ends | dgp | 2015-04-24 | 1 | -7/+54 |
| | | | | | | | | | | | | of input buffers. Also properly reset input encoding flags when cycling through a fleeting EOF condition. | ||||
| * | | Backport of channel mem leak fix that got missed before. | dgp | 2015-02-05 | 1 | -3/+15 |
| | | | |||||
* | | | per ticket [e08c2c407b053bbfaab] (and stray code related to ↵ | bch | 2015-02-19 | 1 | -3/+0 |
| | | | | | | | | | | | | [84f208762f172e]) adj code to passing test suite | ||||
* | | | Even clearer failure messages. | dkf | 2015-02-11 | 1 | -16/+17 |
| | | | |||||
* | | | inputProc and outputProc tests run conditionally on TCL_READABLE, ↵ | bch | 2015-02-08 | 1 | -2/+2 |
| | | | | | | | | | | | | TCL_WRITABLE mask | ||||
* | | | switch raw assert() to Tcl_Panic() per discussion w/ dkf | bch | 2015-02-07 | 1 | -7/+17 |
| | | | |||||
* | | | merge [trunk] | bch | 2015-02-07 | 1 | -2/+2 |
|\ \ \ | |||||
| * | | | Fix [08872796bc] | dgp | 2015-01-29 | 1 | -2/+2 |
| | | | | |||||
* | | | | truncateProc *can* be NULL | bch | 2015-01-21 | 1 | -1/+0 |
| | | | | |||||
* | | | | assert() on missing definitions for Tcl_ChannelCreate() required struct ↵ | bch | 2015-01-20 | 1 | -0/+9 |
|/ / / | | | | | | | | | | Tcl_ChannelType{} fields. |