diff options
author | hobbs <hobbs@noemail.net> | 2000-04-19 23:24:52 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-04-19 23:24:52 (GMT) |
commit | 5de6b32d4d6ac6f28347d7744ab9e5a12099a87e (patch) | |
tree | c677c07258c9f95b00f2b7faa7e38126d198ec00 /generic | |
parent | b91261242838823ec3ab5217730704d3085e9930 (diff) | |
download | tcl-5de6b32d4d6ac6f28347d7744ab9e5a12099a87e.zip tcl-5de6b32d4d6ac6f28347d7744ab9e5a12099a87e.tar.gz tcl-5de6b32d4d6ac6f28347d7744ab9e5a12099a87e.tar.bz2 |
* generic/tclFileName.c (SplitUnixPath): added support for QNX
node ids.
FossilOrigin-Name: 20e78a2f2db85fc68545d64558a3722dc555c3dc
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclFileName.c | 15 |
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; |