| /openbmc/qemu/hw/9pfs/ |
| H A D | 9p-local.c | 110 static void unlinkat_preserve_errno(int dirfd, const char *path, int flags) in unlinkat_preserve_errno() argument 113 qemu_unlinkat(dirfd, path, flags); in unlinkat_preserve_errno() 120 static FILE *local_fopenat(int dirfd, const char *name, const char *mode) in local_fopenat() argument 136 fd = openat_file(dirfd, name, flags, o_mode); in local_fopenat() 148 static void local_mapped_file_attr(int dirfd, const char *name, in local_mapped_file_attr() argument 156 map_dirfd = openat_dir(dirfd, VIRTFS_META_DIR); in local_mapped_file_attr() 164 fp = local_fopenat(dirfd, VIRTFS_META_ROOT_FILE, "r"); in local_mapped_file_attr() 190 int dirfd; in local_lstat() local 192 dirfd = local_opendir_nofollow(fs_ctx, dirpath); in local_lstat() 193 if (dirfd == -1) { in local_lstat() [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-xattr.c | 81 int dirfd; in v9fs_list_xattr() local 85 dirfd = local_opendir_nofollow(ctx, dirpath); in v9fs_list_xattr() 87 if (dirfd == -1) { in v9fs_list_xattr() 92 xattr_len = flistxattrat_nofollow(dirfd, name, value, 0); in v9fs_list_xattr() 95 close_preserve_errno(dirfd); in v9fs_list_xattr() 101 xattr_len = flistxattrat_nofollow(dirfd, name, orig_value, xattr_len); in v9fs_list_xattr() 103 close_preserve_errno(dirfd); in v9fs_list_xattr() 171 int dirfd; in local_getxattr_nofollow() local 174 dirfd = local_opendir_nofollow(ctx, dirpath); in local_getxattr_nofollow() 175 if (dirfd == -1) { in local_getxattr_nofollow() [all …]
|
| 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 | 147 static inline int openat_dir(int dirfd, const char *name) in openat_dir() argument 149 return qemu_openat(dirfd, name, in openat_dir() 153 static inline int openat_file(int dirfd, const char *name, int flags, in openat_file() argument 161 fd = qemu_openat(dirfd, name, flags | O_NOFOLLOW | O_NOCTTY | O_NONBLOCK, in openat_file() 205 ssize_t fgetxattrat_nofollow(int dirfd, const char *path, const char *name, 207 int fsetxattrat_nofollow(int dirfd, const char *path, const char *name, 209 ssize_t flistxattrat_nofollow(int dirfd, const char *filename, 211 ssize_t fremovexattrat_nofollow(int dirfd, const char *filename, 269 int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev);
|
| /openbmc/qemu/qga/ |
| H A D | commands-linux.c | 1500 int dirfd; in transfer_vcpu() local 1503 dirfd = open(dirpath, O_RDONLY | O_DIRECTORY); in transfer_vcpu() 1504 if (dirfd == -1) { in transfer_vcpu() 1509 fd = openat(dirfd, fn, sys2vcpu ? O_RDONLY : O_RDWR); in transfer_vcpu() 1544 res = close(dirfd); in transfer_vcpu() 1621 static void ga_read_sysfs_file(int dirfd, const char *pathname, char *buf, in ga_read_sysfs_file() argument 1628 fd = openat(dirfd, pathname, O_RDONLY); in ga_read_sysfs_file() 1643 static void ga_write_sysfs_file(int dirfd, const char *pathname, in ga_write_sysfs_file() argument 1649 fd = openat(dirfd, pathname, O_WRONLY); in ga_write_sysfs_file() 1682 int dirfd; in transfer_memory_block() local [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/snapper/snapper/ |
| H A D | 0002-Use-statvfs-instead-of-statvfs64.patch | 30 - if (fstatvfs64(dirfd, &fsbuf) != 0) 33 + if (fstatvfs(dirfd, &fsbuf) != 0)
|
| H A D | 0001-Include-linux-types.h-for-__u16-__u32-__u64-type.patch | 10 85 | args.dirfd = (__u32) fddst;
|
| /openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-filesystems/zfs/zfs/ |
| H A D | 0001-Define-strndupa-if-it-does-not-exist.patch | 19 @@ -193,6 +193,15 @@ fopenat(int dirfd, const char *pathname, int flags,
|
| /openbmc/qemu/linux-user/ |
| H A D | qemu.h | 169 int do_guest_openat(CPUArchState *cpu_env, int dirfd, const char *pathname,
|
| H A D | syscall.c | 425 _syscall5(int, sys_statx, int, dirfd, const char *, pathname, int, flags, 472 _syscall4(int,sys_utimensat,int,dirfd,const char *,pathname, 475 static int sys_utimensat(int dirfd, const char *pathname, 687 safe_syscall4(int, openat, int, dirfd, const char *, pathname, \ in safe_syscall3() 690 safe_syscall4(int, openat2, int, dirfd, const char *, pathname, \ in safe_syscall3() 700 safe_syscall5(int, execveat, int, dirfd, const char *, filename, in safe_syscall3() 7888 static abi_long do_name_to_handle_at(abi_long dirfd, abi_long pathname, in do_name_to_handle_at() argument 7918 ret = get_errno(name_to_handle_at(dirfd, path(name), fh, &mid, flags)); in do_name_to_handle_at() 8413 static int maybe_do_fake_open(CPUArchState *cpu_env, int dirfd, in maybe_do_fake_open() argument 8459 return safe_openat(dirfd, exec_path, flags, mode); in maybe_do_fake_open() [all …]
|
| H A D | strace.c | 1609 print_at_dirfd(abi_long dirfd, int last) in print_at_dirfd() argument 1612 if (dirfd == AT_FDCWD) { in print_at_dirfd() 1617 qemu_log("%d%s", (int)dirfd, get_comma(last)); in print_at_dirfd()
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | virtio-9p-client.c | 1066 g_assert(!opt.atPath || !opt.dirfd); in v9fs_tunlinkat() 1069 opt.dirfd = v9fs_twalk((TWalkOpt) { .client = opt.client, in v9fs_tunlinkat() 1080 v9fs_uint32_write(req, opt.dirfd); in v9fs_tunlinkat()
|
| H A D | virtio-9p-client.h | 457 uint32_t dirfd; member
|
| /openbmc/qemu/util/ |
| H A D | oslib-posix.c | 867 dfd = dirfd(dir); in qemu_close_all_open_fd_proc()
|
| /openbmc/openbmc/poky/meta/recipes-core/glibc/glibc/ |
| H A D | 0001-localedef-Add-hardlink-resolver-from-util-linux.patch | 321 +static inline int dirfd(DIR *d)
|