summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Change version number of http package from 2.9.5 -> 2.10.0a1, since it's ↵jan.nijtmans2020-09-171-4/+4
|\ | | | | | | | | different from the 2.9.5 version in Tcl 8.6.x. Use "$idx >= 0" check in stead of "$idx > -1" everywhere.
| * Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-1/+1
| | | | | | | | size_t or int
| * Merge-mark 8.5. Remove some ARGSUSED usage.jan.nijtmans2020-04-171-5/+0
| |\
* | \ Merge 8.6jan.nijtmans2020-04-151-1/+1
|\ \ \ | |/ /
| * | Merge 8.5jan.nijtmans2020-04-151-1/+1
| |\ \ | | |/
* | | merge 8.6dgp2020-04-011-1/+48
|\ \ \ | |/ /
| * | fixes [f583715154] - tclUnixSock.c: introduced ThreadActionProc considering ↵sebres2020-03-311-1/+48
| | | | | | | | | | | | a transfer of async-connecting channel between threads; cherry-picked some prevention against invalid thread owner addressed in [815e246806]
* | | TIP 569 - remove lint commentsdgp2020-03-171-5/+0
| | |
* | | TCL_UNUSED in the unix sources.dgp2020-03-091-16/+6
| | |
* | | Merge 8.6jan.nijtmans2020-03-051-13/+6
|\ \ \ | |/ /
| * | Move setting of interpreter error-message from tclUnixSock.c to tclIO.c, ↵jan.nijtmans2020-03-051-31/+30
| | | | | | | | | | | | | | | 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]
* | | merge 8.6dgp2020-03-041-3/+11
|\ \ \ | |/ /
| * | The close routines of the "tcp" channel type were failing to record errordgp2020-03-041-1/+10
| | | | | | | | | messages and error codes.
* | | Implement TIP #562: Deprecate channel types 1-4jan.nijtmans2020-02-281-0/+4
|\ \ \
| * | | Make Tcl_ChannelCloseProc() deprecated too. Implement close2Proc and ↵jan.nijtmans2020-01-311-0/+4
| | | | | | | | | | | | | | | | wideSeekProc for all internal channel types.
* | | | Merge 8.7jan.nijtmans2020-02-131-20/+10
|\ \ \ \ | |/ / /
| * | | Merge 8.6jan.nijtmans2020-01-301-5/+6
| |\ \ \ | | |/ /
| | * | Reset WSAGetLastError()/errno always, even when this error is not reported ↵jan.nijtmans2020-01-301-5/+6
| | | | | | | | | | | | | | | | due to the earlier error.
| * | | Merge 8.6jan.nijtmans2020-01-301-17/+6
| |\ \ \ | | |/ /
| | * | According to the ↵jan.nijtmans2020-01-301-17/+6
| | | | | | | | | | | | | | | | [https://core.tcl-lang.org/tcl/artifact?udc=1&ln=469-471&name=5ac7827cd282bbda|documentation], close2Proc(...., 0) should operate the same as closeProc(). Fix the UNIX/Windows socket channels to behave like that.
* | | | Mark more unused parametersjan.nijtmans2019-09-031-2/+9
| | | |
* | | | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-45/+45
|/ / /
* | | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-1/+1
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | merge 8.7dgp2018-10-181-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
* | | | merge 8.7dgp2017-12-191-1/+1
|\ \ \ \ | |/ / /
| * | | 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 trunkdgp2017-09-011-1/+5
|\ \ \ \ | |/ / /
| * | | 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
| | | |
* | | | merge trunkdgp2017-06-161-3/+3
|\ \ \ \ | |/ / /
| * | | [f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.dkf2017-06-141-3/+3
| | | |
* | | | merge trunkdgp2017-05-081-1/+1
|\ \ \ \ | |/ / /
| * | | 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)
* | | | merge trunkdgp2017-04-271-6/+28
|\ \ \ \ | |/ / /
| * | | [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
| | | |
* | | | merge trunkdgp2017-04-111-129/+199
|\ \ \ \ | |/ / /
| * | | 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.
* | | | | | merge trunkdgp2017-01-121-8/+31
|\ \ \ \ \ \ | |/ / / / /