Searched refs:st_mode (Results 1 – 25 of 42) sorted by relevance
12
80 return S_ISREG(st.st_mode); in is_regular_file()93 return S_ISDIR(st.st_mode); in is_directory()
162 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat()190 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
106 if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data.", 5)) in perf_data__open_dir()172 if (!fstat(fd, &st) && S_ISFIFO(st.st_mode)) in check_pipe()239 return (st.st_mode & S_IFMT) == S_IFDIR; in is_dir()
32 st->st_mode = S_IFDIR | 0755; in memfd_getattr()35 st->st_mode = S_IFREG | 0444; in memfd_getattr()
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()
292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
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()
100 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree()189 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
53 if (S_ISREG(st.st_mode)) { in get_file_size()56 } else if (S_ISBLK(st.st_mode)) { in get_file_size()
228 if (S_ISBLK(st.st_mode)) { in get_file_size()236 } else if (S_ISREG(st.st_mode)) { in get_file_size()
120 mode_t st_mode; /* protection */ member
34 unsigned short st_mode; member
28 unsigned short st_mode; member
28 unsigned int st_mode; member
29 unsigned int st_mode; member
25 unsigned int st_mode; /* File mode. */ member
153 !S_ISREG(st.st_mode)) in is_executable()156 return st.st_mode & S_IXUSR; in is_executable()
41 assert(S_ISLNK(st.st_mode)); in test_lookup_pass()
326 if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode)) in run_builtin()
394 || !S_ISREG(st.st_mode)) { in get_html_page_path()
55 if (!(s.st_mode & S_IFDIR)) in record_connection()
1055 if (S_ISREG(st->st_mode)) in walk_tree()1076 if (S_ISREG(st.st_mode)) { in walk_page_cache()1078 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()1107 if (!S_ISDIR(st.st_mode)) in parse_cgroup()
153 if (S_ISLNK(logstat.st_mode)) { in prepare_logging()
140 if (ret < 0 || !S_ISREG(fi.st_mode)) in get_flog_buff()