/third_party/ntfs-3g/libfuse-lite/ |
D | fuse_misc.h | 27 #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_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val) argument 34 #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec) argument 35 #define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec) argument 36 #define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec) argument 37 #define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec = (val) argument 38 #define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtimespec.tv_nsec = (val) argument [all …]
|
D | fuse_lowlevel.c | 75 static void convert_stat(const struct stat *stbuf, struct fuse_attr *attr) in convert_stat() argument 77 attr->ino = stbuf->st_ino; in convert_stat() 78 attr->mode = stbuf->st_mode; in convert_stat() 79 attr->nlink = stbuf->st_nlink; in convert_stat() 80 attr->uid = stbuf->st_uid; in convert_stat() 81 attr->gid = stbuf->st_gid; in convert_stat() 84 attr->rdev = ((major(stbuf->st_rdev) & 0x3fff) << 18) in convert_stat() 85 | (minor(stbuf->st_rdev) & 0x3ffff); in convert_stat() 87 attr->rdev = stbuf->st_rdev; in convert_stat() 89 attr->size = stbuf->st_size; in convert_stat() [all …]
|
D | fusermount.c | 468 static int check_perm(const char **mntp, struct stat *stbuf, int *currdir_fd, in check_perm() argument 475 res = stat(mnt, stbuf); in check_perm() 486 if (S_ISDIR(stbuf->st_mode)) { in check_perm() 500 res = lstat(mnt, stbuf); in check_perm() 507 if ((stbuf->st_mode & S_ISVTX) && stbuf->st_uid != getuid()) { in check_perm() 519 } else if (S_ISREG(stbuf->st_mode)) { in check_perm() 527 res = fstat(*mountpoint_fd, stbuf); in check_perm() 533 if (!S_ISREG(stbuf->st_mode)) { in check_perm() 598 struct stat stbuf; in mount_fuse() local 618 res = check_perm(&real_mnt, &stbuf, &currdir_fd, &mountpoint_fd); in mount_fuse() [all …]
|
D | mount_util.c | 39 struct stat stbuf; in mtab_needs_update() local 46 if (lstat(_PATH_MOUNTED, &stbuf) != -1 && S_ISLNK(stbuf.st_mode)) in mtab_needs_update() 270 struct stat stbuf; in mtab_needs_update() local 284 res = lstat(_PATH_MOUNTED, &stbuf); in mtab_needs_update() 289 if (S_ISLNK(stbuf.st_mode)) in mtab_needs_update()
|
D | mount.c | 488 struct stat stbuf; in fuse_mount_sys() local 497 res = lstat(mnt, &stbuf); in fuse_mount_sys() 505 res = fuse_mnt_check_empty("fuse", mnt, stbuf.st_mode, stbuf.st_size); in fuse_mount_sys() 522 stbuf.st_mode & S_IFMT, getuid(), getgid()); in fuse_mount_sys()
|
D | fuse.c | 626 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf) in set_stat() argument 629 stbuf->st_ino = nodeid; in set_stat() 631 stbuf->st_mode = (stbuf->st_mode & S_IFMT) | (0777 & ~f->conf.umask); in set_stat() 633 stbuf->st_uid = f->conf.uid; in set_stat() 635 stbuf->st_gid = f->conf.gid; in set_stat() 1127 static int mtime_eq(const struct stat *stbuf, const struct timespec *ts) in mtime_eq() argument 1129 return stbuf->st_mtime == ts->tv_sec && ST_MTIM_NSEC(stbuf) == ts->tv_nsec; in mtime_eq() 1150 static void update_stat(struct node *node, const struct stat *stbuf) in update_stat() argument 1152 if (node->cache_valid && (!mtime_eq(stbuf, &node->mtime) || in update_stat() 1153 stbuf->st_size != node->size)) in update_stat() [all …]
|
/third_party/libjpeg-turbo/md5/ |
D | md5hl.c | 87 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()
|
/third_party/skia/third_party/externals/libjpeg-turbo/md5/ |
D | md5hl.c | 87 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()
|
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/md5/ |
D | md5hl.c | 87 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()
|
/third_party/ntfs-3g/src/ |
D | lowntfs-3g.c | 418 struct stat stbuf; in ntfs_allowed_dir_access() local 433 allowed = (ntfs_get_owner_mode(scx,ni2,&stbuf) >= 0) in ntfs_allowed_dir_access() 434 && (stbuf.st_uid == scx->uid); in ntfs_allowed_dir_access() 654 struct stat *stbuf) in junction_getstat() argument 668 stbuf->st_size = strlen(target); in junction_getstat() 670 stbuf->st_size = ntfs_bad_reparse_lth; in junction_getstat() 671 stbuf->st_blocks = (ni->allocated_size + 511) >> 9; in junction_getstat() 672 stbuf->st_mode = S_IFLNK; in junction_getstat() 682 struct stat *stbuf) in wsl_getstat() argument 691 stbuf->st_mode = S_IFSOCK; in wsl_getstat() [all …]
|
D | ntfs-3g.c | 337 struct stat stbuf; in ntfs_allowed_dir_access() local 381 allowed = (ntfs_get_owner_mode(scx,ni2,&stbuf) in ntfs_allowed_dir_access() 383 && (stbuf.st_uid == scx->uid); in ntfs_allowed_dir_access() 712 struct stat *stbuf) in junction_getattr() argument 726 stbuf->st_size = strlen(target); in junction_getattr() 728 stbuf->st_size = ntfs_bad_reparse_lth; in junction_getattr() 729 stbuf->st_blocks = (ni->allocated_size + 511) >> 9; in junction_getattr() 730 stbuf->st_mode = S_IFLNK; in junction_getattr() 740 struct stat *stbuf) in wsl_getattr() argument 749 stbuf->st_mode = S_IFSOCK; in wsl_getattr() [all …]
|
D | ntfs-3g_common.c | 930 struct stat stbuf; local 938 && !ops->getattr(ni,reparse,&stbuf)) { 939 res = S_ISREG(stbuf.st_mode) 940 || S_ISDIR(stbuf.st_mode);
|
/third_party/nghttp2/examples/ |
D | asio-sv2.cc | 94 struct stat stbuf; in main() local 95 if (stat(path.c_str(), &stbuf) == 0) { in main() 97 header_value{std::to_string(stbuf.st_size)}); in main() 99 header_value{http_date(stbuf.st_mtime)}); in main()
|
/third_party/ltp/testcases/kernel/uevents/ |
D | uevent03.c | 40 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()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_image.c | 91 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()
|
/third_party/f2fs-tools/tools/f2fs_io/ |
D | f2fs_io.c | 619 struct stat stbuf; in do_randread() local 642 if (fstat(fd, &stbuf) != 0) in do_randread() 645 aligned_size = (u64)stbuf.st_size & ~((u64)(4096 - 1)); in do_randread() 830 struct stat stbuf; in do_copy() local 833 if (fstat(src_fd, &stbuf) != 0) in do_copy() 836 if ((size_t)stbuf.st_size != stbuf.st_size) in do_copy() 839 src_addr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_SHARED, in do_copy() 844 full_write(dst_fd, src_addr, stbuf.st_size); in do_copy() 846 munmap(src_addr, stbuf.st_size); in do_copy()
|
/third_party/e2fsprogs/util/ |
D | subst.c | 333 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()
|
D | symlinks.c | 170 struct stat stbuf, lstbuf; in fix_symlink() local 194 if (stat(abspath, &stbuf) == -1) { in fix_symlink()
|
/third_party/mksh/ |
D | check.pl | 1282 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]);
|
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/ |
D | segment.c | 291 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()
|
/third_party/ntfs-3g/include/fuse-lite/ |
D | fuse_lowlevel_compat.h | 14 char *fuse_add_dirent(char *buf, const char *name, const struct stat *stbuf,
|
/third_party/node/src/ |
D | v8ustack.d | 203 this->stbuf = (uint16_t *)alloca(MAX_TWOBYTESTR_BYTES + 2); \ 205 MAX_TWOBYTESTR_BYTES, this->stbuf); \ 206 this->stbuf[MAX_TWOBYTESTR_BYTES - 1] = '\0'; \ 207 this->stbuf[MAX_TWOBYTESTR_BYTES] = '\0'; \ 211 APPEND_CHR(TO_ASCII(this->stbuf[this->i])))))) \ 214 this->stbuf = 0; \
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | growfiles.c | 1958 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 …]
|
/third_party/ntfs-3g/libntfs-3g/ |
D | security.c | 2439 ntfs_inode * ni, struct stat *stbuf) in ntfs_get_owner_mode() argument 2465 stbuf->st_uid = cached->uid; in ntfs_get_owner_mode() 2466 stbuf->st_gid = cached->gid; in ntfs_get_owner_mode() 2467 stbuf->st_mode = (stbuf->st_mode & ~07777) + perm; in ntfs_get_owner_mode() 2517 stbuf->st_uid = ntfs_find_user(scx->mapping[MAPUSERS],usid); in ntfs_get_owner_mode() 2520 stbuf->st_uid = in ntfs_get_owner_mode() 2523 if (stbuf->st_uid) in ntfs_get_owner_mode() 2526 stbuf->st_uid = ntfs_find_user(scx->mapping[MAPUSERS],usid); in ntfs_get_owner_mode() 2528 stbuf->st_gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid); in ntfs_get_owner_mode() 2529 stbuf->st_mode = in ntfs_get_owner_mode() [all …]
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | plugin.h | 60 struct stat *stbuf);
|