Lines Matching defs:follow_symlinks
1415 follow_symlinks_specified(const char *function_name, int follow_symlinks)
1417 if (follow_symlinks)
1420 argument_unavailable_error(function_name, "follow_symlinks");
1454 int follow_symlinks)
1456 if ((fd > 0) && (!follow_symlinks)) {
1458 "%s: cannot use fd and follow_symlinks together",
1467 int follow_symlinks)
1469 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) {
1471 "%s: cannot use dir_fd and follow_symlinks together",
2522 int dir_fd, int follow_symlinks)
2532 if (follow_symlinks_specified(function_name, follow_symlinks))
2538 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks))
2545 else if (follow_symlinks)
2552 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
2557 if ((dir_fd != DEFAULT_DIR_FD) || !follow_symlinks) {
2560 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW);
2891 follow_symlinks: bool = True
2898 dir_fd and follow_symlinks may not be implemented
2902 It's an error to use dir_fd or follow_symlinks when specifying path as
2908 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks)
2911 return posix_do_stat(module, "stat", path, dir_fd, follow_symlinks);
2927 Equivalent to stat(path, follow_symlinks=False).
2934 int follow_symlinks = 0;
2935 return posix_do_stat(module, "lstat", path, dir_fd, follow_symlinks);
2960 follow_symlinks: bool = True
2968 dir_fd, effective_ids, and follow_symlinks may not be implemented
2980 int effective_ids, int follow_symlinks)
2996 if (follow_symlinks_specified("access", follow_symlinks))
3028 !follow_symlinks) {
3032 if (!follow_symlinks)
3052 if (follow_symlinks_specified("access", follow_symlinks))
3233 follow_symlinks: bool = True
3240 It is an error to use dir_fd or follow_symlinks when specifying path as
3242 dir_fd and follow_symlinks may not be implemented on your platform.
3249 int follow_symlinks)
3264 if (follow_symlinks_specified("chmod", follow_symlinks))
3298 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
3303 if ((dir_fd != DEFAULT_DIR_FD) || !follow_symlinks) {
3312 * support dir_fd and follow_symlinks=False. (Hopefully.)
3316 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW);
3324 !follow_symlinks;
3360 dir_fd, follow_symlinks);
3362 follow_symlinks_specified("chmod", follow_symlinks);
3421 Equivalent to chmod(path, mode, follow_symlinks=False)."
3450 follow_symlinks: bool=True
3454 If follow_symlinks is False, and the last element of the path is a symbolic
3457 follow_symlinks may not be implemented on your platform. If it is
3464 int follow_symlinks)
3470 if (follow_symlinks_specified("chflags", follow_symlinks))
3480 if (!follow_symlinks)
3505 Equivalent to chflags(path, flags, follow_symlinks=False).
3628 follow_symlinks: bool = True
3640 If follow_symlinks is False, and the last element of the path is a symbolic
3643 It is an error to use dir_fd or follow_symlinks when specifying path as
3645 dir_fd and follow_symlinks may not be implemented on your platform.
3652 int dir_fd, int follow_symlinks)
3662 if (follow_symlinks_specified("chown", follow_symlinks))
3666 fd_and_follow_symlinks_invalid("chown", path->fd, follow_symlinks))
3681 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
3686 if ((dir_fd != DEFAULT_DIR_FD) || (!follow_symlinks)) {
3689 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW);
3765 Equivalent to os.chown(path, uid, gid, follow_symlinks=False).
3928 follow_symlinks: bool = True
3935 If follow_symlinks is False, and the last element of src is a symbolic
3938 src_dir_fd, dst_dir_fd, and follow_symlinks may not be implemented on your
3945 int dst_dir_fd, int follow_symlinks)
3990 (!follow_symlinks)) {
3996 follow_symlinks ? AT_SYMLINK_FOLLOW : 0);
5302 utime_dir_fd(utime_t *ut, int dir_fd, const char *path, int follow_symlinks)
5306 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW;
5314 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW;
5320 * follow_symlinks will never be false here;
5321 * we only allow !follow_symlinks and dir_fd together
5324 assert(follow_symlinks);
5474 follow_symlinks: bool=True
5476 # "utime(path, times=None, *[, ns], dir_fd=None, follow_symlinks=True)\n\
5494 If follow_symlinks is False, and the last element of the path is a symbolic
5497 It is an error to use dir_fd or follow_symlinks when specifying path
5499 dir_fd and follow_symlinks may not be available on your platform.
5506 int dir_fd, int follow_symlinks)
5568 if (follow_symlinks_specified("utime", follow_symlinks))
5574 fd_and_follow_symlinks_invalid("utime", path->fd, follow_symlinks))
5578 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) {
5580 "utime: cannot use dir_fd and follow_symlinks "
5624 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
5630 if ((dir_fd != DEFAULT_DIR_FD) || (!follow_symlinks)) {
5631 result = utime_dir_fd(&utime, dir_fd, path->narrow, follow_symlinks);
12901 follow_symlinks: bool = True
12906 If follow_symlinks is False, and the last element of the path is a symbolic
12914 int follow_symlinks)
12920 if (fd_and_follow_symlinks_invalid("getxattr", path->fd, follow_symlinks))
12944 else if (follow_symlinks)
12977 follow_symlinks: bool = True
12982 If follow_symlinks is False, and the last element of the path is a symbolic
12990 Py_buffer *value, int flags, int follow_symlinks)
12995 if (fd_and_follow_symlinks_invalid("setxattr", path->fd, follow_symlinks))
13007 else if (follow_symlinks)
13030 follow_symlinks: bool = True
13035 If follow_symlinks is False, and the last element of the path is a symbolic
13043 int follow_symlinks)
13048 if (fd_and_follow_symlinks_invalid("removexattr", path->fd, follow_symlinks))
13058 else if (follow_symlinks)
13077 follow_symlinks: bool = True
13083 If follow_symlinks is False, and the last element of the path is a symbolic
13089 os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks)
13097 if (fd_and_follow_symlinks_invalid("listxattr", path->fd, follow_symlinks))
13126 else if (follow_symlinks)
13641 int follow_symlinks, unsigned short mode_bits);
13670 DirEntry_fetch_stat(PyObject *module, DirEntry *self, int follow_symlinks)
13697 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW);
13712 if (follow_symlinks) {
13752 follow_symlinks: bool = True
13759 int follow_symlinks)
13762 if (!follow_symlinks) {
13787 int follow_symlinks, unsigned short mode_bits)
13803 need_stat = follow_symlinks && is_symlink;
13806 need_stat = self->d_type == DT_UNKNOWN || (follow_symlinks && is_symlink);
13812 stat = os_DirEntry_stat_impl(self, defining_class, follow_symlinks);
13869 follow_symlinks: bool = True
13876 int follow_symlinks)
13879 return DirEntry_test_mode(defining_class, self, follow_symlinks, S_IFDIR);
13887 follow_symlinks: bool = True
13894 int follow_symlinks)
13897 return DirEntry_test_mode(defining_class, self, follow_symlinks, S_IFREG);