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