Lines Matching refs:st
93 struct stat st; in perf_data__open_dir() local
96 if (stat(path, &st)) in perf_data__open_dir()
99 if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data", 4)) in perf_data__open_dir()
120 file->size = st.st_size; in perf_data__open_dir()
146 struct stat st; in perf_data__update_dir() local
148 if (fstat(file->fd, &st)) in perf_data__update_dir()
151 file->size = st.st_size; in perf_data__update_dir()
159 struct stat st; in check_pipe() local
165 if (!fstat(fd, &st) && S_ISFIFO(st.st_mode)) in check_pipe()
180 struct stat st; in check_backup() local
185 if (!stat(data->path, &st) && st.st_size) { in check_backup()
214 struct stat st; in is_dir() local
216 if (stat(data->path, &st)) in is_dir()
219 return (st.st_mode & S_IFMT) == S_IFDIR; in is_dir()
224 struct stat st; in open_file_read() local
240 if (fstat(fd, &st) < 0) in open_file_read()
243 if (!data->force && st.st_uid && (st.st_uid != geteuid())) { in open_file_read()
249 if (!st.st_size) { in open_file_read()
255 data->file.size = st.st_size; in open_file_read()