summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
Commit message (Collapse)AuthorAgeFilesLines
* MINOR: Add emacs style info to end of C files.dkf2011-10-211-5/+14
| | | FossilOrigin-Name: 845f5f4d8ef5c7e9813b1c68c5b53cf9d6d7d0ff
* 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * backport of file writable fixesvincentdarley2006-03-191-1/+64
| | | | | | | | | FossilOrigin-Name: 8d880bc7eb889c08da3fa059f52c904be5dabdf4
| | * * unix/tclUnixTest.c (TestalarmCmd): don't bother checking returnhobbs2003-10-131-5/+2
| | | | | | | | | | | | | | | | | | value of alarm. [Bug #664755] (english) FossilOrigin-Name: 91566e4729f6516bebf5b1fabed72220c7270453
* | | Eliminate various unnecessary type casts, use function typedefs whenever ↵nijtmans2010-06-211-28/+19
| | | | | | | | | | | | | | | possible FossilOrigin-Name: 8086293cfcc9a1df3403ec3bb318d43ca99209ea
* | | [ tcl-Feature Requests-2958832 ] Furthernijtmans2010-02-251-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts. FossilOrigin-Name: b28fef8499c8d600688681143264f48ed28a8ead
* | | Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-2/+4
| | | | | | | | | | | | | | | | | | get created with static Tcl build FossilOrigin-Name: 39268397d9e495cccd1fe6168edc5d0eb62e8db4
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-23/+23
| | | | | | | | | | | | | | | etc.) FossilOrigin-Name: cd3c38f00ada216d7bc93560d3d70012c2918343
* | | fix warningdas2008-12-201-2/+2
| | | | | | | | | FossilOrigin-Name: 0bd8dfb117a36b2e61d5229032246a15a653e7dc
* | | * tests/stack.test:msofer2008-10-031-65/+1
| | | | | | | | | | | | | | | | | | | | | * unix/tclUnixTest.c: removed test command teststacklimit and the corresponding constraint: it is not needed with NRE FossilOrigin-Name: c8d29ae88544f8a73c6875b2d2e4ada3455135a6
* | | NRE implementation [Patch 2017110]msofer2008-07-131-1/+65
| | | | | | | | | FossilOrigin-Name: a646e4c362a574666638b06521668fc53952bd72
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-20/+20
|/ / | | | | FossilOrigin-Name: 2d205c22fbe5def21ccd36bc6f7b2d3831f6122d
* | Replaced commas in varargs with string concatenation where possible [Patch ↵kennykb2007-04-201-2/+2
| | | | | | | | | | 1515234] FossilOrigin-Name: d0d3c30f1a60ecb75cdca7e63593bb7d7a98f017
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-3/+3
| | | | | | FossilOrigin-Name: 45b49489451e09193f60023f5244b0d73a26880e
* | Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-6/+6
| | | | | | FossilOrigin-Name: 645aed2fcdcd55ca81df269a4ea262eeca2b9ff2
* | * generic/tclCompExpr.c: fix gcc warnings about 'cast to/fromdas2006-11-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c: pointer from/to integer of different * generic/tclEvent.c: size' on 64-bit platforms by casting to * generic/tclExecute.c: intermediate types intptr_t/uintptr_t * generic/tclHash.c: via new PTR2INT(), INT2PTR(), * generic/tclIO.c: PTR2UINT() and UINT2PTR() macros. * generic/tclInt.h: [Patch 1592791] * generic/tclProc.c: * generic/tclTest.c: * generic/tclThreadStorage.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/configure.in: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * unix/tclUnixPort.h: * unix/tclUnixTest.c: * unix/tclUnixThrd.c: * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 FossilOrigin-Name: 8562d10e438d0eaec70233d22dfbcd3566e39d35
* | 90% fix of file writable issues on Windowsvincentdarley2006-03-141-1/+64
| | | | | | FossilOrigin-Name: 3b1ed6c0d6be32bee4fad7b42263bf18bf83adc1
* | ANSIfydkf2005-11-021-158/+149
| | | | | | FossilOrigin-Name: 19a0a6a899f2e83e5c3001676d0900edd861fee2
* | * generic/tclUtil.c: Updated Tcl_GetNameOfExecutable() todgp2004-12-011-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c: make use of a ProcessGlobalValue for * generic/tclEvent.c: storing the executable name. Added internal routines Tcl(Get|Set)ObjNameOfExecutable() to access that storage in Tcl_Obj, rather than string format. * unix/tclUnixFile.c: Rewrote TclpFindExecutable() to use * win/tclWinFile.c: TclSetObjNameOfExecutable to store the executable name it computes. * generic/tclInt.h: Added internal stub entries for * generic/tclInt.decls: TclpFindExecutable and Tcl(Get|Set)ObjNameOfExecutable. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclCmdIL.c: Retrieve executable name in Tcl_Obj form * win/tclWinPipe.c: instead of string form. * unix/tclUnixTest.c: Update [testfindexecutable] command to use new internal interfaces. FossilOrigin-Name: 353036774ea2c180f427a71ae6bbd7812a6e45d2
* | Patch 976520 reworks several of the details involved withdgp2004-11-301-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | startup/initialization of the Tcl library, focused on the activities of Tcl_FindExecutable(). * generic/tclIO.c: Removed bogus claim in comment that encoding "iso8859-1" is "built-in" to Tcl. * generic/tclInt.h: Created a new struct ProcessGlobalValue, * generic/tclUtil.c: routines Tcl(Get|Set)ProcessGlobalValue, and function type TclInitProcessGlobalValueProc. Together, these take care of the housekeeping for "values" (things that can be held in a Tcl_Obj) that are global across a whole process. That is, they are shared among multiple threads, and epoch and mutex protection must govern the validity of cached copies maintained in each thread. * generic/tclNotify.c: Modified TclInitNotifier() to tolerate being called multiple times in the same thread. * generic/tclEvent.c: Dropped the unused argv0 argument to TclInitSubsystems(). Removed machinery to unsure only one TclInitNotifier() call per thread, now that that is safe. Converted Tcl(Get|Set)LibraryPath to use a ProcessGlobalValue, and moved them to tclEncoding.c. * generic/tclBasic.c: Updated caller. * generic/tclInt.h: TclpFindExecutable now returns void. * unix/tclUnixFile.c: * win/tclWinFile.c: * win/tclWinPipe.c: * generic/tclEncoding.c: Built new encoding search initialization on a foundation of ProcessGlobalValues, exposing new routines Tcl(Get|Set)EncodingSearchPath. A cache of a map from encoding name to directory pathname keeps track of where encodings are available for loading. Tcl_FindExecutable greatly simplified into just three function calls. The "library path" is now misnamed, as its only remaining purpose is as a foundation for the default encoding search path. * generic/tclInterp.c: Inlined the initScript that is evaluated by Tcl_Init(). Added verification after initScript evaluation that Tcl can find its installed *.enc files, and that it has initialized [encoding system] in agreement with what the environment expects. [tclInit] no longer driven by the value of $::tcl_libPath; it largely constructs its own search path now, rather than attempt to share one with the encoding system. * unix/tclUnixInit.c: TclpSetInitialEncodings factored so that a new * win/tclWinInit.c: routine TclpGetEncodingNameFromEnvironment can reveal that Tcl thinks the [encoding system] should be, even when an incomplete encoding search path, or a missing *.enc file won't allow that initialization to succeed. TclpInitLibraryPath reworked as an initializer of a ProcessGlobalValue. * unix/tclUnixTest.c: Update implementations of [testfindexecutable], [testgetdefenc], and [testsetdefenc]. * tests/unixInit.test: Corrected tests to operate properly even when a value of TCL_LIBRARY is required to find encodings. * generic/tclInt.decls: New internal stubs: TclGetEncodingSearchPath, TclSetEncodingSearchPath, TclpGetEncodingNameFromEnvironment. These are candidates for public exposure by future TIPs. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclTest.c: Updated [testencoding] to use * tests/encoding.test: Tcl(Get|Set)EncodingSearchPath. Updated tests. FossilOrigin-Name: 5b205fd672e4cd2530d67359acc45f14ffd57e60
* | * generic/tclEncoding.c: Static TclFindEncodings -> FindEncodings.dgp2004-06-181-3/+7
| | | | | | | | | | | | | | | | | | * generic/tclInt.h: Updated TclpFindExecutable() so that failed * generic/tclUtil.c: attempts to find the executable are saved * unix/tclUnixFile.c: just as successful finds are. [Patch 966053] * unix/tclUnixTest.c: FossilOrigin-Name: 7cbe86f3c9ffdb9cf1753f2f3e624ce112adc7f4
* | Made compiling with -Wstrict-prototypes -Wmissing-prototypes much cleaner.dkf2004-05-271-3/+4
| | | | | | | | | | | | Also added support for [FRQ 951168] but left that switched off by default. FossilOrigin-Name: 3c862df4ab341834a0bf1d1cb26934d12ae2e837
* | Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed): FossilOrigin-Name: 2e5b18c85c944b46540edfdd6580648e32645e2b
* | * unix/tclUnixTest.c (TestalarmCmd): don't bother checking returnhobbs2003-10-131-5/+2
|/ | | | | | value of alarm. [Bug #664755] (english) FossilOrigin-Name: 12b273dd6cf95bbc7ccfe175df23c1d2723953de
* Corrected a couple of typos in error messages. [Bug 596027]kennykb2003-02-151-3/+3
| | | FossilOrigin-Name: aba2bc0454a5a661e3b981e5323a1538d0f45c8d
* * unix/tclUnixTest.c (TestfilehandlerCmd): Changedandreas_kupries2002-08-201-2/+2
| | | | | | | | | readable/writable to the more common readable|writable. Fixes SF #596034 reported by Larry Virden <lvirden@users.sourceforge.net>. FossilOrigin-Name: 53f26a90833600f8869bed1e2853653a896e052f
* * doc/CmdCmplt.3: Applied Patch 585105 to fully CONST-ifydgp2002-08-051-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Concat.3: all remaining public interfaces of Tcl. * doc/CrtCommand.3: Notably, the parser no longer writes on * doc/CrtSlave.3: the string it is parsing, so it is no * doc/CrtTrace.3: longer necessary for Tcl_Eval() to be * doc/Eval.3: given a writable string. Also, the * doc/ExprLong.3: refactoring of the Tcl_*Var* routines * doc/LinkVar.3: by Miguel Sofer is included, so that the * doc/ParseCmd.3: "part1" argument for them no longer needs * doc/SetVar.3: to be writable either. * doc/TraceVar.3: * doc/UpVar.3: Compatibility support has been enhanced so * generic/tcl.decls that a #define of USE_NON_CONST will remove * generic/tcl.h all possible source incompatibilities with * generic/tclBasic.c the 8.3 version of the header file(s). * generic/tclCmdMZ.c The new #define of USE_COMPAT_CONST now does * generic/tclCompCmds.c what USE_NON_CONST used to do -- disable * generic/tclCompExpr.c only those new CONST's that introduce * generic/tclCompile.c irreconcilable incompatibilities. * generic/tclCompile.h * generic/tclDecls.h Several bugs are also fixed by this patch. * generic/tclEnv.c [Bugs 584051,580433] [Patches 585105,582429] * generic/tclEvent.c * generic/tclInt.decls * generic/tclInt.h * generic/tclIntDecls.h * generic/tclInterp.c * generic/tclLink.c * generic/tclObj.c * generic/tclParse.c * generic/tclParseExpr.c * generic/tclProc.c * generic/tclTest.c * generic/tclUtf.c * generic/tclUtil.c * generic/tclVar.c * mac/tclMacTest.c * tests/expr-old.test * tests/parseExpr.test * unix/tclUnixTest.c * unix/tclXtTest.c * win/tclWinTest.c FossilOrigin-Name: e476c22fecaa0dd7fea635d29d8ea1d5579365a1
* * unix/Makefile.in: purify has to use -best-effort to instrumenthobbs1999-10-131-1/+4
| | | | | | | | | | * unix/tclAppInit.c: identified potential mem leak when compiling tcltest (not critical) * unix/tclUnixPipe.c: fixed mem leak in TclpCreateProcess when doing alloc between vfork and execvp. * unix/tclUnixTest.c: fixed mem leak in findexecutable test command FossilOrigin-Name: 51f678993b1c39c61b67d5eeaceba4154b1bf566
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-8/+106
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Made some the prototypes & function defs consistant in tclUnixTest.crjohnson1998-10-141-3/+4
| | | FossilOrigin-Name: dbb637ea7ef28646b07d0d04536d12588c3c0c31
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Make AlarmHandler staticwelch1998-08-071-2/+2
| | | FossilOrigin-Name: dbbf552b3cecf1541f043255104340361af5d054
* Changed testalarm to use SA_RESTARTwelch1998-08-061-15/+21
| | | FossilOrigin-Name: d63b906e4bf0b3cd2bbd999b7cf8257d8e43dfcf
* Changed the alarm testsurles1998-08-061-83/+23
| | | FossilOrigin-Name: e0e242b80d705f6cc8a4cdd835f6e999b4857b39
* Added the testalarm command.surles1998-08-041-0/+183
| | | FossilOrigin-Name: 71007265fa2d189cb175e3b33ff269321dc70a27
* Fixed bug in testfindexecutablewelch1998-06-291-2/+4
| | | FossilOrigin-Name: 02c5be7655ab86a5a9d22fe7b9c776565e506f91
* *** empty log message ***stanton1998-06-171-0/+44
| | | FossilOrigin-Name: 8ca464d4aabd19db0a955cf1c5c4ba4b67ea9f7d
* Initial revisionrjohnson1998-03-261-0/+431
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a