#include #include #include int main() { DIR *dir = opendir("/sandbox/notadir"); assert(dir == NULL); assert(errno == ENOTDIR); return 0; }