summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | Convert TesteventloopCmd and TestchmodCmd to Tcl_Obj-API form.jan.nijtmans2014-07-172-24/+19
| | | | | | | | | | |
* | | | | | | | | | | [1211aceef2] Fix refcount management of TclpTempFileName() that caused leak.dgp2014-07-111-2/+4
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | |
* | | | | | | | | | ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution ↵jan.nijtmans2014-06-221-2/+2
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | until after -output compare. tcltest -> version 2.3.8
| * | | | | | | | | ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution ↵jan.nijtmans2014-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | until after -output compare
* | | | | | | | | | [1758a0b603] socket_*-2.13 : Workaround the broken select() in some Linuxdgp2014-06-161-2/+56
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | kernels that fails to report a writable state on a socket when an error condition (or remote close) is present.
| * | | | | | | | | Additional check for an error condition on the socket.dgp2014-06-121-1/+7
| | | | | | | | | |
| * | | | | | | | | Workaround the broken select() in some Linux kernels that fails to reportdgp2014-06-111-3/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a writable state on a socket when an error condition (or remote close) is present. Would be good to add actual test suite tests for this, but until then see demo scripts in the ticket 1758a0b603.
* | | | | | | | | | Valgrind doesn't like use of uninitialized variables.dgp2014-06-041-1/+1
| | | | | | | | | |
* | | | | | | | | | These edits make the tests socket-14.11.[01] stop hanging, but also introducedgp2014-06-021-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a whole raft of test failures. WIP.
* | | | | | | | | | Correct the interest masks in the Tcl_CreateFileHandler() calls in ↵dgp2014-05-311-2/+2
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
| * | | | | | | | | | Correct the interest masks in the Tcl_CreateFileHandler() calls indgp2014-05-311-2/+2
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
| * | | | | | | | | Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ↵jan.nijtmans2014-05-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ':' in filenames as well)
* | | | | | | | | | Fix and improve socket -async [13d3af3ad5] oehhar2014-05-201-115/+188
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | * Give clearer names to some of the state flags and sync them with ↵bug_13d3af3ad5max2014-04-081-41/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows where it makes sense. * Rework WaitForConnect once more to always report ENOTCONN on I/O operations on failed async sockets. * Fix synchronous connections to a server that only listens on IPv6 (or whatever comes later in the list returned by getaddrinfo(), socket-15.*) * Fix spurious writable event on async sockets (socket-14.15).
| * | | | | | | | | | Rename error to connectError in struct TcpState.max2014-04-071-11/+11
| | | | | | | | | | |
| * | | | | | | | | | Rename CreateClientSocket to TcpConnectmax2014-04-071-8/+8
| | | | | | | | | | |
| * | | | | | | | | | * Rework WaitForConnect() to fix synchronous completion of asynchronous ↵max2014-04-041-30/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connections. * Let TcpInputProc() and TcpOutputProc() fail before calling any I/O syscalls when an asynchronous connection has failed. * Adjust the tests accordingly.
| * | | | | | | | | | Make the naming of TcpState variables consistentmax2014-04-041-49/+53
| | | | | | | | | | |
| * | | | | | | | | | * More test improvements for async sockets.max2014-03-141-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Advance async connections whenever the channel is touched (e.g. by [chan configure]). * Add a noblock argument to WaitForConnect(), so that advancing async connections from [chan configure] doesn't block even on a blocking socket.
| * | | | | | | | | | * Hide transient errors of the internal iterations of [socket -async] ↵max2014-03-111-41/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the script level. * More tests for corner cases.
| * | | | | | | | | | WaitForConnect may only call back to CreateClientSocket when the socket is ↵max2014-03-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | writable or something. When it does so for a pending socket, it is falsely assumed to have succeeded and a subsequent read/write operation will fail.
| * | | | | | | | | | * tclUnixSock.c: Fix WaitForConnect() for client sockets that have to try ↵max2014-03-101-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more than one address. * socket.test: Extend and improve tests for [socket -async] * socket.test: Add latency measuring and calculation for Windows.
| * | | | | | | | | | Broken intermediate state.max2014-02-281-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling back to CreateClientSocket() from the event loop works, but the final failed or succeeded state of an asyncronous socket does not get notified to the channel correctly.
* | | | | | | | | | | Let the generated Makefile be emacs-friendly by avoiding spurious empty ↵ferrieux2014-05-163-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lines and misplaced tabs. Useful e.g. to just set CFLAGS to debug and save.
* | | | | | | | | | | Make Cygwin's "configure" work from another directory than /unix. (Not ↵jan.nijtmans2014-05-092-4/+4
|\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | everything works this way!)
| * | | | | | | | | | Make Cygwin's "configure" work from another directory than /unix. (Not ↵jan.nijtmans2014-05-092-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | everything works this way!)
* | | | | | | | | | | [3493120] Plug memory leak in thread exit.dgp2014-04-241-0/+1
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / /
| * | | | | | | | | | *nix segfault cleared: we should reset a thread key after freeing of alloc ↵bug_3493120sebres2014-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cache (in tclUnixThrd.c)
* | | | | | | | | | | Fix [3118489]: NUL in filenames, now fixed for both Windows and UNIX. jan.nijtmans2014-04-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For consistancy, any NUL character in a filename prevents the native filesystem to generate a native file representation for it. Other filesystems than the native one may still accept it, but it's not recommended.
* | | | | | | | | | | Provide full Tcl patchlevel to tcl.pc and move private libs to "Libs.private". jan.nijtmans2014-04-081-4/+4
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | Record the fact that Tcl 8.6 requires Zlib 1.2.3 as a minimum. Supply both the shared library and the stub library to "Libs": Only one of them will actually be linked in, depending on whether -DUSE_TCL_STUBS is defined or not.
| * | | | | | | | | | Provide full Tcl patchlevel to tcl.pc and move private libs to "Libs.private".jan.nijtmans2014-04-081-4/+3
| | | | | | | | | | |
* | | | | | | | | | | Add missing @TCL_LIB_FLAG@ to tcl.pc.in (derived from ticket [5bcb5026ad])jan.nijtmans2014-03-311-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / /
| * | | | | | | | | | Cherry-pick [c54059aaad] from trunk: Added support for reporting TEA-like ↵jan.nijtmans2014-03-314-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | info via pkg-config. Add missing @TCL_LIB_FLAG@ (derived from ticket [5bcb5026ad])
* | | | | | | | | | | Only write back file attributes if any of them really changed.rfe_b42b208ba4jan.nijtmans2014-03-261-12/+11
| | | | | | | | | | |
* | | | | | | | | | | Implementation of [b42b208ba4]: file attributes -readonly on Cygwin. For ↵jan.nijtmans2014-03-262-14/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | completeness, implemented -archive, -hidden and -system as well.
* | | | | | | | | | | Fix [2f7cbd01c3]: tcl8.6.1 fails to build on FreeBSD 10.0jan.nijtmans2014-03-202-10/+18
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | / / / / / / / / / | |/ / / / / / / / / |/| | | | | | | | |
| * | | | | | | | | Fix [2f7cbd01c3]: tcl8.6.1 fails to build on FreeBSD 10.0jan.nijtmans2014-03-202-26/+18
| |\ \ \ \ \ \ \ \ \
| | * | | | | | | | | Proposed fix for [2f7cbd01c3].bug_2f7cbd01c3jan.nijtmans2014-03-202-28/+20
| |/ / / / / / / / /
* | | | | | | | | | typojan.nijtmans2014-02-121-1/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | / | |_|_|_|_|_|_|_|/ |/| | | | | | | |
| * | | | | | | | typojan.nijtmans2014-02-121-1/+1
| | | | | | | | |
* | | | | | | | | Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
| | | | | | | | |
* | | | | | | | | Add missing __stdcall (which crashes on win32), and clean-up indentingjan.nijtmans2014-02-041-10/+11
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | / | |_|_|_|_|_|_|/ |/| | | | | | |
| * | | | | | | remove duplicate declarationjan.nijtmans2014-02-041-1/+0
| | | | | | | |
| * | | | | | | Add missing __stdcall (which crashes on win32), and clean-up indentingjan.nijtmans2014-02-041-10/+12
| | | | | | | |
* | | | | | | | Fix [651e828a52]: Wrong Windows version reported for Windows 8.1jan.nijtmans2014-02-031-7/+22
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Fix [651e828a52]: Wrong Windows version reported for Windows 8.1jan.nijtmans2014-02-031-7/+22
| | | | | | | |
* | | | | | | | sync tcl.m4 with Tk versionjan.nijtmans2014-01-252-0/+4
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | / | |_|_|_|_|_|/ |/| | | | | |
| * | | | | | sync tcl.m4 with Tk versionjan.nijtmans2014-01-252-0/+4
| | | | | | |
* | | | | | | merge trunkdkf2014-01-021-0/+1
|\ \ \ \ \ \ \