summaryrefslogtreecommitdiffstats
path: root/generic/tclFCmd.c
Commit message (Collapse)AuthorAgeFilesLines
* New private flag value INDEX_TEMP_TABLE.dgp2016-07-131-8/+2
| | | | | | | Used to signal to Tcl_GetIndexFromObj*() routines that the table in which lookups are done has a fleeting existence. Thus there is no value in caching any results, since the cache can never be useful. Improvement over existing hackery where cache is stored and then freed to avoid bogus results. Likely candidate to eventually push to the public interface.
* 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.
* | | Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-11/+11
| | |
* | | * generic/tclExecute.c: fix potential uninitialized variable use anddas2009-09-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclFCmd.c: null dereference flagged by clang static * generic/tclProc.c: analyzer. * generic/tclTimer.c: * generic/tclUtf.c: * generic/tclExecute.c: silence false positives from clang static * generic/tclIO.c: analyzer about potential null dereference. * generic/tclScan.c: * generic/tclCompExpr.c:
* | | fixed constness of last commit for msvcpatthoyts2008-10-061-2/+2
| | |
* | | * doc/FileSystem.3: CONSTified Tcl_FSFileAttrStringsProcnijtmans2008-10-051-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclFCmd.c: and tclpFileAttrStrings. This allows * generic/tclIOUtil.c: FileSystems to report their attributes * generic/tclTest.c: as const strings, without worrying that * unix/tclUnixFCmd.c: Tcl modifies them (which Tcl should not * win/tclWinFCmd.c: do anyway, but the API didn't indicate that) * generic/tcl.decls * generic/tclDecls.h: regenerated * generic/tcl.h: make sure that if CONST84 is defined as empty, CONST86 should be defined as empty as well (unless overridden). This change complies with TIP #27 *** POTENTIAL INCOMPATIBILITY ***
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-241-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/file.n: Revise [file delete] and [file mkdir] to * generic/tclCmdAH.c: accept zero "pathname" arguments (the * generic/tclFCmd.c: no-op case). * tests/cmdAH.test: * tests/fCmd.test:
* | | Inode numbers on Windows are not unique so avoid the inode check on this ↵patthoyts2008-07-211-5/+7
| | | | | | | | | | | | platform [Bug 2015723]
* | | more consistent wrong # arg messages: change all messages containing ↵nijtmans2008-07-131-4/+4
| | | | | | | | | | | | ?options? to the form ?-option value ...?
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-16/+16
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Generate literal values more efficiently using TclNewLiteralStringObj macro.dkf2007-09-171-9/+9
| |