Home
last modified time | relevance | path

Searched refs:st_buf (Results 1 – 9 of 9) sorted by relevance

/external/e2fsprogs/misc/
Dismounted.c84 struct stat st_buf; in check_mntent_file() local
94 if (stat(file, &st_buf) == 0) { in check_mntent_file()
95 if (S_ISBLK(st_buf.st_mode)) { in check_mntent_file()
97 file_rdev = st_buf.st_rdev; in check_mntent_file()
100 file_dev = st_buf.st_dev; in check_mntent_file()
101 file_ino = st_buf.st_ino; in check_mntent_file()
122 if (stat(device, &st_buf) == 0) { in check_mntent_file()
123 if (S_ISBLK(st_buf.st_mode)) { in check_mntent_file()
125 if (file_rdev && (file_rdev == st_buf.st_rdev)) in check_mntent_file()
129 if (file_dev && ((file_dev == st_buf.st_dev) && in check_mntent_file()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dismounted.c100 struct stat st_buf; in check_mntent_file() local
118 if (stat(file, &st_buf) == 0) { in check_mntent_file()
119 if (ext2fsP_is_disk_device(st_buf.st_mode)) { in check_mntent_file()
121 file_rdev = st_buf.st_rdev; in check_mntent_file()
124 file_dev = st_buf.st_dev; in check_mntent_file()
125 file_ino = st_buf.st_ino; in check_mntent_file()
133 if (stat(mnt->mnt_fsname, &st_buf) == 0) { in check_mntent_file()
134 if (ext2fsP_is_disk_device(st_buf.st_mode)) { in check_mntent_file()
136 if (file_rdev && (file_rdev == st_buf.st_rdev)) in check_mntent_file()
139 st_buf.st_rdev, file_dev, in check_mntent_file()
[all …]
/external/ltp/testcases/kernel/syscalls/nftw/
Dtest_func64.c173 struct stat st_buf; in test_func8() local
189 stat(path_name, &st_buf) : lstat(path_name, in test_func8()
190 &st_buf)) == -1) { in test_func8()
195 if (st_buf.st_dev != stat_pointer->st_dev) { in test_func8()
202 if (st_buf.st_ino != stat_pointer->st_ino) { in test_func8()
209 if (st_buf.st_mode != stat_pointer->st_mode) { in test_func8()
216 if (st_buf.st_nlink != stat_pointer->st_nlink) { in test_func8()
223 if (st_buf.st_uid != stat_pointer->st_uid) { in test_func8()
230 if (st_buf.st_gid != stat_pointer->st_gid) { in test_func8()
237 if (st_buf.st_size != stat_pointer->st_size) { in test_func8()
Dtest_func.c172 struct stat st_buf; in test_func8() local
187 stat(path_name, &st_buf) : lstat(path_name, in test_func8()
188 &st_buf)) == -1) { in test_func8()
193 if (st_buf.st_dev != stat_pointer->st_dev) { in test_func8()
200 if (st_buf.st_ino != stat_pointer->st_ino) { in test_func8()
207 if (st_buf.st_mode != stat_pointer->st_mode) { in test_func8()
214 if (st_buf.st_nlink != stat_pointer->st_nlink) { in test_func8()
221 if (st_buf.st_uid != stat_pointer->st_uid) { in test_func8()
228 if (st_buf.st_gid != stat_pointer->st_gid) { in test_func8()
235 if (st_buf.st_size != stat_pointer->st_size) { in test_func8()
/external/minijail/
Dsystem.c292 struct stat st_buf; in setup_mount_destination() local
295 rc = stat(dest, &st_buf); in setup_mount_destination()
309 rc = stat(source, &st_buf); in setup_mount_destination()
327 domkdir = S_ISDIR(st_buf.st_mode) || in setup_mount_destination()
328 (!bind && (S_ISBLK(st_buf.st_mode) || in setup_mount_destination()
329 S_ISCHR(st_buf.st_mode))); in setup_mount_destination()
/external/e2fsprogs/resize/
Dmain.c265 ext2fs_struct_stat st_buf; in main() local
371 ret = ext2fs_fstat(fd, &st_buf); in main()
389 if (!S_ISREG(st_buf.st_mode )) { in main()
555 (((__u64) 1) << (sizeof(st_buf.st_size)*8 - 1)) - 1) in main()
557 if ((new_file_size > st_buf.st_size) && in main()
644 if ((st_buf.st_size > new_file_size) && in main()
/external/f2fs-tools/lib/
Dlibf2fs.c739 struct stat *st_buf; in f2fs_dev_is_umounted()
790 st_buf = malloc(sizeof(struct stat)); in f2fs_dev_is_umounted()
791 ASSERT(st_buf); in f2fs_dev_is_umounted()
793 if (stat(path, st_buf) == 0 && S_ISBLK(st_buf->st_mode)) { in f2fs_dev_is_umounted()
800 free(st_buf); in f2fs_dev_is_umounted()
804 free(st_buf); in f2fs_dev_is_umounted()
/external/curl/src/
Dtool_doswin.c467 struct_stat st_buf; in rename_if_reserved_dos_device_name() local
564 if(base && ((stat(base, &st_buf)) == 0) && (S_ISCHR(st_buf.st_mode))) { in rename_if_reserved_dos_device_name()
/external/fastrpc/src/
Dapps_std_imp.c506 struct stat st_buf; in __QAIC_IMPL() local
508 C_ASSERT(sizeof(st_buf.st_size) <= sizeof(*len)); in __QAIC_IMPL()
514 if(0 != fstat(fd, &st_buf)) { in __QAIC_IMPL()
519 *len = st_buf.st_size; in __QAIC_IMPL()
899 struct stat st_buf; in __QAIC_IMPL() local
908 VERIFYC(0 == fstat(fd, &st_buf), AEE_EFLEN); in __QAIC_IMPL()
909 sz = (int)st_buf.st_size; in __QAIC_IMPL()