summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* * unix/tclUnixPipe.c (TclpCreateTempFile): prevent potential racehobbs2001-03-291-2/+7
| | | | | condition and security leak in tmp filename creation. (max) [Patch #402924]
* * unix/configure:hobbs2001-03-292-31/+53
| | | | | * unix/tcl.m4: corrected IRIX-5.x config to not use -n32. (english) [Patch 403626]
* * unix/tclUnixThrd.c (Tcl_ConditionWait): fixed handling ofhobbs2001-03-291-2/+11
| | | | | timeout for threads (corrects excessive CPU usage issue for Tk on Unix in threaded Tcl environment). (ruppert) [Bug #411603]
* 2000-01-18 Andreas Kupries <a.kupries@westend.com>andreas_kupries2001-01-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * Everything below belongs together, it fixes bug #123153. * generic/tcl.h (line 342): A bit more explanation about the default value for TCL_PRESERVE_BINARY_COMPATABILITY. * generic/tcl.h (line 1208): Removed the macro 'Tcl_InitHashTable' as it kills binary compatibility to 8.3 and earlier versions. This is the main part of the patch/change. * generic/tcl.decls (line 1469): * generic/tclHash.c (Tcl_InitHashTable): * generic/tclHash.c (Tcl_InitHashTableEx): * generic/tclObj.c (Tcl_InitObjHashTable): Changed 'Tcl_InitHashTableEx' to 'Tcl_InitCustomHashTable'. This change is more of an estethical nature, replacing the ubiquitous 'Ex' suffix with a more meaningful name. The introduced binary incompatibility is deemed acceptable as it is between alpha versions. Updated callers. * doc/Hash.3: * unix/mkLinks: Changed 'Tcl_InitHashTableEx' to 'Tcl_InitCustomHashTable'.
* 2001-01-04 Don Porter <dgp@users.sourceforge.net>dgp2001-01-041-7/+13
| | | | | | | | | | | | * tests/unixInit.test: * unix/tclUnixInit.c (TclpInitLibraryPath): * win/tclWinInit.c (TclpInitLibraryPath): Several entries in the library path ($tcl_libPath) are determined relative to the absolute path of the executable. When the executable is installed in or near the root directory of the file system, relative pathnames were being incorrectly generated, and in the worst case, memory access violations were crashing the program. [Bug 119416, Patch 102972]
* * unix/Makefile.in: removed bp.c references (hasn't existed in ahobbs2000-11-161-40/+21
| | | | | | long time). Corrected 'make dist' to make dist with unversioned library directories (same as out of cvs), so make install works correctly with either source tree.
* * tools/tcl.wse.in: updated for unversioning of library dirshobbs2000-11-031-13/+39
| | | | | | | * unix/Makefile.in (install-libraries, dist): * win/makefile.vc (install-libraries): * win/Makefile.in (install-libraries): updated to install unversioned library directories into versioned directories.
* updated mkLinks with latest doc updateshobbs2000-11-031-12/+74
|
* * unix/configure:hobbs2000-11-032-0/+6956
| | | | | | | | | * unix/dltest/configure: * win/configure: * tools/configure: checked in configure scripts so people doing CVS checkouts aren't required to have autoconf. Changes to configure.in in the future will require the corresponding configure script to also be re-autoconf'ed and checked in.
* * unix/tcl.m4: removed use of -lbsd and -ldl for AIX-5.hobbs2000-11-021-44/+35
|
* * unix/tclUnixInit.c: added default encoding map fromhobbs2000-10-311-1/+2
| | | | "ja_JP.eucJP" to "euc-jp". (takahashi)
* * unix/configure.in (SC_TCL_LINK_LIBS): removed code that washobbs2000-10-311-64/+1
| | | | | commented out (it had been moved to tcl.m4's SC_TCL_LINK_LIBS already).
* unix/tcl.m4: consolidated gettimeofday check for AIX.hobbs2000-10-311-13/+6
|
* * unix/configure.in:hobbs2000-10-282-2/+28
| | | | * unix/tcl.m4: added support for AIX-5.
* * unix/tclUnixChan.c: updated channel types to stricthobbs2000-10-281-31/+43
| | | | | TCL_CHANNEL_VERSION_2 style to avoid compiler warnings. They work either way, but this avoids compiler warnings (that worries people).
* * win/Makefile.in: commented use of TESTFLAGShobbs2000-09-291-2/+5
| | | | | * unix/Makefile.in: added TESTFLAGS to test target to conform with Windows makefile and TEA style.
* addition of tclIOGT.c source filehobbs2000-09-281-5/+8
|
* * library/tcltest1.0/pkgIndex.tcl: Updated to load tcltest 2.0.jenn2000-09-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/tcltest1.0/tcltest2.tcl: New version of tcltest. Cleanup of command line parsing: allows users to specify command line arguments through an environment variable named TCLTEST_OPTIONS [RFE: 3748], does not respond to incorrect arguments, and forces usage of entire flag name when using command line arguments. Defines accessor procs for all tcltest variables. Allows users to use 'return' in test scripts. Allow users to specify whether test files should be sourced or run in a separate process. 'all.tcl' code moved to tcltest package. 'test' proc modified to use attribute-value pairs. Allow users to specify what return codes, output, and errors can be compared and whether these values should be compared using regexp, glob, or exact matching. makeDirectory & removeDirectory now operate with respect to temporaryDirectory [Bug: 6001]. Test results from tests run in slave interpreters are now included in test totals [Bug: 1493]. Test files that return error values are now reported. * tests/all.tcl: Added code to check for the tcltest version loaded; modified to figure out which tests to run based on the tcltest version loaded. * tests/tcltest.test: Modified to explicitly load version 1.0 of tcltest. * tests/tcltest2.test: New test suite for tcltest; includes all of the old tests plus new ones reflecting changes made for version 2.0. * tests/cmdAH.test: Added singleTestInterp constraint to cmdAH-31.2; this test does not run if tests aren't sourced into a single interpreter. * tests/socket.test: Fixed two tests that were referencing variables outside of scope. * tools/tcl.wse.in: Added code to install tcltest2.tcl. * doc/tcltest2.n: New documentation for tcltest version 2.0. Removes documentation for tcltest namespace variables. Adds documentation for new tcltest procs. * unix/mkLinks: Added code to link to tcltest2.n. * generic/tcl.h: Added comment to modify tcltest2.tcl as well as tcltest.tcl for version changes.
* * README:hobbs2000-09-062-4/+4
| | | | | | | | | | | * generic/tcl.h: * library/tcltest1.0/tcltest.tcl: * tools/tcl.wse.in: * tools/tcltk-man2html.tcl: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: updated patchlevel to 8.4a2
* * unix/tclUnixPipe.c (TclpCreateProcess): Removed WNOHANG fromhobbs2000-09-061-3/+5
| | | | | Tcl_WaitPid call in error case of process creation on Unix, as it would lead to defunct processes. [Bug: 6148]
* fix small typo in last commitmo2000-08-251-3/+3
|
* remove --enable-gcc configure optionmo2000-08-253-39/+9
|
* * win/makefile.vc:ericm2000-08-151-3/+4
| | | | | | | | | | * win/Makefile.in: * unix/Makefile.in: Added tclPlatDecls.h to the list of installed headers, for more complete stubs support. [Bug: 5241]. * generic/tcl.h: Added #include "tclPlatDecls.h" to get platform-specific stubs declarations (Tcl_WinTCharToUtf, etc) [Bug: 5241].
* Thread-safe rewrite for the Tcl_Async* commands.davidg2000-07-261-2/+1
|
* Doh! revert piece of last commit that did not belongmo2000-07-191-32/+1
|
* * unix/configure.in:mo2000-07-192-26/+60
| | | | | | | * unix/tcl.m4: * win/tcl.m4: Properly quote arguments to m4 macros. This allows Tcl to work with the new version of autoconf.
* Don't set CC=gcc before running AC_PROG_CC if CC is already set.mo2000-07-171-1/+3
|
* Applied patch from [Bug: 5921]ericm2000-06-201-2/+2
|
* Added tcl.hpj.in to distribution.ericm2000-06-061-2/+3
|
* * generic/tclClock.c (FormatClock): correct code to handle localehobbs2000-05-181-14/+9
| | | | | | | | specific return values from strftime, if any. [Bug: 3345] * unix/tclUnixInit.c (TclpSetInitialEncodings): attempt to correct setlocale calls for XIM support and locale issues. [BUG: 5422 3345 4236 2522 2521]
* * README:hobbs2000-05-033-10/+10
| | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * library/reg1.0/pkgIndex.tcl: * library/tcltest1.0/tcltest.tcl: * mac/README: * tools/tcl.hpj.in: * tools/tcl.wse.in: * unix/README: * unix/configure.in: * unix/tcl.spec: * win/README: * win/README.binary: * win/configure.in: * win/makefile.vc: * win/tcl.m4: updated patchlevel to 8.4a1
* * unix/Makefile.in: add tclsh.ico and tcl.spec to dist targethobbs2000-05-031-4/+5
|
* 2000-05-02 Andreas Kupries <a.kupries@westend.com>kupries2000-05-023-8/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Overall changes: (1) Implementation of joinable threads for all platforms. (2) Additional API's for channels. Required to allow the thread extension to move channels between threads. * generic/tcl.decls (lines 1360f): Added Tcl_JoinThread, Tcl_IsChannelShared, Tcl_IsChannelRegistered, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers (slots 394 to 400). * generic/tclIO.c: Implemented Tcl_IsChannelRegistered, Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers. Tcl_CutChannel uses code from CloseChannel. Replaced this code by a call to Tcl_CutChannel. Replaced several code fragments adding channels to the channel list with calls to Tcl_SpliceChannel. Removed now unused variables from CloseChannel and Tcl_UnstackChannel. Tcl_ClearChannelHandlers uses code from Tcl_Close. Replaced this code by a call to Tcl_ClearChannelHandlers. Removed now unused variables from Tcl_Close. Added the subcommands 'cut', 'forgetch', 'splice' and 'isshared' to the test code (TclTestChannelCmd). * unix/tclUnixThread.c: Implemented Tcl_JoinThread using the pthread-functionality. * win/tclWinThrd.c: Fixed several small typos in comments. Implemented Tcl_JoinThread using a platform independent emulation layer (see generic/tclThreadJoin.c below). Added 'joinLock' to serialize Tcl_CreateThread and TclpExitThread to prevent a race for joinable threads. * mac/tclMacThrd.c: Implemented Tcl_JoinThread using a platform independent emulation layer (see generic/tclThreadJoin.c below). Due to the cooperative nature of threading on this platform the race mentioned above is not present. * generic/tclThreadJoin.c: New file. Contains a platform independent emulation layer helping in the implementation of joinable threads for the win and mac platforms. * generic/tclInt.h: Added declarations for TclJoinThread, TclRememberJoinableThread and TclSignalExitThread. These procedures define the API of the emulation layer for joinable threads (see generic/tclThreadJoin.c above). * win/Makefile.in: * win/makefile.vc: Added generic/tclTheadJoin.o to the rules. * mac/: I don't know to which file generic/tclTheadJoin.o has to be added to so that it compiles. Sorry. * unix/tclUnixChan.c: #ifdef'd the thread-local list of file channels as it prevents us from transfering channels. To restore this we may need an extended interface to drivers in the future. Target: 9.0. Found while testing the new transfer of channels. The information in this list for a channel was left behind and then crashed the system during finalization. * generic/tclThreadTest.c: Added -joinable flag to 'testthread create'. Added subcommand 'testthread join'. * doc/CrtChannel.3: Added documentation for Tcl_IsChannelRegistered, Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers. * doc/Thread.3: Added documentation for Tcl_JoinThread. * tests/thread.test: Added tests for joining of threads.
* * doc/library.n: Added entries for auto_qualify and auto_import [Bug: 1271].ericm2000-04-281-0/+8
| | | | | | | * doc/Init.3: Manual entry for Tcl_Init [Bug: 1820]. * doc/expr.n: Added documentation for each of the math library functions that expr supports [Bug: 1054].
* * doc/memory.n: Man page for Tcl "memory" command, which isericm2000-04-271-0/+8
| | | | | | | | | | | | | | | | | | created when TCL_MEM_DEBUG is defined at compile time. * doc/TCL_MEM_DEBUG.3: Man page with overall information about TCL_MEM_DEBUG usage. * doc/DumpActiveMemory.3: Man page for Tcl_DumpActiveMemory, Tcl_InitMemory, and Tcl_ValidateAllMemory [Bug: 1816, 1835]. * generic/tclCkalloc.c: Fixed some function headers. * unix/mkLinks: Regen'd with new mkLinks.tcl. * unix/mkLinks.tcl: Fixed indentation, made link setup more intelligent (only do one existance test per man page, instead of one per function).
* * unix/mkLinks: Regen'd with new mkLinks.tcl.ericm2000-04-262-971/+640
| | | | | | | | | | | * unix/mkLinks.tcl: Fixed indentation, made link setup more intelligent (only do one existance test per man page, instead of one per function). * doc/library.n: Fixed .SH NAME macro to include each function documented on the page, so that mkLinks will know about the functions listed there, and so that the Windows help file index will get set up correctly [Bug: 1898, 5273].
* Fixed bad crosslink command.ericm2000-04-261-1/+1
|
* * README:hobbs2000-04-262-6/+9
| | | | | | | | | * mac/README: * tools/tcl.wse.in: * unix/README: * unix/tcl.spec: * win/README: * win/README.binary: Updating URLs to reference dev.scriptics.com
* LogCommandInfo man entry.ericm2000-04-261-0/+4
|
* * unix/Makefile.in:hobbs2000-04-251-13/+19
| | | | | | * win/Makefile.in: * win/makefile.vc: updated for http change and some cleanup * library/http2.[13]: moved dir http2.1 to http2.3 to match version
* * unix/tclUnixThrd.c: removed {}s around PTHREAD_MUTEX_INITIALIZERhobbs2000-04-251-3/+3
| | | | [Bug: 5254]
* * unix/tclLoadDyld.c (TclpLoadFile): removed use of interp->resulthobbs2000-04-251-9/+12
|
* * unix/mkLinks:ericm2000-04-251-0/+4
| | | | * doc/OpenFileChnl.3: Added man entry for Tcl_Ungets [Bug: 1834].
* * unix/mkLinks:ericm2000-04-251-0/+4
| | | | * doc/SourceRCFile.3: Man page for Tcl_SourceRCFile [Bug: 1833].
* * unix/mkLinks:ericm2000-04-241-0/+4
| | | | * doc/ParseCmd.3: Added documentation for Tcl_ParseVar [Bug: 1828].
* * unix/tclUnixNotfy.c (Tcl_FinalizeNotifier, NotifierThreadProc):hobbs2000-04-242-13/+31
| | | | | | | added write of 'q' into triggerPipe for notifier in threaded case, so that Tcl doesn't hang when children are still running [Bug: 4139] * unix/tclUnixThrd.c (Tcl_MutexLock): minor comment fixes.
* * generic/tclAlloc.c: wrapped caddr_t define to not be done on Unixhobbs2000-04-211-1/+12
| | | | | * unix/tclUnixPort.h: added Tclp*Alloc defines to allow the use of USE_TCLALLOC on Unix. [Bug: 4731]
* have to allow for strchr being a macro in TtyParseProchobbs2000-04-191-5/+6
|
* * README:hobbs2000-04-196-81/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * win/README.binary: bumped version to 8.3.1 * win/tcl.hpj.in: updated copyright date * generic/tclEnv.c: environment support for Mac OS/X * unix/tclUnixPort.h: environment support for Mac OS/X * unix/tclLoadDyld.c: new file for Mac OS/X dl functions * unix/Makefile.in: added install-strip target; bindir, libdir, mandir, includedir vars; tclLoadDyld.c target [Bug: 2527] * unix/tclUnixChan.c (CreateSocket): force a socket back into blocking mode (default state) after a -async connect succeeds. [Bug: 4388] * generic/tclEvent.c (TclInitSubsystems): Moved tclLibraryPath to thread-local storage to prevent thread-related race condition. [Bug: 5033] * unix/tclAppInit.c (main): removed #ifdef TCL_TEST that sets the library path as it was unnecessary and conflicts with move of tclLibraryPath to thread-local storage.
* * unix/tclAppInit.c (main): removed #ifdef TCL_TEST that sets thehobbs2000-04-181-18/+5
| | | | | library path as it was unnecessary and conflicts with move of tclLibraryPath to thread-local storage.