Lines Matching refs:ndirfd
102 static void renameat_preserve_errno(int odirfd, const char *opath, int ndirfd, in renameat_preserve_errno() argument
106 qemu_renameat(odirfd, opath, ndirfd, npath); in renameat_preserve_errno()
961 int odirfd, ndirfd; in local_link() local
974 ndirfd = local_opendir_nofollow(ctx, dirpath->data); in local_link()
975 if (ndirfd == -1) { in local_link()
980 ret = linkat(odirfd, oname, ndirfd, name, 0); in local_link()
989 ret = qemu_mkdirat(ndirfd, VIRTFS_META_DIR, 0700); in local_link()
999 nmap_dirfd = openat_dir(ndirfd, VIRTFS_META_DIR); in local_link()
1019 unlinkat_preserve_errno(ndirfd, name, 0); in local_link()
1021 close_preserve_errno(ndirfd); in local_link()
1275 int odirfd, ndirfd; in local_renameat() local
1289 ndirfd = local_opendir_nofollow(ctx, newdir->data); in local_renameat()
1290 if (ndirfd == -1) { in local_renameat()
1295 ret = qemu_renameat(odirfd, old_name, ndirfd, new_name); in local_renameat()
1303 ret = qemu_mkdirat(ndirfd, VIRTFS_META_DIR, 0700); in local_renameat()
1313 nmap_dirfd = openat_dir(ndirfd, VIRTFS_META_DIR); in local_renameat()
1334 renameat_preserve_errno(ndirfd, new_name, odirfd, old_name); in local_renameat()
1336 close_preserve_errno(ndirfd); in local_renameat()