OSDN Git Service

* cygcheck.cc (dirname): New static function.
authorbriand <briand>
Tue, 11 Mar 2008 17:20:02 +0000 (17:20 +0000)
committerbriand <briand>
Tue, 11 Mar 2008 17:20:02 +0000 (17:20 +0000)
commit24ad459ab45ef64761da899b70d3634e53b3686b
treee278a4707e0859bfead3eed31d070aac16a2fd88
parentea63183c4d4133052527c4e4ea640b2fb30f95f8
* cygcheck.cc (dirname): New static function.
(find_app_on_path): Use SYMLINK_MAX.  Resolve symlink relative
to link's location.  Adjust to the fact that cygpath already
normalizes its return value.
* path.cc (rel_vconcat): Add cwd parameter, and use it instead
of calling GetCurrentDirectory() if possible.  Rename throughout.
(vcygpath): Rename from cygpath and accept cwd and va_list.  Pass
cwd on to rel_vconcat().
(cygpath_rel): New front end for vcygpath.
(cygpath): Ditto.
* path.h (cygpath_rel): Declare.
(SYMLINK_MAX): Define to 4095.
winsup/utils/ChangeLog
winsup/utils/cygcheck.cc
winsup/utils/path.cc
winsup/utils/path.h