| /third_party/skia/third_party/externals/egl-registry/api/ |
| H A D | reg.py | 6 # you may not use this file except in compliance with the License. 22 file = kwargs.pop('file', sys.stdout) 24 file.write(' '.join([str(arg) for arg in args])) 25 file.write(end) 205 # filename - name of file to generate, or None to write to stdout. 269 # generated around a feature interface in the header file. 319 # Manages basic logic, logging, and output file control 324 # errFile, warnFile, diagFile - file handles to write errors, 330 # beginFile(genOpts) - start a new interface file [all...] |
| /base/hiviewdfx/hiview/test/plugins/examples/event_source_example/ |
| H A D | event_source_example.cpp | 4 * you may not use this file except in compliance with the License. 66 std::ofstream file(path); in CreateWatchFile() 67 if (!file.good()) { in CreateWatchFile() 68 printf("Fail to create watch file:%s.\n", path.c_str()); in CreateWatchFile() 71 file << "" << std::endl; in CreateWatchFile() 72 file.close(); in CreateWatchFile() 117 printf("handle file event in %s \n", filePath.c_str()); in OnFileDescriptorEvent() 170 void EventSourceExample::CreateAndPublishEvent(const std::string &file) in CreateAndPublishEvent() argument 173 auto event = std::make_shared<EventSourceExampleEvent>(file, static_cast<PipelineEventProducer *>(this)); in CreateAndPublishEvent() 182 event->addon_ = file; in CreateAndPublishEvent() [all...] |
| /base/update/sys_installer/services/module_update/src/ |
| H A D | module_file_repository.cpp | 4 * you may not use this file except in compliance with the License. 47 for (string &file : files) { in InitRepository() 48 ProcessFile(hmpName, path, file, fileMap, timer); in InitRepository() 70 LOG(ERROR) << "Failed to open file"; in SaveInstallerResult() 80 LOG(WARNING) << "write result file failed, err:" << errno; in SaveInstallerResult() 85 void ModuleFileRepository::ProcessFile(const string &hmpName, const string &path, const string &file, in ProcessFile() argument 88 if (!CheckFileSuffix(file, MODULE_PACKAGE_SUFFIX)) { in ProcessFile() 91 std::unique_ptr<ModuleFile> moduleFile = ModuleFile::Open(file); in ProcessFile() 96 LOG(ERROR) << "verify failed, img is empty: " << file; in ProcessFile() 102 LOG(ERROR) << "Open " << file << " faile in ProcessFile() 135 ModuleFile file = fileIter->second; GetModuleFile() local [all...] |
| /device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_debugfs.c | 14 #include <linux/file.h> 67 struct file *file; in rockchip_drm_dump_plane_buffer() local 105 file = filp_open(ptr, flags, 0x1a4); in rockchip_drm_dump_plane_buffer() 106 if (!IS_ERR(file)) { in rockchip_drm_dump_plane_buffer() 107 kernel_write(file, kvaddr, size, &pos); in rockchip_drm_dump_plane_buffer() 108 DRM_INFO("dump file name is:%s\n", file_name); in rockchip_drm_dump_plane_buffer() 109 fput(file); in rockchip_drm_dump_plane_buffer() 129 static int rockchip_drm_dump_buffer_open(struct inode *inode, struct file *file) in rockchip_drm_dump_buffer_open() argument 136 rockchip_drm_dump_buffer_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) rockchip_drm_dump_buffer_write() argument [all...] |
| /third_party/exfatprogs/include/ |
| H A D | exfat_ondisk.h | 51 #define IS_EXFAT_DELETED(x) ((x) < 0x80) /* deleted file (0x01~0x7F) */ 56 #define EXFAT_FILE 0x85 /* file or dir */ 61 #define EXFAT_NAME 0xC1 /* file name entry */ 69 /* file attributes */ 146 } __attribute__((packed)) vol; /* file directory entry */ 165 } __attribute__((packed)) file; /* file directory entry */ member 180 } __attribute__((packed)) name; /* file name directory entry */ 199 #define file_num_ext dentry.file.num_ext 200 #define file_checksum dentry.file [all...] |
| /third_party/curl/src/ |
| H A D | tool_parsecfg.c | 10 * This software is licensed as described in the file COPYING, which 16 * furnished to do so, under the terms of the COPYING file. 54 * via inclusions done in setup header file. We assume that we are using in execpath() 84 FILE *file = NULL; in parseconfig() local 94 file = fopen(curlrc, FOPEN_READTEXT); in parseconfig() 95 if(!file) { in parseconfig() 105 file = execpath(".curlrc", &fullp); in parseconfig() 106 if(!file) in parseconfig() 107 file = execpath("_curlrc", &fullp); in parseconfig() 108 if(file) in parseconfig() [all...] |
| /third_party/node/deps/openssl/openssl/crypto/rand/ |
| H A D | randfile.c | 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 82 * -1 read the complete file; otherwise read the specified amount. 84 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument 105 if ((in = openssl_fopen(file, "rb")) == NULL) { in RAND_load_file() 107 "Filename=%s", file); in RAND_load_file() 114 "Filename=%s", file); in RAND_load_file() 138 * Don't buffer, because even if |file| is regular file, we have in RAND_load_file() 174 ERR_raise_data(ERR_LIB_RAND, RAND_R_RESEED_ERROR, "Filename=%s", file); in RAND_load_file() 181 RAND_write_file(const char *file) RAND_write_file() argument [all...] |
| /third_party/python/Lib/ |
| H A D | netrc.py | 11 """Exception raised on syntax errors in the .netrc file.""" 67 def __init__(self, file=None): 68 default_netrc = file is None 69 if file is None: 70 file = os.path.join(os.path.expanduser("~"), ".netrc") 74 with open(file, encoding="utf-8") as fp: 75 self._parse(file, fp, default_netrc) 77 with open(file, encoding="locale") as fp: 78 self._parse(file, fp, default_netrc) 80 def _parse(self, file, f [all...] |
| /third_party/skia/third_party/externals/abseil-cpp/absl/base/ |
| H A D | dynamic_annotations.h | 4 // you may not use this file except in compliance with the License. 15 // This file defines dynamic annotations for use with dynamic analysis tool 29 // This file supports the following configurations: 198 void AnnotateRWLockCreate(const char* file, int line, 200 void AnnotateRWLockCreateStatic(const char* file, int line, 202 void AnnotateRWLockDestroy(const char* file, int line, 204 void AnnotateRWLockAcquired(const char* file, int line, 206 void AnnotateRWLockReleased(const char* file, int line, 208 void AnnotateBenignRace(const char* file, int line, 210 void AnnotateBenignRaceSized(const char* file, in [all...] |
| /third_party/node/deps/zlib/ |
| H A D | gzwrite.c | 8 /* Initialize state for writing a gzip file. Mark initialization by setting 59 /* Compress whatever is at avail_in and next_in and write to the output file. 60 Return -1 if there is an error writing to the output file or if gz_init() 64 to the output file without compressing, and ignore flush. */ 171 /* Write len bytes from buf to file. Return the number of bytes written. If 218 /* directly compress user buffer to file */ in gz_write() 237 int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len) { in gzwrite() argument 241 if (file == NULL) in gzwrite() 243 state = (gz_statep)file; in gzwrite() 262 gzFile file) { in gzfwrite() 261 gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file) gzfwrite() argument 287 gzputc(gzFile file, int c) gzputc() argument 332 gzputs(gzFile file, const char *s) gzputs() argument 359 gzvprintf(gzFile file, const char *format, va_list va) gzvprintf() argument 430 gzprintf(gzFile file, const char *format, ...) gzprintf() argument 443 gzprintf(gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20) gzprintf() argument 528 gzflush(gzFile file, int flush) gzflush() argument 557 gzsetparams(gzFile file, int level, int strategy) gzsetparams() argument 595 gzclose_w(gzFile file) gzclose_w() argument [all...] |
| H A D | zlib.h | 73 file compression on file systems, has a larger header than zlib to maintain 117 int xflags; /* extra flags (not used when writing a gzip file) */ 122 Bytef *name; /* pointer to zero-terminated file name or Z_NULL */ 128 when writing a gzip file) */ 223 compatible with the zlib.h header file used by the application. This check 572 file name, no extra data, no comment, no modification time (set to zero), no 821 gzip file" and give up. 1093 the version of the header file. 1106 inflate() for file [all...] |
| H A D | gzread.c | 38 file is reached, even though there may be unused data in the buffer. Once 39 that data has been used, no more attempts will be made to read the file. 42 available data from the input file. */ 73 case, all further file reads will be directly to either the output buffer or 117 gzip file, to wit, if a single 31 byte is written, then we cannot tell in gz_look() 118 whether this is a single-byte file, or just a partially written gzip in gz_look() 119 file -- for here we assume that if a gzip file is being written, then in gz_look() 121 single byte is sufficient indication that it is not a gzip file) */ in gz_look() 168 gz_error(state, Z_BUF_ERROR, "unexpected end of file"); in gz_decomp() 345 gzread(gzFile file, voidp buf, unsigned len) gzread() argument 377 gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file) gzfread() argument 412 gzgetc(gzFile file) gzgetc() argument 437 gzgetc_(gzFile file) gzgetc_() argument 442 gzungetc(int c, gzFile file) gzungetc() argument 499 gzgets(gzFile file, char *buf, int len) gzgets() argument 559 gzdirect(gzFile file) gzdirect() argument 577 gzclose_r(gzFile file) gzclose_r() argument [all...] |
| /third_party/zlib/ |
| H A D | gzwrite.c | 10 /* Initialize state for writing a gzip file. Mark initialization by setting 62 /* Compress whatever is at avail_in and next_in and write to the output file. 63 Return -1 if there is an error writing to the output file or if gz_init() 67 to the output file without compressing, and ignore flush. */ 176 /* Write len bytes from buf to file. Return the number of bytes written. If 224 /* directly compress user buffer to file */ in gz_write() 243 int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len) { in gzwrite() argument 247 if (file == NULL) in gzwrite() 249 state = (gz_statep)file; in gzwrite() 268 gzFile file) in gzfwrite() 267 gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file) gzfwrite() argument 294 gzputc(gzFile file, int c) gzputc() argument 339 gzputs(gzFile file, const char *s) gzputs() argument 366 gzvprintf(gzFile file, const char *format, va_list va) gzvprintf() argument 437 gzprintf(gzFile file, const char *format, ...) gzprintf() argument 450 gzprintf(gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20) gzprintf() argument 535 gzflush(gzFile file, int flush) gzflush() argument 564 gzsetparams(gzFile file, int level, int strategy) gzsetparams() argument 602 gzclose_w(gzFile file) gzclose_w() argument [all...] |
| H A D | gzread.c | 47 file is reached, even though there may be unused data in the buffer. Once 48 that data has been used, no more attempts will be made to read the file. 51 available data from the input file. */ 87 case, all further file reads will be directly to either the output buffer or 136 gzip file, to wit, if a single 31 byte is written, then we cannot tell in gz_look() 137 whether this is a single-byte file, or just a partially written gzip in gz_look() 138 file -- for here we assume that if a gzip file is being written, then in gz_look() 140 single byte is sufficient indication that it is not a gzip file) */ in gz_look() 190 gz_error(state, Z_BUF_ERROR, "unexpected end of file"); in gz_decomp() 396 gzread(gzFile file, voidp buf, unsigned len) gzread() argument 435 gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file) gzfread() argument 471 gzgetc(gzFile file) gzgetc() argument 501 gzgetc_(gzFile file) gzgetc_() argument 507 gzungetc(int c, gzFile file) gzungetc() argument 580 gzgets(gzFile file, char *buf, int len) gzgets() argument 653 gzdirect(gzFile file) gzdirect() argument 676 gzclose_r(gzFile file) gzclose_r() argument [all...] |
| H A D | zlib.h | 73 file compression on file systems, has a larger header than zlib to maintain 117 int xflags; /* extra flags (not used when writing a gzip file) */ 122 Bytef *name; /* pointer to zero-terminated file name or Z_NULL */ 128 when writing a gzip file) */ 223 compatible with the zlib.h header file used by the application. This check 573 file name, no extra data, no comment, no modification time (set to zero), no 822 gzip file" and give up. 1094 the version of the header file. 1107 inflate() for file [all...] |
| /device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_kernel_sysfs.c | 13 * @file mali_kernel_sysfs.c 82 static int open_copy_private_data(struct inode *inode, struct file *filp) in open_copy_private_data() 88 static ssize_t group_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in group_enabled_read() 103 static ssize_t group_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) in group_enabled_write() 150 static ssize_t hw_core_base_addr_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in hw_core_base_addr_read() 170 static ssize_t profiling_counter_src_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in profiling_counter_src_read() 215 static ssize_t profiling_counter_src_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) in profiling_counter_src_write() 282 static ssize_t l2_l2x_counter_srcx_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) in l2_l2x_counter_srcx_read() 303 static ssize_t l2_l2x_counter_srcx_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) in l2_l2x_counter_srcx_write() 336 static ssize_t l2_all_counter_srcx_write(struct file *fil 542 power_power_events_seek(struct file *file, loff_t offset, int orig) power_power_events_seek() argument 578 mali_seq_internal_state_open(struct inode *inode, struct file *file) mali_seq_internal_state_open() argument 846 profiling_events_open(struct inode *inode, struct file *file) profiling_events_open() argument 866 profiling_events_human_readable_open(struct inode *inode, struct file *file) profiling_events_human_readable_open() argument 898 memory_debugfs_open(struct inode *inode, struct file *file) memory_debugfs_open() argument 1181 timeline_debugfs_open(struct inode *inode, struct file *file) timeline_debugfs_open() argument [all...] |
| /device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_kernel_sysfs.c | 13 * @file mali_kernel_sysfs.c 82 static int open_copy_private_data(struct inode *inode, struct file *filp) in open_copy_private_data() 88 static ssize_t group_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in group_enabled_read() 102 static ssize_t group_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) in group_enabled_write() 149 static ssize_t hw_core_base_addr_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in hw_core_base_addr_read() 169 static ssize_t profiling_counter_src_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in profiling_counter_src_read() 214 static ssize_t profiling_counter_src_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) in profiling_counter_src_write() 281 static ssize_t l2_l2x_counter_srcx_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) in l2_l2x_counter_srcx_read() 302 static ssize_t l2_l2x_counter_srcx_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos, in l2_l2x_counter_srcx_write() 336 static ssize_t l2_all_counter_srcx_write(struct file *fil 546 power_power_events_seek(struct file *file, loff_t offset, int orig) power_power_events_seek() argument 581 mali_seq_internal_state_open(struct inode *inode, struct file *file) mali_seq_internal_state_open() argument 853 profiling_events_open(struct inode *inode, struct file *file) profiling_events_open() argument 872 profiling_events_human_readable_open(struct inode *inode, struct file *file) profiling_events_human_readable_open() argument 906 memory_debugfs_open(struct inode *inode, struct file *file) memory_debugfs_open() argument 1188 timeline_debugfs_open(struct inode *inode, struct file *file) timeline_debugfs_open() argument [all...] |
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
| H A D | cgenerator.py | 52 generated around a feature interface in the header file 104 """True if #ifndef..#endif protection should be generated around a feature interface in the header file.""" 161 # This is an ordered list of sections in the header file. 183 write('#ifndef', headerSym, file=self.outFile) 184 write('#define', headerSym, '1', file=self.outFile) 190 write(s, file=self.outFile) 194 write('#ifdef __cplusplus', file=self.outFile) 195 write('extern "C" {', file=self.outFile) 196 write('#endif', file=self.outFile) 205 write('#ifdef __cplusplus', file [all...] |
| /third_party/vulkan-headers/registry/ |
| H A D | cgenerator.py | 52 generated around a feature interface in the header file 104 """True if #ifndef..#endif protection should be generated around a feature interface in the header file.""" 161 # This is an ordered list of sections in the header file. 183 write('#ifndef', headerSym, file=self.outFile) 184 write('#define', headerSym, '1', file=self.outFile) 190 write(s, file=self.outFile) 194 write('#ifdef __cplusplus', file=self.outFile) 195 write('extern "C" {', file=self.outFile) 196 write('#endif', file=self.outFile) 205 write('#ifdef __cplusplus', file [all...] |
| /third_party/elfutils/tests/ |
| H A D | debuglink.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 36 error (EXIT_FAILURE, 0, "No input file given"); in main() 42 const char *file = argv[i]; in main() local 43 int fd = open (file, O_RDONLY); in main() 45 error (EXIT_FAILURE, errno, "couldn't open file '%s'", file); in main() 50 file, elf_errmsg (-1)); in main() 55 printf ("%s: <no gnu_debuglink file>\n", file); in main() [all...] |
| /third_party/elfutils/libdwfl/ |
| H A D | dwfl_lineinfo.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 53 if (unlikely (info->file >= info->files->nfiles)) in dwfl_lineinfo() 59 struct Dwarf_Fileinfo_s *file = &info->files->info[info->file]; in dwfl_lineinfo() local 61 *mtime = file->mtime; in dwfl_lineinfo() 63 *length = file->length; in dwfl_lineinfo() 64 return file->name; in dwfl_lineinfo()
|
| /third_party/PyYAML/tests/lib/ |
| H A D | test_canonical.py | 5 with open(canonical_filename, 'rb') as file: 6 data = file.read() 16 with open(canonical_filename, 'rb') as file: 17 data = file.read() 27 with open(data_filename, 'rb') as file: 28 data = file.read()
|
| /third_party/libsnd/tests/ |
| H A D | largefile_test.c | 52 SNDFILE *file ; in largefile_test() local 63 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in largefile_test() 66 test_write_float_or_die (file, k, data, BUFFER_LEN, __LINE__) ; in largefile_test() 68 sf_close (file) ; in largefile_test() 70 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in largefile_test() 77 sf_close (file) ; in largefile_test()
|
| /third_party/ltp/lib/ |
| H A D | tst_epoll.c | 11 int safe_epoll_create1(const char *const file, const int lineno, in safe_epoll_create1() argument 29 tst_brk_(file, lineno, in safe_epoll_create1() 36 int safe_epoll_ctl(const char *const file, const int lineno, in safe_epoll_ctl() argument 59 tst_brk_(file, lineno, in safe_epoll_ctl() 67 int safe_epoll_wait(const char *const file, const int lineno, in safe_epoll_wait() argument 74 tst_brk_(file, lineno, TBROK | TERRNO, in safe_epoll_wait()
|
| /third_party/ltp/tools/sparse/sparse-src/ |
| H A D | compile.c | 56 char *file; in main() local 62 FOR_EACH_PTR(filelist, file) { in main() 64 const char *basename = strrchr(file, '/'); in main() 65 basename = basename ? basename+1 : file; in main() 67 list = sparse(file); in main() 73 } END_FOR_EACH_PTR(file); in main()
|