summaryrefslogtreecommitdiffstats
path: root/generic/tclFCmd.c
Commit message (Collapse)AuthorAgeFilesLines
* Another round of sentinel fixes for 8.6, NULL -> (char *)NULLjan.nijtmans2024-05-291-3/+3
|
* Correct spelling errors in comments and documentation, but also non-comment pooryorick2023-04-121-1/+1
| | | corrections in history.tcl and tcltest.test.
* Fix [15e74a2fe6]: Fix various typosjan.nijtmans2023-03-241-1/+1
|
* Use TclListObjLength/TclListObjGetElements in stead of ↵jan.nijtmans2022-02-101-1/+1
| | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
* More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-1/+1
| | | | stead of Tcl_NewIntObj()
* merge 8.5: fixes segfault [7a9dc52b29] and wrong normalization (inside ↵sebres2018-11-221-1/+1
|\ | | | | | | TclJoinPath) for pure relative path-segments; test-cases extended and several windows-related are fixed.
* \ merge 8.5sebres2018-07-091-14/+20
|\ \ | |/
| * closes [270f78ca95b642fb]: fix the race condition for `file mkdir` if some ↵sebres2018-07-091-14/+18
| | | | | | | | worker deletes directory immediately after the succeded create inside 3rd worker.
* | merge core-8-5-branch (fix-1613456fff)sebres2018-04-301-10/+10
|\ \ | |/
| * amend to [5acb57c7aec45e05]: set code to TCL_ERROR, because primitives from ↵sebres2018-04-091-1/+1
| | | | | | | | tclIOUtil return -1
| * [27b682284974d0cd] command "file delete": avoid possible race condition if ↵sebres2018-04-061-9/+9
| | | | | | | | | | file/directory deleted after call of lstat, so bypass ENOENT error code. Thanks to Rainer Müller (aka raimue)
* | typo in comment. Eliminate unnecessary end-of-line spacing.jan.nijtmans2015-10-191-1/+1
| |
* | Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
|\ \ | |/
| * Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
| |
* | [f0f876c141] Improve consistency in error messages.dkf2014-06-171-1/+1
| |
* | Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-1/+1
| | | | | | | | | | Clang/LLVM) don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* | 3597000 Consistent [file copy] result.dgp2013-03-191-10/+7
|\ \ | |/
| * 3597000 Consistent [file copy] result.dgp2013-03-191-10/+7
| |\
| | * 3597000 Consistent [file copy] result.dgp2013-03-191-8/+7
| | |
* | | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ \ \ | |/ /
| * | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-6/+0
| | |
* | | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
|\ \ \ | |/ / | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
| * | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
| | | | | | | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
* | | fix two minor blunders, introduced by [1fb35ca910]jan.nijtmans2012-08-061-5/+0
| | | | | | | | | Only define _USE_32BIT_TIME_T for Tcl build, and only once.
* | | Reference to correct Bug #number. jan.nijtmans2012-08-061-1/+1
|\ \ \ | |/ / | | | Fix warning in winDde.c, and more test-cases using Unicode characters
| * | Reference to correct Bug #numberjan.nijtmans2012-08-061-1/+1
| |\ \ | | |/
| | * Reference to correct Bug #numberjan.nijtmans2012-08-061-1/+1
| | |
* | | more result generation conversiondkf2012-08-031-65/+74
| | |
* | | [Bug 3508771] Wrong Tcl_StatBuf used on MinGWjan.nijtmans2012-03-271-1/+1
|\ \ \ | |/ / | | | | | | [Bug 2015723] duplicate inodes from file stat on windows (but now for cygwin as well)
| * | [Bug 3508771] Wrong Tcl_StatBuf used on MinGWjan.nijtmans2012-03-271-1/+1
| |\ \ | | |/ | | | | | | [Bug 2015723] duplicate inodes from file stat on windows (but now for cygwin as well)
| | * [Bug 3508771] Wrong Tcl_StatBuf used on MinGWjan.nijtmans2012-03-271-14/+17
| | | | | | | | | [Bug 2015723] duplicate inodes from file stat on windows
* | | 3479689 New internal routine TclJoinPath().dgp2012-01-271-4/+1
| | | | | | | | | | | | Refactor all the *Join*Path* routines to give them more useful interfaces that are easier to manage getting the refcounts right.
* | | Bug-3474726 minGW Tcl_StatBuf not defined correctly in tcl.hjan.nijtmans2012-01-211-0/+5
|\ \ \ | |/ /
| * | Bug-3474726 minGW Tcl_StatBuf not defined correctly in tcl.hjan.nijtmans2012-01-211-0/+5
| |\ \ | | |/
| | * [Bug-3474726] minGW Tcl_StatBuf not defined correctly in tcl.hjan.nijtmans2012-01-191-0/+5
| | |
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-0/+1
| | | | | | | | | | | | n mingw, sys/stat.h must be included before winsock2.h, so make sure of that
| * | (TclFileAttrsCmd): Added commands to reset the typePtr of the Tcl_Obj* whose ↵andreask2011-04-201-0/+2
| | | | | | | | | | | | | | | | | | | | | int-rep was just purged. Required to prevent a dangling IndexRep* to reused, smashing the heap. See also the entries at 2011-04-16 and 2011-03-24 for the history of the problem. Note also bug 2857044. This is the original report and fix of such issues for HEAD.
| * | Added code to try to tame the [file attributes] guts, while trying to simplifydkf2011-04-161-9/+12
| | | | | | | | | | | | things enough that I can puzzle out AK's TclVFS problems. I suspect this is not a real fix though; just an attempt to make the problem tractable.
* | | Added comments to try to tame the file attributes guts, while trying to simplifydkf2011-04-161-14/+22
| | | | | | | | | | | | things enough that I can puzzle out AK's TclVFS problems. I suspect this is not a real fix though; just an attempt to make the problem tractable.
* | | More generation of error codes (most platform-specific parts not already usingdkf2011-04-061-0/+8
| | | | | | | | | Tcl_PosixError).
* | | Ensure that any reference to temporary index tables is squelched immediatelydkf2011-03-241-0/+6
|\ \ \ | |/ / | | | rather than hanging around to trip us up in the future.
| * | Ensure that any reference to temporary index tables is squelched immediatelydkf2011-03-241-0/+6
| |\ \ | | |/ | | | rather than hanging around to trip us up in the future.
| | * Ensure that any reference to temporary index tables is squelched immediatelydkf2011-03-241-0/+10
| | | | | | | | | rather than hanging around to trip us up in the future.
* | | 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).
| * | 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.
| | * 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.
| | * * generic/tclFCmd.c (TclFileMakeDirsCmd): fix to race condition inhobbs2005-08-171-5/+31
| | | | | | | | | | | | file mkdir (backport from head 2005-06-13) [Bug 1217375]
| | * file copy empty filename bug fixvincentdarley2003-06-231-1/+9
| | |
| * | Backported fix for bug #2015723patthoyts2008-07-211-5/+7
| | |
* | | * generic/tclCmdAH.c (TclInitFileCmd, TclMakeFileCommandSafe, ...):dkf2010-12-091-43/+400
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Break up [file] into an ensemble. Note that the ensemble is safe in itself, but the majority of its subcommands are not. * generic/tclFCmd.c (FileCopyRename,TclFileDeleteCmd,TclFileAttrsCmd) (TclFileMakeDirsCmd): Adjust these subcommand implementations to work inside an ensemble. (TclFileLinkCmd, TclFileReadLinkCmd, TclFileTemporaryCmd): Move these subcommand implementations from tclCmdAH.c, where they didn't really belong. * generic/tclIOCmd.c (TclChannelNamesCmd): Move to more appropriate source file. * generic/tclEnsemble.c (TclMakeEnsemble): Start of code to make partially-safe ensembles. Currently does not function as expected due to various shortcomings in how safe interpreters are constructed. * tests/cmdAH.test, tests/fCmd.test, tests/interp.test: Test updates to take into account systematization of error messages.