Home
last modified time | relevance | path

Searched refs:src_dir_fd (Results 1 – 7 of 7) sorted by relevance

/aosp_15_r20/external/python/pyfakefs/pyfakefs/
Dfake_os.py717 src_dir_fd: Optional[int] = None,
744 src = self._path_with_dir_fd(src, self.rename, src_dir_fd)
779 src_dir_fd: Optional[int] = None,
804 src = self._path_with_dir_fd(src, self.rename, src_dir_fd)
1181 src_dir_fd: Optional[int] = None,
1198 src = self._path_with_dir_fd(src, self.link, src_dir_fd)
/aosp_15_r20/external/python/cpython3/Modules/
Dposixmodule.c3939 os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, in os_link_impl() argument
3953 if ((src_dir_fd != DEFAULT_DIR_FD) || (dst_dir_fd != DEFAULT_DIR_FD)) { in os_link_impl()
3968 src_dir_fd == DEFAULT_DIR_FD ? -1 : src_dir_fd, in os_link_impl()
3983 if ((src_dir_fd != DEFAULT_DIR_FD) || in os_link_impl()
3989 result = linkat(src_dir_fd, src->narrow, in os_link_impl()
3996 if (src_dir_fd == DEFAULT_DIR_FD && dst_dir_fd == DEFAULT_DIR_FD) { in os_link_impl()
4013 if (src_dir_fd != DEFAULT_DIR_FD) { in os_link_impl()
4735 internal_rename(path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int is_replace) in internal_rename() argument
4751 dir_fd_specified = (src_dir_fd != DEFAULT_DIR_FD) || in internal_rename()
4761 src_dir_fd == DEFAULT_DIR_FD ? -1 : src_dir_fd, in internal_rename()
[all …]
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_posix.py1429 posix.link(name, linkname, src_dir_fd=dir_fd, dst_dir_fd=dir_fd2)
1489 src_dir_fd=dir_fd, dst_dir_fd=dir_fd2)
2038 os.link("source", "target", src_dir_fd=0)
2044 os.link("source", "target", src_dir_fd=0, dst_dir_fd=0)
2124 os.rename("a", "b", src_dir_fd=0)
2130 os.replace("a", "b", src_dir_fd=0)
/aosp_15_r20/external/python/cpython3/Modules/clinic/
Dposixmodule.c.h1054 os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1067 int src_dir_fd = DEFAULT_DIR_FD; in os_link() local
1085 if (!dir_fd_converter(args[2], &src_dir_fd)) { in os_link()
1105 return_value = os_link_impl(module, &src, &dst, src_dir_fd, dst_dir_fd, follow_symlinks); in os_link()
1561 os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1574 int src_dir_fd = DEFAULT_DIR_FD; in os_rename() local
1591 if (!dir_fd_converter(args[2], &src_dir_fd)) { in os_rename()
1602 return_value = os_rename_impl(module, &src, &dst, src_dir_fd, dst_dir_fd); in os_rename()
1629 os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1642 int src_dir_fd = DEFAULT_DIR_FD; in os_replace() local
[all …]
/aosp_15_r20/external/python/cpython3/Doc/library/
Dos.rst2029 .. function:: link(src, dst, *, src_dir_fd=None, dst_dir_fd=None, follow_symlinks=True)
2033 This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to
2037 .. audit-event:: os.link src,dst,src_dir_fd,dst_dir_fd os.link
2045 Added the *src_dir_fd*, *dst_dir_fd*, and *follow_symlinks* arguments.
2374 .. function:: rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
2392 This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to
2397 .. audit-event:: os.rename src,dst,src_dir_fd,dst_dir_fd os.rename
2400 The *src_dir_fd* and *dst_dir_fd* arguments.
2418 .. audit-event:: os.rename src,dst,src_dir_fd,dst_dir_fd os.renames
2424 .. function:: replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
[all …]
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/
Dfake_os_test.py4731 src_dir_fd=self.dir_fd,
4734 self.os.link("baz", "/bat", src_dir_fd=self.dir_fd)
4818 src_dir_fd=self.dir_fd,
4821 self.os.rename("bar", "/foo/batz", src_dir_fd=self.dir_fd)
4842 src_dir_fd=self.dir_fd,
4845 self.os.replace("bar", "/foo/batz", src_dir_fd=self.dir_fd)
/aosp_15_r20/external/python/pyfakefs/
DCHANGES.md594 * support for `src_dir_fd` and `dst_dir_fd` arguments in `os.rename`,