Lines Matching defs:src

1034 "link($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None,\n"
1041 " descriptor open to a directory, and the respective path string (src or dst)\n"
1043 "If follow_symlinks is False, and the last element of src is a symbolic\n"
1054 os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1061 static const char * const _keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", "follow_symlinks", NULL};
1065 path_t src = PATH_T_INITIALIZE("link", "src", 0, 0);
1075 if (!path_converter(args[0], &src)) {
1105 return_value = os_link_impl(module, &src, &dst, src_dir_fd, dst_dir_fd, follow_symlinks);
1108 /* Cleanup for src */
1109 path_cleanup(&src);
1546 "rename($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None)\n"
1552 " descriptor open to a directory, and the respective path string (src or dst)\n"
1561 os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1568 static const char * const _keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", NULL};
1572 path_t src = PATH_T_INITIALIZE("rename", "src", 0, 0);
1581 if (!path_converter(args[0], &src)) {
1602 return_value = os_rename_impl(module, &src, &dst, src_dir_fd, dst_dir_fd);
1605 /* Cleanup for src */
1606 path_cleanup(&src);
1614 "replace($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None)\n"
1620 " descriptor open to a directory, and the respective path string (src or dst)\n"
1629 os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1636 static const char * const _keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", NULL};
1640 path_t src = PATH_T_INITIALIZE("replace", "src", 0, 0);
1649 if (!path_converter(args[0], &src)) {
1670 return_value = os_replace_impl(module, &src, &dst, src_dir_fd, dst_dir_fd);
1673 /* Cleanup for src */
1674 path_cleanup(&src);
4261 "symlink($module, /, src, dst, target_is_directory=False, *, dir_fd=None)\n"
4264 "Create a symbolic link pointing to src named dst.\n"
4280 os_symlink_impl(PyObject *module, path_t *src, path_t *dst,
4287 static const char * const _keywords[] = {"src", "dst", "target_is_directory", "dir_fd", NULL};
4291 path_t src = PATH_T_INITIALIZE("symlink", "src", 0, 0);
4300 if (!path_converter(args[0], &src)) {
4326 return_value = os_symlink_impl(module, &src, &dst, target_is_directory, dir_fd);
4329 /* Cleanup for src */
4330 path_cleanup(&src);
5710 "copy_file_range($module, /, src, dst, count, offset_src=None,\n"
5716 " src\n"
5723 " Starting offset in src.\n"
5727 "If offset_src is None, then src is read from the current position;\n"
5734 os_copy_file_range_impl(PyObject *module, int src, int dst, Py_ssize_t count,
5741 static const char * const _keywords[] = {"src", "dst", "count", "offset_src", "offset_dst", NULL};
5745 int src;
5755 src = _PyLong_AsInt(args[0]);
5756 if (src == -1 && PyErr_Occurred()) {
5786 return_value = os_copy_file_range_impl(module, src, dst, count, offset_src, offset_dst);
5797 "splice($module, /, src, dst, count, offset_src=None, offset_dst=None,\n"
5803 " src\n"
5810 " Starting offset in src.\n"
5816 "If offset_src is None, then src is read from the current position;\n"
5824 os_splice_impl(PyObject *module, int src, int dst, Py_ssize_t count,
5832 static const char * const _keywords[] = {"src", "dst", "count", "offset_src", "offset_dst", "flags", NULL};
5836 int src;
5847 src = _PyLong_AsInt(args[0]);
5848 if (src == -1 && PyErr_Occurred()) {
5886 return_value = os_splice_impl(module, src, dst, count, offset_src, offset_dst, flags);