1*4b169a6bSchristos #include <sys/types.h> 2*4b169a6bSchristos #include <sys/stat.h> 3*4b169a6bSchristos #include <unistd.h> 4*4b169a6bSchristos #include <stdio.h> 5*4b169a6bSchristos #include <stdlib.h> 6*4b169a6bSchristos main(void)7*4b169a6bSchristosint main (void) 8*4b169a6bSchristos { 9*4b169a6bSchristos struct stat buf; 10*4b169a6bSchristos 11*4b169a6bSchristos if (stat (".", &buf) != 0 12*4b169a6bSchristos || !S_ISDIR (buf.st_mode)) 13*4b169a6bSchristos abort (); 14*4b169a6bSchristos printf ("pass\n"); 15*4b169a6bSchristos exit (0); 16*4b169a6bSchristos } 17