Home
last modified time | relevance | path

Searched refs:stat (Results 576 - 600 of 7655) sorted by relevance

1...<<21222324252627282930>>...307

/third_party/lz4/tests/
H A DabiTest.c25 #include <sys/types.h> /* stat */
26 #include <sys/stat.h> /* stat */
128 struct stat statbuf; in getFileSize()
129 r = stat(infilename, &statbuf); in getFileSize()
144 struct stat statbuf; in isDirectory()
145 r = stat(infilename, &statbuf); in isDirectory()
H A DroundTripTest.c37 #include <sys/types.h> /* stat */
38 #include <sys/stat.h> /* stat */
156 struct stat statbuf; in getFileSize()
157 r = stat(infilename, &statbuf); in getFileSize()
172 struct stat statbuf; in isDirectory()
173 r = stat(infilename, &statbuf); in isDirectory()
/third_party/python/Lib/
H A Dzipapp.py5 import stat namespace
73 os.chmod(new_archive, os.stat(new_archive).st_mode | stat.S_IEXEC)
147 target.chmod(target.stat().st_mode | stat.S_IEXEC)
H A Dshutil.py9 import stat namespace
206 return os.path.samestat(src.stat(), os.stat(dst))
221 return fn.stat() if isinstance(fn, os.DirEntry) else os.stat(fn)
247 if stat.S_ISFIFO(st.st_mode):
309 chmod_func(dst, stat.S_IMODE(st.st_mode))
372 st = src.stat(follow_symlinks=follow)
374 st = lookup("stat")(src, follow_symlinks=follow)
375 mode = stat
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dhi_audit.cpp79 struct stat st; in Init()
80 writeLogSize_ = stat(HIAUDIT_LOG_NAME.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in Init()
170 struct stat st; in CleanOldAuditFile()
171 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile()
172 struct stat oldestSt; in CleanOldAuditFile()
173 stat(oldestAuditFile.c_str(), &oldestSt); in CleanOldAuditFile()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dhi_audit.cpp77 struct stat st; in Init()
78 writeLogSize_ = stat(HIAUDIT_LOG_NAME.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in Init()
164 struct stat st; in CleanOldAuditFile()
165 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile()
166 struct stat oldestSt; in CleanOldAuditFile()
167 stat(oldestAuditFile.c_str(), &oldestSt); in CleanOldAuditFile()
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/
H A Dn_async_work_callback.cpp114 napi_status stat = napi_call_function(env, global, callback, argv.size(), argv.data(), &tmp); in CallbackComplete() local
115 if (stat != napi_ok) { in CallbackComplete()
116 HILOGE("Failed to call function for %{public}d", stat); in CallbackComplete()
179 napi_status stat = napi_call_function(env, global, callback, argv.size(), argv.data(), &tmp); in AfterWorkCallback() local
180 if (stat != napi_ok) { in AfterWorkCallback()
181 HILOGE("Failed to call function for %{public}d", stat); in AfterWorkCallback()
/foundation/filemanagement/app_file_service/utils/src/b_hiaudit/
H A Dhi_audit.cpp81 struct stat st; in Init()
82 writeLogSize_ = stat(HIAUDIT_LOG_NAME.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in Init()
175 struct stat st; in CleanOldAuditFile()
176 stat((hiAuditConfig_.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile()
177 struct stat oldestSt; in CleanOldAuditFile()
178 stat(oldestAuditFile.c_str(), &oldestSt); in CleanOldAuditFile()
/kernel/linux/linux-5.10/arch/mips/vdso/
H A Dgenvdso.c22 #include <sys/stat.h>
111 struct stat stat; in map_vdso() local
122 if (fstat(fd, &stat) != 0) { in map_vdso()
123 fprintf(stderr, "%s: Failed to stat '%s': %s\n", program_name, in map_vdso()
129 addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, in map_vdso()
186 *_size = stat.st_size; in map_vdso()
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dprocess.c24 #define STAT_PATH_LEN sizeof("/proc/#######/stat\0")
33 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
61 char stat[STAT_PATH_LEN]; in os_process_parent() local
68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
69 fd = open(stat, O_RDONLY, 0); in os_process_parent()
71 printk(UM_KERN_ERR "Couldn't open '%s', errno = %d\n", stat, in os_process_parent()
80 printk(UM_KERN_ERR "Couldn't read '%s', errno = %d\n", stat, in os_process_parent()
/kernel/linux/linux-6.6/arch/mips/vdso/
H A Dgenvdso.c22 #include <sys/stat.h>
111 struct stat stat; in map_vdso() local
122 if (fstat(fd, &stat) != 0) { in map_vdso()
123 fprintf(stderr, "%s: Failed to stat '%s': %s\n", program_name, in map_vdso()
129 addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, in map_vdso()
186 *_size = stat.st_size; in map_vdso()
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dprocess.c24 #define STAT_PATH_LEN sizeof("/proc/#######/stat\0")
33 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
61 char stat[STAT_PATH_LEN]; in os_process_parent() local
68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
69 fd = open(stat, O_RDONLY, 0); in os_process_parent()
71 printk(UM_KERN_ERR "Couldn't open '%s', errno = %d\n", stat, in os_process_parent()
80 printk(UM_KERN_ERR "Couldn't read '%s', errno = %d\n", stat, in os_process_parent()
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-aspeed-vic.c91 u32 stat, irq; in avic_handle_irq() local
95 stat = readl_relaxed(vic->base + AVIC_IRQ_STATUS); in avic_handle_irq()
96 if (!stat) { in avic_handle_irq()
97 stat = readl_relaxed(vic->base + AVIC_IRQ_STATUS + 4); in avic_handle_irq()
100 if (stat == 0) in avic_handle_irq()
102 irq += ffs(stat) - 1; in avic_handle_irq()
/kernel/linux/linux-5.10/sound/soc/adi/
H A Daxi-spdif.c80 unsigned int clkdiv, stat; in axi_spdif_hw_params() local
84 stat = AXI_SPDIF_FREQ_32000; in axi_spdif_hw_params()
87 stat = AXI_SPDIF_FREQ_44100; in axi_spdif_hw_params()
90 stat = AXI_SPDIF_FREQ_48000; in axi_spdif_hw_params()
93 stat = AXI_SPDIF_FREQ_NA; in axi_spdif_hw_params()
101 regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); in axi_spdif_hw_params()
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
H A Ddtt200u-fe.c14 enum fe_status stat; member
24 enum fe_status *stat) in dtt200u_fe_read_status()
34 *stat = 0; in dtt200u_fe_read_status()
41 *stat = FE_HAS_SIGNAL | FE_HAS_CARRIER | in dtt200u_fe_read_status()
45 *stat = FE_TIMEDOUT; /* during set_frontend */ in dtt200u_fe_read_status()
49 *stat = 0; in dtt200u_fe_read_status()
23 dtt200u_fe_read_status(struct dvb_frontend *fe, enum fe_status *stat) dtt200u_fe_read_status() argument
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/
H A Ddtt200u-fe.c14 enum fe_status stat; member
24 enum fe_status *stat) in dtt200u_fe_read_status()
34 *stat = 0; in dtt200u_fe_read_status()
41 *stat = FE_HAS_SIGNAL | FE_HAS_CARRIER | in dtt200u_fe_read_status()
45 *stat = FE_TIMEDOUT; /* during set_frontend */ in dtt200u_fe_read_status()
49 *stat = 0; in dtt200u_fe_read_status()
23 dtt200u_fe_read_status(struct dvb_frontend *fe, enum fe_status *stat) dtt200u_fe_read_status() argument
/kernel/linux/linux-6.6/drivers/irqchip/
H A Dirq-aspeed-vic.c91 u32 stat, irq; in avic_handle_irq() local
95 stat = readl_relaxed(vic->base + AVIC_IRQ_STATUS); in avic_handle_irq()
96 if (!stat) { in avic_handle_irq()
97 stat = readl_relaxed(vic->base + AVIC_IRQ_STATUS + 4); in avic_handle_irq()
100 if (stat == 0) in avic_handle_irq()
102 irq += ffs(stat) - 1; in avic_handle_irq()
/kernel/linux/linux-6.6/sound/soc/adi/
H A Daxi-spdif.c80 unsigned int clkdiv, stat; in axi_spdif_hw_params() local
84 stat = AXI_SPDIF_FREQ_32000; in axi_spdif_hw_params()
87 stat = AXI_SPDIF_FREQ_44100; in axi_spdif_hw_params()
90 stat = AXI_SPDIF_FREQ_48000; in axi_spdif_hw_params()
93 stat = AXI_SPDIF_FREQ_NA; in axi_spdif_hw_params()
101 regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); in axi_spdif_hw_params()
/third_party/ntfs-3g/include/fuse-lite/
H A Dfuse.h23 #include <sys/stat.h>
44 * @param stat file attributes, can be NULL
49 const struct stat *stbuf, off_t off);
74 * Similar to stat(). The 'st_dev' and 'st_blksize' fields are
78 int (*getattr) (const char *, struct stat *);
369 int (*fgetattr) (const char *, struct stat *, struct fuse_file_info *);
564 int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf);
565 int fuse_fs_fgetattr(struct fuse_fs *fs, const char *path, struct stat *buf,
/third_party/musl/src/stat/
H A Dfstatat.c2 #include <sys/stat.h>
35 static int fstatat_statx(int fd, const char *restrict path, struct stat *restrict st, int flag) in fstatat_statx()
43 *st = (struct stat){ in fstatat_statx()
76 static int fstatat_kstat(int fd, const char *restrict path, struct stat *restrict st, int flag) in fstatat_kstat()
108 *st = (struct stat){ in fstatat_kstat()
139 int __fstatat(int fd, const char *restrict path, struct stat *restrict st, int flag) in __fstatat()
/third_party/node/deps/openssl/openssl/crypto/rand/
H A Drandfile.c13 * declarations in c99 associated with SPT use of stat.
16 # include <sys/stat.h>
35 # include <sys/stat.h>
40 # define stat _stat macro
97 struct stat sb; in RAND_load_file()
187 struct stat sb; in RAND_write_file()
189 if (stat(file, &sb) >= 0 && !S_ISREG(sb.st_mode)) { in RAND_write_file()
/third_party/openssl/crypto/rand/
H A Drandfile.c13 * declarations in c99 associated with SPT use of stat.
16 # include <sys/stat.h>
36 # include <sys/stat.h>
41 # define stat _stat macro
98 struct stat sb; in RAND_load_file()
188 struct stat sb; in RAND_write_file()
190 if (stat(file, &sb) >= 0 && !S_ISREG(sb.st_mode)) { in RAND_write_file()
/third_party/python/Lib/distutils/tests/
H A Dtest_file_util.py94 st = os.stat(self.source)
96 st2 = os.stat(self.source)
97 st3 = os.stat(self.target)
110 st = os.stat(self.source)
113 st2 = os.stat(self.source)
114 st3 = os.stat(self.target)
/third_party/python/Modules/_decimal/tests/
H A Ddeccheck.py825 def verify(t, stat):
860 stat[nc] += 1
869 stat[type(t.rc).__name__] += 1
907 # test_n-ary(method, prec, exp_range, restricted_range, itr, stat) ->
919 # The 'stat' parameter is passed down to the 'verify'
933 stat = defaultdict(int)
960 spec['iter'], stat)
961 log(" result types: %s" % sorted([t for t in stat.items()]))
963 def test_unary(method, prec, exp_range, restricted_range, itr, stat):
973 verify(t, stat)
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
H A Dcoex.c40 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_limited_tx()
104 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_limited_wl()
124 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_ccklock_action()
163 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_ccklock_detect()
174 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_noisy_detect()
220 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_tdma_timer_base()
257 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_write_scbd()
302 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_check_rfk()
332 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_query_bt_info()
344 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_monitor_bt_enable()
[all...]

Completed in 28 milliseconds

1...<<21222324252627282930>>...307