summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorbch <brad.harder@gmail.com>2015-02-19 18:57:26 (GMT)
committerbch <brad.harder@gmail.com>2015-02-19 18:57:26 (GMT)
commitb4f7cc1d1c5975560bc0820a83d2fe6e6f1deaf0 (patch)
tree50b1c0e6a5f8f9d815205ce5da1b08c61e9bb00e /generic
parent4d05a07f5bfa8d6ef796bfb9edf79e49d6fda7e3 (diff)
parentc9d86d95ddb0e13b6c17589f0598cb6492cbda48 (diff)
downloadtcl-b4f7cc1d1c5975560bc0820a83d2fe6e6f1deaf0.zip
tcl-b4f7cc1d1c5975560bc0820a83d2fe6e6f1deaf0.tar.gz
tcl-b4f7cc1d1c5975560bc0820a83d2fe6e6f1deaf0.tar.bz2
sync w/ [trunk]
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIORChan.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index 21c766e..0f7f021 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -30,6 +30,8 @@
/*
* Signatures of all functions used in the C layer of the reflection.
*/
+static int ReflectGetHandle( ClientData instanceData,
+ int direction, ClientData *handlePtr);
static int ReflectClose(ClientData clientData,
Tcl_Interp *interp);
@@ -68,7 +70,7 @@ static const Tcl_ChannelType tclRChannelType = {
ReflectSetOption, /* Set options. NULL'able */
ReflectGetOption, /* Get options. NULL'able */
ReflectWatch, /* Initialize notifier */
- NULL, /* Get OS handle from the channel. NULL'able */
+ ReflectGetHandle, /* Get OS handle from the channel. */
NULL, /* No close2 support. NULL'able */
ReflectBlock, /* Set blocking/nonblocking. NULL'able */
NULL, /* Flush channel. Not used by core. NULL'able */
@@ -1644,6 +1646,32 @@ ReflectWatch(
/*
*----------------------------------------------------------------------
*
+ * ReflectGetHandle --
+ *
+ * This function is invoked to return OS channel handles, or EINVAL
+ * if not applicable or otherwise invalid.
+ *
+ * Results:
+ * EINVAL.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+int
+ReflectGetHandle(
+ ClientData instanceData,
+ int direction,
+ ClientData *handlePtr)
+{
+ return EINVAL;
+}
+
+/*
+ *----------------------------------------------------------------------
+ *
* ReflectBlock --
*
* This function is invoked to tell the channel which blocking behaviour