summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify use of "struct" keyword in many places.jan.nijtmans2016-06-301-1/+1
|
* Convert TesteventloopCmd and TestchmodCmd to Tcl_Obj-API form.jan.nijtmans2014-07-171-14/+10
|
* Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec ↵jan.nijtmans2013-10-291-3/+2
|\ | | | | | | on HP-UX
| * Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec ↵jan.nijtmans2013-10-291-3/+2
| | | | | | | | on HP-UX
* | Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwinjan.nijtmans2013-10-071-2/+2
|\ \ | |/
| * Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwinjan.nijtmans2013-10-071-2/+2
| |
* | Mark unixforkevent-1.1 nonPortable, until proven on more platforms. jan.nijtmans2013-08-051-2/+2
|\ \ | |/ | | Make sure that when testing for pthread_atfork the thread library is taken into account.
| * Mark unixforkevent-1.1 nonPortable, until proven on more platforms.jan.nijtmans2013-08-051-2/+2
| |
* | Add "testfork" test command. Not used in any test-case yetjan.nijtmans2013-07-231-0/+49
|\ \ | |/
| * Add "testfork" test command. Not used in any test-case yetjan.nijtmans2013-07-231-0/+50
| |
* | Eliminate some unneeded usages of Tcl_SetResult, Tcl_AddObjErrorInfojan.nijtmans2013-01-251-5/+5
| | | | | | Fix "make test-packages" on cygwin
* | MINOR: Add emacs style info to end of C files.dkf2011-10-211-5/+14
| |
* | 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).
| * 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.
| | * 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.
| | * backport of file writable fixesvincentdarley2006-03-191-1/+64
| | |
| | * * unix/tclUnixTest.c (TestalarmCmd): don't bother checking returnhobbs2003-10-131-5/+2
| | | | | | | | | | | | value of alarm. [Bug #664755] (english)
* | | Eliminate various unnecessary type casts, use function typedefs whenever ↵nijtmans2010-06-211-28/+19
| | | | | | | | | | | | possible
* | | [ tcl-Feature Requests-2958832 ] Furthernijtmans2010-02-251-11/+11
| | | | | | | | | | | | | | | | | | speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts.
* | | Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-2/+4
| | | | | | | | | | | | get created with static Tcl build
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-23/+23
| | | | | | | | | | | | etc.)
* | | fix warningdas2008-12-201-2/+2
| | |
* | | * tests/stack.test:Miguel Sofer2008-10-031-65/+1
| | | | | | | | | | | | | | | * unix/tclUnixTest.c: removed test command teststacklimit and the corresponding constraint: it is not needed with NRE
* | | NRE implementation [Patch 2017110]Miguel Sofer2008-07-131-1/+65
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-20/+20
|/ /
* | Replaced commas in varargs with string concatenation where possible [Patch ↵Kevin B Kenny2007-04-201-2/+2
| | | | | | | | 1515234]
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-3/+3
| |
* | Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-6/+6
| |
* | * 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
* | 90% fix of file writable issues on Windowsvincentdarley2006-03-141-1/+64
| |
* | ANSIfydkf2005-11-021-158/+149
| |
* | * 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.
* | 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.
* | * 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:
* | 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.
* | 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):
* | * unix/tclUnixTest.c (TestalarmCmd): don't bother checking returnhobbs2003-10-131-5/+2
|/ | | | value of alarm. [Bug #664755] (english)
* Corrected a couple of typos in error messages. [Bug 596027]Kevin B Kenny2003-02-151-3/+3
|
* * 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>.
* * 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
* * 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
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-8/+106
|
* Made some the prototypes & function defs consistant in tclUnixTest.crjohnson1998-10-141-3/+4
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Make AlarmHandler staticwelch1998-08-071-2/+2
|
* Changed testalarm to use SA_RESTARTwelch1998-08-061-15/+21
|
* Changed the alarm testsurles1998-08-061-83/+23
|
* Added the testalarm command.surles1998-08-041-0/+183
|
* Fixed bug in testfindexecutablewelch1998-06-291-2/+4
|
* *** empty log message ***stanton1998-06-171-0/+44
|