00001 #include <fcntl.h> 00002 #include <sys/stat.h> 00003 int main(int argc, char **argv) 00004 { 00005 int rc= 0; 00006 struct stat st; 00007 if (fstatat(0, "/tmp", &st, 0) != 0) rc = 1; 00008 }