xref: /freebsd/contrib/mandoc/test-O_DIRECTORY.c (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1 #include <fcntl.h>
2 
3 int
4 main(void)
5 {
6 	return open(".", O_RDONLY | O_DIRECTORY) == -1;
7 }
8