Home
last modified time | relevance | path

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

12

/external/libfuse/lib/
Dfuse_misc.h27 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) argument
28 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec) argument
29 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec) argument
30 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atim.tv_nsec = (val) argument
31 #define ST_CTIM_NSEC_SET(stbuf, val) (stbuf)->st_ctim.tv_nsec = (val) argument
32 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val) argument
35 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec) argument
36 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec) argument
37 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec) argument
38 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec = (val) argument
[all …]
Dfuse_lowlevel.c59 static void convert_stat(const struct stat *stbuf, struct fuse_attr *attr) in convert_stat() argument
61 attr->ino = stbuf->st_ino; in convert_stat()
62 attr->mode = stbuf->st_mode; in convert_stat()
63 attr->nlink = stbuf->st_nlink; in convert_stat()
64 attr->uid = stbuf->st_uid; in convert_stat()
65 attr->gid = stbuf->st_gid; in convert_stat()
66 attr->rdev = stbuf->st_rdev; in convert_stat()
67 attr->size = stbuf->st_size; in convert_stat()
68 attr->blksize = stbuf->st_blksize; in convert_stat()
69 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/erofs-utils/include/erofs/
Ddefs.h302 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) argument
303 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec) argument
304 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec) argument
307 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimensec) argument
308 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimensec) argument
309 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimensec) argument
311 #define ST_ATIM_NSEC(stbuf) 0 argument
312 #define ST_CTIM_NSEC(stbuf) 0 argument
313 #define ST_MTIM_NSEC(stbuf) 0 argument
/external/erofs-utils/fuse/
Dmain.c82 static int erofsfuse_getattr(const char *path, struct stat *stbuf) in erofsfuse_getattr() argument
92 stbuf->st_mode = vi.i_mode; in erofsfuse_getattr()
93 stbuf->st_nlink = vi.i_nlink; in erofsfuse_getattr()
94 stbuf->st_size = vi.i_size; in erofsfuse_getattr()
95 stbuf->st_blocks = roundup(vi.i_size, EROFS_BLKSIZ) >> 9; in erofsfuse_getattr()
96 stbuf->st_uid = vi.i_uid; in erofsfuse_getattr()
97 stbuf->st_gid = vi.i_gid; in erofsfuse_getattr()
99 stbuf->st_rdev = vi.u.i_rdev; in erofsfuse_getattr()
100 stbuf->st_ctime = vi.i_mtime; in erofsfuse_getattr()
101 stbuf->st_mtime = stbuf->st_ctime; in erofsfuse_getattr()
[all …]
/external/libcap/progs/
Dgetcap.c36 static int do_getcap(const char *fname, const struct stat *stbuf, in do_getcap() argument
112 struct stat stbuf; in main() local
114 if (lstat(argv[i], &stbuf) != 0) { in main()
119 int tflag = S_ISREG(stbuf.st_mode) ? FTW_F : in main()
120 (S_ISLNK(stbuf.st_mode) ? FTW_SL : FTW_NS); in main()
121 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/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()
/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/fsverity-utils/programs/
Dutils.c123 struct stat stbuf; in get_file_size() local
125 if (fstat(file->fd, &stbuf) != 0) { in get_file_size()
129 *size_ret = stbuf.st_size; in get_file_size()
/external/f2fs-tools/tools/f2fs_io/
Df2fs_io.c746 struct stat stbuf; in do_randread() local
769 if (fstat(fd, &stbuf) != 0) in do_randread()
772 aligned_size = (u64)stbuf.st_size & ~((u64)(4096 - 1)); in do_randread()
977 struct stat stbuf; in do_copy() local
980 if (fstat(src_fd, &stbuf) != 0) in do_copy()
983 if ((size_t)stbuf.st_size != stbuf.st_size) in do_copy()
986 src_addr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_SHARED, in do_copy()
991 full_write(dst_fd, src_addr, stbuf.st_size); in do_copy()
993 munmap(src_addr, stbuf.st_size); in do_copy()
/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/mtools/
Dmcopy.c109 struct MT_STAT stbuf; in _unix_write() local
126 if (!MT_STAT(unixFile, &stbuf)) { in _unix_write()
129 if(!S_ISREG(stbuf.st_mode)) { in _unix_write()
138 stbuf.st_dev == srcStbuf.st_dev && in _unix_write()
139 stbuf.st_ino == srcStbuf.st_ino) { in _unix_write()
/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/libtracefs/src/
Dtracefs-utils.c324 char stbuf[BUFSIZ]; in str_read_file() local
339 r = read(fd, stbuf, BUFSIZ); in str_read_file()
350 memcpy(buf+size, stbuf, r); in str_read_file()
/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/libconfig/tests/
Dtests.c112 struct stat stbuf; in read_file_to_string() local
118 TT_ASSERT_INT_EQ(0, stat(file, &stbuf)); in read_file_to_string()
120 size = stbuf.st_size; in read_file_to_string()

12