Lines Matching refs:path
6 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n"
9 "Perform a stat system call on the given path.\n"
11 " path\n"
12 " Path to be examined; can be string, bytes, a path-like object or\n"
16 " and path should be a relative string; path will then be relative to\n"
19 " If False, and the last element of the path is a symbolic link,\n"
27 "It\'s an error to use dir_fd or follow_symlinks when specifying path as\n"
34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks);
40 static const char * const _keywords[] = {"path", "dir_fd", "follow_symlinks", NULL};
44 path_t path = PATH_T_INITIALIZE("stat", "path", 0, 1);
52 if (!path_converter(args[0], &path)) {
71 return_value = os_stat_impl(module, &path, dir_fd, follow_symlinks);
74 /* Cleanup for path */
75 path_cleanup(&path);
81 "lstat($module, /, path, *, dir_fd=None)\n"
84 "Perform a stat system call on the given path, without following symbolic links.\n"
87 "Equivalent to stat(path, follow_symlinks=False).");
93 os_lstat_impl(PyObject *module, path_t *path, int dir_fd);
99 static const char * const _keywords[] = {"path", "dir_fd", NULL};
103 path_t path = PATH_T_INITIALIZE("lstat", "path", 0, 0);
110 if (!path_converter(args[0], &path)) {
120 return_value = os_lstat_impl(module, &path, dir_fd);
123 /* Cleanup for path */
124 path_cleanup(&path);
130 "access($module, /, path, mode, *, dir_fd=None, effective_ids=False,\n"
134 "Use the real uid/gid to test for access to a path.\n"
136 " path\n"
137 " Path to be tested; can be string, bytes, or a path-like object.\n"
143 " and path should be relative; path will then be relative to that\n"
149 " If False, and the last element of the path is a symbolic link,\n"
159 " has the specified access to the path.");
165 os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
172 static const char * const _keywords[] = {"path", "mode", "dir_fd", "effective_ids", "follow_symlinks", NULL};
176 path_t path = PATH_T_INITIALIZE("access", "path", 0, 0);
187 if (!path_converter(args[0], &path)) {
219 _return_value = os_access_impl(module, &path, mode, dir_fd, effective_ids, follow_symlinks);
226 /* Cleanup for path */
227 path_cleanup(&path);
290 "chdir($module, /, path)\n"
293 "Change the current working directory to the specified path.\n"
295 "path may always be specified as a string.\n"
296 "On some platforms, path may also be specified as an open file descriptor.\n"
303 os_chdir_impl(PyObject *module, path_t *path);
309 static const char * const _keywords[] = {"path", NULL};
312 path_t path = PATH_T_INITIALIZE("chdir", "path", 0, PATH_HAVE_FCHDIR);
318 if (!path_converter(args[0], &path)) {
321 return_value = os_chdir_impl(module, &path);
324 /* Cleanup for path */
325 path_cleanup(&path);
372 "chmod($module, /, path, mode, *, dir_fd=None, follow_symlinks=True)\n"
377 " path\n"
378 " Path to be modified. May always be specified as a str, bytes, or a path-like object.\n"
379 " On some platforms, path may also be specified as an open file descriptor.\n"
385 " and path should be relative; path will then be relative to that\n"
388 " If False, and the last element of the path is a symbolic link,\n"
392 "It is an error to use dir_fd or follow_symlinks when specifying path as\n"
401 os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
408 static const char * const _keywords[] = {"path", "mode", "dir_fd", "follow_symlinks", NULL};
412 path_t path = PATH_T_INITIALIZE("chmod", "path", 0, PATH_HAVE_FCHMOD);
421 if (!path_converter(args[0], &path)) {
444 return_value = os_chmod_impl(module, &path, mode, dir_fd, follow_symlinks);
447 /* Cleanup for path */
448 path_cleanup(&path);
502 "lchmod($module, /, path, mode)\n"
507 "If path is a symlink, this affects the link itself rather than the target.\n"
508 "Equivalent to chmod(path, mode, follow_symlinks=False).\"");
514 os_lchmod_impl(PyObject *module, path_t *path, int mode);
520 static const char * const _keywords[] = {"path", "mode", NULL};
523 path_t path = PATH_T_INITIALIZE("lchmod", "path", 0, 0);
530 if (!path_converter(args[0], &path)) {
537 return_value = os_lchmod_impl(module, &path, mode);
540 /* Cleanup for path */
541 path_cleanup(&path);
551 "chflags($module, /, path, flags, follow_symlinks=True)\n"
556 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
566 os_chflags_impl(PyObject *module, path_t *path, unsigned long flags,
573 static const char * const _keywords[] = {"path", "flags", "follow_symlinks", NULL};
577 path_t path = PATH_T_INITIALIZE("chflags", "path", 0, 0);
585 if (!path_converter(args[0], &path)) {
601 return_value = os_chflags_impl(module, &path, flags, follow_symlinks);
604 /* Cleanup for path */
605 path_cleanup(&path);
615 "lchflags($module, /, path, flags)\n"
621 "Equivalent to chflags(path, flags, follow_symlinks=False).");
627 os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags);
633 static const char * const _keywords[] = {"path", "flags", NULL};
636 path_t path = PATH_T_INITIALIZE("lchflags", "path", 0, 0);
643 if (!path_converter(args[0], &path)) {
651 return_value = os_lchflags_impl(module, &path, flags);
654 /* Cleanup for path */
655 path_cleanup(&path);
665 "chroot($module, /, path)\n"
668 "Change root directory to path.");
674 os_chroot_impl(PyObject *module, path_t *path);
680 static const char * const _keywords[] = {"path", NULL};
683 path_t path = PATH_T_INITIALIZE("chroot", "path", 0, 0);
689 if (!path_converter(args[0], &path)) {
692 return_value = os_chroot_impl(module, &path);
695 /* Cleanup for path */
696 path_cleanup(&path);
804 "chown($module, /, path, uid, gid, *, dir_fd=None, follow_symlinks=True)\n"
807 "Change the owner and group id of path to the numeric uid and gid.\\\n"
809 " path\n"
810 " Path to be examined; can be string, bytes, a path-like object, or open-file-descriptor int.\n"
813 " and path should be relative; path will then be relative to that\n"
816 " If False, and the last element of the path is a symbolic link,\n"
820 "path may always be specified as a string.\n"
821 "On some platforms, path may also be specified as an open file descriptor.\n"
824 " and path should be relative; path will then be relative to that directory.\n"
825 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
828 "It is an error to use dir_fd or follow_symlinks when specifying path as\n"
837 os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid,
844 static const char * const _keywords[] = {"path", "uid", "gid", "dir_fd", "follow_symlinks", NULL};
848 path_t path = PATH_T_INITIALIZE("chown", "path", 0, PATH_HAVE_FCHOWN);
858 if (!path_converter(args[0], &path)) {
883 return_value = os_chown_impl(module, &path, uid, gid, dir_fd, follow_symlinks);
886 /* Cleanup for path */
887 path_cleanup(&path);
946 "lchown($module, /, path, uid, gid)\n"
949 "Change the owner and group id of path to the numeric uid and gid.\n"
952 "Equivalent to os.chown(path, uid, gid, follow_symlinks=False).");
958 os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid);
964 static const char * const _keywords[] = {"path", "uid", "gid", NULL};
967 path_t path = PATH_T_INITIALIZE("lchown", "path", 0, 0);
975 if (!path_converter(args[0], &path)) {
984 return_value = os_lchown_impl(module, &path, uid, gid);
987 /* Cleanup for path */
988 path_cleanup(&path);
1041 " descriptor open to a directory, and the respective path string (src or dst)\n"
1042 " should be relative; the path will then be relative to that directory.\n"
1119 "listdir($module, /, path=None)\n"
1124 "path can be specified as either str, bytes, or a path-like object. If path is bytes,\n"
1127 "If path is None, uses the path=\'.\'.\n"
1128 "On some platforms, path may also be specified as an open file descriptor;\\\n"
1139 os_listdir_impl(PyObject *module, path_t *path);
1145 static const char * const _keywords[] = {"path", NULL};
1149 path_t path = PATH_T_INITIALIZE("listdir", "path", 1, PATH_HAVE_FDOPENDIR);
1158 if (!path_converter(args[0], &path)) {
1162 return_value = os_listdir_impl(module, &path);
1165 /* Cleanup for path */
1166 path_cleanup(&path);
1174 "_getfullpathname($module, path, /)\n"
1182 os__getfullpathname_impl(PyObject *module, path_t *path);
1188 path_t path = PATH_T_INITIALIZE("_getfullpathname", "path", 0, 0);
1190 if (!path_converter(arg, &path)) {
1193 return_value = os__getfullpathname_impl(module, &path);
1196 /* Cleanup for path */
1197 path_cleanup(&path);
1207 "_getfinalpathname($module, path, /)\n"
1216 os__getfinalpathname_impl(PyObject *module, path_t *path);
1222 path_t path = PATH_T_INITIALIZE("_getfinalpathname", "path", 0, 0);
1224 if (!path_converter(arg, &path)) {
1227 return_value = os__getfinalpathname_impl(module, &path);
1230 /* Cleanup for path */
1231 path_cleanup(&path);
1241 "_getvolumepathname($module, /, path)\n"
1250 os__getvolumepathname_impl(PyObject *module, path_t *path);
1256 static const char * const _keywords[] = {"path", NULL};
1259 path_t path = PATH_T_INITIALIZE("_getvolumepathname", "path", 0, 0);
1265 if (!path_converter(args[0], &path)) {
1268 return_value = os__getvolumepathname_impl(module, &path);
1271 /* Cleanup for path */
1272 path_cleanup(&path);
1282 "_path_splitroot($module, /, path)\n"
1291 os__path_splitroot_impl(PyObject *module, path_t *path);
1297 static const char * const _keywords[] = {"path", NULL};
1300 path_t path = PATH_T_INITIALIZE("_path_splitroot", "path", 0, 0);
1306 if (!path_converter(args[0], &path)) {
1309 return_value = os__path_splitroot_impl(module, &path);
1312 /* Cleanup for path */
1313 path_cleanup(&path);
1321 "_path_normpath($module, /, path)\n"
1324 "Basic path normalization.");
1330 os__path_normpath_impl(PyObject *module, PyObject *path);
1336 static const char * const _keywords[] = {"path", NULL};
1339 PyObject *path;
1345 path = args[0];
1346 return_value = os__path_normpath_impl(module, path);
1353 "mkdir($module, /, path, mode=511, *, dir_fd=None)\n"
1359 " and path should be relative; path will then be relative to that directory.\n"
1370 os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd);
1376 static const char * const _keywords[] = {"path", "mode", "dir_fd", NULL};
1380 path_t path = PATH_T_INITIALIZE("mkdir", "path", 0, 0);
1388 if (!path_converter(args[0], &path)) {
1411 return_value = os_mkdir_impl(module, &path, mode, dir_fd);
1414 /* Cleanup for path */
1415 path_cleanup(&path);
1552 " descriptor open to a directory, and the respective path string (src or dst)\n"
1553 " should be relative; the path will then be relative to that directory.\n"
1620 " descriptor open to a directory, and the respective path string (src or dst)\n"
1621 " should be relative; the path will then be relative to that directory.\n"
1682 "rmdir($module, /, path, *, dir_fd=None)\n"
1688 " and path should be relative; path will then be relative to that directory.\n"
1696 os_rmdir_impl(PyObject *module, path_t *path, int dir_fd);
1702 static const char * const _keywords[] = {"path", "dir_fd", NULL};
1706 path_t path = PATH_T_INITIALIZE("rmdir", "path", 0, 0);
1713 if (!path_converter(args[0], &path)) {
1723 return_value = os_rmdir_impl(module, &path, dir_fd);
1726 /* Cleanup for path */
1727 path_cleanup(&path);
1868 "unlink($module, /, path, *, dir_fd=None)\n"
1874 " and path should be relative; path will then be relative to that directory.\n"
1882 os_unlink_impl(PyObject *module, path_t *path, int dir_fd);
1888 static const char * const _keywords[] = {"path", "dir_fd", NULL};
1892 path_t path = PATH_T_INITIALIZE("unlink", "path", 0, 0);
1899 if (!path_converter(args[0], &path)) {
1909 return_value = os_unlink_impl(module, &path, dir_fd);
1912 /* Cleanup for path */
1913 path_cleanup(&path);
1919 "remove($module, /, path, *, dir_fd=None)\n"
1925 " and path should be relative; path will then be relative to that directory.\n"
1933 os_remove_impl(PyObject *module, path_t *path, int dir_fd);
1939 static const char * const _keywords[] = {"path", "dir_fd", NULL};
1943 path_t path = PATH_T_INITIALIZE("remove", "path", 0, 0);
1950 if (!path_converter(args[0], &path)) {
1960 return_value = os_remove_impl(module, &path, dir_fd);
1963 /* Cleanup for path */
1964 path_cleanup(&path);
1995 "utime($module, /, path, times=None, *, ns=<unrepresentable>,\n"
1999 "Set the access and modified time of path.\n"
2001 "path may always be specified as a string.\n"
2002 "On some platforms, path may also be specified as an open file descriptor.\n"
2014 " and path should be relative; path will then be relative to that directory.\n"
2015 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
2018 "It is an error to use dir_fd or follow_symlinks when specifying path\n"
2027 os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns,
2034 static const char * const _keywords[] = {"path", "times", "ns", "dir_fd", "follow_symlinks", NULL};
2038 path_t path = PATH_T_INITIALIZE("utime", "path", 0, PATH_UTIME_HAVE_FD);
2048 if (!path_converter(args[0], &path)) {
2083 return_value = os_utime_impl(module, &path, times, ns, dir_fd, follow_symlinks);
2086 /* Cleanup for path */
2087 path_cleanup(&path);
2130 "execv($module, path, argv, /)\n"
2133 "Execute an executable path with arguments, replacing current process.\n"
2135 " path\n"
2144 os_execv_impl(PyObject *module, path_t *path, PyObject *argv);
2150 path_t path = PATH_T_INITIALIZE("execv", "path", 0, 0);
2156 if (!path_converter(args[0], &path)) {
2160 return_value = os_execv_impl(module, &path, argv);
2163 /* Cleanup for path */
2164 path_cleanup(&path);
2174 "execve($module, /, path, argv, env)\n"
2177 "Execute an executable path with arguments, replacing current process.\n"
2179 " path\n"
2190 os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env);
2196 static const char * const _keywords[] = {"path", "argv", "env", NULL};
2199 path_t path = PATH_T_INITIALIZE("execve", "path", 0, PATH_HAVE_FEXECVE);
2207 if (!path_converter(args[0], &path)) {
2212 return_value = os_execve_impl(module, &path, argv, env);
2215 /* Cleanup for path */
2216 path_cleanup(&path);
2226 "posix_spawn($module, path, argv, env, /, *, file_actions=(),\n"
2231 "Execute the program specified by path in a new process.\n"
2233 " path\n"
2258 os_posix_spawn_impl(PyObject *module, path_t *path, PyObject *argv,
2272 path_t path = PATH_T_INITIALIZE("posix_spawn", "path", 0, 0);
2287 if (!path_converter(args[0], &path)) {
2339 return_value = os_posix_spawn_impl(module, &path, argv, env, file_actions, setpgroup, resetids, setsid, setsigmask, setsigdef, scheduler);
2342 /* Cleanup for path */
2343 path_cleanup(&path);
2353 "posix_spawnp($module, path, argv, env, /, *, file_actions=(),\n"
2358 "Execute the program specified by path in a new process.\n"
2360 " path\n"
2385 os_posix_spawnp_impl(PyObject *module, path_t *path, PyObject *argv,
2399 path_t path = PATH_T_INITIALIZE("posix_spawnp", "path", 0, 0);
2414 if (!path_converter(args[0], &path)) {
2466 return_value = os_posix_spawnp_impl(module, &path, argv, env, file_actions, setpgroup, resetids, setsid, setsigmask, setsigdef, scheduler);
2469 /* Cleanup for path */
2470 path_cleanup(&path);
2480 "spawnv($module, mode, path, argv, /)\n"
2483 "Execute the program specified by path in a new process.\n"
2487 " path\n"
2496 os_spawnv_impl(PyObject *module, int mode, path_t *path, PyObject *argv);
2503 path_t path = PATH_T_INITIALIZE("spawnv", "path", 0, 0);
2513 if (!path_converter(args[1], &path)) {
2517 return_value = os_spawnv_impl(module, mode, &path, argv);
2520 /* Cleanup for path */
2521 path_cleanup(&path);
2531 "spawnve($module, mode, path, argv, env, /)\n"
2534 "Execute the program specified by path in a new process.\n"
2538 " path\n"
2549 os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
2557 path_t path = PATH_T_INITIALIZE("spawnve", "path", 0, 0);
2568 if (!path_converter(args[1], &path)) {
2573 return_value = os_spawnve_impl(module, mode, &path, argv, env);
2576 /* Cleanup for path */
2577 path_cleanup(&path);
4205 "readlink($module, /, path, *, dir_fd=None)\n"
4208 "Return a string representing the path to which the symbolic link points.\n"
4211 "and path should be relative; path will then be relative to that directory.\n"
4220 os_readlink_impl(PyObject *module, path_t *path, int dir_fd);
4226 static const char * const _keywords[] = {"path", "dir_fd", NULL};
4230 path_t path = PATH_T_INITIALIZE("readlink", "path", 0, 0);
4237 if (!path_converter(args[0], &path)) {
4247 return_value = os_readlink_impl(module, &path, dir_fd);
4250 /* Cleanup for path */
4251 path_cleanup(&path);
4272 " and path should be relative; path will then be relative to that directory.\n"
4517 "open($module, /, path, flags, mode=511, *, dir_fd=None)\n"
4523 " and path should be relative; path will then be relative to that directory.\n"
4531 os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd);
4537 static const char * const _keywords[] = {"path", "flags", "mode", "dir_fd", NULL};
4541 path_t path = PATH_T_INITIALIZE("open", "path", 0, 0);
4551 if (!path_converter(args[0], &path)) {
4578 _return_value = os_open_impl(module, &path, flags, mode, dir_fd);
4585 /* Cleanup for path */
4586 path_cleanup(&path);
5897 "mkfifo($module, /, path, mode=438, *, dir_fd=None)\n"
5903 " and path should be relative; path will then be relative to that directory.\n"
5911 os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd);
5917 static const char * const _keywords[] = {"path", "mode", "dir_fd", NULL};
5921 path_t path = PATH_T_INITIALIZE("mkfifo", "path", 0, 0);
5929 if (!path_converter(args[0], &path)) {
5952 return_value = os_mkfifo_impl(module, &path, mode, dir_fd);
5955 /* Cleanup for path */
5956 path_cleanup(&path);
5966 "mknod($module, /, path, mode=384, device=0, *, dir_fd=None)\n"
5972 "at path. mode specifies both the permissions to use and the\n"
5979 " and path should be relative; path will then be relative to that directory.\n"
5987 os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device,
5994 static const char * const _keywords[] = {"path", "mode", "device", "dir_fd", NULL};
5998 path_t path = PATH_T_INITIALIZE("mknod", "path", 0, 0);
6007 if (!path_converter(args[0], &path)) {
6038 return_value = os_mknod_impl(module, &path, mode, device, dir_fd);
6041 /* Cleanup for path */
6042 path_cleanup(&path);
6208 "truncate($module, /, path, length)\n"
6211 "Truncate a file, specified by path, to a specific length.\n"
6213 "On some platforms, path may also be specified as an open file descriptor.\n"
6220 os_truncate_impl(PyObject *module, path_t *path, Py_off_t length);
6226 static const char * const _keywords[] = {"path", "length", NULL};
6229 path_t path = PATH_T_INITIALIZE("truncate", "path", 0, PATH_HAVE_FTRUNCATE);
6236 if (!path_converter(args[0], &path)) {
6242 return_value = os_truncate_impl(module, &path, length);
6245 /* Cleanup for path */
6246 path_cleanup(&path);
6931 "statvfs($module, /, path)\n"
6934 "Perform a statvfs system call on the given path.\n"
6936 "path may always be specified as a string.\n"
6937 "On some platforms, path may also be specified as an open file descriptor.\n"
6944 os_statvfs_impl(PyObject *module, path_t *path);
6950 static const char * const _keywords[] = {"path", NULL};
6953 path_t path = PATH_T_INITIALIZE("statvfs", "path", 0, PATH_HAVE_FSTATVFS);
6959 if (!path_converter(args[0], &path)) {
6962 return_value = os_statvfs_impl(module, &path);
6965 /* Cleanup for path */
6966 path_cleanup(&path);
6976 "_getdiskusage($module, /, path)\n"
6979 "Return disk usage statistics about the given path as a (total, free) tuple.");
6985 os__getdiskusage_impl(PyObject *module, path_t *path);
6991 static const char * const _keywords[] = {"path", NULL};
6994 path_t path = PATH_T_INITIALIZE("_getdiskusage", "path", 0, 0);
7000 if (!path_converter(args[0], &path)) {
7003 return_value = os__getdiskusage_impl(module, &path);
7006 /* Cleanup for path */
7007 path_cleanup(&path);
7062 "pathconf($module, /, path, name)\n"
7065 "Return the configuration limit name for the file or directory path.\n"
7068 "On some platforms, path may also be specified as an open file descriptor.\n"
7075 os_pathconf_impl(PyObject *module, path_t *path, int name);
7081 static const char * const _keywords[] = {"path", "name", NULL};
7084 path_t path = PATH_T_INITIALIZE("pathconf", "path", 0, PATH_HAVE_FPATHCONF);
7092 if (!path_converter(args[0], &path)) {
7098 _return_value = os_pathconf_impl(module, &path, name);
7105 /* Cleanup for path */
7106 path_cleanup(&path);
7222 "should usually be an absolute path.\n"
7232 "an absolute path, make sure the first character is not a slash (\"/\");\n"
7530 "getxattr($module, /, path, attribute, *, follow_symlinks=True)\n"
7533 "Return the value of extended attribute attribute on path.\n"
7535 "path may be either a string, a path-like object, or an open file descriptor.\n"
7536 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
7544 os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute,
7551 static const char * const _keywords[] = {"path", "attribute", "follow_symlinks", NULL};
7555 path_t path = PATH_T_INITIALIZE("getxattr", "path", 0, 1);
7563 if (!path_converter(args[0], &path)) {
7577 return_value = os_getxattr_impl(module, &path, &attribute, follow_symlinks);
7580 /* Cleanup for path */
7581 path_cleanup(&path);
7593 "setxattr($module, /, path, attribute, value, flags=0, *,\n"
7597 "Set extended attribute attribute on path to value.\n"
7599 "path may be either a string, a path-like object, or an open file descriptor.\n"
7600 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
7608 os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute,
7615 static const char * const _keywords[] = {"path", "attribute", "value", "flags", "follow_symlinks", NULL};
7619 path_t path = PATH_T_INITIALIZE("setxattr", "path", 0, 1);
7629 if (!path_converter(args[0], &path)) {
7663 return_value = os_setxattr_impl(module, &path, &attribute, &value, flags, follow_symlinks);
7666 /* Cleanup for path */
7667 path_cleanup(&path);
7683 "removexattr($module, /, path, attribute, *, follow_symlinks=True)\n"
7686 "Remove extended attribute attribute on path.\n"
7688 "path may be either a string, a path-like object, or an open file descriptor.\n"
7689 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
7697 os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute,
7704 static const char * const _keywords[] = {"path", "attribute", "follow_symlinks", NULL};
7708 path_t path = PATH_T_INITIALIZE("removexattr", "path", 0, 1);
7716 if (!path_converter(args[0], &path)) {
7730 return_value = os_removexattr_impl(module, &path, &attribute, follow_symlinks);
7733 /* Cleanup for path */
7734 path_cleanup(&path);
7746 "listxattr($module, /, path=None, *, follow_symlinks=True)\n"
7749 "Return a list of extended attributes on path.\n"
7751 "path may be either None, a string, a path-like object, or an open file descriptor.\n"
7752 "if path is None, listxattr will examine the current directory.\n"
7753 "If follow_symlinks is False, and the last element of the path is a symbolic\n"
7761 os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks);
7767 static const char * const _keywords[] = {"path", "follow_symlinks", NULL};
7771 path_t path = PATH_T_INITIALIZE("listxattr", "path", 1, 1);
7782 if (!path_converter(args[0], &path)) {
7798 return_value = os_listxattr_impl(module, &path, follow_symlinks);
7801 /* Cleanup for path */
7802 path_cleanup(&path);
8504 "Returns the path for the entry.");
8519 "scandir($module, /, path=None)\n"
8522 "Return an iterator of DirEntry objects for given path.\n"
8524 "path can be specified as either str, bytes, or a path-like object. If path\n"
8528 "If path is None, uses the path=\'.\'.");
8534 os_scandir_impl(PyObject *module, path_t *path);
8540 static const char * const _keywords[] = {"path", NULL};
8544 path_t path = PATH_T_INITIALIZE("scandir", "path", 1, PATH_HAVE_FDOPENDIR);
8553 if (!path_converter(args[0], &path)) {
8557 return_value = os_scandir_impl(module, &path);
8560 /* Cleanup for path */
8561 path_cleanup(&path);
8567 "fspath($module, /, path)\n"
8570 "Return the file system path representation of the object.\n"
8580 os_fspath_impl(PyObject *module, PyObject *path);
8586 static const char * const _keywords[] = {"path", NULL};
8589 PyObject *path;
8595 path = args[0];
8596 return_value = os_fspath_impl(module, path);
8662 "_add_dll_directory($module, /, path)\n"
8665 "Add a path to the DLL search path.\n"
8667 "This search path is used when resolving dependencies for imported\n"
8668 "extension modules (the module itself is resolved through sys.path),\n"
8672 "to remove this directory from the search path.");
8678 os__add_dll_directory_impl(PyObject *module, path_t *path);
8684 static const char * const _keywords[] = {"path", NULL};
8687 path_t path = PATH_T_INITIALIZE("_add_dll_directory", "path", 0, 0);
8693 if (!path_converter(args[0], &path)) {
8696 return_value = os__add_dll_directory_impl(module, &path);
8699 /* Cleanup for path */
8700 path_cleanup(&path);
8713 "Removes a path from the DLL search path.\n"