summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
Commit message (Collapse)AuthorAgeFilesLines
* Another attempt to fix the two executable flags.jan.nijtmans2017-04-121-0/+0
| | | FossilOrigin-Name: c8ff26fcd48cdb1213db84a9858df4a9a424ed34
* Allow additional optional "interp" argument for testinterpresolver command. ↵jan.nijtmans2016-09-051-4/+4
| | | | | | | | Not used yet in any test-case. Protect panic in tclLiteral.c for possible null-pointer access. (cherry-picked from Gustaf Neuman's interpresolver patch). Eliminate some unecessary spacing. FossilOrigin-Name: f0027409f5ba52a72b3035327fd4d142c9b2fba7
* Fix compiler warnings (const-ness and unused label) that did not show up ashok2016-07-101-2/+1
| | | | | in the non-optimized build before last checkin. FossilOrigin-Name: d8603114aa7a3f01887481de4eaaac4919abe076
* Bugfix [9ece99d58b]. Make exec understand .CMD files on Windows.ashok2016-07-091-1/+0
| | | FossilOrigin-Name: 2b6ee270913f6510498235bfa560478a6d61f786
* Bugfix [3613671]. file owned implementation for Windows.ashok2016-07-091-1/+65
| | | FossilOrigin-Name: 4fe9800f92391940c48ef25609a816868fab5a01
* Bugfix [ae61a67192]. file {stat, type, size} etc. support for built-in ↵ashok2016-07-091-10/+33
| | | | | special Windows files/devices like CON. FossilOrigin-Name: 5e0bded74856ca53550700ef3181fd6eb42b1fb7
* Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows.ashok2016-07-071-1/+3
| | | FossilOrigin-Name: b697ecad74cb41d1e6092afa99f16ebf5b173375
* Decorate Tcl_Exit() and Tcl_SetExitProc()'s argument with TCL_NORETURN as ↵jan.nijtmans2015-10-081-2/+1
| | | | | | | appropriate, as already done with Tcl_Panic() earlier. Fix minor msvc compiler warning in tclWinFile.c FossilOrigin-Name: efcf56ba11703e64463b3cf17e8b7748393ec5d7
* Fix [b42a851475]: file normalize ~user returns wrong directory on Windowsjan.nijtmans2015-10-061-5/+14
|\ | | | | FossilOrigin-Name: 481cc1a100b55c86df0a418e7a6b24925a203b70
| * Fix [b42a851475]: file normalize ~user returns wrong directory on Windowsjan.nijtmans2015-10-061-7/+23
| | | | | | FossilOrigin-Name: d0d427004ff3027115e706e8f9bdd389dcebd2fa
* | Decorate Tcl_Panic and Tcl_PanicVA with the noreturn option, alowing further ↵jan.nijtmans2015-09-221-2/+2
| | | | | | | | | | optimizations by the C-compiler. FossilOrigin-Name: 783aaa7b9061b216de1741a309120aef6b6298a7
* | Fix [0df7a1ec2674a76a]: unix/tclUnixFile.c: return value of call to ↵jan.nijtmans2015-08-251-1/+1
|\ \ | |/ | | | | | | TclpGetCwd in TclpFindExecutable is not checked, variable cwd is used uninitialized. FossilOrigin-Name: 69fd7c4740355130c578ef7c13783db5da4b7294
* | Fix bug [f00009f7ce]: memory (object) leaks in TclNativeCreateNativeRep for ↵sebres2015-07-301-7/+17
| | | | | | | | | | | | | | windows platform: missing decrement of refCount, because of confusing differently behavior Tcl_FSGetTranslatedPath vs Tcl_FSGetNormalizedPath. FossilOrigin-Name: ecaddab40cbd40840979aa5ffb3d807f8a0f8103
* | Fix bug [f00009f7ce]: memory (object) leaks in TclNativeCreateNativeRep for ↵sebres2015-07-301-7/+3
| | | | | | | | | | windows platform (erroneous Tcl_IncrRefCount removed) FossilOrigin-Name: 4199a280129370f24ba656eaab2ed1bf433c3fa1
* | Open linked folder shared on Windows - Patch [19ea026e43]oehhar2015-04-231-1/+1
|\ \ | |/ | | FossilOrigin-Name: 990679a4a2e79d885a899e7caa1bb508fb17ce04
| * Open linked folder shared on Windows - Patch [19ea026e43]oehhar2015-04-231-1/+1
| | | | | | FossilOrigin-Name: 7d39fa6f820cc391be32c4b8e6a3179d0637943f
* | Improve documentation on the use of com ports (remove references to Windows ↵jan.nijtmans2014-11-131-2/+2
|\ \ | |/ | | | | | | | | | | 95, deprecate the use of postfix ':'). Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4. FossilOrigin-Name: 90f8c27d0d3c40e9ef55cda7329d733fd33c14dd
| * Improve documentation on the use of com ports (remove references to Windows ↵jan.nijtmans2014-11-131-2/+2
| | | | | | | | | | | | | | 95, deprecate the use of postfix ':'). Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4. FossilOrigin-Name: d2562ffa65cc1773b9166c118319ea548f795914
* | Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well. ↵jan.nijtmans2014-10-311-3/+3
|\ \ | |/ | | | | | | Prevent possible buffer-overflow if COM name ends with ':'. FossilOrigin-Name: 68cbd0b2005fff8ae46ef5d99ea624a572736299
| * Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well.jan.nijtmans2014-10-311-2/+2
| | | | | | FossilOrigin-Name: 25a624797c6e76f400d0443c74dfc450e7903029
* | When translating a reserved devicename to native pathname, strip ':' ↵jan.nijtmans2014-10-311-5/+9
|\ \ | |/ | | | | | | postfix. Possible fix for [dcc03414f5], but anyway a good idea. FossilOrigin-Name: a48b313b26dce182dc6f4a3b51b7469d9d0d89c8
| * When translating a reserved devicename to native pathname, strip ':' ↵jan.nijtmans2014-10-311-1/+4
| | | | | | | | | | postfix. Possible fix for [dcc03414f5], but anyway a good idea. FossilOrigin-Name: 198d89722ae8a4581d99b3411d353c8cceb2e941
* | Addition of a cast in tclWinFile.c to match types in a comparison, andandreask2014-08-011-1/+1
| | | | | | | | | | | | | | fix of a TRACE string literal in tclExecute.c with a bogus escape. Both would otherwise bug a Windows debug build (where warnings are errors). FossilOrigin-Name: f8304cc50370d746d8a5deec1e7cddeef37ad7aa
* | Fix [3cdcfa40809ffd2b9d3d71f77dc57da615243730|3cdcfa4080]: tclWinFile.c does ↵jan.nijtmans2014-07-171-2/+3
| | | | | | | | | | not compile with Win VC6 FossilOrigin-Name: f15f32923876d61a1a1e2cecc0129cd1c0233cae
* | Minor bug-fix in [3118489] implementation: NUL in filenames. Filenames ↵jan.nijtmans2014-05-151-6/+5
|\ \ | |/ | | | | | | starting with <drive>: but without a following slash should be considered volume-relative i.e. the ':' is valid here. FossilOrigin-Name: 46ad3d91625453995b6343496fe5be34391ee54c
| * Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ↵jan.nijtmans2014-05-151-2/+61
| | | | | | | | | | ':' in filenames as well) FossilOrigin-Name: 874ce8daf2e137310303f06464cf7e1aa865cb81
* | More efficient/robust implementation of function TclNativeCreateNativeRep(). jan.nijtmans2014-05-081-46/+63
| | | | | | | | | | | | | | | | - No more intermediate results in a Tcl_DString, just allocate space directly. - Let MultiByteToWideChar() do all the difficult work, inclusive checking for invalid byte sequences. - Handled extended win32 paths, inclusive UNC paths. Implementation for a great deal taken over from fossil. FossilOrigin-Name: 1a24401380bd00bcb3742922feba7b7213b164c1
* | Start working on [3389978]. Appears to work, but some clean-up needed.jan.nijtmans2014-05-061-2/+30
| | | | | | FossilOrigin-Name: 80d513f9cb4b2e0350b1e822041322cb4330e90f
* | Fix [3118489]: NUL in filenames, now fixed for both Windows and UNIX. jan.nijtmans2014-04-111-0/+9
| | | | | | | | | | 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. FossilOrigin-Name: b5dd510e85bb0711c9f00a94620d602ffd2a9350
* | Fix [3118489] for Windows only: NUL in filenames. This allows various ↵jan.nijtmans2014-04-111-3/+5
| | | | | | | | | | characters to be used in win32 filenames which are normally invalid, as described here: [http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars]. The Cygwin shell can handle those same filenames as well. In other shells (cmd.exe/mSys) or on the Windows desktop the filenames will look strange, but that's all. FossilOrigin-Name: 0f4597a73cae916f979f4bd22eeb9f8dc5cd467f
* | [792641f95b]: Normalized win32 paths should never contain backslash.jan.nijtmans2014-04-101-9/+7
|\ \ | |/ | | FossilOrigin-Name: 578237c4c689907698e3e324d7bf13ee3328eb57
| * [792641f95b]: Normalized win32 paths should never contain backslash.jan.nijtmans2014-04-101-9/+6
| | | | | | FossilOrigin-Name: bade6c326a2bd09c3ae91947a90d24b12b2a00ef
* | Eliminate a lot of dead code (for Windows 95/98/ME only). jan.nijtmans2013-06-191-312/+152
| | | | | | | | | | Eliminate all usage of TclWinSetInterfaces(), which does exactly the same as TclpSetInterfaces(), but keep exported symbol and stub entry. FossilOrigin-Name: 68c2017fb24a589e4a6554a48b4786553860937d
* | Better place to put vsnprintf switch, so it is usable by all *.c files. jan.nijtmans2013-06-181-4/+0
| | | | | | | | | | Fix comment on _ANSI_ARGS_ which is no longer true since 8.6. FossilOrigin-Name: 315c3fcfce9b80039e0e5b3c55b5b1e08b152b5a
* | Fix [42b8083613]jan.nijtmans2013-06-171-0/+4
| | | | | | FossilOrigin-Name: 486c1f031e33d613b659abe862220b9fb76637df
* | Silence various warnings when doing a 64-bit build with MSVC: Those warnings ↵jan.nijtmans2013-06-121-1/+1
|\ \ | |/ | | | | | | | | | | can only _really_ be fixed in "novem" (so, don't silence them there). Use vsnprintf (more portable) in stead of _vsnprintf, except on MSVC FossilOrigin-Name: 48b92a6ab6fd03805503b2b154f86000aa93719b
* | Slightly more correct: If FindFirstFile() fails, the error should be "no ↵jan.nijtmans2013-03-201-1/+1
|\ \ | |/ | | | | | | such file or directory" (ENOENT) not "permission denied" (EACCES). FossilOrigin-Name: d2de88281ca06aa44f2468a57fe8d5634c9176eb
| * Slightly more correct: If FindFirstFile() fails, the error should be "no ↵jan.nijtmans2013-03-201-1/+1
| |\ | | | | | | | | | | | | such file or directory" (ENOENT) not "permission denied" (EACCES). FossilOrigin-Name: 5ed5ec73c061bbea6ebbcd84986a4d463953535b
| | * Slightly more correct: If FindFirstFile() fails, the error should be "no ↵jan.nijtmans2013-03-201-1/+1
| | | | | | | | | | | | | | | such file or directory" (ENOENT) not "permission denied" (EACCES). FossilOrigin-Name: aad700de84e316dea67ee2e5bb35276a6e7f2840
* | | Handle the (unlikely) case that the file is deleted in between. Suggested by ↵jan.nijtmans2013-03-191-0/+4
|\ \ \ | |/ / | | | | | | | | | Harald Oehlmann (Thanks!) FossilOrigin-Name: 7eee715c3fbc09204d2990724bcdb78fef8c8809
| * | Handle the (unlikely) case that the file is deleted in between. Suggested by ↵jan.nijtmans2013-03-191-0/+4
| |\ \ | | |/ | | | | | | | | | Harald Oehlmann (Thanks!) FossilOrigin-Name: 2314a4bd26b4a0b51e5612eec0763c0555edb12e
| | * Handle the (unlikely) case that the file is deleted in between. Suggested by ↵jan.nijtmans2013-03-191-0/+4
| | | | | | | | | | | | | | | Harald Oehlmann (Thanks!) FossilOrigin-Name: ee8578624176b2a8cfc1195658bca8ad7a3d0eb6
* | | [Bug 3608360]: Incompatible behaviour of "file exists".jan.nijtmans2013-03-191-5/+17
|\ \ \ | |/ / | | | FossilOrigin-Name: 5567ed9fa5e1e9ed50b2db078be7f1a18700d0ca
| * | [Bug 2893771]: file stat fails on locked files on win32.jan.nijtmans2013-03-191-5/+17
| |\ \ | | |/ | | | FossilOrigin-Name: f5ff2ff965803d8399c01d18251a68431d0228b3
| | * make sure that [file stat] returns the right data, even for locked files.jan.nijtmans2013-03-191-0/+6
| | | | | | | | | FossilOrigin-Name: f92d60cd3d3ada948b12084ce02894ba0a2e3815
| | * [Bug 2893771]: file stat fails on locked files on win32.jan.nijtmans2013-03-191-5/+11
| | | | | | | | | FossilOrigin-Name: bfeff049399b2236c153ef8fad93ba587b50906d
* | | Back out bug fix for [Bug 2893771], because it was the cause of the regression.jan.nijtmans2013-03-191-24/+5
| | | | | | | | | FossilOrigin-Name: 61ca003f5227f7162f0d8b519a69fbb52b3edbc4
* | | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ \ \ | |/ / | | | FossilOrigin-Name: 4ef9e636564510c7d3930a697c92346e741365f2
| * | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-1/+0
| | | | | | | | | FossilOrigin-Name: 7725ffcfef05b6b690fe6864436b01970086fb76
* | | [Bug 3603434] Make sure TclpObjNormalizePath() properly declares "a:/" todgp2013-02-051-0/+12
|\ \ \ | |/ / | | | | | | | | | be normalized, even when no "A:" drive is present on the system. FossilOrigin-Name: aba7ba3b9fa0a684072d01a4794431e094e1cacc