Lines Matching defs:src
3923 src : path_t
3933 descriptor open to a directory, and the respective path string (src or dst)
3935 If follow_symlinks is False, and the last element of src is a symbolic
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);
3994 result = linkat(src_dir_fd, src->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);
4852 src : 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);
8869 /* Return True if the path at src relative to dest is a directory */
8871 _check_dirW(LPCWSTR src, LPCWSTR dest)
8882 /* src_resolved = os.path.join(dest_parent, src) */
8883 if (_joinW(src_resolved, dest_parent, src)) {
8896 src: 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,
8950 /* if src is a directory, ensure flags==1 (target_is_directory bit) */
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);
10552 src: int
10559 Starting offset in src.
10565 If offset_src is None, then src is read from the current position;
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);
10621 src: int
10628 Starting offset in src.
10636 If offset_src is None, then src is read from the current position;
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);