summaryrefslogtreecommitdiffstats
path: root/generic/tclPipe.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate usage of mp_isneg(), just check bignum->sign directly (as ↵jan.nijtmans2019-03-151-1/+1
| | | | | libtommath itself does) Make TclInitBugnumFromLong() a static function in stubtable only, as it isn't used by Tcl anymore.
* merge 8.7dgp2017-11-071-1/+7
|\
| * Fix [b50fb214] : add to 2>> the same O_APPEND that was added to >> back in 2005.ferrieux2017-08-241-1/+7
| |
* | Fixed stupid Tcl_DecrRefCount bug in TclCleanupChildren with normally ↵f.bonnet2017-11-051-2/+2
| | | | | | | | terminated processes.
* | Comments and formattingf.bonnet2017-08-271-1/+1
| |
* | Fixed reference counting issue with objects returned by WaitProcessStatusf.bonnet2017-08-271-1/+4
| |
* | Refactoring to support all processes and not just detached ones.f.bonnet2017-08-271-56/+19
| |
* | Refactoring and preliminary implementation of tcl::process (list|status)f.bonnet2017-08-231-62/+3
| |
* | Completed [tcl::process autopurge] semantics and added [tcl::process purge] ↵f.bonnet2017-08-181-1/+58
|/ | | | implementation along with the necessary internal functions TclpGetChildPid/TclReapPids
* typosjan.nijtmans2016-11-241-1/+1
|
* more result generation conversiondkf2012-08-041-42/+51
|
* converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-4/+4
|
*-. [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-04-241-1/+1
|\ \ | | | | | | | | | Implement TclWinGetSockOpt, TclWinGetServByName and TclWinCPUID for Cygwin
| | * [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-04-241-1/+1
| | |\ | |/ / | | | | | | Implement TclWinGetSockOpt, TclWinGetServByName and TclWinCPUID for Cygwin
| | * [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-04-241-1/+1
| | |\ | | | | | | | | | | | | Implement TclWinGetSockOpt, TclWinGetServByName and TclWinCPUID for Cygwin
| | | * tclpGetPid signature change (stub entry only, not for macro),jan.nijtmans2012-04-061-1/+1
| | |/ | | | | | | | | | for win64 compatibility with future cygwin64 correctly use win32 as default when cross-compiling under cygwin
* | | More generation of error codes (namespace creation, path normalization,dkf2011-04-031-0/+18
| | | | | | | | | pipeline creation, package handling, procedures, [scan] formats)
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-5/+5
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | 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.
| | * * tests/socket.test: Extended the timeout in socket-11.11 from 10andreas_kupries2006-03-161-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to 40 seconds to allow for really slow machines. Also extended actual/expected results with value of variable 'done' to make it clearer when a test fails due to a timeout. [Bug 792159]. * generic/tclPipe.c (TclCreatePipeline): Modified the processing of pipebars to fail if the last bar is followed only by redirections. [Bug 768659].
| | * * generic/tclPipe.c (FileForRedirect): Prevent nameString fromrmax2006-01-161-5/+4
| | | | | | | | | | | | | | | being freed without having been initialized. * tests/exec.test: Added a test for the above.
| | * * generic/tclPipe.c (TclCreatePipeline): Fixed [SF Tcl Bugandreas_kupries2005-10-051-7/+11
| | | | | | | | | | | | 1109294]. Applied the patch provided by David Gravereaux.
| | * Backport of fix for [Bug 1245953]dkf2005-07-281-2/+8
| | |
| | * * generic/tclPipe.c (TclCreatePipeline): Add 2>@1 as a specialhobbs2004-07-021-15/+36
| | | | | | | | | | | | * tests/exec.test: case redir of stderr to the result output.
| * | * generic/tclIO.c (Tcl_GetChannelHandle): [Bug 2826248]: Do not crashandreas_kupries2009-07-241-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclPipe.c (FileForRedirect): for getHandleProc == NULL, this is allowed. Provide a nice error message in the bypass area. Updated caller to check the bypass for a mesage. Bug reported by Andy Sonnenburg <andy22286@users.sourceforge.net>. Backported from CVS head.
* | | Fix compilation of xttest with 8.6 changesnijtmans2010-06-141-11/+8
| | | | | | | | | | | | tclPipe.c: Fix gcc warning (with -fstrict-aliasing=2)
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-9/+10
| | |
* | | * generic/tclIO.c (Tcl_GetChannelHandle): Do not crash forandreas_kupries2009-07-231-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclPipe.c (FileForRedirect): getHandleProc == NULL, this is allowed. Provide a nice error message in the bypass area. Updated caller to check the bypass for a mesage. This fixes the bug [Bug 2826248] reported by Andy Sonnenburg <andy22286@users.sourceforge.net>
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-54/+58
| | | | | | | | | | | | etc.)
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-15/+15
|/ /
* | Replaced commas in varargs with string concatenation where possible [Patch ↵Kevin B Kenny2007-04-201-3/+3
| | | | | | | | 1515234]
* | * tests/socket.test: Extended the timeout in socket-11.11 from 10andreas_kupries2006-03-161-2/+18
| | | | | | | | | | | | | | | | | | | | to 40 seconds to allow for really slow machines. Also extended actual/expected results with value of variable 'done' to make it clearer when a test fails due to a timeout. [Bug 792159]. * generic/tclPipe.c (TclCreatePipeline): Modified the processing of pipebars to fail if the last bar is followed only by redirections. [Bug 768659].
* | * generic/tclPipe.c (FileForRedirect): Prevent nameString fromrmax2006-01-161-5/+4
| | | | | | | | | | being freed without having been initialized. * tests/exec.test: Added a test for the above.
* | Silence a warning.dkf2005-11-071-2/+3
| |
* | * win/tclWinPort.h: Applied patch #1267871 by Matt Newman forpatthoyts2005-11-041-2/+2
| | | | | | | | | | | | * win/tclWinPipe.c: extended error code support on Windows. * tests/exec.test: Tests for extended error codes. * generic/tclPipe.c: Permit long codes (platform macros permitting).
* | ANSIfy; generic/*.c now all done except for test codedkf2005-11-021-99/+88
| |
* | * generic/tclPipe.c (TclCreatePipeline): Fixed [SF Tcl Bugandreas_kupries2005-10-051-7/+11
| | | | | | | | 1109294]. Applied the patch provided by David Gravereaux.
* | * generic/tclPipe.c (TclCreatePipeline): Arrange for POSIX systems todkf2005-07-281-2/+8
| | | | | | | | | | | | | | | | * unix/tclUnixPipe.c (TclpOpenFile): use the O_APPEND flag for * tests/exec.test (exec-19.1): files opened in a pipeline like ">>this". Note that Windows cannot support such access; there is no equivalent flag on the handle that can be set at the kernel-call level. The test is unix-specific in every way. [Bug 1245953]
* | Systematizing the formattingdkf2005-07-211-208/+205
| |
* | * generic/tclPipe.c (TclCleanupChildren): bad cast of resolvedPid causeddavygrvy2004-10-261-3/+3
| | | | | | | | | | PIDs on win95 to go negative. winpipe-4.2 brought this to the surface. Fixed with sprintf in place of TclFormatInt. Thanks to hgiese [Patch 767676]
* | * generic/tclPipe.c (TclCreatePipeline): applied TIP #202 patchhobbs2004-07-021-15/+36
| | | | | | | | | | * doc/exec.n, tests/exec.test: that adds 2>@1 as a special case redirection of stderr to the result output.
* | 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):
* * generic/tclPipe.c (TclCleanupChildren):davygrvy2002-12-171-2/+10
| | | | | | | | | | | | | | * tests/winPipe.c: * win/tclWinPipe.c (Tcl_WaitPid): * win/tclWinTest.c: Gave Tcl_WaitPid the ability to return a Win32 exception code translated into a posix style SIG*. This allows [close] to report "CHILDKILLED" without the meaning getting lost in a truncated exit code. In TclCleanupChildren(), TclpGetPid() had to get moved to before Tcl_WaitPid() as the the handle is removed from the list taking away the ability to get the process id after the wait is done. This shouldn't effect the unix implimentaion unless waitpid is called with a pid of zero, meaning "any". I don't think it is..
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-2/+2
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* * Updated interfaces of generic/tclEncoding, generic/tclFilename.c,dgp2002-01-251-12/+13
| | | | | | | | | | | generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c, generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according to TIP 27. Tcl_TranslateFileName rewritten as wrapper around VFS-aware version. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes source incompatibilities: argv arguments of Tcl_Concat, Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of Tcl_SplitList and Tcl_SplitPath.
* * Updated APIs in generic/tclIOUtil.c and generic/tclPosixStr.cdgp2002-01-151-4/+4
| | | | according to the guidelines of TIP 27. Updated callers. [Patch 499196]
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-42/+52
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|