summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
Commit message (Collapse)AuthorAgeFilesLines
* More size_t-related consolidations. Now regexp can handle strings >2GB and ↵jan.nijtmans2019-02-051-3/+3
| | | | more. Remove many type-casts which are not necessary any more.
* Another (big) round of int -> size_t enhancements. So Tcl can handle string ↵jan.nijtmans2019-02-011-1/+2
|\ | | | | | | >2GiB in more places.
* | Fix encoding handling (check for TCL_IO_FAILURE was wrong). Eliminate ↵jan.nijtmans2018-11-221-2/+2
| | | | | | | | (size_t) type casts and use of ckalloc() -> Tcl_Alloc()
* | Implement TIP 445dgp2018-11-131-6/+9
|\ \ | |/
| * merge 8.7dgp2018-10-181-3/+3
| |\
| * \ merge 8.7dgp2017-12-191-1/+1
| |\ \
| * \ \ merge trunkdgp2017-09-011-1/+5
| |\ \ \
| * \ \ \ merge trunkdgp2017-06-161-3/+3
| |\ \ \ \
| * \ \ \ \ merge trunkdgp2017-05-081-1/+1
| |\ \ \ \ \
| * \ \ \ \ \ merge trunkdgp2017-04-271-6/+28
| |\ \ \ \ \ \
| * \ \ \ \ \ \ merge trunkdgp2017-04-111-129/+199
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ merge trunkdgp2017-01-121-8/+31
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ merge trunkdgp2016-11-161-3/+3
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Reduce direct use of the tclEmptyStringRep.dgp2016-10-121-6/+9
| | | | | | | | | | |
* | | | | | | | | | | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* | | | | | | | | | | merge 8.7jan.nijtmans2018-06-251-3/+3
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / |/| | | | | | | | | / | | |_|_|_|_|_|_|_|/ | |/| | | | | | | |
| * | | | | | | | | merge 8.6jan.nijtmans2018-06-251-3/+3
| |\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ | |/| | | | | | | |
| | * | | | | | | | Simplify ToUtf(), expecially for TCL_UTF_MAX>3 (with correct surrogate ↵jan.nijtmans2018-06-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling). Fix various typo's
| * | | | | | | | | Revert a few more (int -> size_t) transitions, which could effect extensions ↵jan.nijtmans2017-12-151-1/+1
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (such as Itcl 3.4) which use internal Tcl header files. Better wait until 9.0 for this. What we _can_ do is change some (internal) fields to 'unsigned': that doubles the epoch range without further danger. Thanks, Don, for pointing this out!
* | | | | | | | | merge core-8-6-branchjan.nijtmans2017-08-221-1/+5
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | / | |_|_|_|_|_|_|/ |/| | | | | | |
| * | | | | | | Fix [d2612a2fa193196787aab33bb57f69b1eef9e30c|d2612a2fa1]: Build breaks ↵jan.nijtmans2017-08-221-123/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because of gcc error. Only use "#pragma GCC diagnostic" if the compiler supports this. Also re-format tclUnixSock.c without further functional changes.
| * | | | | | | [f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.dgp2017-08-141-3/+3
| | | | | | | |
* | | | | | | | [f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.dkf2017-06-141-3/+3
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | merge core-8-6-branchjan.nijtmans2017-04-281-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | / | |_|_|_|_|/ |/| | | | |
| * | | | | (cherry-pick from "fix-1997007" branch): fix typo- resp. copy-paste-bug ↵jan.nijtmans2017-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | (using wrong threadInfo pointer in ConsoleOutputProc, should be writer, not reader)
* | | | | | [50750c735a] Fix broken test and stop reading uninit-but-allocated memory in ↵dkf2017-04-271-6/+28
|\ \ \ \ \ \ | |/ / / / / | | | | | / | |_|_|_|/ |/| | | | zlib channel transform.
| * | | | Deal with a couple of obscure causes of warnings on some versions of OSX.dkf2017-04-251-7/+28
| | | | |
* | | | | More minor style fixes.dkf2017-04-101-24/+24
| | | | |
* | | | | Merge Harald's "robust-async-connect-tests" branch. Thanks!jan.nijtmans2017-04-101-0/+24
|\ \ \ \ \
| * \ \ \ \ merge trunkjan.nijtmans2014-07-181-2/+56
| |\ \ \ \ \
| * | | | | | Replaced option "-unsupported1" by test command "testsocket debugflags" ↵oehhar2014-07-171-54/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (thanks Donal, Donald).
| * | | | | | Robust async connect tests by temporarely switching off auto continuation. ↵oehhar2014-06-051-1/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ticket [13d3af3ad5]
* | | | | | | Minor style issues through the socket implementation code.dkf2017-04-091-115/+161
| | | | | | |
* | | | | | | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | TCL_ERROR is returned: The caller doesn't do anything with this. Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
* | | | | | Make OpenTcpServerEx accept a 'service' string parameter instead of a port.limeboy2016-12-141-2/+7
| | | | | |
* | | | | | Allow a boolean argument to be passed.limeboy2016-11-241-1/+2
| | | | | |
* | | | | | Implement the whole TIP 456 specification.limeboy2016-11-241-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | Also introduces the `-reuseaddr' and `-reuseport' options for the `socket' command.
* | | | | | Fix indentingjan.nijtmans2016-11-221-8/+8
| | | | | |
* | | | | | Added stub entry for tip #456. Documentation and tests still missing. ↵jan.nijtmans2016-11-221-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | Doesn't conform to TIP yet.
* | | | | | This is patch.002 from ticket ↵jan.nijtmans2016-11-221-0/+20
| |_|_|_|/ |/| | | | | | | | | | | | | | [0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696|0b9d3ba2ba], as first start of tip-456 implementation
* | | | | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-3/+3
| |_|_|/ |/| | | | | | | | | | | type-casts which are not necessary any more.
* | | | Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-1/+1
|\ \ \ \ | | |_|/ | |/| |
| | | |
| \ \ \
*-. \ \ \ [4d5ae7d88a] Stop crashes with asynchronous connects to hosts without addresses.dkf2016-10-041-1/+1
|\ \ \ \ \ | | |/ / /
| | * | | [4d5ae7d88a] Stop crashes with asynchronous connects to hosts without addresses.dkf2016-10-041-1/+1
| | | | |
| * | | | [4d5ae7d88a] Restore default-to-error logic in TcpConnectgahr2016-09-271-1/+1
| | | | |
* | | | | When opening a server socket on an ephemeral port, make sure that themax2016-10-041-1/+38
|/ / / / | | | | | | | | | | | | | | | | port number that gets picked for IPv4 is also available on IPv6. If not, start all over for up to ten times to find a port number that is available on both protocols.
* | | | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-1/+1
|/ / / | | | | | | | | | which are deprecated.
* | | Merge trunkoehhar2014-12-171-25/+25
|\ \ \
| * | | Remove a number of eol-spaces. No change in functionality.jan.nijtmans2014-11-141-25/+25
| | | |
| * | | fconfigure -peername and -sockname return empty string while async connect ↵oehhar2014-10-171-6/+26
| |\ \ \ | |/ / / |/| | / | | |/ | |/| running.