Lines Matching refs:st
245 struct stat st;
249 if (stat(path, &st) < 0)
252 if (!S_ISBLK(st.st_mode))
255 if (asprintf(ret, "/dev/block/%d:%d", major(st.st_rdev), minor(st.st_rdev)) < 0)
270 struct stat st;
276 if (stat(path, &st) < 0)
279 if (!S_ISBLK(st.st_mode))
282 r = sd_device_new_from_devnum(&device, 'b', st.st_rdev);
671 struct stat st;
675 if (stat(key_file, &st) >= 0 && S_ISREG(st.st_mode) && (st.st_mode & 0005))