TOR: fix compilation
[tomato.git] / release / src / router / vsftpd / access.h
blob788c071b5265791f187b3c45eee55c1723d2325e
1 #ifndef VSF_ACCESS_H
2 #define VSF_ACCESS_H
4 struct mystr;
6 /* vsf_access_check_file()
7 * PURPOSE
8 * Check whether the current session has permission to access the given
9 * filename.
10 * PARAMETERS
11 * p_filename_str - the filename to check access for
12 * RETURNS
13 * Returns 1 if access is granted, otherwise 0.
15 int vsf_access_check_file(const struct mystr* p_filename_str);
17 /* vsf_access_check_file_visible()
18 * PURPOSE
19 * Check whether the current session has permission to view the given
20 * filename in directory listings.
21 * PARAMETERS
22 * p_filename_str - the filename to check visibility for
23 * RETURNS
24 * Returns 1 if the file should be visible, otherwise 0.
26 int vsf_access_check_file_visible(const struct mystr* p_filename_str);
28 #endif /* VSF_ACCESS_H */