summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove from tclIO.h structs used only in tclIO.c.dgp2013-02-261-0/+102
|\
| * structs *ChannelHandler* GetsState CopyState used only locally.dgp2013-02-261-0/+102
| |\ | | | | | | Remove from tclIO.h.
| | * structs ChannelHandler ChannelHandlerEvent GetsState CopyState used locally.dgp2013-02-261-0/+78
| | | | | | | | | Remove from tclIO.h.
| | * struct NextChannelHandler used only locally. Remove from tclIO.h.dgp2013-02-261-0/+24
| | |
* | | Repair linked list management in Tcl_DeleteCloseHandler().dgp2013-02-251-0/+14
|\ \ \ | |/ / | | | CloseCallback struct used only locally. Remove from tclIO.h.
| * | Repair linked list management in Tcl_DeleteCloseHandler().dgp2013-02-251-0/+14
| |\ \ | | |/ | | | CloseCallback struct used only locally. Remove from tclIO.h.
| | * Repair linked list management in Tcl_DeleteCloseHandler(). dgp2013-02-251-0/+14
| | | | | | | | | CloseCallback struct is used only locally. Remove from tclIO.h.
* | | merge core-8-5-branchjan.nijtmans2013-01-311-2/+2
|\ \ \ | |/ /
| * | Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-2/+2
| | | | | | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
| * | When checking for std channels being closed, compare the channel state,dgp2012-10-031-5/+9
| |\ \ | | |/ | | | not the channel itself so that stacked channels do not cause trouble.
| | * When checking for std channels being closed, compare the channel state,dgp2012-10-031-20/+24
| | | | | | | | | not the channel itself so that stacked channels do not cause trouble.
| | * Preserve the chanPtr so that script evaluation cannot invalidate it whendgp2012-07-241-0/+2
| | | | | | | | | we plan to use it again.
* | | Fix busyloop at exit under TCL_FINALIZE_ON_EXIT when there are unflushed ↵ferrieux2012-12-081-1/+1
| | | | | | | | | | | | nonblocking channels. Thanks Miguel for spotting.
* | | Fix for core bug yet to be named/numbered.dgp_stackedstdchandgp2012-10-021-3/+9
| | |
* | | Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-58/+67
| | |
* | | Preserve the chanPtr so that script evaluation cannot invalidate it whendgp2012-07-241-0/+2
|\ \ \ | |/ / | | | we plan to use it again.
| * | Preserve the chanPtr so that script evaluation cannot invalidate it whendgp2012-07-241-0/+2
| | | | | | | | | we plan to use it again.
* | | [Bug 3545365]: Never try a bg-flush on a dead channel, just like before ↵ferrieux2012-07-231-1/+4
| | | | | | | | | | | | 2011-08-17.
* | | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-5/+3
| | |
* | | Factor out constant that must be the same in multiple places. Prompted by adkf2012-05-251-3/+4
| | | | | | | | | conversation with Alexandre Ferrieux.
* | | * generic/tclIORChan.c [Bug 3522560]: Fixed the crash, enabled theandreask2012-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | test case. Modified [chan postevent] to properly inject the event(s) into the owner thread's event queue for execution in the correct context. Renamed the ForwardOpTo...Thread() function to match with our terminology.
* | | Properly close nonblocking channels even when not flushing them.ferrieux2012-05-071-3/+3
| | |
* | | IMPLEMENTATION OF TIP#398 : Quickly Exit with Non-Blocking Blocked Channelsferrieux2012-04-281-7/+28
|\ \ \
| * | | Compat flag, test, and doc update.tip_398_implferrieux2012-04-281-3/+29
| | | |
| * | | merge trunkferrieux2012-04-241-1/+1
| |\ \ \
| * | | | Take two. Don't forget to apply all patches, even when the phone rings in ↵ferrieux2012-03-221-5/+1
| | | | | | | | | | | | | | | | | | | | between.
| * | | | Implement tip 398 : Quickly Exit with Non-Blocking Blocked Channels. This is ↵ferrieux2012-03-221-3/+2
| | | | | | | | | | | | | | | | | | | | simply a revert of the (C part of the) 1025712d5b commit of 2011-08-17.
* | | | | get rid of _ANSI_ARGS_ and CONSTjan.nijtmans2012-04-261-1/+1
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| |
* | | | make some more internal tables constjan.nijtmans2012-04-231-1/+1
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | make some more internal tables constjan.nijtmans2012-04-231-1/+1
| |\ \ | | |/
| | * make some more internal tables constjan.nijtmans2012-04-231-1/+1
| | | | | | | | | On cygwin, install dll's in /usr/bin, not in /usr/lib
* | | [Bug 3412487]: Now short reads are allowed in synchronous fcopy, avoid ↵ferrieux2011-09-211-2/+2
| | | | | | | | | | | | mistaking them as nonblocking ones.
* | | 3394654, 3393276 Revise FlushChannel() to account for the possibilitydgp2011-08-191-1/+3
| | | | | | | | | that the ChanWrite() call might recycle the buffer out from under us.
* | | Preserve the chanPtr during FlushChannel so that channel driversdgp2011-08-191-4/+11
| | | | | | | | | don't yank it away before we're done with it.
* | | [Bug 3096275] Sync fcopy buffers input.ferrieux2011-08-181-5/+10
| | |
* | | [Bug 2946474] Consistently resume backgrounded flushes+closes when exiting.ferrieux2011-08-171-2/+3
| | |
* | | Use Tcl_PrintfObj to generate more (complex) error messages.dkf2011-08-051-6/+3
| | |
* | | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+3
|\ \ \ | |/ /
| * | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+3
| |\ \ | | |/
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-41/+41
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-2/+3
| | | | | | | | | the Engineering Manual.
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclIO.c (CopyData): [Bug 2895565]. Dropped bogosityandreas_kupries2009-11-121-5/+12
| | | | | | | | | | | | | | | | | | * tests/io.test: which used the number of _written_ bytes or character to update the counters for the read bytes/characters. New test io-53.11. This is a backward port from the 8.5 branch.
| | * * generic/tclIO.c (FlushChannel): Skip OutputProc for low-levelandreas_kupries2009-10-231-2/+6
| | | | | | | | | | | | | | | | | | 0-length writes. When closing pipes which have already been closed not skipping leads to spurious SIG_PIPE signals. Reported by Mikhail Teterin <mi+thun@aldan.algebra.com>.
| | * * generic/tclIO.c (TclFinalizeIOSubsystem): Revised latest commit todgp2008-12-011-3/+3
| | | | | | | | | | | | something that doesn't crash the test suite.
| | * * generic/tclIO.c (TclFinalizeIOSubsystem): Applied backport ofandreas_kupries2008-11-251-2/+2
| | | | | | | | | | | | | | | | | | Alexandre Ferrieux's patch for [Bug 2270477] to prevent infinite looping during finalization of channels not bound to interpreters.
| | * * generic/tclIO.c: Backport of fix for [Bug 2333466].andreas_kupries2008-11-231-2/+4
| | |
| | * * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.