Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 236) sorted by relevance

12345678910

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dgenericpath.py7 import stat
18 os.stat(path)
29 st = os.stat(path)
32 return stat.S_ISREG(st.st_mode)
41 st = os.stat(s)
44 return stat.S_ISDIR(st.st_mode)
49 return os.stat(filename).st_size
54 return os.stat(filename).st_mtime
59 return os.stat(filename).st_atime
64 return os.stat(filename).st_ctime
Dlinecache.py60 stat = os.stat(fullname)
64 if size != stat.st_size or mtime != stat.st_mtime:
80 stat = os.stat(fullname)
120 stat = os.stat(fullname)
133 size, mtime = stat.st_size, stat.st_mtime
Dfilecmp.py13 import stat
42 s1 = _sig(os.stat(f1))
43 s2 = _sig(os.stat(f2))
44 if s1[0] != stat.S_IFREG or s2[0] != stat.S_IFREG:
59 return (stat.S_IFMT(st.st_mode),
148 a_stat = os.stat(a_path)
153 b_stat = os.stat(b_path)
159 a_type = stat.S_IFMT(a_stat.st_mode)
160 b_type = stat.S_IFMT(b_stat.st_mode)
163 elif stat.S_ISDIR(a_type):
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dgenericpath.py7 import stat
26 os.stat(path)
37 st = os.stat(path)
40 return stat.S_ISREG(st.st_mode)
49 st = os.stat(s)
52 return stat.S_ISDIR(st.st_mode)
57 return os.stat(filename).st_size
62 return os.stat(filename).st_mtime
67 return os.stat(filename).st_atime
72 return os.stat(filename).st_ctime
Dlinecache.py64 stat = os.stat(fullname)
68 if size != stat.st_size or mtime != stat.st_mtime:
84 stat = os.stat(fullname)
124 stat = os.stat(fullname)
137 size, mtime = stat.st_size, stat.st_mtime
/device/google/cuttlefish/common/libs/utils/
Dfiles.cpp32 struct stat st; in FileExists()
33 return stat(path.c_str(), &st) == 0; in FileExists()
41 struct stat st; in DirectoryExists()
42 if (stat(path.c_str(), &st) == -1) { in DirectoryExists()
69 struct stat st; in FileSize()
70 if (stat(path.c_str(), &st) == -1) { in FileSize()
78 struct stat st; in FileModificationTime()
79 if (stat(path.c_str(), &st) == -1) { in FileModificationTime()
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DSocketStream.cpp99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0); in writeFully() local
100 if (stat < 0) { in writeFully()
102 retval = stat; in writeFully()
107 res -= stat; in writeFully()
121 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); in readFully() local
122 if (stat > 0) { in readFully()
123 res -= stat; in readFully()
126 if (stat == 0 || errno != EINTR) { // client shutdown or error in readFully()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
DEfiSysCall.h71 struct stat; /* Structure declared in <sys/stat.h> */
283 int fstat (int, struct stat *);
284 int lstat (const char *, struct stat *);
285 int stat (const char *, struct stat *);
Dstat.h54 struct stat { struct
191 int fstat (int, struct stat *);
195 int lstat (const char *, struct stat *);
209 int stat (const char *, struct stat *);
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DProcessPipe.cpp127 ssize_t stat = 0; in sQemuPipeInit() local
129 stat = in sQemuPipeInit()
132 } while (stat < 0 && errno == EINTR); in sQemuPipeInit()
134 if (stat != sizeof(confirmInt)) { // failed in sQemuPipeInit()
143 stat = in sQemuPipeInit()
146 } while (stat < 0 && (errno == EINTR || errno == EAGAIN)); in sQemuPipeInit()
148 if (stat != sizeof(sProcUID)) { in sQemuPipeInit()
DVirtioGpuPipeStream.cpp211 ssize_t stat = transferToHost((const char *)(buf) + (len - res), res); in writeFully() local
212 if (stat > 0) { in writeFully()
213 res -= stat; in writeFully()
216 if (stat == 0) { /* EOF */ in writeFully()
224 retval = stat; in writeFully()
250 ssize_t stat = transferFromHost((char *)(buf) + len - res, res); in readFully() local
251 if (stat == 0) { in readFully()
254 } else if (stat < 0) { in readFully()
264 res -= stat; in readFully()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Ddep_util.py30 return os.stat(source).st_mtime > os.stat(target).st_mtime
74 target_mtime = os.stat(target).st_mtime
85 if os.stat(source).st_mtime > target_mtime:
/device/google/coral/pwrstats_util/
DCstateResidencyDataProvider.cpp30 int CstateResidencyDataProvider::getImpl(PowerStatistic* stat) const { in getImpl()
38 auto residencies = stat->mutable_c_state_residency(); in getImpl()
87 void CstateResidencyDataProvider::dumpImpl(const PowerStatistic& stat, in dumpImpl() argument
90 StateResidencyDump(stat.c_state_residency().residency(), output); in dumpImpl()
DCstateResidencyDataProvider.h31 int getImpl(PowerStatistic* stat) const override;
33 void dumpImpl(const PowerStatistic& stat, std::ostream* output) const override;
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/
DInstallPkg.py25 import stat
793 chmod(ToFile, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
795 …chmod(ToFile, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH | stat.S_IEXEC | stat.S_IXGRP | stat.S_IX…
797 chmod(ToFile, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH | stat.S_IWUSR | stat.S_IWGRP |
798 stat.S_IWOTH | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH)
800 …chmod(ToFile, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH | stat.S_IWUSR | stat.S_IWGRP | stat.S_IW…
872 chmod(ToFile, stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH)
874 …chmod(ToFile, stat.S_IRUSR|stat.S_IRGRP|stat.S_IROTH|stat.S_IWUSR|stat.S_IWGRP|stat.S_IWOTH) …
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
DFSProxy.py22 from stat import *
155 return os.stat(name)[ST_SIZE]
159 return time.localtime(os.stat(name)[ST_MTIME])
161 def stat(self, name): member in FSProxyLocal
163 size = os.stat(name)[ST_SIZE]
164 mtime = time.localtime(os.stat(name)[ST_MTIME])
169 size = os.stat(name)[ST_SIZE]
170 mtime = time.localtime(os.stat(name)[ST_MTIME])
188 return self._list(self.stat, list)
220 return self.dict(self.stat, list)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dcvsfiles.py15 import stat
66 st = os.stat(filename)
69 return st[stat.ST_MTIME]
Dcopytime.py7 from stat import ST_ATIME, ST_MTIME # Really constants 7 and 8
15 stat1 = os.stat(file1)
Dmkreal.py9 from stat import *
18 st = os.stat(name) # Get the mode
32 st = os.stat(name) # Get the mode
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_dir_util.py4 import stat
62 stat.S_IMODE(os.stat(self.target).st_mode), 0o700 & ~umask)
65 stat.S_IMODE(os.stat(self.target2).st_mode), 0o555 & ~umask)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/
DFileHook.py20 import stat
70 sta = os.stat(path)
71 oldmode = stat.S_IMODE(sta.st_mode)
83 sta = os.stat(path)
84 oldmode = stat.S_IMODE(sta.st_mode)
96 sta = os.stat(path)
97 oldmode = stat.S_IMODE(sta.st_mode)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_import.py6 import stat
101 os.chmod(fname, (stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH |
102 stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH))
110 s = os.stat(fn)
111 self.assertEqual(stat.S_IMODE(s.st_mode),
112 stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
Dtest_dumbdbm.py59 import stat
60 st = os.stat(_fname + '.dat')
61 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
62 st = os.stat(_fname + '.dir')
63 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
/device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_emmc.c95 uint32_t stat, flags, dma_addr; in uniphier_emmc_send_cmd() local
133 stat = mmio_read_32(host_base + SDHCI_INT_STATUS); in uniphier_emmc_send_cmd()
134 if (stat & SDHCI_INT_ERROR) in uniphier_emmc_send_cmd()
137 if (stat & SDHCI_INT_DMA_END) { in uniphier_emmc_send_cmd()
138 mmio_write_32(host_base + SDHCI_INT_STATUS, stat); in uniphier_emmc_send_cmd()
142 } while (!(stat & end_bit)); in uniphier_emmc_send_cmd()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dloadlib.c310 int stat = ll_loadfunc(L, path, init); in ll_loadlib() local
311 if (stat == 0) /* no errors? */ in ll_loadlib()
316 lua_pushstring(L, (stat == ERRLIB) ? LIB_FAIL : "init"); in ll_loadlib()
398 static int checkload (lua_State *L, int stat, const char *filename) { in checkload() argument
399 if (stat) { /* module loaded successfully? */ in checkload()
425 int stat; in loadfunc() local
428 stat = ll_loadfunc(L, filename, funcname); in loadfunc()
429 if (stat != ERRFUNC) return stat; in loadfunc()
449 int stat; in searcher_Croot() local
454 if ((stat = loadfunc(L, filename, name)) != 0) { in searcher_Croot()
[all …]

12345678910