summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-24 19:52:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-24 19:52:56 (GMT)
commit25419dcfb8439a697f17ce50bd0bf39af2d3913a (patch)
tree6e84cf6bab875aa9d4da86d73404be40fbc6c3ee /generic/tclStubInit.c
parent3628c71caa5cc745e75c919fbf02240131221386 (diff)
parent8c3f25f44adbfa66cfa07f33604abe1b1cfdc588 (diff)
downloadtcl-25419dcfb8439a697f17ce50bd0bf39af2d3913a.zip
tcl-25419dcfb8439a697f17ce50bd0bf39af2d3913a.tar.gz
tcl-25419dcfb8439a697f17ce50bd0bf39af2d3913a.tar.bz2
Take cygwin handling of X11 into account
Implement TclpIsAtty, Cygwin only doc/dde.n: doc fix
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 0f0665b..1cbcf84 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -56,7 +56,9 @@ static int TclSockMinimumBuffersOld(int sock, int size)
#ifdef __WIN32__
# define TclUnixWaitForFile 0
# define TclpReaddir 0
+# define TclpIsAtty 0
#elif defined(__CYGWIN__)
+# define TclpIsAtty TclPlatIsAtty
# define TclWinSetInterfaces (void (*) (int)) doNothing
# define TclWinAddProcess (void (*) (void *, unsigned int)) doNothing
# define TclWinFlushDirtyChannels doNothing
@@ -64,6 +66,12 @@ static int TclSockMinimumBuffersOld(int sock, int size)
static Tcl_Encoding winTCharEncoding;
+static int
+TclpIsAtty(int fd)
+{
+ return isatty(fd);
+}
+
int
TclWinGetPlatformId()
{
@@ -489,7 +497,7 @@ static const TclIntPlatStubs tclIntPlatStubs = {
TclpCreateCommandChannel, /* 13 */
TclpCreatePipe, /* 14 */
TclpCreateProcess, /* 15 */
- 0, /* 16 */
+ TclpIsAtty, /* 16 */
0, /* 17 */
TclpMakeFile, /* 18 */
TclpOpenFile, /* 19 */