summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
Commit message (Collapse)AuthorAgeFilesLines
* Implementation of [file tempdir]; hand-tested on OSX...dkf2019-04-301-1/+3
|
* Export APIdkf2019-04-301-1/+0
|
* Windows implementation of TclpCreateTemporaryDirectorydkf2019-04-301-1/+1
|
* Starting to implement a temporary directory creator.dkf2019-04-301-0/+78
|
* Modify testbytestring such that is only produces pure byte-arrays, if not it ↵jan.nijtmans2019-04-011-10/+10
| | | | | errors out. Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
* If compiled with -DTCL_NO_DEPRECATED, remove ↵jan.nijtmans2018-12-121-4/+4
| | | | | Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro) Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
* Simplify usage of TCL_THREAD, along the lines of ↵jan.nijtmans2018-05-221-1/+1
| | | | [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
* TIP #491 implementation: Threading Support: phasing out non-threaded buildsjan.nijtmans2018-05-171-1/+1
|\
* \ merge 8.6jan.nijtmans2018-05-141-1/+1
|\ \
| * \ merge 8.5jan.nijtmans2018-05-141-1/+1
| |\ \
| | * | Unbreak build when HAVE_FTS is not set. jan.nijtmans2018-05-141-1/+1
| | | | | | | | | | | | Move definitions of Tcl_DirEntry and TclDIR to tclWinPort.h, where it actually belongs
* | | | General code style cleanup.dkf2018-05-131-6/+6
| | | |
* | | | merge 8.6jan.nijtmans2018-05-111-1/+1
|\ \ \ \ | |/ / /
| * | | merge 8.5jan.nijtmans2018-05-111-1/+1
| |\ \ \ | | |/ /
| | * | Rename Tcl_Dir to TclDIR, making it clear that this macro is not part of the ↵jan.nijtmans2018-05-111-1/+1
| | | | | | | | | | | | | | | | public API
* | | | merge 8.6dgp2018-05-091-2/+2
|\ \ \ \ | |/ / /
| * | | merge 8.5sebres2018-05-091-2/+2
| |\ \ \ | | |/ /
| | * | amend to [85bcf84100]: replaces DIR with Tcl_Dir (DIR/DIR64 regarding ↵sebres2018-05-091-2/+2
| | | | | | | | | | | | | | | | HAVE_STRUCT_DIRENT64)
* | | | merge 8.6dgp2018-05-081-7/+7
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | merge fix for [92564326a98b5510] from 8.5sebres2018-05-081-7/+7
| |\ \ | | |/
| | * fixes [92564326a98b5510]: wrong x64-aligned handle from readdir64 by ↵sebres2018-05-081-7/+7
| | | | | | | | | | | | opendir/rewinddir/closedir, if HAVE_STRUCT_DIRENT64 used.
* | | more internal use of size_t in stead of int.jan.nijtmans2016-12-201-15/+13
| | |
* | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-6/+6
|/ / | | | | | | in many places where possible.
* | Fix [f01d74dc8c]: DEFAULT_COPY_BLOCK_SIZE has incorrect valuejan.nijtmans2016-01-071-1/+1
| |
* | Only write back file attributes if any of them really changed.jan.nijtmans2014-03-261-12/+11
| |
* | Implementation of [b42b208ba4]: file attributes -readonly on Cygwin. For ↵jan.nijtmans2014-03-261-14/+171
| | | | | | | | completeness, implemented -archive, -hidden and -system as well.
* | Fix 3 trivial (possible) errors, discovered by covertity.comjan.nijtmans2013-09-041-2/+2
| |
* | [3613567]: Corrected sense of test on results of access() in temp file creation.dkf2013-05-201-2/+2
| |
* | 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-1/+0
| |
* | fix Bug 3598300 on MacOSX toojan.nijtmans2013-01-191-1/+1
|\ \ | |/
| * Proposed solution for Bug 3598300 on MacOSXjan.nijtmans2013-01-181-1/+1
| |
* | 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
* | * unix/tclUnixFCmd.c (TclUnixOpenTemporaryFile): [Bug 2933003]: Factordkf2012-11-141-9/+45
| | | | | | | | | | | | | | out all the code to do temporary file creation so that it is possible to make it correct in one place. Allow overriding of the back-stop default temporary file location at compile time by setting the TCL_TEMPORARY_FILE_DIRECTORY #def to a string containing the directory name (defaults to "/tmp" as that is the most common default).
* | Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-39/+42
| |
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-7/+7
| |
* | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-4/+2
| | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* | More generation of error codes (most platform-specific parts not already usingdkf2011-04-061-0/+5
| | | | | | Tcl_PosixError).
* | MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-18/+20
| | | | | | the Engineering Manual.
* | 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.
| | * * unix/tclUnixFCmd.c: add workaround for crashing bug in fts_open()das2007-04-291-16/+30
| | | | | | | | | | | | * unix/tclUnixInit.c: without FTS_NOSTAT on 64bit Darwin 8 or earlier.
| | * * unix/tclUnixFCmd.c (CopyFile): [SF Tcl Bug 1586470]. Added codeandreas_kupries2006-11-071-1/+11
| | | | | | | | | | | | | | | to fall back to a hardwired default block size should the filesystem report a bogus value.
| | * * unix/tclUnixFCmd.c: Removed some false tests addedvasiljevic2006-09-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | (and left by mistake) by fixing the Tcl Bug: 999544 * unix/tclUnixCompat.c: Added fallback to MT-unsafe library calls if TCL_THREADS is not defined. Fixed alignment of arrays copied by CopyArrayi() to be on the sizeof(char *) boundary.
| | * Rewritten MT-safe wrappers to return ptrs to TSD storagevasiljevic2006-09-071-51/+7
| | |
| | * Added MT-safe implementation of some library calls.vasiljevic2006-09-061-17/+60
| | | | | | | | | | | | See Tcl Bug 999544 for more information.
| | * * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): createdas2006-07-201-48/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notifier thread lazily upon first call to Tcl_WaitForEvent() rather than in Tcl_InitNotifier(). Allows calling exeve() in processes where the event loop has not yet been run (Darwin's execve() fails in processes with more than one thread), in particular allows embedders to call fork() followed by execve(), previously the pthread_atfork() child handler's call to Tcl_InitNotifier() would immediately recreate the notifier thread in the child after a fork. * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): add support for * unix/tclUnixFCmd.c (DoRenameFile, CopyFileAtts): weakly importing * unix/tclUnixInit.c (TclpSetInitialEncodings): symbols not available on OSX 10.2 or 10.3, enables binaires built on later OSX versions to run on earlier ones. * macosx/README: document how to enable weak-linking; cleanup. * unix/tclUnixPort.h: add support for weak-linking; conditionalize AvailabilityMacros.h inclusion; only disable realpath on 10.2 or earlier when threads are enabled. * unix/tclLoadDyld.c (TclpLoadMemoryGetBuffer): change runtime Darwin * unix/tclUnixInit.c (TclpInitPlatform): release check to use global initialized once. * unix/tclUnixFCmd.c (DoRenameFile, TclpObjNormalizePath): add runtime Darwin release check to determine if realpath is threadsafe. * unix/configure.in: add check on Darwin for compiler support of weak * unix/tcl.m4: import and for AvailabilityMacros.h header; move Darwin specific checks & defines that are only relevant to the tcl build out of tcl.m4; restrict framework option to Darwin; cleanup quoting. * unix/configure: autoconf-2.13 * unix/tclLoadDyld.c (TclpLoadMemory): * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
| | * * unix/tclUnixFCmd.c (TclpObjNormalizePath): deal with *BSD/Darwindas2006-03-281-3/+11
| | | | | | | | | | | | realpath() converting relative paths into absolute paths. [Bug 1064247]