summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-19 23:24:52 (GMT)
committerhobbs <hobbs>2000-04-19 23:24:52 (GMT)
commit0c6a6f1849328a298f5145a93e0ffa4ecc43c8f4 (patch)
treec677c07258c9f95b00f2b7faa7e38126d198ec00 /generic
parent1f3c8f1c86ed3c5c1185c97cc07e545acf3e07a5 (diff)
downloadtcl-0c6a6f1849328a298f5145a93e0ffa4ecc43c8f4.zip
tcl-0c6a6f1849328a298f5145a93e0ffa4ecc43c8f4.tar.gz
tcl-0c6a6f1849328a298f5145a93e0ffa4ecc43c8f4.tar.bz2
* generic/tclFileName.c (SplitUnixPath): added support for QNX
node ids.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclFileName.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 289e534..b09d1a2 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclFileName.c,v 1.12 2000/03/03 02:57:48 hobbs Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.13 2000/04/19 23:24:52 hobbs Exp $
*/
#include "tclInt.h"
@@ -446,6 +446,19 @@ SplitUnixPath(path, bufPtr)
* Deal with the root directory as a special case.
*/
+#ifdef __QNX__
+ /*
+ * Check for QNX //<node id> prefix
+ */
+ if ((path[0] == '/') && (path[1] == '/')
+ && isdigit(UCHAR(path[2]))) { /* INTL: digit */
+ path += 3;
+ while (isdigit(UCHAR(*path))) { /* INTL: digit */
+ ++path;
+ }
+ }
+#endif
+
if (path[0] == '/') {
Tcl_DStringAppend(bufPtr, "/", 2);
p = path+1;