Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 14 of 14) sorted by relevance

/coreutils/src/
Dtruncate.c108 struct stat sb; in do_ftruncate() local
111 if ((block_mode || (rel_mode && rsize < 0)) && fstat (fd, &sb) != 0) in do_ftruncate()
118 ptrdiff_t blksize = STP_BLKSIZE (&sb); in do_ftruncate()
136 if (usable_st_size (&sb)) in do_ftruncate()
138 fsize = sb.st_size; in do_ftruncate()
319 struct stat sb; in main() local
321 if (stat (ref_file, &sb) != 0) in main()
323 if (usable_st_size (&sb)) in main()
324 file_size = sb.st_size; in main()
Dmv.c440 struct stat sb; in main() local
441 sb.st_mode = 0; in main()
457 target_dirfd = target_directory_operand (target_directory, &sb); in main()
471 int fd = target_directory_operand (lastfile, &sb); in main()
493 && (sb.st_mode != 0 || stat (lastfile, &sb) == 0) in main()
494 && S_ISDIR (sb.st_mode))) in main()
Ddu.c505 const struct stat *sb = ent->fts_statp; in process_file() local
542 && fts->fts_dev != sb->st_dev) in process_file()
548 && (hash_all || (! S_ISDIR (sb->st_mode) && 1 < sb->st_nlink)) in process_file()
549 && ! hash_ins (di_files, sb->st_ino, sb->st_dev))) in process_file()
589 ? (usable_st_size (sb) ? MAX (0, sb->st_size) : 0) in process_file()
590 : (uintmax_t) STP_NBLOCKS (sb) * ST_NBLOCKSIZE), in process_file()
591 (time_type == time_mtime ? get_stat_mtime (sb) in process_file()
592 : time_type == time_atime ? get_stat_atime (sb) in process_file()
593 : get_stat_ctime (sb))); in process_file()
Dselinux.c181 struct stat sb; in restorecon_private() local
211 if (fstat (fd, &sb) < 0) in restorecon_private()
216 if (lstat (path, &sb) < 0) in restorecon_private()
220 if (selabel_lookup (selabel_handle, &scon, path, sb.st_mode) < 0) in restorecon_private()
Drealpath.c142 struct stat sb; in isdir() local
143 if (stat (path, &sb) != 0) in isdir()
145 return S_ISDIR (sb.st_mode); in isdir()
Dcp.c611 struct stat sb; in do_copy() local
625 sb.st_mode = 0; in do_copy()
641 target_dirfd = target_directory_operand (target_directory, &sb); in do_copy()
649 int fd = target_directory_operand (lastfile, &sb); in do_copy()
673 && (sb.st_mode || stat (lastfile, &sb) == 0) in do_copy()
674 && S_ISDIR (sb.st_mode))) in do_copy()
801 && (sb.st_mode != 0 || stat (dest, &sb) == 0) && S_ISREG (sb.st_mode)) in do_copy()
Dsystem.h733 usable_st_size (struct stat const *sb) in usable_st_size() argument
735 return (S_ISREG (sb->st_mode) || S_ISLNK (sb->st_mode) in usable_st_size()
736 || S_TYPEISSHM (sb) || S_TYPEISTMO (sb)); in usable_st_size()
Dcopy.c683 is_ancestor (const struct stat *sb, const struct dir_list *ancestors) in is_ancestor() argument
687 if (ancestors->ino == sb->st_ino && ancestors->dev == sb->st_dev) in is_ancestor()
1128 infer_scantype (int fd, struct stat const *sb, in infer_scantype() argument
1136 && S_ISREG (sb->st_mode) in infer_scantype()
1137 && STP_NBLOCKS (sb) < sb->st_size / ST_NBLOCKSIZE)) in infer_scantype()
1239 struct stat sb; in copy_reg() local
1527 sb.st_mode = 0; in copy_reg()
1528 else if (fstat (dest_desc, &sb) != 0) in copy_reg()
1538 mode_t temporary_mode = sb.st_mode | extra_permissions; in copy_reg()
1539 if (temporary_mode != sb.st_mode in copy_reg()
[all …]
Dstdbuf.c228 struct stat sb; in set_LD_PRELOAD() local
238 if (stat (libstdbuf, &sb) == 0) /* file_exists */ in set_LD_PRELOAD()
Dinstall.c951 struct stat sb; in main() local
967 target_dirfd = target_directory_operand (target_directory, &sb); in main()
976 int fd = target_directory_operand (lastfile, &sb); in main()
Ddf.c1071 struct stat sb; in get_dev() local
1072 if (stat (stat_file, &sb) == 0) in get_dev()
1074 struct mount_entry const * dev_me = me_for_dev (sb.st_dev); in get_dev()
Dsort.c2017 general_numcompare (char const *sa, char const *sb) in general_numcompare() argument
2025 long double b = strtold (sb, &eb); in general_numcompare()
2029 return sb == eb ? 0 : -1; in general_numcompare()
2030 if (sb == eb) in general_numcompare()
Dls.c1062 MAYBE_UNUSED struct stat sb; in assert_matching_dev_ino() local
1063 assure (0 <= stat (name, &sb)); in assert_matching_dev_ino()
1064 assure (sb.st_dev == di.st_dev); in assert_matching_dev_ino()
1065 assure (sb.st_ino == di.st_ino); in assert_matching_dev_ino()
/coreutils/tests/sort/
Dsort-debug-keys.sh273 printf ' 1\n1\n' | sort -sb --debug