* 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.
This commit is contained in:
@ -9,9 +9,11 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
char *cygpath (const char *s, ...);
|
||||
char *cygpath_rel (const char *cwd, const char *s, ...);
|
||||
bool is_exe (HANDLE);
|
||||
bool is_symlink (HANDLE);
|
||||
bool readlink (HANDLE, char *, int);
|
||||
int get_word (HANDLE, int);
|
||||
int get_dword (HANDLE, int);
|
||||
|
||||
#define SYMLINK_MAX 4095 /* PATH_MAX - 1 */
|
||||
|
Reference in New Issue
Block a user