Debian Codegraph @

android/app/jni/extern/macports-legacy-support/src/dirfuncs_compat.h

raw
1 /*
2 * Copyright (c) 2024 Frederick H. G. Wright II <[email protected]>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 /* Prototypes for directory function compatibility wrappers */
18
19 #ifndef __MP_LEGACY_SUPPORT_DIRFUNCS_COMPAT_H
20 #define __MP_LEGACY_SUPPORT_DIRFUNCS_COMPAT_H
21
22 #include <dirent.h>
23
24 DIR *
25 __mpls_opendir(const char *filename);
26
27 struct dirent *
28 __mpls_readdir(DIR *dirp);
29
30 int
31 __mpls_readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
32
33 long
34 __mpls_telldir(DIR *dirp);
35
36 void
37 __mpls_seekdir(DIR *dirp, long loc);
38
39 void
40 __mpls_rewinddir(DIR *dirp);
41
42 int
43 __mpls_closedir(DIR *dirp);
44
45 int
46 __mpls_dirfd(DIR *dirp);
47
48 #endif /* __MP_LEGACY_SUPPORT_DIRFUNCS_COMPAT_H */