summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
Commit message (Collapse)AuthorAgeFilesLines
* Code-cleanup: CONST -> const, don't use macro's like __REG_CONST and types ↵jan.nijtmans2015-12-211-1/+1
| | | | | like re_void any more. No change in functionality. FossilOrigin-Name: 83897e067af1a8594efe25aeaadcfcad5042a0e1
* Simplify NativeIsComPort() implementation: native paths never end in ':', ↵jan.nijtmans2014-11-131-20/+12
| | | | | and never use forward slashes (any more), so no need to check for that. FossilOrigin-Name: f27ce7a1a549a880177963853b502d86508582ed
* Better errormessage when file path contains invalid characters.jan.nijtmans2014-11-031-0/+5
|\ | | | | FossilOrigin-Name: 58143ff4f840694c08e0d24d061904940e7d9b7b
| * Better errormessage when file path contains invalid characters. See: ↵jan.nijtmans2014-11-031-0/+5
| | | | | | | | | | [03414f517b7a74]. FossilOrigin-Name: 20366d4c8e3146df2cbbd09902fe91a7934c50e8
* | Added comments raising questions about possible updates to channeldgp2014-03-211-0/+4
| | | | | | | | | | drivers on Windows. FossilOrigin-Name: 5134ecb54aab44b98633b99dea4a144d2053a8ab
* | Do not reopen a win serial channel for serial detection. There are issues ↵oehhar2014-02-251-2/+101
|\ \ | |/ | | | | | | with some Bluetooth virtual com. Fix bug [2413550], patch by Rolf Schroedter FossilOrigin-Name: eb0919a1ec10f76d7fc635b33a4b4f2ffe722d03
| * Changed position of flag evaluation as proposed by Phil Hoffmanoehhar2014-02-111-18/+18
| | | | | | FossilOrigin-Name: 024a5233616e9704f5b94582deba61b5a243ed99
| * win/tclWinChan.c Tcl_InitNotifier: Bug [2413550] Avoid reopening of serial ↵oehhar2014-01-301-2/+149
| | | | | | | | | | channels which causes issues with Bluetooth virtual com. Patch by Rolf Schroedter. FossilOrigin-Name: 84307fe13fd08c9a9092913456155061de78445d
* | Fix compilation with latest MinGW-w64 version 3.0: Conflict on ↵jan.nijtmans2013-10-021-23/+6
|\ \ | |/ | | | | | | EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64. FossilOrigin-Name: 7488de4f4b203a7f273cb0e2db178ff156a48b7e
| * Fix compilation with latest MinGW-w64 version 3.0: Conflict on ↵jan.nijtmans2013-10-021-23/+6
| | | | | | | | | | EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64. FossilOrigin-Name: 93a144a3be905bc5f8a34dc6882505e2a7608d7a
| * and don't forget the %jan.nijtmans2012-07-081-1/+1
| | | | | | FossilOrigin-Name: 9651124b67ac119ff2a3ba1c2e6620bf33752455
| * add TCL_I_MODIFIER and use it in the correct placesjan.nijtmans2012-07-081-1/+1
| | | | | | FossilOrigin-Name: 89b4e5971250f999620e8616b25a01d15817ebbf
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-2/+2
| |\ | | | | | | FossilOrigin-Name: 8c851aad1d3e355993a37890fec0eb28b7b077f4
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+1
| | | | | | | | | FossilOrigin-Name: 5fa631a7778b73a8c6d0b9fb0c608ca362ee1396
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-9/+8
| | | | | | | | | FossilOrigin-Name: e9a08358f46efc17049152d728e653bf41470611
| | * ifdef protections to permit builds with mingw on amd64 systems.jan.nijtmans2011-03-111-6/+10
| | | | | | | | | | | | | | | | | | Thanks to "mescalinum" for reporting and testing. Merged --cherrypick from Tcl8.5 (2010-09-08,48191d3979) FossilOrigin-Name: c2cb4f795d3403edc668971403d34ffeeb550e62
* | | Fixes to my previous commit, from Francois Vogel. (My thanks and apologies!)dkf2012-08-051-1/+1
| | | | | | | | | FossilOrigin-Name: 37c35b79b94bae2a2b01dcf6fddf7fe3ca39af23
* | | Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-7/+9
| | | | | | | | | FossilOrigin-Name: 1fb35ca910ce286ab4f7cc7f304d120bed86723b
* | | More generation of error codes (most platform-specific parts not already usingdkf2011-04-061-0/+2
| | | | | | | | | | | | | | | Tcl_PosixError). FossilOrigin-Name: 1b095ad294cc30f692b20d00970574897298b030
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-3/+3
| | | | | | | | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | | MSVC 6 does not have the %I modifier in sprintfjan.nijtmans2011-03-071-1/+1
| | | | | | | | | FossilOrigin-Name: ff727e02f444b910534437febc67f13ee06d08dc
* | | 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * | 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. FossilOrigin-Name: 6f5350cff45487cecd3756f4b7fd4fda4f8cb81e
| | * * win/tclWinChan.c: [Bug 819667] Improve logic for identifying COMhobbs2006-08-301-51/+52
| | | | | | | | | | | | | | | | | | ports. FossilOrigin-Name: 0da377899f0b5e3ba9d70a3418c3021c1da75543
| | * bug #1225957kennykb2005-06-231-113/+100
| | | | | | | | | FossilOrigin-Name: edf9a121ee6aaf046de47364ee197cf6b605a7a1
| | * TIP#218 IMPLEMENTATIONandreas_kupries2005-01-271-73/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/CrtChannel.3: Documentation of extended API, * generic/tcl.decls: extended testsuite, and * generic/tcl.h: implementation. Removal of old * generic/tclIO.c: driver-specific TclpCut/Splice * generic/tclInt.h: functions. Replaced with generic * tests/io.test: thread-action calls through the * unix/tclUnixChan.c: new hooks. Update of all builtin * unix/tclUnixPipe.c: channel drivers to version 4. * unix/tclUnixSock.c: Windows drivers extended to * win/tclWinChan.c: manage thread state in a thread * win/tclWinConsole.c: action handler. * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: * mac/tclMacChan.c: FossilOrigin-Name: 1621430b8bd8ba1f234e7b963155cd20e9a5decc
| | * * win/tclWinChan.c (FileCloseProc): Invokemdejong2005-01-191-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclpCutFileChannel() to remove a FileInfo from the thread local list before deallocating it. This should have been done via an earlier call to Tcl_CutChannel, but I was running into a crash in the next call to Tcl_CutChannel during the IO finalization stage. FossilOrigin-Name: 1000e16145a44f07529a356abc0e8602d444c090
| | * * win/tclWin32Dll.c (DllMain, _except_dllmain_detach_handler,mdejong2004-06-211-7/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclpCheckStackSpace, _except_checkstackspace_handler, TclWinCPUID, _except_TclWinCPUID_detach_handler): * win/tclWinChan.c (Tcl_MakeFileChannel, _except_makefilechannel_handler): * win/tclWinFCmd.c (DoRenameFile, _except_dorenamefile_handler, DoCopyFile, _except_docopyfile_handler): Rework pushing of exception handler function pointer so that compiling with gcc -O3 works. Remove empty function call to avoid compiler warning. Mark the DllMain function as noinline to avoid compiler error from duplicated asm labels in generated code. FossilOrigin-Name: 00950ad7dfd96b23d79928bf2ad456a3ac751be3
| * | fix gcc warnings: unused variable 'registration'nijtmans2010-11-191-2/+2
| | | | | | | | | FossilOrigin-Name: 0f2da3bcd9b79e028f66f13cbbe50994eb3f80f7
| * | * win/tclWin32Dll.c: #ifdef protections to permit builds withdgp2010-09-081-8/+11
| | | | | | | | | | | | | | | | | | | | | * win/tclWinChan.c: mingw on amd64 systems. Thanks to "mescalinum" * win/tclWinFCmd.c: for reporting and testing. FossilOrigin-Name: 48191d397923759727b3231e19160d0d74bb722e
| * | installData.tcl: Make sure that copyDir only receives normalized paths.nijtmans2010-05-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | tclPlatDecls.h: Fix <tchar.h> inclusion for CYGWIN. tclPathObj.c: Fix Tcl_SetStringObj usage for CYGWIN. *.c: Fix various minor other gcc warnings, like signed<->unsigned mismatch. FossilOrigin-Name: 624625fe98a646ff7137e7331d7185ebd1886049
| * | * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored. FossilOrigin-Name: ade419178b19baa54a5c33f201716048e81e7df3
* | | Fix various gcc-4.5.2 64-bit warning messages,nijtmans2011-01-251-3/+3
| | | | | | | | | | | | | | | | | | e.g. by using full 64-bits for socket fd's FossilOrigin-Name: 92caef797a838cf20af94cff7aea871580641c72
* | | fix gcc warnings: unused variable 'registration'nijtmans2010-11-191-2/+2
| | | | | | | | | FossilOrigin-Name: 862a46901a31af5a5e1530e1c9f0621874243d65
* | | Various clean-ups, converting from tclWinProc->xxxProc directly to Xxxnijtmans2010-09-131-3/+3
| | | | | | | | | | | | | | | | | | (no change in functionality) FossilOrigin-Name: 18a516cee201156eccfeb93688069cd6bd3f9918
* | | * win/tclWinChan.c: #ifdef protections to permit builds withdgp2010-09-081-8/+11
| | | | | | | | | | | | | | | | | | | | | * win/tclWinFCmd.c: mingw on amd64 systems. Thanks to "mescalinum" for reporting and testing. [Bug 3059922] FossilOrigin-Name: 5788a6307f2d07e175bf94deda07af853812286a
* | | Move TCHAR fallback typedef from tcl.h to tclPlatDecls.h (as suggested by dgp)nijtmans2010-04-221-2/+2
| | | | | | | | | | | | | | | | | | Eliminate various unnecessary type casts. FossilOrigin-Name: 77d22c7b43802be11238dcc3c0bb21ad11e74e33
* | | don't cast away "const" without reason.nijtmans2010-03-161-2/+2
| | | | | | | | | FossilOrigin-Name: 8373402a4bc017ad9cda8333b216387173c034df
* | | * win/tclWinDde.c: VC++ 6.0 doesn't havenijtmans2010-01-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinReg.c PDWORD_PTR * win/tclWinThrd.c: Fix various minor gcc warnings. * win/tclWinTime.c * win/tclWinConsole.c Put channel type definitions * win/tclWinChan.c in static const memory * win/tclWinPipe.c * win/tclWinSerial.c * win/tclWinSock.c * generic/tclIOGT.c * generic/tclIORChan.c * generic/tclIORTrans.c * unix/tclUnixChan.c * unix/tclUnixPipe.c * unix/tclUnixSock.c * unix/configure (regenerated with autoconf 2.59) * tests/info.test: Make test independant from tcltest implementation. FossilOrigin-Name: ab999800966a0b666e1f1f44036476255eedbc43
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-6/+6
| | | | | | | | | FossilOrigin-Name: 8780faf488c79569934af0cd318800d73489137d
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-4/+4
| | | | | | | | | FossilOrigin-Name: a1a8afc25d47810e677f42869f79723f80f3d6a6
* | | * win/tclWinChan.c: Fix minor compiler warnings whennijtmans2008-10-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinDde.c: compiling wit -Wwrite-strings * win/tclWinInit.c: * win/tclWinReg.c: * win/tclWinSerial.c: FossilOrigin-Name: ec7f443aa86627dbac9017f569b6c93e014c1eba
* | | * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored. FossilOrigin-Name: f337d855cc36f5c956e12db5e587a51534242867
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-20/+19
|/ / | | | | FossilOrigin-Name: 2d205c22fbe5def21ccd36bc6f7b2d3831f6122d
* | Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-6/+8
| | | | | | FossilOrigin-Name: 645aed2fcdcd55ca81df269a4ea262eeca2b9ff2
* | * win/tclWinChan.c [Bug 819667] Improve logic for identifying COMhobbs2006-08-301-51/+52
| | | | | | | | | | | | ports. FossilOrigin-Name: 5058a5afa8eb25526bab2c8b55d0ddeef51bc331
* | * doc/CrtChannel.3: Added TCL_CHANNEL_VERSION_5, made itandreas_kupries2006-03-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: the version where the "truncateProc" * generic/tclIO.c: is defined at, and moved all channel * generic/tclIOGT.c: drivers of Tcl to v5. * generic/tclIORChan.c: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * win/tclWinChan.c: * win/tclWinConsole.c: * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: FossilOrigin-Name: 5fab17f21dd3b7e030cd3158333382610ba99ea3
* | Export stubs for libtommath; fix mingw compiler warningskennykb2005-12-131-6/+7
| | | | | | FossilOrigin-Name: 3842b9c46803a8677c011078725b04cff7adff2d