diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-21 12:13:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-21 12:13:52 (GMT) |
commit | 7d68cb21e3a297930c783664233ac3b74f211eac (patch) | |
tree | 4acf298c16bafca95c317a56658e36b48aae2710 /win/tclWinFCmd.c | |
parent | 4d100dc21f1811c0bfd773f234f59b35eb3be93a (diff) | |
parent | 694837ab79cb2b7f05fccf857081bb8a7579079e (diff) | |
download | tcl-7d68cb21e3a297930c783664233ac3b74f211eac.zip tcl-7d68cb21e3a297930c783664233ac3b74f211eac.tar.gz tcl-7d68cb21e3a297930c783664233ac3b74f211eac.tar.bz2 |
Merge trunk.
Remove TclpReaddir and TclpInetNtoa from internal stub table: It's not used anywhere any more.
Diffstat (limited to 'win/tclWinFCmd.c')
-rw-r--r-- | win/tclWinFCmd.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c index db5ed9e..122b064 100644 --- a/win/tclWinFCmd.c +++ b/win/tclWinFCmd.c @@ -1105,49 +1105,6 @@ DoRemoveJustDirectory( SetFileAttributes(nativePath, attr | FILE_ATTRIBUTE_READONLY); } - - /* - * Windows 95 reports removing a non-empty directory as - * EACCES, not EEXIST. If the directory is not empty, change errno - * so caller knows what's going on. - */ - - if (TclWinGetPlatformId() == VER_PLATFORM_WIN32_WINDOWS) { - const char *path, *find; - HANDLE handle; - WIN32_FIND_DATAA data; - Tcl_DString buffer; - int len; - - path = (const char *) nativePath; - - Tcl_DStringInit(&buffer); - len = strlen(path); - find = Tcl_DStringAppend(&buffer, path, len); - if ((len > 0) && (find[len - 1] != '\\')) { - TclDStringAppendLiteral(&buffer, "\\"); - } - find = TclDStringAppendLiteral(&buffer, "*.*"); - handle = FindFirstFileA(find, &data); - if (handle != INVALID_HANDLE_VALUE) { - while (1) { - if ((strcmp(data.cFileName, ".") != 0) - && (strcmp(data.cFileName, "..") != 0)) { - /* - * Found something in this directory. - */ - - Tcl_SetErrno(EEXIST); - break; - } - if (FindNextFileA(handle, &data) == FALSE) { - break; - } - } - FindClose(handle); - } - Tcl_DStringFree(&buffer); - } } } |