summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* * 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)
* * unix/tclUnixPort.h (Darwin): fix incorrect __DARWIN_UNIX03 configuredas2005-12-061-1/+3
| | | | overrides that were originally copied from Darwin CVS (rdar://3693001).
* * unix/tclUnixPort.h (Darwin): fix incorrect __DARWIN_UNIX03 configuredas2005-12-061-8/+10
| | | | overrides that were originally copied from Darwin CVS (rdar://3693001).
* * unix/configure.in: move check for fts API to configure.in and run itdas2005-12-055-90/+114
| | | | | | | | | * unix/tcl.m4: on all platforms, since Linux glibc2 and *BSDs also have this; using fts is more efficient than recursive opendir/readdir. * unix/tclUnixFCmd.c (TraverseUnixTree): add support to fts code for platforms with stat64. * unix/configure: * unix/tclConfig.h.in: regen.
* * unix/configure: Use FTS file APIs on Darwin if available.hobbs2005-12-053-24/+174
| | | | | | * unix/tcl.m4: Addresses file delete issues in readdir noted * unix/tclUnixFCmd.c: in [Bug 1034337]. (steffen) Reduce on stat call in DoCopyFile. (steffen)
* documented macosx-only configure options.das2005-12-031-1/+6
|
* Bug 1371446 plus buildability on ancient SolarisKevin B Kenny2005-12-021-3/+3
|
* Add remaining dependency info for UNIXdkf2005-12-011-87/+93
|
* * unix/tcl.m4 (Darwin): fixed error when MACOSX_DEPLOYMENT_TARGET unset.das2005-12-012-6/+4
| | | | * unix/configure: regen.
* Add compiler-related dependency information to prevent problems when developingdkf2005-11-301-9/+9
| | | | the bytecode compiler. They've bitten me one time more than I can stand!
* add #include <libkern/OSByteOrder.h> for OSX 10.2das2005-11-271-1/+2
|