]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | // Copyright 2022 Andrey Semashev |
2 | ||
3 | // Distributed under the Boost Software License, Version 1.0. | |
4 | // See http://www.boost.org/LICENSE_1_0.txt | |
5 | ||
6 | // See library home page at http://www.boost.org/libs/filesystem | |
7 | ||
8 | #include "platform_config.hpp" | |
9 | ||
10 | #include <sys/types.h> | |
11 | #include <sys/stat.h> | |
12 | #include <dirent.h> | |
13 | #include <fcntl.h> | |
14 | ||
15 | int main() | |
16 | { | |
17 | int fd = open(".", O_DIRECTORY | O_RDONLY | O_NOFOLLOW); | |
18 | DIR* dir = fdopendir(fd); | |
19 | return dir != 0; | |
20 | } |