/qemu/hw/9pfs/ |
H A D | 9p-local.c | 190 int dirfd; in local_lstat() local 479 int dirfd; in local_readlink() local 521 int dirfd; in local_opendir() local 641 int dirfd; in local_chmod() local 668 int dirfd; in local_mknod() local 720 int dirfd; in local_mkdir() local 819 int dirfd; in local_open2() local 883 int dirfd; in local_symlink() local 1047 int dirfd; in local_chown() local 1142 int dirfd; in local_remove() local [all …]
|
H A D | 9p-xattr.c | 81 int dirfd; in v9fs_list_xattr() local 87 if (dirfd == -1) { in v9fs_list_xattr() 103 close_preserve_errno(dirfd); in v9fs_list_xattr() 171 int dirfd; in local_getxattr_nofollow() local 175 if (dirfd == -1) { in local_getxattr_nofollow() 180 close_preserve_errno(dirfd); in local_getxattr_nofollow() 199 int dirfd; in local_setxattr_nofollow() local 203 if (dirfd == -1) { in local_setxattr_nofollow() 208 close_preserve_errno(dirfd); in local_setxattr_nofollow() 226 int dirfd; in local_removexattr_nofollow() local [all …]
|
H A D | 9p-util-linux.c | 22 ssize_t fgetxattrat_nofollow(int dirfd, const char *filename, const char *name, in fgetxattrat_nofollow() argument 25 char *proc_path = g_strdup_printf("/proc/self/fd/%d/%s", dirfd, filename); in fgetxattrat_nofollow() 33 ssize_t flistxattrat_nofollow(int dirfd, const char *filename, in flistxattrat_nofollow() argument 36 char *proc_path = g_strdup_printf("/proc/self/fd/%d/%s", dirfd, filename); in flistxattrat_nofollow() 44 ssize_t fremovexattrat_nofollow(int dirfd, const char *filename, in fremovexattrat_nofollow() argument 47 char *proc_path = g_strdup_printf("/proc/self/fd/%d/%s", dirfd, filename); in fremovexattrat_nofollow() 55 int fsetxattrat_nofollow(int dirfd, const char *filename, const char *name, in fsetxattrat_nofollow() argument 58 char *proc_path = g_strdup_printf("/proc/self/fd/%d/%s", dirfd, filename); in fsetxattrat_nofollow() 67 int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev) in qemu_mknodat() argument 69 return mknodat(dirfd, filename, mode, dev); in qemu_mknodat()
|
H A D | 9p-util-darwin.c | 14 ssize_t fgetxattrat_nofollow(int dirfd, const char *filename, const char *name, in fgetxattrat_nofollow() argument 18 int fd = openat_file(dirfd, filename, in fgetxattrat_nofollow() 28 ssize_t flistxattrat_nofollow(int dirfd, const char *filename, in flistxattrat_nofollow() argument 32 int fd = openat_file(dirfd, filename, in flistxattrat_nofollow() 42 ssize_t fremovexattrat_nofollow(int dirfd, const char *filename, in fremovexattrat_nofollow() argument 46 int fd = openat_file(dirfd, filename, O_PATH_9P_UTIL | O_NOFOLLOW, 0); in fremovexattrat_nofollow() 55 int fsetxattrat_nofollow(int dirfd, const char *filename, const char *name, in fsetxattrat_nofollow() argument 59 int fd = openat_file(dirfd, filename, O_PATH_9P_UTIL | O_NOFOLLOW, 0); in fsetxattrat_nofollow() 113 int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev) in qemu_mknodat() argument 118 int fd = openat_file(dirfd, filename, O_CREAT, mode); in qemu_mknodat() [all …]
|
H A D | 9p-util.h | 146 static inline int openat_dir(int dirfd, const char *name) in openat_dir() argument 148 return qemu_openat(dirfd, name, in openat_dir() 152 static inline int openat_file(int dirfd, const char *name, int flags, in openat_file() argument 160 fd = qemu_openat(dirfd, name, flags | O_NOFOLLOW | O_NOCTTY | O_NONBLOCK, in openat_file() 197 ssize_t fgetxattrat_nofollow(int dirfd, const char *path, const char *name, 199 int fsetxattrat_nofollow(int dirfd, const char *path, const char *name, 201 ssize_t flistxattrat_nofollow(int dirfd, const char *filename, 203 ssize_t fremovexattrat_nofollow(int dirfd, const char *filename, 261 int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev);
|
H A D | 9p-proxy.c | 835 fd = dirfd(fs->dir.stream); in proxy_fstat() 977 fd = dirfd(fs->dir.stream); in proxy_fsync()
|
/qemu/qga/ |
H A D | commands-posix.c | 2026 int dirfd; in transfer_vcpu() local 2030 if (dirfd == -1) { in transfer_vcpu() 2070 res = close(dirfd); in transfer_vcpu() 2211 fd = openat(dirfd, pathname, O_RDONLY); in ga_read_sysfs_file() 2265 int dirfd; in transfer_memory_block() local 2295 if (dirfd == -1) { in transfer_memory_block() 2371 close(dirfd); in transfer_memory_block() 2376 close(dirfd); in transfer_memory_block() 2481 int dirfd; in qmp_guest_get_memory_block_info() local 2487 if (dirfd == -1) { in qmp_guest_get_memory_block_info() [all …]
|
/qemu/system/ |
H A D | async-teardown.c | 52 dfd = dirfd(dir); in close_all_open_fd()
|
/qemu/tests/qtest/libqos/ |
H A D | virtio-9p-client.c | 1016 g_assert(!opt.atPath || !opt.dirfd); in v9fs_tunlinkat() 1019 opt.dirfd = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tunlinkat() 1030 v9fs_uint32_write(req, opt.dirfd); in v9fs_tunlinkat()
|
H A D | virtio-9p-client.h | 425 uint32_t dirfd; member
|
/qemu/linux-user/ |
H A D | qemu.h | 165 int do_guest_openat(CPUArchState *cpu_env, int dirfd, const char *pathname,
|
H A D | syscall.c | 466 _syscall4(int,sys_utimensat,int,dirfd,const char *,pathname, 469 static int sys_utimensat(int dirfd, const char *pathname, 8371 return openat(dirfd, exec_path, flags, mode); in do_guest_openat() 8417 return openat(dirfd, path(pathname), flags, mode); in do_guest_openat() 8451 static int do_execv(CPUArchState *cpu_env, int dirfd, in do_execv() argument 8537 ? safe_execveat(dirfd, exe, argp, envp, flags) in do_execv() 8670 hlen = sys_getdents(dirfd, hdirp, count); in do_getdents() 8672 hlen = sys_getdents64(dirfd, hdirp, count); in do_getdents() 8715 lseek64(dirfd, prev_diroff, SEEK_SET); in do_getdents() 8791 lseek64(dirfd, prev_diroff, SEEK_SET); in do_getdents64() [all …]
|
H A D | strace.c | 1548 print_at_dirfd(abi_long dirfd, int last) in print_at_dirfd() argument 1551 if (dirfd == AT_FDCWD) { in print_at_dirfd() 1556 qemu_log("%d%s", (int)dirfd, get_comma(last)); in print_at_dirfd()
|