| www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/posix/sys/stat/fixpath.c | search |
To download the latest version of this file, click on most recent revision number, then use your browser's "save page as" feature.
Up to djgpp/src/libc/posix/sys/stat/Check that 0x7147 call is supported by checking that AX does not contain 0x7100. If not supported fall back on 0x47NN. Set CF before calling 0x713B function.
Whitespace changes.
If path is root path remove the backslash following the drive specifier. The trailing slash is always added by the calling function. Also always allow for lower case drive specifier character in the path.
A formating correction.
Do not signal that LFN API is not available (ENOSYS). An errno of ENOSYS does not reflect if the canonicalization of the path was successfull or not.
Move contents of _fixpath to __canonicalize_path. Adjust _fixpath to call __canonicalize_path.
v2.03 update (rev 1.6 contents) without _os_trueversion
Migrate from _lfn_gen_short_fname to _is_DOS83 to fix fncase on Win 2K/XP.
If the short name equivalent of the current path is greater than 64 characters, Windows 2000 and XP do not return the correct long path name - they return the root directory instead without any failure code. Since this can be disastrous in deep directories doing an rm -rf, we check for this bug and try and fix the path using lfn truename 7160 on "." Also add relative path return for cases where getcwd fails (before we would return root).
update copyright dates
fix calls to tolower/toupper with signed char
import djgpp 2.02
import djgpp 2.01
import djgpp 2.00
| webmaster | delorie software privacy |
| Copyright © 2024 by DJ Delorie | Updated Apr 2024 |