• Home
  • Raw
  • Download

Lines Matching refs:follow_symlinks

1405 follow_symlinks_specified(const char *function_name, int follow_symlinks)  in follow_symlinks_specified()  argument
1407 if (follow_symlinks) in follow_symlinks_specified()
1444 int follow_symlinks) in fd_and_follow_symlinks_invalid() argument
1446 if ((fd > 0) && (!follow_symlinks)) { in fd_and_follow_symlinks_invalid()
1457 int follow_symlinks) in dir_fd_and_follow_symlinks_invalid() argument
1459 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in dir_fd_and_follow_symlinks_invalid()
2499 int dir_fd, int follow_symlinks) in posix_do_stat() argument
2509 if (follow_symlinks_specified(function_name, follow_symlinks)) in posix_do_stat()
2515 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks)) in posix_do_stat()
2522 else if (follow_symlinks) in posix_do_stat()
2529 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in posix_do_stat()
2534 if ((dir_fd != DEFAULT_DIR_FD) || !follow_symlinks) { in posix_do_stat()
2537 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in posix_do_stat()
2885 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks) in os_stat_impl() argument
2888 return posix_do_stat(module, "stat", path, dir_fd, follow_symlinks); in os_stat_impl()
2911 int follow_symlinks = 0; in os_lstat_impl() local
2912 return posix_do_stat(module, "lstat", path, dir_fd, follow_symlinks); in os_lstat_impl()
2957 int effective_ids, int follow_symlinks) in os_access_impl() argument
2973 if (follow_symlinks_specified("access", follow_symlinks)) in os_access_impl()
3005 !follow_symlinks) { in os_access_impl()
3009 if (!follow_symlinks) in os_access_impl()
3029 if (follow_symlinks_specified("access", follow_symlinks)) in os_access_impl()
3226 int follow_symlinks) in os_chmod_impl() argument
3241 if (follow_symlinks_specified("chmod", follow_symlinks)) in os_chmod_impl()
3275 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in os_chmod_impl()
3280 if ((dir_fd != DEFAULT_DIR_FD) || !follow_symlinks) { in os_chmod_impl()
3293 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in os_chmod_impl()
3301 !follow_symlinks; in os_chmod_impl()
3326 dir_fd, follow_symlinks); in os_chmod_impl()
3328 follow_symlinks_specified("chmod", follow_symlinks); in os_chmod_impl()
3430 int follow_symlinks) in os_chflags_impl() argument
3436 if (follow_symlinks_specified("chflags", follow_symlinks)) in os_chflags_impl()
3446 if (!follow_symlinks) in os_chflags_impl()
3618 int dir_fd, int follow_symlinks) in os_chown_impl() argument
3628 if (follow_symlinks_specified("chown", follow_symlinks)) in os_chown_impl()
3632 fd_and_follow_symlinks_invalid("chown", path->fd, follow_symlinks)) in os_chown_impl()
3647 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in os_chown_impl()
3652 if ((dir_fd != DEFAULT_DIR_FD) || (!follow_symlinks)) { in os_chown_impl()
3655 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in os_chown_impl()
3911 int dst_dir_fd, int follow_symlinks) in os_link_impl() argument
3956 (!follow_symlinks)) { in os_link_impl()
3962 follow_symlinks ? AT_SYMLINK_FOLLOW : 0); in os_link_impl()
5162 utime_dir_fd(utime_t *ut, int dir_fd, const char *path, int follow_symlinks) in utime_dir_fd() argument
5166 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW; in utime_dir_fd()
5174 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW; in utime_dir_fd()
5184 assert(follow_symlinks); in utime_dir_fd()
5366 int dir_fd, int follow_symlinks) in os_utime_impl() argument
5428 if (follow_symlinks_specified("utime", follow_symlinks)) in os_utime_impl()
5434 fd_and_follow_symlinks_invalid("utime", path->fd, follow_symlinks)) in os_utime_impl()
5438 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in os_utime_impl()
5484 if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD)) in os_utime_impl()
5490 if ((dir_fd != DEFAULT_DIR_FD) || (!follow_symlinks)) { in os_utime_impl()
5491 result = utime_dir_fd(&utime, dir_fd, path->narrow, follow_symlinks); in os_utime_impl()
12717 int follow_symlinks) in os_getxattr_impl() argument
12723 if (fd_and_follow_symlinks_invalid("getxattr", path->fd, follow_symlinks)) in os_getxattr_impl()
12747 else if (follow_symlinks) in os_getxattr_impl()
12793 Py_buffer *value, int flags, int follow_symlinks) in os_setxattr_impl() argument
12798 if (fd_and_follow_symlinks_invalid("setxattr", path->fd, follow_symlinks)) in os_setxattr_impl()
12810 else if (follow_symlinks) in os_setxattr_impl()
12846 int follow_symlinks) in os_removexattr_impl() argument
12851 if (fd_and_follow_symlinks_invalid("removexattr", path->fd, follow_symlinks)) in os_removexattr_impl()
12861 else if (follow_symlinks) in os_removexattr_impl()
12892 os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks) in os_listxattr_impl() argument
12900 if (fd_and_follow_symlinks_invalid("listxattr", path->fd, follow_symlinks)) in os_listxattr_impl()
12929 else if (follow_symlinks) in os_listxattr_impl()
13444 int follow_symlinks, unsigned short mode_bits);
13473 DirEntry_fetch_stat(PyObject *module, DirEntry *self, int follow_symlinks) in DirEntry_fetch_stat() argument
13499 follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW); in DirEntry_fetch_stat()
13512 if (follow_symlinks) in DirEntry_fetch_stat()
13556 int follow_symlinks) in os_DirEntry_stat_impl() argument
13559 if (!follow_symlinks) { in os_DirEntry_stat_impl()
13584 int follow_symlinks, unsigned short mode_bits) in DirEntry_test_mode() argument
13600 need_stat = follow_symlinks && is_symlink; in DirEntry_test_mode()
13603 need_stat = self->d_type == DT_UNKNOWN || (follow_symlinks && is_symlink); in DirEntry_test_mode()
13609 stat = os_DirEntry_stat_impl(self, defining_class, follow_symlinks); in DirEntry_test_mode()
13673 int follow_symlinks) in os_DirEntry_is_dir_impl() argument
13676 return DirEntry_test_mode(defining_class, self, follow_symlinks, S_IFDIR); in os_DirEntry_is_dir_impl()
13691 int follow_symlinks) in os_DirEntry_is_file_impl() argument
13694 return DirEntry_test_mode(defining_class, self, follow_symlinks, S_IFREG); in os_DirEntry_is_file_impl()