Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dessent <brian@dessent.net>2008-03-11 20:20:02 +0300
committerBrian Dessent <brian@dessent.net>2008-03-11 20:20:02 +0300
commit60efa4e546a8f2e8e23f2de5ccd77c8c30240162 (patch)
treec6e1cc51637891191e4a42196a4f75d701206a83 /winsup/utils/path.h
parent0c4cb56009a42d4f0c3b837315ac8ed09d4a63b9 (diff)
* 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.
Diffstat (limited to 'winsup/utils/path.h')
-rw-r--r--winsup/utils/path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/utils/path.h b/winsup/utils/path.h
index 134235e38..48739df74 100644
--- a/winsup/utils/path.h
+++ b/winsup/utils/path.h
@@ -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 */