| /tools/perf/util/ |
| A D | path.c | 55 return S_ISREG(st.st_mode); in is_regular_file() 68 return S_ISDIR(st.st_mode); in is_directory() 78 return S_ISDIR(st.st_mode); in is_directory_at()
|
| A D | data.c | 123 if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data.", 5)) in perf_data__open_dir() 169 if (!fstat(fd, &st) && S_ISFIFO(st.st_mode)) in check_pipe() 241 return (st.st_mode & S_IFMT) == S_IFDIR; in is_dir()
|
| A D | util.c | 171 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat() 199 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
|
| /tools/testing/selftests/ublk/ |
| A D | common.c | 40 if (S_ISREG(st.st_mode)) in backing_file_tgt_init() 42 else if (S_ISBLK(st.st_mode)) { in backing_file_tgt_init()
|
| /tools/testing/selftests/drivers/sdsi/ |
| A D | sdsi_test.py | 67 mode = os.stat(folder + "guid").st_mode & 0o777 69 mode = os.stat(folder + "registers").st_mode & 0o777 71 mode = os.stat(folder + "provision_akc").st_mode & 0o777 73 mode = os.stat(folder + "provision_cap").st_mode & 0o777 75 mode = os.stat(folder + "state_certificate").st_mode & 0o777
|
| /tools/testing/selftests/memfd/ |
| A D | fuse_mnt.c | 32 st->st_mode = S_IFDIR | 0755; in memfd_getattr() 35 st->st_mode = S_IFREG | 0444; in memfd_getattr()
|
| /tools/power/acpi/os_specific/service_layers/ |
| A D | osunixdir.c | 131 if ((S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename() 134 || ((!S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
|
| /tools/power/cpupower/lib/ |
| A D | cpuidle.c | 300 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 304 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 307 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
|
| A D | powercap.c | 99 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in powercap_get_driver() 224 if (stat(dent->d_name, &st) != 0 || !S_ISDIR(st.st_mode)) in powercap_read_zone()
|
| /tools/power/cpupower/utils/helpers/ |
| A D | sysfs.c | 362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
|
| /tools/testing/selftests/ia64/ |
| A D | aliasing-test.c | 100 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree() 189 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
|
| /tools/testing/selftests/powerpc/papr_attributes/ |
| A D | attr_test.c | 71 FAIL_IF(!S_ISDIR(s.st_mode)); in verify_energy_info()
|
| /tools/testing/selftests/fchmodat2/ |
| A D | fchmodat2_test.c | 55 return (st.st_mode == expect_mode); in expect_mode()
|
| /tools/lib/api/ |
| A D | io_dir.h | 97 if (S_ISDIR(st.st_mode)) { in io_dir__is_dir()
|
| /tools/perf/tests/ |
| A D | tests-scripts.c | 53 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd() 256 if (!S_ISDIR(st.st_mode)) in append_scripts_in_dir()
|
| /tools/include/nolibc/sys/ |
| A D | stat.h | 56 buf->st_mode = statx.stx_mode; in fstatat()
|
| /tools/testing/selftests/alsa/ |
| A D | conf.c | 153 if (S_ISLNK(sb.st_mode)) { in sysfs_get() 166 if (S_ISDIR(sb.st_mode)) in sysfs_get() 168 if ((sb.st_mode & S_IRUSR) == 0) in sysfs_get()
|
| /tools/testing/selftests/proc/ |
| A D | fd-001-lookup.c | 41 assert(S_ISLNK(st.st_mode)); in test_lookup_pass()
|
| /tools/lib/subcmd/ |
| A D | help.c | 167 !S_ISREG(st.st_mode)) in is_executable() 170 return st.st_mode & S_IXUSR; in is_executable()
|
| /tools/include/nolibc/ |
| A D | types.h | 175 mode_t st_mode; /* protection */ member
|
| /tools/perf/ |
| A D | perf.c | 360 if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode)) in run_builtin()
|
| /tools/usb/usbip/src/ |
| A D | usbip_attach.c | 55 if (!(s.st_mode & S_IFDIR)) in record_connection()
|
| /tools/mm/ |
| A D | page-types.c | 1068 if (S_ISREG(st->st_mode)) in walk_tree() 1089 if (S_ISREG(st.st_mode)) { in walk_page_cache() 1091 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache() 1120 if (!S_ISDIR(st.st_mode)) in parse_cgroup()
|
| /tools/thermal/tmon/ |
| A D | tmon.c | 153 if (S_ISLNK(logstat.st_mode)) { in prepare_logging()
|
| /tools/objtool/ |
| A D | builtin-check.c | 212 if (fchmod(dst_fd, stat.st_mode) == -1) { in copy_file()
|