Lines Matching refs:d
49 struct dirent64 *d; in main() local
52 struct dirent64 d; in main() member
149 while ((d = readdir64 (dir1)) != NULL) in main()
151 if (d->d_type != DT_UNKNOWN && d->d_type != DT_REG) in main()
154 if (d->d_ino == st2.st_ino) in main()
158 if (stat64 (d->d_name, &st3) < 0) in main()
162 d = NULL; in main()
171 if (d == NULL) in main()
232 while ((d = readdir64 (dir2)) != NULL) in main()
234 if (d->d_type != DT_UNKNOWN && d->d_type != DT_DIR) in main()
237 if (d->d_ino == st2.st_ino) in main()
241 if (stat64 (d->d_name, &st3) < 0) in main()
245 d = NULL; in main()
323 while (readdir64_r (dir1, &direntbuf.d, &d) == 0 && d != NULL) in main()
325 if (d->d_type != DT_UNKNOWN && d->d_type != DT_DIR) in main()
328 if (d->d_ino == st1.st_ino) in main()
332 size_t len = strlen (objdir) + 1 + _D_EXACT_NAMLEN (d) + 1; in main()
335 stpcpy (stpcpy (stpcpy (tmpbuf, objdir), "/"), d->d_name); in main()
341 d = NULL; in main()
346 && strcmp (d->d_name, buf + strlen (buf) - 14) == 0) in main()
353 if (d == NULL) in main()
447 while (readdir64_r (dir2, &direntbuf.d, &d) == 0 && d != NULL) in main()
449 if (strcmp (d->d_name, ".") == 0 in main()
450 || strcmp (d->d_name, "..") == 0 in main()
451 || strcmp (d->d_name, "another-dir") == 0) in main()
453 if (d->d_type != DT_UNKNOWN && d->d_type != DT_DIR) in main()
455 printf ("d_type for \"%s\" is wrong\n", d->d_name); in main()
458 if (stat64 (d->d_name, &st3) < 0) in main()
460 printf ("cannot stat \"%s\" is wrong\n", d->d_name); in main()
465 printf ("\"%s\" is no directory\n", d->d_name); in main()
469 else if (strcmp (d->d_name, "and-a-file") == 0) in main()
471 if (d->d_type != DT_UNKNOWN && d->d_type != DT_REG) in main()
473 printf ("d_type for \"%s\" is wrong\n", d->d_name); in main()
476 if (stat64 (d->d_name, &st3) < 0) in main()
478 printf ("cannot stat \"%s\" is wrong\n", d->d_name); in main()
483 printf ("\"%s\" is no regular file\n", d->d_name); in main()
489 printf ("unexpected directory entry \"%s\"\n", d->d_name); in main()