summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * ...and one more line.dgp2012-06-201-1/+0
| | |
| | * Remove dead code that complicates fs path values but adds no value.dgp2012-06-201-31/+10
| | |
| | * When using Tcl_SetObjLength() calls to grow and shrink the objPtr->bytes buffer,dgp2012-05-211-1/+1
| | | | | | | | | | | | | | | care must be taken that the value cannot possibly become pure Unicode. Calling Tcl_AppendToObj() has the possibility of making such a conversion. Bug found while valgrinding the trunk.
| | * make some more internal tables constjan.nijtmans2012-04-231-0/+1
| | | | | | | | | On cygwin, install dll's in /usr/bin, not in /usr/lib
| * | 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
* | | minor comment formattingdkf2012-04-151-4/+9
| | |
* | | Remove some low-value C stack frames.dkf2012-04-151-4/+9
| | |
* | | oops, that's no utf-8 BOM ;-(jan.nijtmans2012-02-291-2/+2
|\ \ \ | |/ /
| * | 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-2/+34
|\ \ \ | |/ /
| * | [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 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
|\ \ \ | |/ /
| * | [Bug 2233954] AIX: compile errorjan.nijtmans2012-02-161-0/+3
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-19/+17
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | 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/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:').