summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* Fix for stack.test failures on FreeBSDJoe Mistachkin2006-08-292-13/+5
|
* fixed [ 1548263 ] NULL return from Tcl_FSGetNormalizedPath segvcoldstore2006-08-291-1/+4
|
* * unix/tclUnixPort.h (Darwin): override potentially faulty configuredas2006-08-211-7/+13
| | | | | detection of termios availability in all cases, since termios is known to be present on all Mac OS X releases since 10.0. [Bug 497147]
* * generic/tclClock.c (ClockClicksObjCmd): add support for Darwindas2006-08-214-2/+104
| | | | | | | | | * generic/tclCmdMZ.c (Tcl_TimeObjCmd): nanosecond resolution timer * generic/tclInt.h: to [clock clicks] and [time] * unix/configure.in (Darwin): when TCL_WIDE_CLICKS defined. * unix/tclUnixTime.c (TclpGetWideClicks, TclpWideClicksToNanoseconds): * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* * macosx/tclMacOSXNotify.c (Tcl_WaitForEvent): if the run loop isdas2006-08-211-2/+12
| | | | | | | | | | | | | already running (e.g. if Tcl_WaitForEvent was called recursively), re-run it in a custom run loop mode containing only the source for the notifier thread, otherwise wakeups from other sources added to the common run loop modes might get lost. * unix/tclUnixNotfy.c (Tcl_WaitForEvent): on 64-bit Darwin, pthread_cond_timedwait() appears to have a bug that causes it to wait forever when passed an absolute time which has already been exceeded by the system time; as a workaround, when given a very brief timeout, just do a poll on that platform. [Bug 1457797]
* * unix/tclUnixChan.c (TclUnixWaitForFile): with timeout < 0, if select()das2006-08-181-1/+4
| | | | | returns early (e.g. due to a signal), call it again instead of returning a timeout result. Fixes intermittent event-13.8 failures.
* * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, fordas2006-08-185-34/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | universal builds including x86_64, for 64-bit CoreFoundation on Leopard and for use of -mmacosx-version-min instead of MACOSX_DEPLOYMENT_TARGET. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 * generic/tcl.h: add fixes for building on Leopard and support * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard. * macosx/tclMacOSXFCmd.c: * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * generic/tclTomMath.h: on Darwin 64-bit, for now disable use of 128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to link errors due to missing fallbacks. (rdar://4685527) * macosx/Tcl.xcodeproj/project.pbxproj: add x86_64 to universal build, switch native release targets to use DWARF with dSYM, Xcode 3.0 changes. * macosx/README: updates for x86_64 and Xcode 2.3. * macosx/Tcl.xcodeproj/default.pbxuser: add test suite target that runs * macosx/Tcl.xcodeproj/project.pbxproj: the tcl test suite at build time and shows clickable test suite errors in the GUI build window. * tests/macOSXFCmd.test: fix use of deprecated resource fork paths. * unix/tclUnixInit.c (TclpInitLibraryPath): move code that is only needed when TCL_LIBRARY is defined to run only in that case. * generic/tclLink.c (LinkTraceProc): fix 64-bit signed-with-unsigned comparison warning from gcc4 -Wextra.
* Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-101-8/+8
|
* * unix/tclUnixPipe.c (TclpCreateProcess): for USE_VFORK: ensure standarddas2006-08-021-1/+18
| | | | | channels are initialized before vfork() so that the child doesn't potentially corrupt global state in the parent's address space.
* cleanup quoting and whitespacedas2006-07-202-5/+6
|
* * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): createdas2006-07-208-953/+1203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/tclMacOSXFCmd.c (TclMacOSXCopyFileAttributes): add support * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): for weakly * unix/tclUnixInit.c (Tcl_GetEncodingNameFromEnvironment): importing symbols not available on OSX 10.2 or 10.3, enables binaires built on later OSX versions to run on earlier ones. * macosx/Tcl.xcodeproj/project.pbxproj: enable weak-linking; turn on extra warnings. * 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 and help messages. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 * unix/tclLoadDyld.c (TclpLoadMemory): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
* * generic/regc_locale.c (cclass):das2006-07-201-3/+4
| | | | | | | | | | | | | * generic/tclExecute.c (TclExecuteByteCode): * generic/tclIOCmd.c (Tcl_ExecObjCmd): * generic/tclListObj.c (NewListIntRep): * generic/tclObj.c (Tcl_GetLongFromObj, Tcl_GetWideIntFromObj, FreeBignum, Tcl_SetBignumObj): * generic/tclParseExpr.c (Tcl_ParseExpr): * generic/tclStrToD.c (TclParseNumber): * generic/tclStringObj.c (TclAppendFormattedObjs): * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
* * unix/tclUnixPort.h: Added the inclusion ofandreas_kupries2006-07-141-1/+6
| | | | | | <AvailabilityMacros.h>. The missing header caused the upcoming #if conditions to wrongly exclude realpath, causing file normalize to ignore symbolic links in the path.
* * unix/tclUnixPort.h (Darwin): support for MAC_OS_X_VERSION_MAX_ALLOWEDdas2006-06-141-10/+27
| | | | | define from AvailabilityMacros.h: override configure detection and only use API available in the indicated OS version or earlier.
* Workaround for silly compiler bug. [Bug 1503729]dkf2006-06-131-2/+9
|
* * macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler thatdas2006-05-273-75/+183
| | | | | | | | | | | | | * unix/tcl.m4 (Darwin): recreates CoreFoundation state and notifier thread in the child after a fork(). Note that pthread_atfork() is available starting with Tiger only. Because vfork() is used by the core on Darwin, [exec]/[open] are not affected by this fix, only extensions or embedders that call fork() directly (such as TclX). However, this only makes fork() safe from corefoundation tcl with --disable-threads; as on all platforms, forked children may deadlock in threaded tcl due to the potential for stale locked mutexes in the child. [Patch 923072] * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* autoconf-2.59das2006-05-261-2/+2
|
* Fix [Bug 1494160]dkf2006-05-241-1/+1
|
* * README: Bump version number to 8.5a5dgp2006-05-043-5/+5
| | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
* * unix/tcl.m4: removed TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKINGdas2006-04-063-11/+0
| | | | | | define on Darwin. [Bug 1457515] * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* * unix/tcl.m4, win/tcl.m4: []-quote AC_DEFUN functions.hobbs2006-03-281-26/+26
|
* * unix/tclUnixFCmd.c (TclpObjNormalizePath): deal with *BSD/Darwindas2006-03-281-3/+11
| | | | realpath() converting relative paths into absolute paths. [Bug 1064247]
* * doc/CrtChannel.3: Added TCL_CHANNEL_VERSION_5, made itandreas_kupries2006-03-272-6/+7
| | | | | | | | | | | | | | * generic/tcl.h: the version where the "truncateProc" * generic/tclIO.c: is defined at, and moved all channel * generic/tclIOGT.c: drivers of Tcl to v5. * generic/tclIORChan.c: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * win/tclWinChan.c: * win/tclWinConsole.c: * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c:
* backing out last change, Tcl_Panic will be declared to never returndas2006-03-251-2/+2
|
* handle Tcl_Panic potentially returning. coverity bug 46das2006-03-251-1/+2
|
* added check for NULL return value of Tcl_FSGetTranslatedPath(), coverity bug 39das2006-03-251-1/+4
|
* added casts to silence coverity bug 38das2006-03-251-5/+5
|
* * unix/tcl.spec: Cleaned up and completed the spec file.rmax2006-03-231-25/+25
| | | | | An RPM can now be built from the tcl source distribution with "rpmbuild -tb <tarball>".
* * generic/tclInt.decls: implement globbing for HFS creator & typedas2006-03-211-11/+80
| | | | | | | | | * macosx/tclMacOSXFCmd.c: codes and 'hidden' flag, as documented in * tests/macOSXFCmd.test: glob.n; objectified OSType handling in [glob] * unix/tclUnixFile.c: and [file attributes]; fix globbing for hidden files with pattern==NULL arg. [Bug 823329] * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: make genstubs
* * unix/installManPage: There is always one even more brokenandreas_kupries2006-03-201-8/+8
| | | | | | | "sed". Moved the # comment starting character in the sed script to the beginning of their respective lines. The AIX sed will not recognize them as comments otherwise :( The actual text stays indented for better association with the commands they belong to.
* Fix for [Bug 1444692]Joe Mistachkin2006-03-171-1/+2
|
* typo in TclpLoadMemory() error msgdas2006-03-161-2/+2
|
* * library/tm.tcl (::tcl::tm::Defaults): Fixed handling ofandreas_kupries2006-03-141-1/+1
| | | | | environment variable TCLX.y_TM_PATH, bad variable reference. See [SF Tcl Bug 1448251]. Thanks to Julian Noble.
* 90% fix of file writable issues on Windowsvincentdarley2006-03-141-1/+64
|
* * unix/configure.in: Revert change from 2005-07-26 that sometimesdgp2006-03-132-15/+1
| | | | | * unix/configure: added $prefix/share to the tcl_pkgPath. See [Patch 1231015]. autoconf-2.59.
* Added no-op TclpFinalizeSockets().vasiljevic2006-03-101-1/+23
|
* When moving http TM install from 8.2 to 8.4, overlooked changing the mkdirsdgp2006-03-101-2/+2
| | | | so that 8.4 rather than 8.2 is known to exist.
* Set SHLIB_LD_FLAGS='${LIBS}' on NetBSD, as per the other *BSD variantsjenglish2006-03-082-2/+2
| | | | [Bug 1334613]. Regenerate configure script.
* * unix/Makefile.in: Package http 2.5.2 requires Tcl 8.4, sodgp2006-03-071-3/+3
| | | | | * win/Makefile.in: the *.tm installation has to be placed in an "8.4" directory, not an "8.2" directory.
* * library/http/http.tcl: Bump to version 2.5.3 to cover bug fixdgp2006-03-071-3/+3
| | | | | | * library/http/pkgIndex.tcl: in URL parsing. [Bug 1358369] * unix/Makefile.in: * win/Makefile.in:
* * unix/installManPage: Fix the script for manpages that havermax2006-03-011-18/+18
| | | | | quotes around the .SH arguments, as doctools produces them (Bug#1292145). Some minor cleanups and improvements.
* TIP#258 IMPLEMENTATIONdgp2006-02-081-3/+3
| | | | | | | | | | | | | | | | | | | | | * doc/Encoding.3: New subcommand [encoding dirs]. * doc/encoding.n: New routine Tcl_GetEncodingNameFromEnvironment. * generic/tcl.decls: Made public: * generic/tclBasic.c: TclGetEncodingFromObj * generic/tclCmdAH.c: -> Tcl_GetEncodingFromObj * generic/tclEncoding.c:TclGetEncodingSearchPath * generic/tclInt.decls: -> Tcl_GetEncodingSearchPath * generic/tclInt.h: TclSetEncodingSearchPath * generic/tclTest.c: -> Tcl_SetEncodingSearchPath * library/init.tcl: Removed commands: * tests/cmdAH.test: [tcl::unsupported::EncodingDirs] * tests/encoding.test: [testencoding path] (Tcltest) * unix/tclUnixInit.c: [Patch 1413934]. * win/tclWinInit.c: * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c:
* Minor simplification of forward declarationsdkf2006-02-021-5/+3
|
* Improved commenting of a tricky bit of TclpOpenFileChanneldkf2006-01-261-13/+11
|
* Adapted version of FreeBSD port to reduce the amount of stuff theydkf2006-01-251-3/+10
| | | | have to do to build Tcl...
* * unix/configure: add caching, use AC_CACHE_CHECK instead ofdas2006-01-103-382/+480
| | | | | | | * unix/configure.in: AC_CACHE_VAL where possible, consistent message * unix/tcl.m4: quoting, sync relevant tclconfig/tcl.m4 changes and gratuitous formatting differences, fix SC_CONFIG_MANPAGES with default argument, Darwin improvements to SC_LOAD_*CONFIG.
* Small improvement to the factoring of tcl.m4dkf2006-01-051-41/+47
| | | | Regeneration of configure is *not* urgent
* * macosx/Tcl.xcode/project.pbxproj:das2005-12-141-3/+4
| | | | | | | * macosx/Tcl.xcodeproj/project.pbxproj: * unix/Makefile.in: add new tclTomMath* files. * generic/tclBasic.c: replace panic with Tcl_Panic.
* Export stubs for libtommath; fix mingw compiler warningsKevin B Kenny2005-12-131-5/+10
|
* * unix/tcl.m4, unix/configure: Fix sh quoting error reported inhobbs2005-12-122-4/+4
| | | | bash-3.1+ [Bug 1377619] (schafer)