summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
Commit message (Collapse)AuthorAgeFilesLines
* some formatting (*.decls)jan.nijtmans2012-04-041-0/+1
|\ | | | | | | | | move up #undef, for macro which is conflicting with later stuff. remove some unused cygwin-related code some minor gcc warnings
| * tclStubInit.c: move up #undef, so it is clear that thisjan.nijtmans2012-04-041-20/+0
| | | | | | | | macro is conflicting with another definition in this file. Fix some other gcc warnings
* | oops, that's no utf-8 BOM ;-(jan.nijtmans2012-02-291-1/+1
|\ \ | |/
| * oops, that's no utf-8 BOM ;-(jan.nijtmans2012-02-291-1/+1
| |
* | [Bug 3466099] BOM in Unicodejan.nijtmans2012-02-291-1/+16
|\ \ | |/
| * [Bug 3466099] BOM in Unicodejan.nijtmans2012-02-291-4/+18
| |\
| | * [Bug 3466099] BOM in Unicodejan.nijtmans2012-02-191-4/+12
| |/
| * [Bug 2935503]: Windows: file mtime sets wrong timejan.nijtmans2011-11-221-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
| * fix for [Bug 3288345]: Wrong Tcl_StatBuf used on MinGW. Follow-up: get it ↵jan2011-04-201-1/+1
| | | | | | | | right for cygwin and WIN64 as well.
* | [Bug 2233954] AIX: compile error, but don't do that for _WIN32 (doesn't work ↵jan.nijtmans2012-02-171-1/+1
| | | | | | | | in VS10)
* | [Bug 2233954] AIX: compile errorjan.nijtmans2012-02-161-0/+3
| |
* | 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/tclPathObj.c: Fixed mistaken logic in TclFSGetPathType()dgp2009-02-201-1/+10
| | | | | | | | | | | | * tests/fileName.test: that assumed (not "absolute" => "relative"). This is a false assumption on Windows, where "volumerelative" is another possibility. [Bug 2571597].
| * * generic/tclIOUtil.c (Tcl_FSGetNormalizedPath): Added anotherdgp2008-12-041-11/+78
| | | | | | | | | | flag value TCLPATH_NEEDNORM to mark those intreps which need more complete normalization attention for correct results. [Bug 2385549]
| * * generic/tclIOUtil.c: Plug memory leak in latest commit. Thanksdgp2008-06-281-3/+8
| | | | | | | | Rolf Ade for detecting and Dan Steffen for the fix [Bug 2004654].
| * formattingdgp2008-06-231-2/+2
| |
| * * generic/tclIOUtil.c: Fixed bug in Tcl_GetTranslatedPath() whendgp2008-06-231-2/+11
| | | | | | | | | | | | | | operating on the "Special path" variant of the "path" Tcl_ObjType intrep. A full normalization was getting done, in particular, coercing relative paths to absolute, contrary to what the function of producing the "translated path" is supposed to do. [Bug 1972879].
| * * generic/tclIOUtil.c (TclGetOpenMode): Only set the O_APPEND flaghobbs2007-12-141-2/+6
| | | | | | | | | | * tests/ioUtil.test (ioUtil-4.1): on a channel for the 'a' mode and not for 'a+'. [Bug 1773127] (backport from HEAD)
| * (Tcl_FSEvalFile): safe incr of objPtr refhobbs2007-02-191-1/+2
| |
| * * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-281-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test:
| * * generic/tclIOUtil.c: Cleaned up some code flagged by adgp2006-10-171-12/+11
| | | | | | | | | | | | * generic/tclInt.h: `make checkexports` test. * win/tclWin32Dll.c: * win/tclWinFile.c:
| * * win/tclWinFCmd.c: [Bug 1548263] Added test for NULL returnhobbs2006-08-301-3/+8
| | | | | | | | | | * generic/tclIOUtil.c: from Tcl_FSGetNormalizedPath which was causing segv's
| * * generic/tclIOUtil.c: Revisions to complete the thread finalizationdgp2006-08-211-1/+3
| | | | | | | | of the cwdPathPtr. [Bug 1536142]
| * * generic/tclIOUtil.c: fix to nativeFilesystemRecord comparisonsdas2006-03-281-6/+6
| | | | | | | | (lesser part of [Bug 1064247])
| * typo in commentdas2006-03-281-2/+2
| |
| * * generic/tclIOUtil.c (TclGetOpenMode): Added the flag O_APPEND toandreas_kupries2006-03-161-2/+6
| | | | | | | | | | | | | | | | | | the list of POSIX modes used when opening a file for 'a'ppend. This enables the proper automatic seek-to-end-on-write by the OS. See [Bug 680143] for longer discussion. * tests/ioCmd.test (iocmd-13.7.*): Extended the testsuite to check the new handling of 'a'.
| * * generic/tclIO.c: Made several routines tolerant ofdgp2006-02-151-2/+4
| | | | | | | | * generic/tclIOUtil.c: interp == NULL arguments. [Bug 1380662]
| * Fixed potential overwriting of already freed memoryvasiljevic2006-01-121-3/+7
| | | | | | | | | | which caused all kinds of (rare but reproducible) coredumps all over the place.
| * * generic/tclIOUtil.c: workaround gcc warning "comparison is alwaysdas2005-12-151-1/+12
| | | | | | | | * generic/tclTest.c: false due to limited range of data type".
| * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tk/unix/configure.in. * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling of tclTestInit.o or xtTestInit.o during parallel make. (checkstubs, checkdoc, checkexports): dependency and Darwin fixes * unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. [Bug 1204237] (TclGuessPackageName): should not be MODULE_SCOPE. (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for loading universal (fat) bundles from memory. * unix/tclUnixPort.h: * unix/tclUnixFCmd.c: add support for new Tiger copyfile() API to enable copying of xattrs & ACLs by [file copy]. * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE defines to support fat compiles of ppc and ppc64 at the same time, (replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location of version numbers in macosx files. * generic/tclInt.h: clarify fat compile comment. * unix/tclUnixPort.h: add Darwin specifc configure overrides to support fat compiles, where configure runs only once for multiple architectures (replaces Darwin CVS fix by emoy, rdar://3693001). * macosx/tclMacOSXBundle.c: * macosx/tclMacOSXNotify.c: * unix/tclUnixNotfy.c: * unix/tclUnixPort.h: fix #include order to support compile time override of HAVE_COREFOUNDATION in tclUnixPort.h when building for ppc64 * macosx/Tcl.pbproj/default.pbxuser (new file): * macosx/Tcl.pbproj/jingham.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: sync with HEAD. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). * macosx/Makefile: add support for reusing configure cache, build target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. * generic/tclIOUtil.c: * generic/tclRegexp.c: * generic/tclVar.c: declare globals used only in own file as static (sync with HEAD). * generic/rege_dfa.c (getvacant): * generic/regexec.c (cfind): * generic/tclCompExpr.c (CompileSubExpr): * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to silence gcc 4 warnings. * generic/regguts.h: only #define NDEBUG if not already #defined. * macosx/tclMacOSXNotify.c: sync whitespace & comments with HEAD * unix/configure: regen.
| * * generic/tclIOUtil.c (TclFSNormalizeAbsolutePath): make statichobbs2005-10-051-2/+2
| | | | | | | | * generic/tclEncoding.c (TclFindEncodings): make static
| * * generic/tclIOUtil.c (TclLoadFile):das2005-05-241-1/+51
| | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: * unix/tcl.m4: * unix/tclLoadDyld.c: added support for [load]ing .bundle binaries in addition to .dylib's: .bundle's can be [unload]ed (unlike .dylib's), and can be [load]ed from memory, e.g. directly from VFS without needing to be written out to a temporary location first. [Bug 1202209] * unix/configure: autoconf-2.13
| * filesystem, glob, tilde fixvincentdarley2004-12-021-4/+26
| |
| * backport file join fixvincentdarley2004-11-231-3/+13
| |
| * Partialy fixed Bug #932314vasiljevic2004-06-101-6/+14
| |
| * * generic/tclIOUtil.c (Tcl_FSChdir): Work-around crash conditionhobbs2004-05-041-1/+48
| | | | | | | | | | * tests/winFCmd.test (winFCmd-16.12): triggered when $HOME is volumerelative (ie 'C:').
| * reverted file norm .. fixes because 8.5 had much more extensive changes ↵hobbs2004-02-181-222/+85
| | | | | | | | across the board
| * * generic/tclIOUtil.c: backport of rewrite of generic filehobbs2004-02-181-85/+222
| | | | | | | | | | normalization code to cope with links followed by '..'. [Bug 849514], and parts of [859251]
| * vfs code tclfinalizefilesystem fixvincentdarley2004-01-091-3/+3
| |
| * Merged fixes for Tcl Bug #839519 and Tcl Bug #861515.vasiljevic2003-12-171-11/+14
| | | | | | | | Those are already applied to the head.
| * fix to 'cd' infinite recursion bug on Windowsvincentdarley2003-11-201-5/+12
| |
| * * generic/tclIOUtil.c (FsListMounts, FsAddMountsToGlobResult): Newandreas_kupries2003-10-221-2/+153
| | | | | | | | | | | | | | | | | | | | | | functions. See below for context. (Tcl_FSMatchInDirectory): Modified to call on the new functions (above) to handle the mountpoints in the glob'bed directory correctly. Part of the patch by Vincent Darly to solve the [Bug 800106] for the 8.4.x series. * generic/tcl.h (TCL_GLOB_TYPE_MOUNT): New definition. Part of the patch by Vincent Darly to solve [Bug 800106] for the 8.4.x series.
| * filesystem bug fixes: volumerelative normalization, file join inconsistencyvincentdarley2003-10-061-34/+58
| |
| * backporting of filesystem tests, docsvincentdarley2003-10-031-11/+79
| |
| * Backported fix from HEAD for Bug 788780vasiljevic2003-09-011-3/+3
| |
| * * generic/tclIOUtil.c: correct MT-safety issues with filesystemhobbs2003-07-181-179/+237
| | | | | | | | records. [Bug 753315] (vasiljevic)
| * 2003-07-16 Mumit Khan <khan@nanotech.wisc.edu>hobbs2003-07-171-1/+21
| | | | | | | | | | | | | | | | * generic/tclIOUtil.c (SetFsPathFromAny): Add Cygwin specific code to convert POSIX filename to native format. * generic/tclFileName.c (Tcl_TranslateFileName): And remove from here. (TclDoGlob): Adjust for cygwin and append / for dirs instead of \ * win/tclWinFile.c (TclpObjChdir): Use chdir on Cygwin.
| * * generic/tclFileName.c (Tcl_GlobObjCmd): [Bug 771840]dgp2003-07-161-19/+1
| | | | | | | | | | | | * generic/tclIOUtil.c (Tcl_FSConvertToPathType):[Bug 771947] * unix/tclUnixFCmd.c (GetModeFromPermString): [Bug 771949] Silence compiler warnings about unreached lines.