]>
Commit | Line | Data |
---|---|---|
64bd8a83 CF |
1 | /* path.h |
2 | ||
64bd8a83 CF |
3 | This file is part of Cygwin. |
4 | ||
5 | This software is a copyrighted work licensed under the terms of the | |
6 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for | |
7 | details. */ | |
8 | ||
9ce70bf4 JT |
9 | #ifndef _PATH_H_ |
10 | #define _PATH_H_ | |
11 | ||
1e497ebd CV |
12 | struct mnt_t |
13 | { | |
14 | char *native; | |
15 | char *posix; | |
16 | unsigned flags; | |
17 | }; | |
18 | ||
229f2bb4 | 19 | char *cygpath (const char *s, ...); |
60efa4e5 | 20 | char *cygpath_rel (const char *cwd, const char *s, ...); |
cea9b621 CV |
21 | bool is_exe (HANDLE); |
22 | bool is_symlink (HANDLE); | |
37f4fea0 | 23 | bool readlink (HANDLE, char *, size_t); |
cea9b621 CV |
24 | int get_word (HANDLE, int); |
25 | int get_dword (HANDLE, int); | |
1e497ebd CV |
26 | bool from_fstab_line (mnt_t *m, char *line, bool user); |
27 | ||
28 | extern mnt_t mount_table[255]; | |
29 | extern int max_mount_entry; | |
cea9b621 | 30 | |
1e497ebd | 31 | #ifndef SYMLINK_MAX |
60efa4e5 | 32 | #define SYMLINK_MAX 4095 /* PATH_MAX - 1 */ |
1e497ebd | 33 | #endif |
9ce70bf4 JT |
34 | |
35 | DWORD testsuite_getcwd (DWORD nBufferLength, LPSTR lpBuffer); | |
36 | void testsuite_read_mounts (void); | |
37 | ||
38 | #endif |