| /third_party/node/deps/undici/src/node_modules/@fastify/busboy/lib/types/ |
| H A D | multipart.js | 155 // file/binary field 166 if (boy.listenerCount('file') === 0) { 172 const file = new FileStream(fileOpts) 173 curFile = file 174 file.on('end', function () { 184 file._read = function (n) { 193 boy.emit('file', fieldname, file, filename, encoding, contype) 198 if (extralen > 0) { file.push(data.slice(0, extralen)) } 199 file [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
| H A D | objectivec_helpers.h | 77 string PROTOC_EXPORT FileClassPrefix(const FileDescriptor* file); 79 // Gets the path of the file we're going to generate (sans the .pb.h 82 string PROTOC_EXPORT FilePath(const FileDescriptor* file); 85 string PROTOC_EXPORT FilePathBasename(const FileDescriptor* file); 87 // Gets the name of the root class we'll generate in the file. This class 90 string PROTOC_EXPORT FileClassName(const FileDescriptor* file); 109 // Returns the name to use for the extension (used as the method off the file's 130 inline bool HasPreservingUnknownEnumSemantics(const FileDescriptor* file) { in HasPreservingUnknownEnumSemantics() argument 131 return file->syntax() == FileDescriptor::SYNTAX_PROTO3; in HasPreservingUnknownEnumSemantics() 165 const FileDescriptor* file in GetOptionalDeprecatedAttribute() [all...] |
| /third_party/python/Lib/test/test_importlib/ |
| H A D | test_metadata_api.py | 199 for file in files: 200 assert file.root == root 201 assert not file.hash or file.hash.value 202 assert not file.hash or file.hash.mode == 'sha256' 203 assert not file.size or file.size >= 0 204 assert file.locate().exists() 205 assert isinstance(file [all...] |
| /third_party/rust/crates/nix/test/sys/ |
| H A D | test_uio.rs | 112 let mut file = tempfile().unwrap(); in test_pwrite() variables 114 assert_eq!(Ok(8), pwrite(file.as_raw_fd(), &buf, 8)); in test_pwrite() 116 file.read_to_end(&mut file_content).unwrap(); in test_pwrite() 129 let mut file = OpenOptions::new() in test_pread() variables 137 file.write_all(&file_content).unwrap(); in test_pread() 140 assert_eq!(Ok(16), pread(file.as_raw_fd(), &mut buf, 16)); in test_pread() 161 // pwritev them into a temporary file in test_pwritev() 163 let mut file = OpenOptions::new() in test_pwritev() variables 171 let written = pwritev(file.as_raw_fd(), &iovecs, 100).ok().unwrap(); in test_pwritev() 176 file in test_pwritev() 192 let mut file = OpenOptions::new() test_preadv() variables [all...] |
| /test/xts/acts/ |
| H A D | get_dependency.py | 6 # you may not use this file except in compliance with the License. 43 for file in files: 44 if file == 'bundle.json': 47 file_path = os.path.join(root, file) 80 with open(os.path.join(home, path, "bundle.json"), 'r') as file: 81 data = json.load(file) 113 with os.fdopen(file_descriptor, 'w') as file: 114 file.write("precise_run=") 115 file.write(array_str)
|
| /third_party/PyYAML/tests/lib/ |
| H A D | test_emitter.py | 18 with open(data_filename, 'rb') as file: 19 events = list(yaml.parse(file)) 30 with open(canonical_filename, 'rb') as file: 31 events = list(yaml.parse(file)) 44 with open(filename, 'rb') as file: 45 events = list(yaml.parse(file)) 92 with open(events_filename, 'rb') as file: 93 events = list(yaml.load(file, Loader=EventsLoader))
|
| /third_party/libsnd/tests/ |
| H A D | compression_size_test.c | 53 SNDFILE * file ; in vorbis_test() local 65 /* Set up output file type. */ in vorbis_test() 71 /* Write the output file. */ in vorbis_test() 77 if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) == NULL) in vorbis_test() 90 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in vorbis_test() 93 test_write_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test() 94 sf_close (file) ; in vorbis_test() 98 /* Read the file back in again. */ in vorbis_test() 100 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in vorbis_test() 101 test_read_float_or_die (file, in vorbis_test() [all...] |
| /third_party/mesa3d/src/freedreno/rnn/ |
| H A D | rnn.h | 100 char *file; member 109 char *file; member 162 char *file; member 170 char *file; member 184 char *file; member 225 char *file; member 231 char *file; member 236 void rnn_parsefile (struct rnndb *db, char *file);
|
| /third_party/ltp/testcases/kernel/firmware/fw_load_user/ |
| H A D | fw_load.c | 51 char *file; member 97 printf(" -n x Write x bytes to firmware file, default is %d\n", in help() 139 /* make non-existent firmware file */ in setup() 140 SAFE_ASPRINTF(cleanup, &fw[fw_num].file, "/n%d_%s", fw_num, fw_name); in setup() 161 fw[i].file + offset); in test_run() 173 if (fw[i].remove_file && remove(fw[i].file) == -1) in cleanup() 174 tst_resm(TWARN, "Can't remove: %s", fw[i].file); in cleanup() 175 free(fw[i].file); in cleanup() 197 /* create test firmware file */ in create_firmware() 198 SAFE_ASPRINTF(cleanup, &fi->file, " in create_firmware() [all...] |
| /third_party/node/deps/openssl/openssl/crypto/err/ |
| H A D | err_prn.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 25 const char *file, *data, *func; in ERR_print_errors_cb() local 28 while ((l = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) { in ERR_print_errors_cb() 42 file, line, data); in ERR_print_errors_cb() 51 const char *file, int line) in put_error() 54 ERR_set_debug(file, line, func); in put_error() 62 const char *file = NULL; in ERR_add_error_txt() local 81 ERR_peek_last_error_all(&file, &line, &func, &data, &flags); in ERR_add_error_txt() 129 put_error(ERR_GET_LIB(err), func, err, file, lin in ERR_add_error_txt() local 50 put_error(int lib, const char *func, int reason, const char *file, int line) put_error() argument [all...] |
| /third_party/pcre2/pcre2/maint/ |
| H A D | GenerateCommon.py | 6 # This file is a Python module containing common lists and functions for the 19 # BIDI classes in the DerivedBidiClass.txt file, with comments. 48 # is changed, the table called "catposstab" in the pcre2_auto_possess.c file 84 # The Extended_Pictographic property is not found in the file where all the 86 # file, but we list it here so that the name has the correct index value. 127 file = open('Unicode.tables/' + filename, 'r') 132 for line in file: 144 file.close() 283 # Open an output file, using the command's argument or a default. Write common 288 print('** Too many arguments: just give a file nam [all...] |
| /third_party/openssl/crypto/err/ |
| H A D | err_prn.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 25 const char *file, *data, *func; in ERR_print_errors_cb() local 28 while ((l = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) { in ERR_print_errors_cb() 42 file, line, data); in ERR_print_errors_cb() 51 const char *file, int line) in put_error() 54 ERR_set_debug(file, line, func); in put_error() 62 const char *file = NULL; in ERR_add_error_txt() local 81 ERR_peek_last_error_all(&file, &line, &func, &data, &flags); in ERR_add_error_txt() 129 put_error(ERR_GET_LIB(err), func, err, file, lin in ERR_add_error_txt() local 50 put_error(int lib, const char *func, int reason, const char *file, int line) put_error() argument [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/ |
| H A D | annotation_test_util.cc | 41 #include <google/protobuf/testing/file.h> 42 #include <google/protobuf/testing/file.h> 56 // Does not own file; file must outlive the Generator. 57 explicit DescriptorCapturingGenerator(FileDescriptorProto* file) in DescriptorCapturingGenerator() argument 58 : file_(file) {} in DescriptorCapturingGenerator() 60 virtual bool Generate(const FileDescriptor* file, in Generate() argument 63 file->CopyTo(file_); in Generate() 79 CommandLineInterface* cli, FileDescriptorProto* file) { in RunProtoCompiler() 82 DescriptorCapturingGenerator capturing_generator(file); in RunProtoCompiler() 77 RunProtoCompiler(const std::string& filename, const std::string& plugin_specific_args, CommandLineInterface* cli, FileDescriptorProto* file) RunProtoCompiler() argument [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/js/ |
| H A D | js_generator.cc | 118 // file foo/bar/baz.js. 150 // This scheme could technically cause problems if a file includes any 2 of: in ModuleAlias() 165 // file descriptor's package. 167 const FileDescriptor* file) { in GetNamespace() 170 } else if (!file->package().empty()) { in GetNamespace() 171 return "proto." + file->package(); in GetNamespace() 186 descriptor->full_name(), descriptor->file()->package()); in GetNestedMessageName() 195 // lives under the given file and containing type. 211 return GetPrefix(options, descriptor->file(), descriptor->containing_type()); in GetMessagePathPrefix() 225 return GetPrefix(options, enum_descriptor->file(), in GetEnumPathPrefix() 166 GetNamespace(const GeneratorOptions& options, const FileDescriptor* file) GetNamespace() argument 379 GetExtensionFileName(const GeneratorOptions& options, const FileDescriptor* file, bool with_filename) GetExtensionFileName() argument 451 const FileDescriptor* file = field->containing_type()->file(); IgnoreExtensionField() local 1353 HasExtensions(const FileDescriptor* file) HasExtensions() argument 1479 DepthFirstSearch(const FileDescriptor* file, std::vector<const FileDescriptor*>* list, std::set<const FileDescriptor*>* seen) DepthFirstSearch() argument 1502 operator ()(const FileDescriptor* file) operator ()() argument 1634 IsWellKnownTypeFile(const FileDescriptor* file) IsWellKnownTypeFile() argument 1640 GenerateHeader(const GeneratorOptions& options, const FileDescriptor* file, io::Printer* printer) const GenerateHeader() argument 1660 FindProvidesForFile(const GeneratorOptions& options, io::Printer* printer, const FileDescriptor* file, std::set<std::string>* provided) const FindProvidesForFile() argument 3607 GenerateFile(const FileDescriptor* file, const GeneratorOptions& options, GeneratorContext* context, bool use_short_name) const GenerateFile() argument 3789 const FileDescriptor* file = files[i]; GenerateAll() local 3939 const FileDescriptor* file = files[i]; GenerateAll() local [all...] |
| /third_party/elfutils/libdwfl/ |
| H A D | dwfl_module_getsrc_file.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 40 return line->files->info[line->file].name; in dwfl_dwarf_line_file() 84 file and line/column number. If any of the numbers is zero, in dwfl_module_getsrc_file() 92 if (unlikely (line->file >= line->files->nfiles)) in dwfl_module_getsrc_file() 101 const char *file = dwfl_dwarf_line_file (line); in dwfl_module_getsrc_file() local 102 if (file != lastfile) in dwfl_module_getsrc_file() 105 lastfile = file; in dwfl_module_getsrc_file() 106 lastmatch = !strcmp (is_basename ? basename (file) : file, in dwfl_module_getsrc_file() [all...] |
| /third_party/mesa3d/bin/ |
| H A D | khronos-update.py | 17 self.file = pathlib.Path(filename) 24 print('Syncing {}...'.format(self.file), end=' ', flush=True) 28 error('Failed to retrieve file: {} {}'.format(req.status_code, req.reason)) 38 with open(self.file, 'wb') as f: 223 for file in pathlib.Path('include/' + group['inc_folder']).iterdir(): 224 if file not in [source.file for source in group['sources']]: 225 error('{} is unknown, please add it to SOURCES'.format(file))
|
| /third_party/ltp/lib/ |
| H A D | tst_checkpoint.c | 15 * otherwise, applies only to this software file. Patent licenses, if 38 void tst_checkpoint_init(const char *file, const int lineno, in tst_checkpoint_init() argument 45 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_checkpoint_init() 62 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_checkpoint_init() 139 void tst_safe_checkpoint_wait(const char *file, const int lineno, in tst_safe_checkpoint_wait() argument 151 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in tst_safe_checkpoint_wait() 157 void tst_safe_checkpoint_wake(const char *file, const int lineno, in tst_safe_checkpoint_wake() argument 164 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in tst_safe_checkpoint_wake()
|
| /third_party/ltp/include/old/ |
| H A D | test.h | 118 void tst_resm_(const char *file, const int lineno, int ttype, 125 void tst_resm_hexd_(const char *file, const int lineno, int ttype, 132 void tst_brkm__(const char *file, const int lineno, int ttype, 145 #define tst_brkm_(file, lineno, flags, cleanup, fmt, ...) do { \ 147 tst_brk_(file, lineno, flags, fmt, ##__VA_ARGS__); \ 149 tst_brkm__(file, lineno, flags, cleanup, fmt, ##__VA_ARGS__); \ 202 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void),
|
| /third_party/ltp/include/ |
| H A D | tst_safe_file_at.h | 40 int safe_openat(const char *const file, const int lineno, const int dirfd, 44 ssize_t safe_file_readat(const char *const file, const int lineno, 56 int safe_file_vprintfat(const char *const file, const int lineno, 61 int safe_file_printfat(const char *const file, const int lineno, 66 int safe_unlinkat(const char *const file, const int lineno, 70 int safe_fchownat(const char *const file, const int lineno, 75 int safe_fstatat(const char *const file, const int lineno,
|
| /third_party/node/deps/v8/third_party/wasm-api/example/ |
| H A D | hello.cc | 29 std::ifstream file("hello.wasm"); in run() 30 file.seekg(0, std::ios_base::end); in run() 31 auto file_size = file.tellg(); in run() 32 file.seekg(0); in run() 34 file.read(binary.get(), file_size); in run() 35 file.close(); in run() 36 if (file.fail()) { in run()
|
| H A D | trap.c | 41 FILE* file = fopen("trap.wasm", "r"); in main() local 42 if (!file) { in main() 46 fseek(file, 0L, SEEK_END); in main() 47 size_t file_size = ftell(file); in main() 48 fseek(file, 0L, SEEK_SET); in main() 51 if (fread(binary.data, file_size, 1, file) != 1) { in main() 55 fclose(file); in main()
|
| H A D | callback.c | 71 FILE* file = fopen("callback.wasm", "r"); in main() local 72 if (!file) { in main() 76 fseek(file, 0L, SEEK_END); in main() 77 size_t file_size = ftell(file); in main() 78 fseek(file, 0L, SEEK_SET); in main() 81 if (fread(binary.data, file_size, 1, file) != 1) { in main() 85 fclose(file); in main()
|
| H A D | finalize.cc | 25 std::ifstream file("finalize.wasm"); in run_in_store() 26 file.seekg(0, std::ios_base::end); in run_in_store() 27 auto file_size = file.tellg(); in run_in_store() 28 file.seekg(0); in run_in_store() 30 file.read(binary.get(), file_size); in run_in_store() 31 file.close(); in run_in_store() 32 if (file.fail()) { in run_in_store()
|
| H A D | serialize.cc | 29 std::ifstream file("serialize.wasm"); in run() 30 file.seekg(0, std::ios_base::end); in run() 31 auto file_size = file.tellg(); in run() 32 file.seekg(0); in run() 34 file.read(binary.get(), file_size); in run() 35 file.close(); in run() 36 if (file.fail()) { in run()
|
| H A D | start.cc | 27 std::ifstream file("start.wasm"); in run() 28 file.seekg(0, std::ios_base::end); in run() 29 auto file_size = file.tellg(); in run() 30 file.seekg(0); in run() 32 file.read(binary.get(), file_size); in run() 33 file.close(); in run() 34 if (file.fail()) { in run()
|