Home
last modified time | relevance | path

Searched refs:file (Results 101 - 125 of 7900) sorted by relevance

12345678910>>...316

/third_party/skia/third_party/externals/zlib/
H A Dgzlib.c74 /* Reset gzip file state */
80 state->eof = 0; /* not at end of file */
90 /* Open a gzip file either by name or file descriptor. */
187 state->direct = 1; /* for empty file */
240 /* open the file with the appropriate flags (or just use fd) */
316 int ZEXPORT gzbuffer(file, size) in gzbuffer()
317 gzFile file; in gzbuffer()
323 if (file == NULL)
325 state = (gz_statep)file;
[all...]
/third_party/node/deps/npm/node_modules/read-package-json/lib/
H A Dread-json.js30 function readJson (file, log_, strict_, cb_) {
45 readJson_(file, log, strict, cb)
48 function readJson_ (file, log, strict, cb) {
49 fs.readFile(file, 'utf8', function (er, d) {
50 parseJson(file, er, d, log, strict, cb)
84 function parseJson (file, er, d, log, strict, cb) {
86 return fs.stat(path.dirname(file), function (err, stat) {
93 return indexjs(file, er, log, strict, cb)
117 return cb(parseError(jsonErr, file))
120 extrasCached(file,
[all...]
/third_party/python/Lib/
H A Dtempfile.py135 into file names. Each string is eight characters long. Multiple
188 trying to create and write to a file in that directory. If this
189 is successful, the test file is deleted. To prevent denial of
190 service, the name of the test file must be randomized."""
253 file = _os.path.join(dir, pre + name + suf)
254 _sys.audit("tempfile.mkstemp", file)
256 fd = _os.open(file, flags, 0o600)
267 return fd, file
270 "No usable temporary file name found")
323 file
437 file = None # Set here since __del__ checks it global() variable in _TemporaryFileCloser
[all...]
H A Dimp.py76 Given the path to a .py file, return the path to its .pyc file.
78 The .py file does not need to exist; this simply returns the path to the
79 .pyc file calculated as if the .py file were imported.
95 Given the path to a .pyc. file, return the path to its .py file.
97 The .pyc file does not need to exist; this simply returns the path to
98 the .py file calculated to correspond to the .pyc file
[all...]
H A Dpstats.py11 # you may not use this file except in compliance with the License.
83 method now take arbitrarily many file names as arguments.
134 (self.files[-1] if self.files else ''), file=self.stream)
196 """Write the profile data to a file we know how to load back."""
207 "filename" : (((4, 1), ), "file name"),
209 "module" : (((4, 1), ), "file name"),
211 "nfl" : (((6, 1),(4, 1),(5, 1),), "name/file/line"),
406 print(msg, file=self.stream)
416 print(filename, file=self.stream)
418 print(file
[all...]
/third_party/mesa3d/src/intel/tools/
H A Daubinator.c124 fprintf(outfile, "%sAubinator: Intel AUB file decoder.%-80s%s\n", in aubinator_init()
210 struct aub_file *file; in aub_file_open() local
214 file = calloc(1, sizeof *file); in aub_file_open()
215 if (file == NULL) in aub_file_open()
221 free(file); in aub_file_open()
227 free(file); in aub_file_open()
231 file->map = mmap(NULL, sb.st_size, in aub_file_open()
233 if (file->map == MAP_FAILED) { in aub_file_open()
235 free(file); in aub_file_open()
248 aub_file_more_stuff(struct aub_file *file) aub_file_more_stuff() argument
281 print_help(const char *progname, FILE *file) print_help() argument
300 struct aub_file *file; main() local
[all...]
H A Daubinator_viewer.cpp70 store_exec_begin(struct aub_file *file) in store_exec_begin() argument
72 if (unlikely(file->n_execs >= file->n_allocated_execs)) { in store_exec_begin()
73 file->n_allocated_execs = MAX2(2U * file->n_allocated_execs, in store_exec_begin()
74 4096 / sizeof(file->execs[0])); in store_exec_begin()
75 file->execs = (decltype(file->execs)) in store_exec_begin()
76 realloc(static_cast<void *>(file->execs), in store_exec_begin()
77 file in store_exec_begin()
84 store_exec_end(struct aub_file *file) store_exec_end() argument
94 struct aub_file *file = (struct aub_file *) user_data; handle_mem_write() local
103 struct aub_file *file = (struct aub_file *) user_data; handle_ring_write() local
111 struct aub_file *file = (struct aub_file *) user_data; handle_reg_write() local
123 struct aub_file *file = (struct aub_file *) user_data; handle_info() local
146 struct aub_file *file; aub_file_open() local
202 update_mem_for_exec(struct aub_mem *mem, struct aub_file *file, int exec_idx) update_mem_for_exec() argument
307 struct aub_file *file; global() member
1163 print_help(const char *progname, FILE *file) print_help() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DWriteNumberFormatSerialTestData.java50 FileOutputStream file = new FileOutputStream("NumberFormatSerialTestData.java"); in main()
51 file.write(header.getBytes()); in main()
52 write(file,(Object)nf,"generalInstance", "//NumberFormat.getInstance(Locale.US)"); in main()
53 write(file,(Object)nfc,"currencyInstance","//NumberFormat.getCurrencyInstance(Locale.US)"); in main()
54 write(file,(Object)nfp,"percentInstance","//NumberFormat.getPercentInstance(Locale.US)"); in main()
55 write(file,(Object)nfsp,"scientificInstance","//NumberFormat.getScientificInstance(Locale.US)"); in main()
56 file.write(footer.getBytes()); in main()
57 file.close(); in main()
63 private static void write(FileOutputStream file,Object o ,String name,String comment){ in write() argument
78 //file in write()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DWriteNumberFormatSerialTestData.java47 FileOutputStream file = new FileOutputStream("NumberFormatSerialTestData.java"); in main()
48 file.write(header.getBytes()); in main()
49 write(file,(Object)nf,"generalInstance", "//NumberFormat.getInstance(Locale.US)"); in main()
50 write(file,(Object)nfc,"currencyInstance","//NumberFormat.getCurrencyInstance(Locale.US)"); in main()
51 write(file,(Object)nfp,"percentInstance","//NumberFormat.getPercentInstance(Locale.US)"); in main()
52 write(file,(Object)nfsp,"scientificInstance","//NumberFormat.getScientificInstance(Locale.US)"); in main()
53 file.write(footer.getBytes()); in main()
54 file.close(); in main()
60 private static void write(FileOutputStream file,Object o ,String name,String comment){ in write() argument
75 //file in write()
[all...]
/third_party/libsnd/tests/
H A Dulaw_test.c45 { SNDFILE *file ; in main() local
56 if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) == NULL) in main()
63 /* Generate a file containing all possible 16 bit sample values in main()
70 sf_write_short (file, short_buffer, BUFFER_SIZE) ; in main()
71 sf_close (file) ; in main()
73 /* Now open that file and compare the ulaw encoded sample values in main()
77 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL) in main()
83 check_log_buffer_or_die (file, __LINE__) ; in main()
85 if (sf_read_raw (file, ulaw_buffer, BUFFER_SIZE) != BUFFER_SIZE) in main()
87 puts (sf_strerror (file)) ; in main()
[all...]
H A Dalaw_test.c45 { SNDFILE *file ; in main() local
56 if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) == NULL) in main()
63 /* Generate a file containing all possible 16 bit sample values in main()
70 sf_write_short (file, short_buffer, BUFFER_SIZE) ; in main()
71 sf_close (file) ; in main()
73 /* Now open that file and compare the alaw encoded sample values in main()
77 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL) in main()
83 check_log_buffer_or_die (file, __LINE__) ; in main()
85 if (sf_read_raw (file, alaw_buffer, BUFFER_SIZE) != BUFFER_SIZE) in main()
87 puts (sf_strerror (file)) ; in main()
[all...]
H A Dmisc_test.c65 printf (" wav - test WAV file peak chunk\n") ; in main()
66 printf (" aiff - test AIFF file PEAK chunk\n") ; in main()
228 { SNDFILE *file ; in zero_data_test() local
247 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in zero_data_test()
249 sf_close (file) ; in zero_data_test()
253 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in zero_data_test()
255 sf_close (file) ; in zero_data_test()
269 SNDFILE *file ; in filesystem_full_test()
286 { puts ("/dev/full is not a device file") ; in filesystem_full_test()
295 if ((file in filesystem_full_test()
394 SNDFILE *file ; wavex_amb_test() local
431 SNDFILE *file ; rf64_downgrade_test() local
486 SNDFILE *file ; rf64_long_file_downgrade_test() local
[all...]
/third_party/skia/tests/
H A DAnimatedImageTest.cpp5 * found in the LICENSE file.
37 const char* file = "images/stoplight_h.webp"; in DEF_TEST() local
38 auto data = GetResourceAsData(file); in DEF_TEST()
40 ERRORF(r, "Could not get %s", file); in DEF_TEST()
63 const char* file = name.c_str(); in DEF_TEST() local
64 auto data = GetResourceAsData(file); in DEF_TEST()
66 ERRORF(r, "Could not get %s", file); in DEF_TEST()
73 ERRORF(r, "Failed to create animated image from %s", file); in DEF_TEST()
79 ERRORF(r, "Mismatched bounds for %", file); in DEF_TEST()
91 const char* file in DEF_TEST() local
151 const char* file = "images/alphabetAnim.gif"; DEF_TEST() local
190 compare_bitmaps(skiatest::Reporter* r, const char* file, int expectedFrame, const SkBitmap& expectedBm, const SkBitmap& actualBm) compare_bitmaps() argument
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/
H A DinsertTags.py19 # Insert informative tags in a spec asciidoc source file
23 file = loadFile(specFile)
24 if (file == None):
26 pageMap = findRefs(file)
30 fixupRefs(pageMap, specFile, file)
32 # Proceed backwards through the file, inserting
39 printPageInfo(pageMap[name], file)
41 line = len(file) - 1
66 if (file[line].find('// refBegin') == 0):
68 file[lin
[all...]
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
H A Dchecks.h35 extern "C" void V8_Fatal(const char* file, int line, const char* format, ...);
57 static inline void CheckHelper(const char* file, in CheckHelper() argument
62 V8_Fatal(file, line, "CHECK(%s) failed", source); in CheckHelper()
73 static inline void CheckEqualsHelper(const char* file, int line, in CheckEqualsHelper() argument
77 V8_Fatal(file, line, in CheckEqualsHelper()
86 static inline void CheckEqualsHelper(const char* file, int line, in CheckEqualsHelper() argument
94 V8_Fatal(file, line, in CheckEqualsHelper()
108 static inline void CheckNonEqualsHelper(const char* file, in CheckNonEqualsHelper() argument
115 V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %i", in CheckNonEqualsHelper()
123 static inline void CheckEqualsHelper(const char* file, in CheckEqualsHelper() argument
139 CheckNonEqualsHelper(const char* file, int line, const char* expected_source, const char* expected, const char* value_source, const char* value) CheckNonEqualsHelper() argument
155 CheckEqualsHelper(const char* file, int line, const char* expected_source, const void* expected, const char* value_source, const void* value) CheckEqualsHelper() argument
170 CheckNonEqualsHelper(const char* file, int line, const char* expected_source, const void* expected, const char* value_source, const void* value) CheckNonEqualsHelper() argument
185 CheckEqualsHelper(const char* file, int line, const char* expected_source, double expected, const char* value_source, double value) CheckEqualsHelper() argument
206 CheckNonEqualsHelper(const char* file, int line, const char* expected_source, double expected, const char* value_source, double value) CheckNonEqualsHelper() argument
[all...]
/third_party/zlib/test/
H A Dminigzip.c9 * full-featured gzip. No attempt is made to deal with file systems
12 * real thing. On MSDOS, use only on file names without extension
38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
40 # define SET_BINARY_MODE(file)
54 # define fileno(file) file->__file
165 FILE *file; member
195 gz->file = path == NULL ? fdopen(fd, gz->write ? "wb" : "rb") : in gz_open()
197 if (gz->file in gz_open()
442 file_compress(char *file, char *mode) file_compress() argument
479 file_uncompress(char *file) file_uncompress() argument
542 gzFile file; main() local
[all...]
/third_party/ltp/testcases/kernel/device-drivers/drm/kernel_space/
H A Dstr_drm.h25 * kernel space pointers in a seperate header file
34 extern int tdrm_test_interface(struct inode *inode, struct file *filp,
36 extern int tdrm_test_stub_register(struct inode *inode,struct file *filp,
38 extern int tdrm_test_stub_unregister(struct inode *inode,struct file *filp,
40 extern int tdrm_test_uninit_agp(struct inode *inode,struct file *filp,
42 extern int tdrm_test_init_agp(struct inode *inode,struct file *filp,
44 extern int tdrm_test_add_magic(struct inode *inode,struct file *filp,
46 extern int tdrm_test_remove_magic(struct inode *inode,struct file *filp,
48 extern int tdrm_test_ctxbitmap_init(struct inode *inode,struct file *filp,
50 extern int tdrm_test_ctxbitmap_cleanup(struct inode *inode,struct file *fil
[all...]
/third_party/ltp/testcases/network/tcp_cmds/ftp/
H A Dftp01.sh35 local file sum1 sum2
37 for file in $(list_files $1); do
42 echo get $file
46 sum1="$(ls -l $file | awk '{print $5}')"
47 sum2="$(ls -l $TST_NET_DATAROOT/$file | awk '{print $5}')"
48 rm -f $file
55 local file sum1 sum2
57 for file in $(list_files $1); do
63 echo put $file
67 sum1="$(tst_rhost_run -c "sum $TST_TMPDIR/$file"
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
H A DLocation.hpp4 // you may not use this file except in compliance with the License.
25 // Location holds a file path and line number.
29 inline Location(const std::shared_ptr<File> &file, int line, int column = 0);
35 std::shared_ptr<File> file; member
40 Location::Location(const std::shared_ptr<File> &file, int line, int column /* = 0 */) in Location() argument
41 : file(file) in Location()
48 return file == o.file && line == o.line && column == o.column; in operator ==()
58 if(file in operator <()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_device.c35 #define GET_FILE(file) \
37 if (__get_file(file) < 0) \
41 #define PUT_FILE(file) \
43 if (__put_file(file) < 0) \
66 static int __get_file(struct file *file) in __get_file() argument
71 pdata = file->private_data; in __get_file()
83 static int __put_file(struct file *file) in __put_file() argument
88 pdata = file in __put_file()
100 osal_open(struct inode *inode, struct file *file) osal_open() argument
133 osal_read(struct file *file, char __user *buf, size_t size, loff_t *offset) osal_read() argument
148 osal_write(struct file *file, const char __user *buf, size_t size, loff_t *offset) osal_write() argument
161 osal_llseek(struct file *file, loff_t offset, int whence) osal_llseek() argument
189 osal_release(struct inode *inode, struct file *file) osal_release() argument
223 __osal_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) __osal_unlocked_ioctl() argument
323 osal_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) osal_unlocked_ioctl() argument
336 __osal_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) __osal_compat_ioctl() argument
430 osal_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) osal_compat_ioctl() argument
444 osal_poll(struct file *file, struct poll_table_struct *table) osal_poll() argument
484 osal_mmap(struct file *file, struct vm_area_struct *vm) osal_mmap() argument
[all...]
/third_party/mesa3d/src/util/
H A Du_debug_memory.c29 * @file
67 const char *file; member
124 debug_malloc(const char *file, unsigned line, const char *function, in debug_malloc() argument
133 file, line, function, in debug_malloc()
139 hdr->file = file; in debug_malloc()
164 debug_free(const char *file, unsigned line, const char *function, in debug_free() argument
176 file, line, function, in debug_free()
185 hdr->file, hdr->line, hdr->function, in debug_free()
195 /* Save file/lin in debug_free()
212 debug_calloc(const char *file, unsigned line, const char *function, size_t count, size_t size ) debug_calloc() argument
222 debug_realloc(const char *file, unsigned line, const char *function, void *old_ptr, size_t old_size, size_t new_size ) debug_realloc() argument
[all...]
/third_party/protobuf/benchmarks/util/
H A Dschema_proto2_to_proto3_util.h26 FileDescriptorProto *file) { in StripFile()
27 for (int i = file->mutable_message_type()->size() - 1; i >= 0; i--) { in StripFile()
29 file->mutable_message_type()->DeleteSubrange(i, 1); in StripFile()
32 StripMessage(old_file->message_type(i), file->mutable_message_type(i)); in StripFile()
34 for (int i = file->mutable_extension()->size() - 1; i >= 0; i--) { in StripFile()
39 file->mutable_extension()->DeleteSubrange(i, 1); in StripFile()
84 void ScrubFile(FileDescriptorProto *file) { in ScrubFile() argument
85 for (int i = 0; i < file->enum_type_size(); i++) { in ScrubFile()
86 ScrubEnum(file->mutable_enum_type(i)); in ScrubFile()
88 for (int i = 0; i < file in ScrubFile()
25 StripFile(const FileDescriptor* old_file, FileDescriptorProto *file) StripFile() argument
135 StripFile(FileDescriptorProto *file) StripFile() argument
154 ScrubFile(FileDescriptorProto *file) ScrubFile() argument
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_vec4.cpp45 this->file = BAD_FILE; in init()
49 src_reg::src_reg(enum brw_reg_file file, int nr, const glsl_type *type) in src_reg() argument
53 this->file = file; in src_reg()
87 this->file = BAD_FILE; in init()
97 dst_reg::dst_reg(enum brw_reg_file file, int nr) in dst_reg() argument
101 this->file = file; in dst_reg()
105 dst_reg::dst_reg(enum brw_reg_file file, int nr, const glsl_type *type, in dst_reg() argument
110 this->file in dst_reg()
116 dst_reg(enum brw_reg_file file, int nr, brw_reg_type type, unsigned writemask) dst_reg() argument
[all...]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
H A Ddrv_mmz_userdev.c29 #include <linux/file.h>
150 static int mmz_userdev_open(struct inode *inode, struct file *file) in mmz_userdev_open() argument
154 if (file == NULL) { in mmz_userdev_open()
167 file->private_data = (void *)pmu; in mmz_userdev_open()
172 static int ioctl_mmb_alloc(const struct file *file, unsigned int iocmd, struct mmb_info *mi) in ioctl_mmb_alloc() argument
203 static int ioctl_mmb_user_unmap(const struct file *file, unsigned int iocmd, struct mmb_info *mi);
205 static int ioctl_mmb_free(const struct file *fil argument
234 ioctl_mmb_get(const struct file *file, unsigned int iocmd, const struct mmb_info *mi) ioctl_mmb_get() argument
253 ioctl_mmb_put(const struct file *file, unsigned int iocmd, const struct mmb_info *mi) ioctl_mmb_put() argument
272 ioctl_mmb_query_ref(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_mmb_query_ref() argument
295 ioctl_mmb_query_source(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_mmb_query_source() argument
324 ioctl_dma_buf_export_fd(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_dma_buf_export_fd() argument
348 ioctl_mmb_get_pgtable_addr(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_mmb_get_pgtable_addr() argument
416 ioctl_mmb_user_remap_get_virt_addr(struct file *file, struct mmb_udata *udata, hil_mmb_t *mmb, int cached, const struct mmb_info *mi) ioctl_mmb_user_remap_get_virt_addr() argument
485 ioctl_mmb_user_remap(struct file *file, unsigned int iocmd, struct mmb_info *mi, int cached) ioctl_mmb_user_remap() argument
626 ioctl_mmb_user_unmap(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_mmb_user_unmap() argument
742 ioctl_mmb_user_getphyaddr(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_mmb_user_getphyaddr() argument
770 ioctl_mmb_user_cma_mapto_iommu(const struct file *file, unsigned int iocmd, struct mmb_info *mi) ioctl_mmb_user_cma_mapto_iommu() argument
783 ioctl_mmb_user_cma_unmapfrom_iommu(const struct file *file, unsigned int iocmd, const struct mmb_info *mi) ioctl_mmb_user_cma_unmapfrom_iommu() argument
795 mmz_userdev_ioctl_m(struct inode *inode, struct file *file, unsigned int cmd, struct mmb_info *mi) mmz_userdev_ioctl_m() argument
909 mmz_userdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) mmz_userdev_ioctl() argument
970 mmz_userdev_mmap(struct file *file, struct vm_area_struct *vma) mmz_userdev_mmap() argument
1041 mmz_userdev_mmap(struct file *file, struct vm_area_struct *vma) mmz_userdev_mmap() argument
1265 mmz_userdev_release(struct inode *inode, struct file *file) mmz_userdev_release() argument
1320 proc_mmz_read(struct inode *inode, struct file *file) proc_mmz_read() argument
1327 proc_mmz_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) proc_mmz_write() argument
[all...]
/third_party/node/deps/v8/tools/profview/
H A Dprofile-utils.js3 // found in the LICENSE file.
142 function findNextFrame(file, stack, stackPos, step, filter) {
147 code = codeId >= 0 ? file.code[codeId] : undefined;
159 function addOrUpdateChildNode(parent, file, stackIndex, stackPos, ascending) {
169 let stack = file.ticks[stackIndex].s;
172 let code = codeId >= 0 ? file.code[codeId] : undefined;
177 let vmState = file.ticks[stackIndex].vm;
187 function expandTreeNode(file, node, filter) {
198 let stack = file.ticks[stackIndex].s;
201 let stackPos = findNextFrame(file, stac
[all...]

Completed in 13 milliseconds

12345678910>>...316