HomeSort by: relevance | last modified time | path
    Searched refs:stb1 (Results 1 - 4 of 4) sorted by relevancy

  /src/usr.bin/diff/
diffdir.c 188 if (stat(path1, &stb1) != 0) {
194 memset(&stb1, 0, sizeof(stb1));
204 stb2.st_mode = stb1.st_mode;
206 if (stb1.st_mode == 0)
207 stb1.st_mode = stb2.st_mode;
208 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
216 if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode))
diff.c 47 struct stat stb1, stb2; variable in typeref:struct:stat
325 * Do sanity checks, fill in stb1 and stb2 and call the appropriate
326 * driver routine. Both drivers use the contents of stb1 and stb2.
333 fstat(STDIN_FILENO, &stb1);
335 } else if (stat(argv[0], &stb1) != 0) {
339 memset(&stb1, 0, sizeof(struct stat));
350 stb2.st_mode = stb1.st_mode;
359 if (stb1.st_mode == 0)
360 stb1.st_mode = stb2.st_mode;
362 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))
    [all...]
diff.h 109 extern struct stat stb1, stb2;
diffreg.c 299 if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode))
300 return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2);
307 if (!S_ISREG(stb1.st_mode)) {
309 fstat(fileno(f1), &stb1) == -1) {
374 (void)prepare(0, f1, stb1.st_size, flags);
377 !prepare(0, f1, stb1.st_size, flags) ||
445 if ((flags & (D_EMPTY1|D_EMPTY2)) || stb1.st_size != stb2.st_size ||
446 (stb1.st_mode & S_IFMT) != (stb2.st_mode & S_IFMT))
449 if (stb1.st_dev == stb2.st_dev && stb1.st_ino == stb2.st_ino
    [all...]

Completed in 21 milliseconds