Lines Matching refs:follow_symlinks
1326 follow_symlinks_specified(const char *function_name, int follow_symlinks) in follow_symlinks_specified() argument
1328 if (follow_symlinks) in follow_symlinks_specified()
1365 int follow_symlinks) in fd_and_follow_symlinks_invalid() argument
1367 if ((fd > 0) && (!follow_symlinks)) { in fd_and_follow_symlinks_invalid()
1378 int follow_symlinks) in dir_fd_and_follow_symlinks_invalid() argument
1380 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in dir_fd_and_follow_symlinks_invalid()
2415 int dir_fd, int follow_symlinks) in posix_do_stat() argument
2425 if (follow_symlinks_specified(function_name, follow_symlinks)) in posix_do_stat()
2431 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks)) in posix_do_stat()
2438 else if (follow_symlinks) in posix_do_stat()
2445 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in posix_do_stat()
2450 if ((dir_fd != DEFAULT_DIR_FD) || !follow_symlinks) { in posix_do_stat()
2453 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in posix_do_stat()
2805 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks) in os_stat_impl() argument
2808 return posix_do_stat(module, "stat", path, dir_fd, follow_symlinks); in os_stat_impl()
2831 int follow_symlinks = 0; in os_lstat_impl() local
2832 return posix_do_stat(module, "lstat", path, dir_fd, follow_symlinks); in os_lstat_impl()
2877 int effective_ids, int follow_symlinks) in os_access_impl() argument
2893 if (follow_symlinks_specified("access", follow_symlinks)) in os_access_impl()
2925 !follow_symlinks) { in os_access_impl()
2929 if (!follow_symlinks) in os_access_impl()
2949 if (follow_symlinks_specified("access", follow_symlinks)) in os_access_impl()
3146 int follow_symlinks) in os_chmod_impl() argument
3161 if (follow_symlinks_specified("chmod", follow_symlinks)) in os_chmod_impl()
3195 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in os_chmod_impl()
3200 if ((dir_fd != DEFAULT_DIR_FD) || !follow_symlinks) { in os_chmod_impl()
3213 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in os_chmod_impl()
3221 !follow_symlinks; in os_chmod_impl()
3246 dir_fd, follow_symlinks); in os_chmod_impl()
3248 follow_symlinks_specified("chmod", follow_symlinks); in os_chmod_impl()
3350 int follow_symlinks) in os_chflags_impl() argument
3356 if (follow_symlinks_specified("chflags", follow_symlinks)) in os_chflags_impl()
3366 if (!follow_symlinks) in os_chflags_impl()
3538 int dir_fd, int follow_symlinks) in os_chown_impl() argument
3548 if (follow_symlinks_specified("chown", follow_symlinks)) in os_chown_impl()
3552 fd_and_follow_symlinks_invalid("chown", path->fd, follow_symlinks)) in os_chown_impl()
3567 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in os_chown_impl()
3572 if ((dir_fd != DEFAULT_DIR_FD) || (!follow_symlinks)) { in os_chown_impl()
3575 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in os_chown_impl()
3831 int dst_dir_fd, int follow_symlinks) in os_link_impl() argument
3876 (!follow_symlinks)) { in os_link_impl()
3882 follow_symlinks ? AT_SYMLINK_FOLLOW : 0); in os_link_impl()
5035 utime_dir_fd(utime_t *ut, int dir_fd, const char *path, int follow_symlinks) in utime_dir_fd() argument
5039 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW; in utime_dir_fd()
5047 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW; in utime_dir_fd()
5057 assert(follow_symlinks); in utime_dir_fd()
5239 int dir_fd, int follow_symlinks) in os_utime_impl() argument
5301 if (follow_symlinks_specified("utime", follow_symlinks)) in os_utime_impl()
5307 fd_and_follow_symlinks_invalid("utime", path->fd, follow_symlinks)) in os_utime_impl()
5311 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in os_utime_impl()
5357 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in os_utime_impl()
5363 if ((dir_fd != DEFAULT_DIR_FD) || (!follow_symlinks)) { in os_utime_impl()
5364 result = utime_dir_fd(&utime, dir_fd, path->narrow, follow_symlinks); in os_utime_impl()
12537 int follow_symlinks) in os_getxattr_impl() argument
12543 if (fd_and_follow_symlinks_invalid("getxattr", path->fd, follow_symlinks)) in os_getxattr_impl()
12567 else if (follow_symlinks) in os_getxattr_impl()
12613 Py_buffer *value, int flags, int follow_symlinks) in os_setxattr_impl() argument
12618 if (fd_and_follow_symlinks_invalid("setxattr", path->fd, follow_symlinks)) in os_setxattr_impl()
12630 else if (follow_symlinks) in os_setxattr_impl()
12666 int follow_symlinks) in os_removexattr_impl() argument
12671 if (fd_and_follow_symlinks_invalid("removexattr", path->fd, follow_symlinks)) in os_removexattr_impl()
12681 else if (follow_symlinks) in os_removexattr_impl()
12712 os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks) in os_listxattr_impl() argument
12720 if (fd_and_follow_symlinks_invalid("listxattr", path->fd, follow_symlinks)) in os_listxattr_impl()
12749 else if (follow_symlinks) in os_listxattr_impl()
13197 int follow_symlinks, unsigned short mode_bits);
13226 DirEntry_fetch_stat(PyObject *module, DirEntry *self, int follow_symlinks) in DirEntry_fetch_stat() argument
13244 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in DirEntry_fetch_stat()
13257 if (follow_symlinks) in DirEntry_fetch_stat()
13297 int follow_symlinks) in os_DirEntry_stat_impl() argument
13300 if (!follow_symlinks) { in os_DirEntry_stat_impl()
13325 int follow_symlinks, unsigned short mode_bits) in DirEntry_test_mode() argument
13341 need_stat = follow_symlinks && is_symlink; in DirEntry_test_mode()
13344 need_stat = self->d_type == DT_UNKNOWN || (follow_symlinks && is_symlink); in DirEntry_test_mode()
13350 stat = os_DirEntry_stat_impl(self, defining_class, follow_symlinks); in DirEntry_test_mode()
13414 int follow_symlinks) in os_DirEntry_is_dir_impl() argument
13417 return DirEntry_test_mode(defining_class, self, follow_symlinks, S_IFDIR); in os_DirEntry_is_dir_impl()
13432 int follow_symlinks) in os_DirEntry_is_file_impl() argument
13435 return DirEntry_test_mode(defining_class, self, follow_symlinks, S_IFREG); in os_DirEntry_is_file_impl()