/systemd/src/hibernate-resume/ |
H A D | hibernate-resume.c | 30 struct stat st; local 52 if (stat(device, &st) < 0) { 57 if (!S_ISBLK(st.st_mode)) { 62 if (asprintf(&major_minor, "%d:%d", major(st.st_rdev), minor(st.st_rdev)) < 0) {
|
/systemd/src/basic/ |
H A D | dirent-util.c | 28 struct stat st; local 36 if (fstatat(dirfd(d), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) 40 S_ISREG(st.st_mode) ? DT_REG : 41 S_ISDIR(st.st_mode) ? DT_DIR : 42 S_ISLNK(st.st_mode) ? DT_LNK : 43 S_ISFIFO(st.st_mode) ? DT_FIFO : 44 S_ISSOCK(st.st_mode) ? DT_SOCK : 45 S_ISCHR(st.st_mode) ? DT_CHR : 46 S_ISBLK(st.st_mode) ? DT_BLK :
|
H A D | rm-rf.c | 78 struct stat st; local 93 if (fstatat(fd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { 99 is_dir = S_ISDIR(st.st_mode); 107 if (root_dev && st.st_dev != root_dev->st_dev) 131 if ((flags & REMOVE_SUBVOLUME) && st.st_ino == 256) {
|
H A D | chattr-util.c | 32 struct stat st; local 36 if (fstat(fd, &st) < 0) 45 if (!S_ISDIR(st.st_mode) && !S_ISREG(st.st_mode)) 80 struct stat st; local 84 if (fstat(fd, &st) < 0) 87 if (!S_ISDIR(st.st_mode) && !S_ISREG(st.st_mode))
|
H A D | lockfile-util.c | 59 struct stat st; local 82 r = fstat(fd, &st); 85 if (st.st_nlink > 0)
|
H A D | mkdir.c | 33 struct stat st; local 39 if (lstat(path, &st) < 0) 42 if ((st.st_mode & 0007) > (mode & 0007) || 43 (st.st_mode & 0070) > (mode & 0070) || 44 (st.st_mode & 0700) > (mode & 0700) || 45 (uid != UID_INVALID && st.st_uid != uid) || 46 (gid != GID_INVALID && st.st_gid != gid) || 47 !S_ISDIR(st.st_mode))
|
H A D | smack-util.c | 137 struct stat st; local 151 r = lstat(path, &st); 161 if (S_ISDIR(st.st_mode)) 163 else if (S_ISLNK(st.st_mode)) 165 else if (S_ISCHR(st.st_mode))
|
H A D | stat-util.c | 48 struct stat st; local 54 r = stat(path, &st); 56 r = lstat(path, &st); 60 return !!S_ISDIR(st.st_mode); 88 bool null_or_empty(struct stat *st) { argument 89 assert(st); 91 if (S_ISREG(st->st_mode) && st->st_size <= 0) 97 if (S_ISCHR(st->st_mode) || S_ISBLK(st 104 struct stat st; local 115 struct stat st; local 126 struct statvfs st; local [all...] |
H A D | selinux-util.c | 143 struct stat st; local 152 r = lstat(path, &st); 156 r = selabel_lookup_raw(label_hnd, &fcon, path, st.st_mode);
|
H A D | user-util.c | 80 struct stat st; local 82 if (isatty(STDIN_FILENO) && fstat(STDIN_FILENO, &st) >= 0) 83 uid = st.st_uid;
|
/systemd/src/import/ |
H A D | import-common.c | 41 struct stat st; local 47 r = fstat(fd, &st); 52 if (fchmod(fd, st.st_mode & 07555) < 0)
|
H A D | export-raw.c | 68 struct stat st; member in struct:RawExport 134 if (e->written_uncompressed >= (uint64_t) e->st.st_size) 137 percent = (unsigned) ((e->written_uncompressed * UINT64_C(100)) / (uint64_t) e->st.st_size); 320 if (fstat(sfd, &e->st) < 0) 322 if (!S_ISREG(e->st.st_mode))
|
H A D | export-tar.c | 60 struct stat st; member in struct:TarExport 271 if (fstat(sfd, &e->st) < 0) 284 if (e->st.st_ino == 256) { /* might be a btrfs subvolume? */
|
H A D | import-raw.c | 77 struct stat st; member in struct:RawImport 156 if (!S_ISREG(i->st.st_mode)) 159 if (i->written_compressed >= (uint64_t) i->st.st_size) 162 percent = (unsigned) ((i->written_compressed * UINT64_C(100)) / (uint64_t) i->st.st_size); 240 if (S_ISREG(i->st.st_mode)) { 304 if (!S_ISREG(i->st.st_mode)) 450 if (fstat(fd, &i->st) < 0)
|
/systemd/src/timesync/ |
H A D | timesyncd.c | 48 struct stat st; local 52 r = fstat(fd, &st); 54 stamp = timespec_load(&st.st_mtim);
|
/systemd/src/update-done/ |
H A D | update-done.c | 35 struct stat st; local 40 if (stat(path, &st) >= 0) { 49 if (st.st_mtim.tv_sec > ts->tv_sec) 92 struct stat st; local 99 if (stat("/usr", &st) < 0) { 110 r = apply_timestamp("/etc/.updated", &st.st_mtim); 111 q = apply_timestamp("/var/.updated", &st.st_mtim);
|
/systemd/src/journal/ |
H A D | test-journal-verify.c | 77 struct stat st; local 131 assert_se(stat("test.journal", &st) >= 0); 133 for (p = 38448*8+0; p < ((uint64_t) st.st_size * 8); p ++) {
|
/systemd/src/resolve/ |
H A D | resolved-resolv-conf.c | 35 struct stat st, own; local 48 r = stat("/etc/resolv.conf", &st); 58 t = timespec_load(&st.st_mtim); 64 st.st_dev == own.st_dev && 65 st.st_ino == own.st_ino) 77 if (fstat(fileno(f), &st) < 0) {
|
/systemd/src/test/ |
H A D | test-process-util.c | 36 struct stat st; local 46 if (stat("/proc/1/comm", &st) == 0) {
|
/systemd/src/coredump/ |
H A D | coredump-vacuum.c | 171 struct stat st; local 179 if (fstatat(dirfd(d), de->d_name, &st, AT_NO_AUTOMOUNT|AT_SYMLINK_NOFOLLOW) < 0) { 187 if (!S_ISREG(st.st_mode)) 191 exclude_st.st_dev == st.st_dev && 192 exclude_st.st_ino == st.st_ino) 199 t = timespec_load(&st.st_mtim); 244 sum += st.st_blocks * 512;
|
/systemd/src/shared/ |
H A D | clean-ipc.c | 211 struct stat st; local 216 if (fstatat(dirfd(dir), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { 225 if (st.st_uid != uid) 228 if (S_ISDIR(st.st_mode)) { 299 struct stat st; local 305 if (fstatat(dirfd(dir), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { 315 if (st.st_uid != uid)
|
/systemd/src/udev/ |
H A D | udev-builtin-blkid.c | 192 struct stat st; local 195 if (fstat(blkid_probe_get_fd(pr), &st)) 200 if (!S_ISCHR(st.st_mode) &&
|
/systemd/src/bootchart/ |
H A D | store.c | 229 _cleanup_fclose_ FILE *st = NULL; local 308 st = fdopen(fd, "re"); 309 if (!st) { 314 if (!fscanf(st, "%*s %*s %*s %i", &p))
|
/systemd/src/cryptsetup/ |
H A D | cryptsetup-generator.c | 362 struct stat st; local 376 if (fstat(fileno(f), &st) < 0) {
|
/systemd/src/fsck/ |
H A D | fsck.c | 281 struct stat st; local 310 if (stat(device, &st) < 0) { 315 if (!S_ISBLK(st.st_mode)) { 321 r = sd_device_new_from_devnum(&dev, 'b', st.st_rdev); 333 if (stat("/", &st) < 0) { 339 if (major(st.st_dev) == 0) { 346 times[0] = st.st_atim; 347 times[1] = st.st_mtim; 355 r = sd_device_new_from_devnum(&dev, 'b', st.st_dev);
|