summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-09-10 15:28:23 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-09-10 15:28:23 (GMT)
commitcdce5491b3109c7357b17345d9e84bdbef9ed848 (patch)
treed59e3b32ed157d2822e431b51cc6bd5ce3082512 /unix/tclUnixFile.c
parent843d29b4486fa92657c326b43383a8e7e860fdf3 (diff)
parent9a15a1b58648809ffb208eaa00cd20af4784050d (diff)
downloadtcl-cdce5491b3109c7357b17345d9e84bdbef9ed848.zip
tcl-cdce5491b3109c7357b17345d9e84bdbef9ed848.tar.gz
tcl-cdce5491b3109c7357b17345d9e84bdbef9ed848.tar.bz2
Rebase TIP 505 implementation a patch for 8.6.
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 7ffbf8d..5684b16 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -259,7 +259,7 @@ TclpMatchInDirectory(
Tcl_DecrRefCount(tailPtr);
Tcl_DecrRefCount(fileNamePtr);
} else {
- DIR *d;
+ TclDIR *d;
Tcl_DirEntry *entryPtr;
const char *dirName;
int dirLength, nativeDirLen;
@@ -309,7 +309,7 @@ TclpMatchInDirectory(
return TCL_OK;
}
- d = opendir(native); /* INTL: Native. */
+ d = TclOSopendir(native); /* INTL: Native. */
if (d == NULL) {
Tcl_DStringFree(&ds);
if (interp != NULL) {
@@ -387,7 +387,7 @@ TclpMatchInDirectory(
}
}
- closedir(d);
+ TclOSclosedir(d);
Tcl_DStringFree(&ds);
Tcl_DStringFree(&dsOrig);
Tcl_DecrRefCount(fileNamePtr);