Lines Matching refs:stat

238 #  include <sys/stat.h>
482 /* choose the appropriate stat and fstat functions and return structs */
492 # define STAT stat
495 # define STRUCT_STAT struct stat
1831 /* The CRT of Windows has a number of flaws wrt. its stat() implementation:
1835 Therefore, we implement our own stat, based on the Win32 API directly.
1935 /* The stat call has to traverse but cannot, so fail. */
2094 In Posix, stat automatically traverses symlinks and returns the stat
2117 "stat_result: Result from stat, fstat, or lstat.\n\n\
2125 See os.stat for more information.");
2410 /* pack a system stat C structure into the Python stat tuple
2423 "stat.st_ino is larger than unsigned long long");
2439 "stat.st_size is larger than long long");
2536 if (path_and_dir_fd_invalid("stat", path, dir_fd) ||
2537 dir_fd_and_fd_invalid("stat", dir_fd, path->fd) ||
2538 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks))
2573 argument_unavailable_error("stat", "dir_fd");
2878 os.stat
2893 stat will examine the symbolic link itself instead of the file
2896 Perform a stat system call on the given path.
2911 return posix_do_stat(module, "stat", path, dir_fd, follow_symlinks);
2924 Perform a stat system call on the given path, without following symbolic links.
2926 Like stat(), but do not follow symbolic links.
2927 Equivalent to stat(path, follow_symlinks=False).
3630 stat will examine the symbolic link itself instead of the file
10112 struct stat st;
10188 Perform a stat system call on the given file descriptor.
10190 Like stat(), but for an open file descriptor.
10191 Equivalent to os.stat(fd).
13610 PyObject *stat;
13631 Py_XDECREF(entry->stat);
13704 PyErr_SetString(PyExc_NotImplementedError, "can't fetch stat");
13748 os.DirEntry.stat
13766 if (!self->stat) {
13773 self->stat = DirEntry_fetch_stat(module, self, 1);
13776 self->stat = DirEntry_get_lstat(defining_class, self);
13780 Py_XINCREF(self->stat);
13781 return self->stat;
13789 PyObject *stat = NULL;
13812 stat = os_DirEntry_stat_impl(self, defining_class, follow_symlinks);
13813 if (!stat) {
13823 st_mode = PyObject_GetAttr(stat, state->st_mode);
13831 Py_CLEAR(stat);
13860 Py_XDECREF(stat);
13913 STRUCT_STAT stat;
13922 result = LSTAT(path, &stat);
13928 result = LSTAT(path, &stat);
13935 self->win32_file_index = stat.st_ino;
14056 entry->stat = NULL;
14144 entry->stat = NULL;