summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* * unix/Makefile.in: add 'tclsh' dependency to install targets that relydas2007-04-301-4/+4
| | | | on tclsh, fixes parallel 'make install' from empty build dir.
* * unix/Makefile.in (dist): copy license.terms to dist macosx dir.das2007-04-293-12/+15
| | | | | * unix/configure.in: install license.terms into Tcl.framework. * unix/configure: autoconf-2.13
* * unix/tclLoadDyld.c (TclpLoadMemory): fix (void*) arithmetic.das2007-04-291-42/+48
|
* * unix/tclUnixFCmd.c: add workaround for crashing bug in fts_open()das2007-04-292-18/+34
| | | | * unix/tclUnixInit.c: without FTS_NOSTAT on 64bit Darwin 8 or earlier.
* Restored Cygwin buildability [Bug 1387154]Kevin B Kenny2007-04-211-1/+9
|
* * generic/tclInt.decls: Yet another round of attemptingKevin B Kenny2007-04-212-8/+8
| | | | | | | | | * generic/tclInt.h: to get the correct type signature * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime. * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST' * win/tclWinTime.c: and not a 'CONST time_t*'! * generic/tclIntDecls.h: [Bug 1677275] * generic/tclIntPlatDecls.h: Regenerated.
* * generic/tclEvent.c (Tcl_CreateThread): Replaced some calls todgp2007-03-191-3/+3
| | | | | | * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging.
* * macosx/tclMacOSXNotify.c: add spinlock debugging and sanity checks.das2007-03-072-2/+2
| | | | | * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. * unix/configure: autoconf-2.13
* * unix/tcl.m4: use SHLIB_SUFFIX=".so" on HP-UX ia64 arch.hobbs2007-02-192-344/+352
| | | | * unix/configure: autoconf-2.13
* * unix/configure.in: add caching to -pipe check.das2007-02-042-433/+439
| | | | * unix/configure: autoconf-2.13
* renamed SC_COMMANDS_PRE to SC_CONFIG_COMMANDS_PRE for parity with AC 2.5xdas2007-01-261-3/+3
|
* previous commit omitted some changes from the HEADdas2007-01-252-355/+353
|
* *** empty log message ***das2007-01-251-1/+1
|
* * unix/tcl.m4: integrate CPPFLAGS into CFLAGS as late as possibledas2007-01-253-323/+361
| | | | | | | | * unix/configure.in: and move (rather than duplicate) -isysroot flags from CFLAGS to CPPFLAGS to avoid errors about multiple -isysroot flags from some older gcc builds. * unix/configure: autoconf-2.13
* * macosx/tclMacOSXNotify.c: accommodate changes to prototypes ofdas2007-01-192-349/+363
| | | | | | | | | | | | | | OSSpinLock(Un)Lock API. * tests/env.test: add extra system env vars that need to be preserved on some Mac OS X versions for testsuite to work. * unix/tcl.m4: ensure CPPFLAGS env var is used when set. [Bug 1586861] (Darwin): add -isysroot and -mmacosx-version-min flags to CPPFLAGS when present in CFLAGS to avoid discrepancies between what headers configure sees during preprocessing tests and compiling tests. * unix/configure: autoconf-2.13
* * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-1/+1
|
* * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-3/+3
|
* * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-6/+2
|
* * unix/tcl.m4 (Darwin): --enable-64bit: verify linking with 64bit -archdas2006-12-192-324/+406
| | | | | flag succeeds before enabling 64bit build. * unix/configure: autoconf-2.13
* * unix/tclUnixChan.c (TclUnixWaitForFile):Kevin B Kenny2006-11-281-3/+4
| | | | | | | * tests/event.test (event-14.*): Corrected a bug where TclUnixWaitForFile would present select() with the wrong mask on an LP64 machine if a fd number exceeds 32. Thanks to Jean-Luc Fontaine for reporting and diagnosing [Bug 1602208].
* * tcl.m4 (Linux): --enable-64bit support. [Patch 1597389], [Bug 1230558]das2006-11-262-326/+374
| | | | * configure: autoconf-2.13
* * unix/tclUnixFCmd.c (CopyFile): [SF Tcl Bug 1586470]. Added codeandreas_kupries2006-11-071-1/+11
| | | | | to fall back to a hardwired default block size should the filesystem report a bogus value.
* * README: Bump version number to 8.4.15dgp2006-10-233-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.13 * win/configure:
* * unix/configure.in (HAVE_MTSAFE_GETHOST*): Modified to recognizeandreas_kupries2006-09-122-195/+215
| | | | | | HP-UX 11.00 and beyond as having mt-safe implementations of the gethost functions. * unix/configure: Regenerated, using autoconf 2.13
* * unix/tclUnixCompat.c (PadBuffer): Fixed bug in calculation ofandreas_kupries2006-09-121-5/+11
| | | | | the increment needed to align the pointer, and added documentation explaining why the macro is implemented as it is.
* * unix/tclUnixCompat.c: make compatLock static and only declare it whendas2006-09-111-107/+110
| | | | | it will actually be used; #ifdef parts of TSD that are not always needed; adjust #ifdefs to cover all possible cases; fix whitespace.
* * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback ofdas2006-09-103-797/+849
| | | | | | | | | | * tests/msgcat.test: default msgcat locale to * unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier if available (via private ::tcl::mac::locale global, set at interp init when on Mac OS X 10.3 or later with CoreFoundation). * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers. * unix/configure: autoconf-2.13
* Fixed compilation for Darwin so the compiler does not bark aboutvasiljevic2006-09-081-8/+11
| | | | defined but unused functions.
* * unix/tclUnixCompat.c: Fixed conditions for CopyArray/CopyString,andreas_kupries2006-09-081-6/+6
| | | | and CopyHostent. Also fixed bad var names in TclpGetHostByName.
* For Darwin, assume gethostbyname() and gethostbyaddr() are MT-safevasiljevic2006-09-083-202/+226
| | | | starting with Dariwn 6 (Mac OSX 10.2) or later.
* * unix/tclUnixFCmd.c: Removed some false tests addedvasiljevic2006-09-072-24/+65
| | | | | | | | | (and left by mistake) by fixing the Tcl Bug: 999544 * unix/tclUnixCompat.c: Added fallback to MT-unsafe library calls if TCL_THREADS is not defined. Fixed alignment of arrays copied by CopyArrayi() to be on the sizeof(char *) boundary.
* * unix/configure: Regenerated using autoconf 2.13.andreas_kupries2006-09-071-14055/+5069
|
* Fixed typos in some wrapersvasiljevic2006-09-071-4/+4
|
* Removed unused variablesvasiljevic2006-09-071-6/+1
|
* Fixed wrong structure usage in some wrappersvasiljevic2006-09-071-3/+3
|
* Rewritten MT-safe wrappers to return ptrs to TSD storagevasiljevic2006-09-075-224/+166
|
* Added for fixing the Tcl Bug 999544vasiljevic2006-09-061-0/+584
|
* Added MT-safe implementation of some library calls.vasiljevic2006-09-068-4531/+14905
| | | | See Tcl Bug 999544 for more information.
* * unix/Makefile.in: add valgrindshell target and update defaulthobbs2006-08-301-2/+9
| | | | | VALGRINDARGS. User can override, or add to it with VALGRIND_OPTS env var.
* * unix/tclUnixNotfy.c (Tcl_WaitForEvent): Fixed broken if syntaxandreas_kupries2006-08-221-2/+2
| | | | | | committed 2006-08-21 by Daniel. The broken syntax is visible to all unix platforms, but not on OSX for machines which HAVE_COREFOUNDATION.
* * 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]
* * macosx/tclMacOSXNotify.c (Tcl_WaitForEvent): if the run loop isdas2006-08-211-1/+11
| | | | | | | | | | | | | 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; sync panic msg changes from HEAD. * 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-183-275/+371
| | | | | | | | | | | | | | 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.13 * generic/tcl.h: add fixes for building on Leopard and support for * unix/tclUnixPort.h: 64-bit CoreFoundation on Leopard. * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * macosx/README: updates for x86_64 support and Xcode 2.3.
* * 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-38/+39
|
* * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): createdas2006-07-208-869/+1030
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/tclMacOSXNotify.c (Tcl_InitNotifier): add support for * unix/tclUnixFCmd.c (DoRenameFile, CopyFileAtts): weakly importing * unix/tclUnixInit.c (TclpSetInitialEncodings): symbols not available on OSX 10.2 or 10.3, enables binaires built on later OSX versions to run on earlier ones. * 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. * unix/configure: autoconf-2.13 * unix/tclLoadDyld.c (TclpLoadMemory): * 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-3/+9
|