Lines Matching refs:stat_buf

270   struct stat stat_buf, stat_spare;  in binary_operator()  local
338 return (stat (argv[op - 1], &stat_buf) == 0 in binary_operator()
340 && stat_buf.st_dev == stat_spare.st_dev in binary_operator()
341 && stat_buf.st_ino == stat_spare.st_ino); in binary_operator()
387 struct stat stat_buf; in unary_operator() local
401 return stat (argv[pos - 1], &stat_buf) == 0; in unary_operator()
418 if (stat (argv[pos - 1], &stat_buf) != 0) in unary_operator()
420 struct timespec atime = get_stat_atime (&stat_buf); in unary_operator()
421 struct timespec mtime = get_stat_mtime (&stat_buf); in unary_operator()
428 if (stat (argv[pos - 1], &stat_buf) != 0) in unary_operator()
433 return ! (euid == NO_UID && errno) && euid == stat_buf.st_uid; in unary_operator()
439 if (stat (argv[pos - 1], &stat_buf) != 0) in unary_operator()
444 return ! (egid == NO_GID && errno) && egid == stat_buf.st_gid; in unary_operator()
451 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
452 && S_ISREG (stat_buf.st_mode)); in unary_operator()
456 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
457 && S_ISDIR (stat_buf.st_mode)); in unary_operator()
461 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
462 && 0 < stat_buf.st_size); in unary_operator()
466 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
467 && S_ISSOCK (stat_buf.st_mode)); in unary_operator()
471 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
472 && S_ISCHR (stat_buf.st_mode)); in unary_operator()
476 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
477 && S_ISBLK (stat_buf.st_mode)); in unary_operator()
481 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
482 && S_ISFIFO (stat_buf.st_mode)); in unary_operator()
489 return (lstat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
490 && S_ISLNK (stat_buf.st_mode)); in unary_operator()
494 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
495 && (stat_buf.st_mode & S_ISUID)); in unary_operator()
499 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
500 && (stat_buf.st_mode & S_ISGID)); in unary_operator()
504 return (stat (argv[pos - 1], &stat_buf) == 0 in unary_operator()
505 && (stat_buf.st_mode & S_ISVTX)); in unary_operator()