Lines Matching refs:dst

3924     dst : path_t
3933 descriptor open to a directory, and the respective path string (src or dst)
3944 os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
3965 if ((src->narrow && dst->wide) || (src->wide && dst->narrow)) {
3967 "link: src and dst must be the same type");
3972 if (PySys_Audit("os.link", "OOii", src->object, dst->object,
3980 result = CreateHardLinkW(dst->wide, src->wide, NULL);
3984 return path_error2(src, dst);
3995 dst_dir_fd, dst->narrow,
4003 result = link(src->narrow, dst->narrow);
4012 result = link(src->narrow, dst->narrow);
4028 return path_error2(src, dst);
4775 internal_rename(path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int is_replace)
4800 if (PySys_Audit("os.rename", "OOii", src->object, dst->object,
4808 result = MoveFileExW(src->wide, dst->wide, flags);
4812 return path_error2(src, dst);
4815 if ((src->narrow && dst->wide) || (src->wide && dst->narrow)) {
4817 "%s: src and dst must be the same type", function_name);
4825 result = renameat(src_dir_fd, src->narrow, dst_dir_fd, dst->narrow);
4831 result = rename(src->narrow, dst->narrow);
4843 return path_error2(src, dst);
4853 dst : path_t
4861 descriptor open to a directory, and the respective path string (src or dst)
4868 os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
4872 return internal_rename(src, dst, src_dir_fd, dst_dir_fd, 0);
4882 descriptor open to a directory, and the respective path string (src or dst)
4889 os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
4893 return internal_rename(src, dst, src_dir_fd, dst_dir_fd, 1);
8897 dst: path_t
8902 # "symlink(src, dst, target_is_directory=False, *, dir_fd=None)\n\n\
8904 Create a symbolic link pointing to src named dst.
8919 os_symlink_impl(PyObject *module, path_t *src, path_t *dst,
8936 if (PySys_Audit("os.symlink", "OOi", src->object, dst->object,
8951 if (target_is_directory || _check_dirW(src->wide, dst->wide)) {
8955 result = CreateSymbolicLinkW(dst->wide, src->wide, flags);
8975 result = CreateSymbolicLinkW(dst->wide, src->wide, flags);
8985 return path_error2(src, dst);
8989 if ((src->narrow && dst->wide) || (src->wide && dst->narrow)) {
8991 "symlink: src and dst must be the same type");
8999 result = symlinkat(src->narrow, dir_fd, dst->narrow);
9005 result = symlink(src->narrow, dst->narrow);
9016 return path_error2(src, dst);
10554 dst: int
10561 Starting offset in dst.
10570 os_copy_file_range_impl(PyObject *module, int src, int dst, Py_ssize_t count,
10605 ret = copy_file_range(src, p_offset_src, dst, p_offset_dst, count, flags);
10623 dst: int
10630 Starting offset in dst.
10642 os_splice_impl(PyObject *module, int src, int dst, Py_ssize_t count,
10674 ret = splice(src, p_offset_src, dst, p_offset_dst, count, flags);