diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2021-04-28 16:54:47 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2021-05-10 16:41:39 +0300 |
commit | 9ce70bf450003d332c258930ba4cbb57e4816815 (patch) | |
tree | 56c5bcb4c2108deb36c606c508ed9125bd2f2a4c /winsup/utils/path.h | |
parent | 44eb4163234089e8830b018dbcf6a08333eab202 (diff) |
Unpick cygpath TESTSUITE
Rather than having testsuite.h do various things, depending on defines,
just have it do one thing, and then explicitly redirect to test stubs in
path.cc when building test.
Diffstat (limited to 'winsup/utils/path.h')
-rw-r--r-- | winsup/utils/path.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/winsup/utils/path.h b/winsup/utils/path.h index a1840a003..c64f6ebfb 100644 --- a/winsup/utils/path.h +++ b/winsup/utils/path.h @@ -6,6 +6,9 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +#ifndef _PATH_H_ +#define _PATH_H_ + struct mnt_t { char *native; @@ -22,11 +25,14 @@ int get_word (HANDLE, int); int get_dword (HANDLE, int); bool from_fstab_line (mnt_t *m, char *line, bool user); -#ifndef TESTSUITE extern mnt_t mount_table[255]; extern int max_mount_entry; -#endif #ifndef SYMLINK_MAX #define SYMLINK_MAX 4095 /* PATH_MAX - 1 */ #endif + +DWORD testsuite_getcwd (DWORD nBufferLength, LPSTR lpBuffer); +void testsuite_read_mounts (void); + +#endif |