Home
last modified time | relevance | path

Searched refs:stbuf (Results 1 – 25 of 25) sorted by relevance

/external/libfuse/lib/
Dfuse_misc.h38 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) argument
39 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec) argument
40 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec) argument
41 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atim.tv_nsec = (val) argument
42 #define ST_CTIM_NSEC_SET(stbuf, val) (stbuf)->st_ctim.tv_nsec = (val) argument
43 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val) argument
46 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec) argument
47 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec) argument
48 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec) argument
49 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec = (val) argument
[all …]
Dfuse_lowlevel.c58 static void convert_stat(const struct stat *stbuf, struct fuse_attr *attr) in convert_stat() argument
60 attr->ino = stbuf->st_ino; in convert_stat()
61 attr->mode = stbuf->st_mode; in convert_stat()
62 attr->nlink = stbuf->st_nlink; in convert_stat()
63 attr->uid = stbuf->st_uid; in convert_stat()
64 attr->gid = stbuf->st_gid; in convert_stat()
65 attr->rdev = stbuf->st_rdev; in convert_stat()
66 attr->size = stbuf->st_size; in convert_stat()
67 attr->blksize = stbuf->st_blksize; in convert_stat()
68 attr->blocks = stbuf->st_blocks; in convert_stat()
[all …]
Dmount_util.c43 struct stat stbuf; in mtab_needs_update() local
57 res = lstat(_PATH_MOUNTED, &stbuf); in mtab_needs_update()
65 if (S_ISLNK(stbuf.st_mode)) in mtab_needs_update()
Dmount.c391 struct stat stbuf; in fuse_mount_sys() local
400 res = stat(mnt, &stbuf); in fuse_mount_sys()
426 fd, stbuf.st_mode & S_IFMT, getuid(), getgid()); in fuse_mount_sys()
Dfuse.c1535 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf) in set_stat() argument
1538 stbuf->st_ino = nodeid; in set_stat()
1540 stbuf->st_mode = (stbuf->st_mode & S_IFMT) | in set_stat()
1543 stbuf->st_uid = f->conf.uid; in set_stat()
1545 stbuf->st_gid = f->conf.gid; in set_stat()
2473 static int mtime_eq(const struct stat *stbuf, const struct timespec *ts) in mtime_eq() argument
2475 return stbuf->st_mtime == ts->tv_sec && in mtime_eq()
2476 ST_MTIM_NSEC(stbuf) == ts->tv_nsec; in mtime_eq()
2497 static void update_stat(struct node *node, const struct stat *stbuf) in update_stat() argument
2499 if (node->cache_valid && (!mtime_eq(stbuf, &node->mtime) || in update_stat()
[all …]
/external/libcap/progs/
Dgetcap.c34 static int do_getcap(const char *fname, const struct stat *stbuf, in do_getcap() argument
94 struct stat stbuf; in main() local
96 if (lstat(argv[i], &stbuf) != 0) { in main()
101 int tflag = S_ISREG(stbuf.st_mode) ? FTW_F : in main()
102 (S_ISLNK(stbuf.st_mode) ? FTW_SL : FTW_NS); in main()
103 do_getcap(argv[i], &stbuf, tflag, 0); in main()
/external/libjpeg-turbo/md5/
Dmd5hl.c87 struct stat stbuf; in MD5FileChunk() local
99 if (fstat(f, &stbuf) < 0) in MD5FileChunk()
101 if (ofs > stbuf.st_size) in MD5FileChunk()
102 ofs = stbuf.st_size; in MD5FileChunk()
103 if ((len == 0) || (len > stbuf.st_size - ofs)) in MD5FileChunk()
104 len = stbuf.st_size - ofs; in MD5FileChunk()
/external/bsdiff/
Dfile.cc91 struct stat stbuf; in GetSize() local
92 if (fstat(fd_, &stbuf) == -1) in GetSize()
94 if (S_ISREG(stbuf.st_mode)) { in GetSize()
95 *size = stbuf.st_size; in GetSize()
98 if (S_ISBLK(stbuf.st_mode)) { in GetSize()
/external/ltp/testcases/kernel/uevents/
Duevent03.c40 struct stat stbuf; in get_minor_major() local
44 SAFE_STAT(path, &stbuf); in get_minor_major()
46 snprintf(major, buf_sizes, "MAJOR=%i", major(stbuf.st_rdev)); in get_minor_major()
47 snprintf(minor, buf_sizes, "MINOR=%i", minor(stbuf.st_rdev)); in get_minor_major()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_image.c91 struct st_buffer_object *stbuf = in st_convert_image() local
95 if (!stbuf || !stbuf->buffer) { in st_convert_image()
99 struct pipe_resource *buf = stbuf->buffer; in st_convert_image()
105 img->resource = stbuf->buffer; in st_convert_image()
/external/f2fs-tools/tools/f2fs_io/
Df2fs_io.c571 struct stat stbuf; in do_randread() local
594 if (fstat(fd, &stbuf) != 0) in do_randread()
597 aligned_size = (u64)stbuf.st_size & ~((u64)(4096 - 1)); in do_randread()
782 struct stat stbuf; in do_copy() local
785 if (fstat(src_fd, &stbuf) != 0) in do_copy()
788 if ((size_t)stbuf.st_size != stbuf.st_size) in do_copy()
791 src_addr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_SHARED, in do_copy()
796 full_write(dst_fd, src_addr, stbuf.st_size); in do_copy()
798 munmap(src_addr, stbuf.st_size); in do_copy()
/external/e2fsprogs/util/
Dsubst.c333 struct stat stbuf; in main() local
392 if (fstat(fd, &stbuf) == 0) { in main()
394 tv[0].tv_sec = stbuf.st_atim.tv_sec; in main()
395 tv[0].tv_usec = stbuf.st_atim.tv_nsec / 1000; in main()
397 tv[0].tv_sec = stbuf.st_atime; in main()
Dsymlinks.c170 struct stat stbuf, lstbuf; in fix_symlink() local
194 if (stat(abspath, &stbuf) == -1) { in fix_symlink()
/external/fsverity-utils/
Dutil.c110 struct stat stbuf; in get_file_size() local
112 if (fstat(file->fd, &stbuf) != 0) { in get_file_size()
116 *size_ret = stbuf.st_size; in get_file_size()
/external/mksh/src/
Dcheck.pl1282 local(@stbuf);
1296 @stbuf = lstat($name);
1297 if (!@stbuf) {
1301 if ($perm ne '*' && ($stbuf[2] & 07777) != $perm) {
1304 $perm, $stbuf[2] & 07777);
1306 if ($uid ne '*' && $stbuf[4] != $uid) {
1309 $uid, $stbuf[4]);
1311 if ($gid ne '*' && $stbuf[5] != $gid) {
1314 $gid, $stbuf[5]);
/external/llvm/test/CodeGen/X86/
Davx512-gather-scatter-intrin.ll14 define void @gather_mask_dps(<16 x i32> %ind, <16 x float> %src, i16 %mask, i8* %base, i8* %stbuf) …
25 …call void @llvm.x86.avx512.scatter.dps.512 (i8* %stbuf, i16 %mask, <16 x i32>%ind2, <16 x float> %…
29 define void @gather_mask_dpd(<8 x i32> %ind, <8 x double> %src, i8 %mask, i8* %base, i8* %stbuf) {
40 …call void @llvm.x86.avx512.scatter.dpd.512 (i8* %stbuf, i8 %mask, <8 x i32>%ind2, <8 x double> %x,…
44 define void @gather_mask_qps(<8 x i64> %ind, <8 x float> %src, i8 %mask, i8* %base, i8* %stbuf) {
55 …call void @llvm.x86.avx512.scatter.qps.512 (i8* %stbuf, i8 %mask, <8 x i64>%ind2, <8 x float> %x, …
59 define void @gather_mask_qpd(<8 x i64> %ind, <8 x double> %src, i8 %mask, i8* %base, i8* %stbuf) {
70 …call void @llvm.x86.avx512.scatter.qpd.512 (i8* %stbuf, i8 %mask, <8 x i64>%ind2, <8 x double> %x,…
86 define void @gather_mask_dd(<16 x i32> %ind, <16 x i32> %src, i16 %mask, i8* %base, i8* %stbuf) {
97 …call void @llvm.x86.avx512.scatter.dpi.512 (i8* %stbuf, i16 %mask, <16 x i32>%ind2, <16 x i32> %x,…
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Davx512-gather-scatter-intrin.ll14 define void @gather_mask_dps(<16 x i32> %ind, <16 x float> %src, i16 %mask, i8* %base, i8* %stbuf) …
26 …call void @llvm.x86.avx512.scatter.dps.512 (i8* %stbuf, i16 %mask, <16 x i32>%ind2, <16 x float> %…
30 define void @gather_mask_dpd(<8 x i32> %ind, <8 x double> %src, i8 %mask, i8* %base, i8* %stbuf) {
42 …call void @llvm.x86.avx512.scatter.dpd.512 (i8* %stbuf, i8 %mask, <8 x i32>%ind2, <8 x double> %x,…
46 define void @gather_mask_qps(<8 x i64> %ind, <8 x float> %src, i8 %mask, i8* %base, i8* %stbuf) {
58 …call void @llvm.x86.avx512.scatter.qps.512 (i8* %stbuf, i8 %mask, <8 x i64>%ind2, <8 x float> %x, …
62 define void @gather_mask_qpd(<8 x i64> %ind, <8 x double> %src, i8 %mask, i8* %base, i8* %stbuf) {
74 …call void @llvm.x86.avx512.scatter.qpd.512 (i8* %stbuf, i8 %mask, <8 x i64>%ind2, <8 x double> %x,…
90 define void @gather_mask_dd(<16 x i32> %ind, <16 x i32> %src, i16 %mask, i8* %base, i8* %stbuf) {
102 …call void @llvm.x86.avx512.scatter.dpi.512 (i8* %stbuf, i16 %mask, <16 x i32>%ind2, <16 x i32> %x,…
[all …]
/external/iputils/
Dtftpd.c284 struct stat stbuf; in validate_access() local
306 if (stat(filename, &stbuf) < 0) { in validate_access()
311 if ((stbuf.st_mode&(S_IREAD >> 6)) == 0) { in validate_access()
316 if ((stbuf.st_mode&(S_IWRITE >> 6)) == 0) { in validate_access()
/external/ltp/testcases/kernel/hotplug/memory_hotplug/
Dsegment.c291 struct stat stbuf; in open_file() local
294 if (stat(segp->seg_path, &stbuf) < 0) { in open_file()
305 if (!S_ISREG(stbuf.st_mode)) { in open_file()
349 struct stat stbuf; in file_size() local
351 if (fstat(fd, &stbuf) != 0) { in file_size()
355 return stbuf.st_size; in file_size()
/external/libfuse/lib/modules/
Diconv.c102 static int iconv_getattr(const char *path, struct stat *stbuf, in iconv_getattr() argument
109 err = fuse_fs_getattr(ic->next, newpath, stbuf, fi); in iconv_getattr()
161 const struct stat *stbuf, off_t off, in iconv_dir_fill() argument
168 res = dh->prev_filler(dh->prev_buf, newname, stbuf, off, flags); in iconv_dir_fill()
407 static int iconv_statfs(const char *path, struct statvfs *stbuf) in iconv_statfs() argument
413 err = fuse_fs_statfs(ic->next, newpath, stbuf); in iconv_statfs()
Dsubdir.c53 static int subdir_getattr(const char *path, struct stat *stbuf, in subdir_getattr() argument
60 err = fuse_fs_getattr(d->next, newpath, stbuf, fi); in subdir_getattr()
393 static int subdir_statfs(const char *path, struct statvfs *stbuf) in subdir_statfs() argument
399 err = fuse_fs_statfs(d->next, newpath, stbuf); in subdir_statfs()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c1958 struct stat stbuf; in growfile() local
1967 if (fstat(fd, &stbuf) != -1) { in growfile()
1968 if (S_ISFIFO(stbuf.st_mode)) { in growfile()
1976 fsize = stbuf.st_size; in growfile()
2085 if (fstat(fd, &stbuf) != -1) { in growfile()
2086 Woffset = stbuf.st_size; in growfile()
2100 (int)stbuf.st_size); in growfile()
2145 (long)Woffset, (int)stbuf.st_size); in growfile()
2604 struct stat stbuf; in check_write() local
2605 fstat(fd, &stbuf); in check_write()
[all …]
/external/libfuse/include/
Dfuse_lowlevel.h1473 int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf);
1543 const char *name, const struct stat *stbuf,
Dfuse.h83 const struct stat *stbuf, off_t off,
/external/ltp/testcases/kernel/syscalls/symlink/
Dsymlink01.c1532 struct stat stbuf; in do_link() local
1561 &stbuf); in do_link()
1567 stbuf.st_nlink); in do_link()