summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6. Fix Cygwin compilejan.nijtmans2021-02-231-1/+1
|\
| * Merge 8.5jan.nijtmans2021-02-231-3/+3
| |\
| | * Revise buffer-sizes used in GetModuleFileNameW() calls. Available ↵jan.nijtmans2021-02-231-3/+3
| | | | | | | | | | | | buffer-size reported to GetModuleFileNameW() was not always accurate
| | * Clean-up some unnecessary spacing.jan.nijtmans2020-04-171-1/+1
| | |
| * | Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-1/+1
| | | | | | | | | | | | size_t or int
* | | Simplify implementation on Cygwin: No need to use CFG_RUNTIME_BINDIR any morejan.nijtmans2021-02-231-1/+1
| | |
* | | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | | | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | | Merge 8.6jan.nijtmans2020-04-141-1/+1
|\ \ \ | |/ /
| * | Merge 8.5. Failing tests highlight ticket [1b1f5f0b53].dgp2020-04-131-1/+1
| |\ \ | | |/
| | * Guarantee TclNeedSpace and TclFindElement have common definition of whitespacedgp2020-04-091-1/+1
| | | | | | | | | | | | by having both call the same routine. Create a macro form to contain performance costs and adapt callers.
* | | TCL_UNUSED in the unix sources.dgp2020-03-091-7/+11
| | |
* | | Merge 8.7jan.nijtmans2019-12-131-2/+2
|\ \ \
| * | | Little code tweaks, regarding the use of TCL_UTF_MAX or wchar_t.jan.nijtmans2019-12-121-2/+2
| | | |
* | | | Merge 8.7jan.nijtmans2019-10-251-1/+0
|\ \ \ \ | |/ / /
| * | | Merge 8.6. jan.nijtmans2019-10-251-1/+0
| |\ \ \ | | |/ / | | | | Also remove unused variable in unix/tclUnixFile.c
* | | | Merge 8.7jan.nijtmans2019-10-241-0/+1
|\ \ \ \ | |/ / /
| * | | Backout [0f2870649c804dd8], since testcase encoding-2.2 failsjan.nijtmans2019-10-241-3/+2
| |\ \ \ | | |/ /
| * | | Fix gcc warning, also introduced by [0f2870649c804dd8]jan.nijtmans2019-10-231-2/+1
| | | |
| * | | Fix for [bcd1004104]pooryorick2019-10-221-2/+5
| |\ \ \ | | |/ /
* | | | Mark more function paramaters as unused. Now Tcl compiles fully (on UNIX and ↵jan.nijtmans2019-09-051-0/+5
|\ \ \ \ | |/ / / | | | | | | | | Windows) without -Wunused-parameters warnings
* | | | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-15/+15
|/ / /
* | | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-1/+1
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | 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-1/+1
|\ \ \ | |/ /
| * | merge 8.5sebres2018-05-091-1/+1
| |\ \ | | |/
| | * amend to [85bcf84100]: replaces DIR with Tcl_Dir (DIR/DIR64 regarding ↵sebres2018-05-091-1/+1
| | | | | | | | | | | | HAVE_STRUCT_DIRENT64)
* | | merge 8.6dgp2018-05-081-2/+2
|\ \ \ | |/ /
| * | merge fix for [92564326a98b5510] from 8.5sebres2018-05-081-2/+2
| |\ \ | | |/
| | * fixes [92564326a98b5510]: wrong x64-aligned handle from readdir64 by ↵sebres2018-05-081-2/+2
| | | | | | | | | | | | opendir/rewinddir/closedir, if HAVE_STRUCT_DIRENT64 used.
* | | more internal use of size_t in stead of int.jan.nijtmans2016-12-201-7/+8
| | |
* | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-3/+3
|/ / | | | | | | in many places where possible.
* | Fix [0df7a1ec2674a76a]: unix/tclUnixFile.c: return value of call to ↵jan.nijtmans2015-08-251-2/+5
|\ \ | |/ | | | | TclpGetCwd in TclpFindExecutable is not checked, variable cwd is used uninitialized.
| * Fix [0df7a1ec2674a76a]: unix/tclUnixFile.c: return value of call to ↵jan.nijtmans2015-08-251-2/+5
| | | | | | | | TclpGetCwd in TclpFindExecutable is not checked, variable cwd is used uninitialized.
| * Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ↵jan.nijtmans2014-05-151-0/+6
| | | | | | | | ':' in filenames as well)
* | Fix [3118489]: NUL in filenames, now fixed for both Windows and UNIX. jan.nijtmans2014-04-111-0/+6
| | | | | | 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.
* | 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
| |
* | [Bug 3598300]: unix: tcl.h does not include sys/stat.h.jan.nijtmans2013-01-181-2/+4
|\ \ | |/ | | (with an exception for OSX, for now)
| * ... and fix cygwin buildjan.nijtmans2013-01-181-2/+4
| |
* | 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
* | Minor changes to improve style (C89 declarations, consistent indentation,dkf2012-08-071-21/+30
| | | | | | | | clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.)
* | Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-7/+6
| |
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-6/+5
| |
* | mergejan.nijtmans2012-06-271-3/+3
|\ \ | |/
| * mergejan.nijtmans2012-06-271-3/+3
| |\
| | * fix bug in cygwin's [info nameofexecutable]jan.nijtmans2012-06-271-1/+1
| | | | | | | | | install dde and registry dll for cygwin
* | | use cygwin_conv_path() in stead of deprecated cygwin_conv_to_full_posix_pathjan.nijtmans2012-06-261-4/+3
|\ \ \ | |/ /