summaryrefslogtreecommitdiffstats
path: root/generic/tclIOCmd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unnecessary "struct" definitions and some type casts no longer ↵jan.nijtmans2017-04-111-3/+2
| | | | necessary. No functional changes.
* Minor style issues through the socket implementation code.dkf2017-04-091-13/+27
|
* Make the code slightly more pleasing to the eyes.limeboy2017-01-011-2/+10
|
* Make options -reuseaddr/-reuseport forbidden without -server, no matter the ↵jan.nijtmans2016-12-201-7/+5
| | | | value being true or false. Some additional test-cases.
* Decouple the switch handling.limeboy2016-12-201-15/+10
|
* Correct the handling of -server and its options.limeboy2016-12-201-1/+2
|
* Fix for the argument parsing phase in the [socket] command.limeboy2016-12-141-2/+1
|
* Make OpenTcpServerEx accept a 'service' string parameter instead of a port.limeboy2016-12-141-10/+15
|
* Forgot a - in the parameters array.limeboy2016-11-241-1/+1
|\
| * Fix compile error if SO_REUSEPORT not supported. Put command options in ↵jan.nijtmans2016-11-241-3/+3
| | | | | | | | alphabetical order
* | Allow a boolean argument to be passed.limeboy2016-11-241-7/+35
|/
* Implement the whole TIP 456 specification.limeboy2016-11-241-5/+18
| | | | Also introduces the `-reuseaddr' and `-reuseport' options for the `socket' command.
* Added stub entry for tip #456. Documentation and tests still missing. ↵jan.nijtmans2016-11-221-10/+5
| | | | Doesn't conform to TIP yet.
* This is patch.002 from ticket ↵jan.nijtmans2016-11-221-3/+12
| | | | [0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696|0b9d3ba2ba], as first start of tip-456 implementation
* Merge trunk. bug_0b8c387cf7jan.nijtmans2016-03-161-1/+1
|\ | | | | Add TCL_EVAL_GLOBAL flag to Tcl_EvalObjEx(), for reason mentioned in [0b8c387cf7].
* | [0b8c387cf7] Replace deprecated Tcl_VarEval() call with reworked callbackdgp2016-03-081-20/+25
|/ | | system that uses Tcl_Obj scripts.
* Reduce the cost of Preserve/Release on channelsdgp2014-07-301-16/+16
|
* [f0f876c141] Improve consistency in error messages.dkf2014-06-171-3/+3
|
* Merge 8.5.dgp2014-05-081-1/+2
|\
| * Stop leak in io-33.7.dgp2014-05-061-1/+2
| |
* | We must Preserve channels if we're going to use TclChanCaughtErrorBypass() ↵dgp2014-05-011-3/+22
|\ \ | |/ | | | | to get error information after channel routines are called (and have possibly called for the channel to go away).
| * We must Preserve channels if we're going to use TclChanCaughtErrorBypass()dgp2014-05-011-4/+22
| | | | | | | | to get error information after channel routines are called (and have possibly called for the channel to go away).
* | Merge refcounting machinery for ChannelBuffer.dgp2014-04-211-0/+3
|\ \ | |/
| * Added a refcounting mechanism to ChannelBuffers. Other edits todgp2014-04-211-0/+3
| | | | | | stop segfaults in tests iocmd-21.2[12].
| * Fix some gcc warnings which become visible with -Wextrajan.nijtmans2013-06-131-17/+17
| |
* | Add super-simple compiler to many ensemble subcommands to allow better codedkf2013-01-041-19/+19
| | | | | | | | | | generation where we can detect that we're not in the WrongNumArgs case. The compiler just checks that the argument count is in the right range and issues a standard dispatch; that's enough to do an efficient job.
* | Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-74/+78
| |
* | get rid of _ANSI_ARGS_ and CONSTjan.nijtmans2012-04-261-1/+1
|\ \ | |/
* | make some more internal tables constjan.nijtmans2012-04-231-2/+2
|\ \ | |/
| * 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
| | * A few more compiler warningsjan.nijtmans2011-08-181-1/+1
| | |
* | | Merg [3148192] implementation fix, and caveat commentjan.nijtmans2011-06-201-1/+1
|\ \ \ | |/ /
| * | Fix [3148192] implementation, restoring legacy form againjan.nijtmans2011-06-201-1/+1
| | |
* | | fix for [Bug 3288345]: use _stat32i64 for CYGWIN toojan.nijtmans2011-04-271-19/+19
|\ \ \ | |/ / | | | fix a few more gcc warnings
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-7/+7
| | | | | | | | | 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-74/+67
| | | | | | | | | 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/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-101-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
| | * * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Added checking of -sizeandreas_kupries2008-04-091-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | * tests/ioCmd.test (iocmd-15.{13,14}): value to reject negative values, and values overflowing 32-bit signed. [Bug 1557855]. Basic patch by Alexandre Ferrieux <ferrieux@users.sourceforge.net>, with modifications from me to separate overflow from true negative value. Extended testsuite.
| | * * generic/tclIOCmd.c (Tcl_GetsObjCmd): do not reuse resultObj ashobbs2008-02-261-4/+3
| | | | | | | | | | | | it may be shared (crash condition).
| | * * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Corrected a typo in theandreas_kupries2004-07-161-3/+3
| | | | | | | | | | | | | | | generation of error messages and simplified by reusing data in a variable instead of retrieving the string again. Fixes [Tcl SF Bug 835289].
| | * * generic/tclIOCmd.c (Tcl_PutsObjCmd): Added length check to theandreas_kupries2004-07-151-2/+2
| | | | | | | | | | | | | | | | | | old depreceated newline syntax, to ensure that only "nonewline" is accepted. [Tcl SF Bug 985869], reported by Joe Mistachkin <mistachkin@users.sourceforge.net>.
| * | [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-27/+23
| | | | | | | | | | | | Improved error-message regarding legacy form.
| * | [Bug 2949740]: Do not try to put a NULL pipeline channel into binary mode.dkf2010-02-111-2/+2
| | |
| * | * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-101-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added * tests/chanio.test (chan-io-52.5{,a,b}): comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
| * | * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Added checking of -sizeandreas_kupries2008-04-091-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | * tests/ioCmd.test (iocmd-15.{13,14}): value to reject negative values, and values overflowing 32-bit signed. [Bug 1557855]. Basic patch by Alexandre Ferrieux <ferrieux@users.sourceforge.net>, with modifications from me to separate overflow from true negative value. Extended testsuite.
* | | [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-28/+28
| | | | | | | | | | | | Improved error-message regarding legacy form.