[BACK]Return to test-O_DIRECTORY.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / test-O_DIRECTORY.c (download)

Revision 1.1, Sat Feb 18 12:24:24 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, VERSION_1_14_1, HEAD

proper test for O_DIRECTORY

#include <fcntl.h>

int
main(void)
{
	return open(".", O_RDONLY | O_DIRECTORY) == -1;
}