| /third_party/curl/tests/ |
| H A D | test1165.pl | 11 # This software is licensed as described in the file COPYING, which 17 # furnished to do so, under the terms of the COPYING file. 35 my %file; 90 $file{$sym} = $source; 135 if(!$file{$s}) { 147 if(!$file{$s}) { 158 for my $s (sort keys %file) { 160 printf "Not set by configure: %s (%s)\n", $s, $file{$s}; 164 printf "Not set by CMakeLists.txt: %s (%s)\n", $s, $file{$s}; 183 if(!$file{ [all...] |
| /third_party/ltp/lib/ |
| H A D | tst_resource.c | 15 * otherwise, applies only to this software file. Patent licenses, if 82 static int file_copy(const char *file, const int lineno, in file_copy() argument 91 /* check if file exists */ in file_copy() 95 safe_cp(file, lineno, cleanup_fn, buf, dest); in file_copy() 100 void tst_resource_copy(const char *file, const int lineno, in tst_resource_copy() argument 105 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_resource_copy() 118 if (file_copy(file, lineno, cleanup_fn, dataroot, filename, dest)) in tst_resource_copy() 126 if (file_copy(file, lineno, cleanup_fn, buf, filename, dest)) in tst_resource_copy() 132 if (file_copy(file, lineno, cleanup_fn, startwd, filename, dest)) in tst_resource_copy() 135 tst_brkm_(file, linen in tst_resource_copy() [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-file-write-stream.js | 31 const file = fs.createWriteStream(fn, { 43 file 54 file.write(EXPECTED); 57 file.end(); 62 assert.strictEqual(file.bytesWritten, EXPECTED.length * 2); 65 file.write('should not work anymore', common.expectsError({ 70 file.on('error', common.mustNotCall()); 76 file.write(`${i}`);
|
| /third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
| H A D | vfprintf.c | 4 * you may not use this file except in compliance with the License. 47 FILE *file = fopen(file_name, "w"); in vfprintf_test() local 48 if (!file) { in vfprintf_test() 53 int result = vfprintf(file, format, ap); in vfprintf_test() 55 fclose(file); in vfprintf_test() 68 FILE *file = fopen(file_name, "w"); in vfprintf_n_test() local 69 if (!file) { in vfprintf_n_test() 74 int result = vfprintf(file, format, ap); in vfprintf_n_test() 76 fclose(file); in vfprintf_n_test()
|
| /third_party/python/Tools/freeze/ |
| H A D | makefreeze.py | 5 # Write a file containing frozen code for the modules in the dictionary. 41 file = 'M_' + mangled + '.c' 42 with bkfile.open(base + file, 'w') as outfp: 43 files.append(file) 78 print('unsigned char M_%s[] = {' % mod, file=fp) 81 print(indent, file=fp, end='') 83 print('%d,' % c, file=fp, end='') 84 print('', file=fp) 85 print('};', file=fp)
|
| /third_party/skia/third_party/externals/spirv-cross/tests-other/ |
| H A D | hlsl_resource_bindings.cpp | 19 FILE *file = fopen(path, "rb"); in read_file() local 21 if (!file) in read_file() 24 fseek(file, 0, SEEK_END); in read_file() 25 len = ftell(file); in read_file() 26 rewind(file); in read_file() 29 if (fread(buffer.data(), 1, len, file) != (size_t)len) in read_file() 31 fclose(file); in read_file() 35 fclose(file); in read_file()
|
| H A D | msl_resource_bindings.cpp | 19 FILE *file = fopen(path, "rb"); in read_file() local 21 if (!file) in read_file() 24 fseek(file, 0, SEEK_END); in read_file() 25 len = ftell(file); in read_file() 26 rewind(file); in read_file() 29 if (fread(buffer.data(), 1, len, file) != (size_t)len) in read_file() 31 fclose(file); in read_file() 35 fclose(file); in read_file()
|
| /third_party/skia/third_party/externals/tint/src/diagnostic/ |
| H A D | printer_windows.cc | 4 // you may not use this file except in compliance with the License. 32 ConsoleInfo console_info(FILE* file) { in console_info() argument 33 if (file == nullptr) { in console_info() 38 if (file == stdout) { in console_info() 40 } else if (file == stderr) { in console_info() 58 : file(f), console(console_info(use_colors ? f : nullptr)) {} in PrinterWindows() 62 fwrite(str.data(), 1, str.size(), file); 98 fflush(file); in write_color() 102 FILE* const file; member in tint::diag::__anon25910::PrinterWindows
|
| /third_party/python/PC/clinic/ |
| H A D | _testconsole.c.h | 8 "write_input($module, /, file, s)\n" 17 _testconsole_write_input_impl(PyObject *module, PyObject *file, 24 static const char * const _keywords[] = {"file", "s", NULL}; in _testconsole_write_input() 27 PyObject *file; in _testconsole_write_input() local 34 file = args[0]; in _testconsole_write_input() 40 return_value = _testconsole_write_input_impl(module, file, s); in _testconsole_write_input() 51 "read_output($module, /, file)\n" 60 _testconsole_read_output_impl(PyObject *module, PyObject *file); 66 static const char * const _keywords[] = {"file", NULL}; in _testconsole_read_output() 69 PyObject *file; in _testconsole_read_output() local [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/cpp/ |
| H A D | cpp_helpers.cc | 255 if (UseUnknownFieldSet(descriptor->file(), options)) { in SetUnknkownFieldsVariable() 349 return QualifiedFileLevelSymbol(d->file(), ClassName(d), options); in QualifiedClassName() 354 return QualifiedFileLevelSymbol(d->file(), ClassName(d), options); in QualifiedClassName() 368 return QualifiedFileLevelSymbol(d->file(), FieldName(d), options); in QualifiedExtensionName() 394 return Namespace(d->file(), options); in Namespace() 398 return Namespace(d->file(), options); in Namespace() 402 return Namespace(d->file(), options); in Namespace() 423 descriptor->file(), DefaultInstanceName(descriptor, options), options); in QualifiedDefaultInstanceName() 431 std::string DescriptorTableName(const FileDescriptor* file, in DescriptorTableName() argument 433 return UniqueName("descriptor_table", file, option in DescriptorTableName() 436 FileDllExport(const FileDescriptor* file, const Options& options) FileDllExport() argument 756 QualifiedFileLevelSymbol(const FileDescriptor* file, const std::string& name, const Options& options) QualifiedFileLevelSymbol() argument 830 HasLazyFields(const FileDescriptor* file, const Options& options) HasLazyFields() argument 857 HasRepeatedFields(const FileDescriptor* file) HasRepeatedFields() argument 881 HasStringPieceFields(const FileDescriptor* file, const Options& options) HasStringPieceFields() argument 904 HasCordFields(const FileDescriptor* file, const Options& options) HasCordFields() argument 922 HasExtensionsOrExtendableMessage(const FileDescriptor* file) HasExtensionsOrExtendableMessage() argument 942 HasMapFields(const FileDescriptor* file) HasMapFields() argument 957 HasEnumDefinitions(const FileDescriptor* file) HasEnumDefinitions() argument 1006 IsWellKnownMessage(const FileDescriptor* file) IsWellKnownMessage() argument 1029 FileUtf8Verification(const FileDescriptor* file, const Options& options) FileUtf8Verification() argument 1122 FlattenMessagesInFile(const FileDescriptor* file, std::vector<const Descriptor*>* result) FlattenMessagesInFile() argument 1136 HasWeakFields(const FileDescriptor* file, const Options& options) HasWeakFields() argument 1143 UsingImplicitWeakFields(const FileDescriptor* file, const Options& options) UsingImplicitWeakFields() argument 1287 IsBootstrapProto(const Options& options, const FileDescriptor* file) IsBootstrapProto() argument 1887 HasExtensionFromFile(const Message& msg, const FileDescriptor* file, const Options& options, bool* has_opt_codesize_extension) HasExtensionFromFile() argument 1929 HasBootstrapProblem(const FileDescriptor* file, const Options& options, bool* has_opt_codesize_extension) HasBootstrapProblem() argument 1977 GetOptimizeFor(const FileDescriptor* file, const Options& options, bool* has_opt_codesize_extension) GetOptimizeFor() argument [all...] |
| /third_party/littlefs/ |
| H A D | lfs.c | 551 static lfs_ssize_t lfs_file_flushedwrite(lfs_t *lfs, lfs_file_t *file, 553 static lfs_ssize_t lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file, 555 static int lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file); 556 static int lfs_file_outline(lfs_t *lfs, lfs_file_t *file); 557 static int lfs_file_flush(lfs_t *lfs, lfs_file_t *file); 579 static lfs_ssize_t lfs_file_flushedread(lfs_t *lfs, lfs_file_t *file, 581 static lfs_ssize_t lfs_file_rawread(lfs_t *lfs, lfs_file_t *file, 583 static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file); 584 static lfs_soff_t lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file); 3006 /// Top level file operation 3007 lfs_file_rawopencfg(lfs_t *lfs, lfs_file_t *file, const char *path, int flags, const struct lfs_file_config *cfg) global() argument 3174 lfs_file_rawopen(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) global() argument 3182 lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file) global() argument 3202 lfs_file_relocate(lfs_t *lfs, lfs_file_t *file) global() argument 3273 lfs_file_outline(lfs_t *lfs, lfs_file_t *file) global() argument 3286 lfs_file_flush(lfs_t *lfs, lfs_file_t *file) global() argument 3367 lfs_file_rawsync(lfs_t *lfs, lfs_file_t *file) global() argument 3419 lfs_file_flushedread(lfs_t *lfs, lfs_file_t *file, void *buffer, lfs_size_t size) global() argument 3480 lfs_file_rawread(lfs_t *lfs, lfs_file_t *file, void *buffer, lfs_size_t size) global() argument 3499 lfs_file_flushedwrite(lfs_t *lfs, lfs_file_t *file, const void *buffer, lfs_size_t size) global() argument 3587 lfs_file_rawwrite(lfs_t *lfs, lfs_file_t *file, const void *buffer, lfs_size_t size) global() argument 3631 lfs_file_rawseek(lfs_t *lfs, lfs_file_t *file, lfs_soff_t off, int whence) global() argument 3695 lfs_file_rawtruncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) global() argument 3780 lfs_file_rawtell(lfs_t *lfs, lfs_file_t *file) global() argument 3785 lfs_file_rawrewind(lfs_t *lfs, lfs_file_t *file) global() argument 3794 lfs_file_rawsize(lfs_t *lfs, lfs_file_t *file) global() argument 5132 } file; global() member 5923 lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) global() argument 5940 lfs_file_opencfg(lfs_t *lfs, lfs_file_t *file, const char *path, int flags, const struct lfs_file_config *cfg) global() argument 5960 lfs_file_close(lfs_t *lfs, lfs_file_t *file) global() argument 5976 lfs_file_sync(lfs_t *lfs, lfs_file_t *file) global() argument 5992 lfs_file_read(lfs_t *lfs, lfs_file_t *file, void *buffer, lfs_size_t size) global() argument 6010 lfs_file_write(lfs_t *lfs, lfs_file_t *file, const void *buffer, lfs_size_t size) global() argument 6028 lfs_file_seek(lfs_t *lfs, lfs_file_t *file, lfs_soff_t off, int whence) global() argument 6046 lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size) global() argument 6063 lfs_file_tell(lfs_t *lfs, lfs_file_t *file) global() argument 6078 lfs_file_rewind(lfs_t *lfs, lfs_file_t *file) global() argument 6092 lfs_file_size(lfs_t *lfs, lfs_file_t *file) global() argument [all...] |
| /base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/include/ |
| H A D | file_util.h | 4 * you may not use this file except in compliance with the License.
26 bool IsFileExists(const std::string& file);
27 bool IsFile(const std::string& file);
29 bool RemoveFile(const std::string& file);
35 uint64_t GetFileSize(const std::string& file);
36 bool ChangeMode(const std::string& file, const mode_t& mode);
37 bool CreateFile(const std::string& file, const mode_t& mode);
38 bool SaveStringToFile(const std::string& file, const std::string& content, bool isTrunc = false);
|
| /foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/ |
| H A D | mtpfs_type_file.cpp | 4 * you may not use this file except in compliance with the License. 25 MtpFsTypeFile::MtpFsTypeFile(LIBMTP_file_t *file) in MtpFsTypeFile() argument 26 : MtpFsTypeBasic(file->item_id, file->parent_id, file->storage_id, std::string(file->filename)), in MtpFsTypeFile() 27 size_(file->filesize), in MtpFsTypeFile() 28 modifyDate_(file->modificationdate) in MtpFsTypeFile()
|
| /third_party/elfutils/tests/ |
| H A D | debugaltlink.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 38 error (EXIT_FAILURE, 0, "No input file given"); in main() 44 const char *file = argv[i]; in main() local 45 int fd = open (file, O_RDONLY); in main() 47 error (EXIT_FAILURE, errno, "couldn't open file '%s'", file); in main() 52 printf("%s: dwarf_begin failed: %s\n", file, dwarf_errmsg (-1)); in main() 64 printf ("%s: <no .gnu_debugaltlink section>\n", file); in main() 68 file, dwarf_errms in main() [all...] |
| H A D | buildid.c | 3 This file is part of elfutils. 5 This file is free software; you can redistribute it and/or modify 38 error (EXIT_FAILURE, 0, "No input file given"); in main() 44 const char *file = argv[i]; in main() local 45 int fd = open (file, O_RDONLY); in main() 47 error (EXIT_FAILURE, errno, "couldn't open file '%s'", file); in main() 52 printf("%s: elf_begin failed: %s\n", file, elf_errmsg (-1)); in main() 62 printf ("%s: <no NT_GNU_BUILD_ID note>\n", file); in main() 66 file, elf_errms in main() [all...] |
| /third_party/node/deps/v8/src/init/ |
| H A D | startup-data-util.cc | 3 // found in the LICENSE file. 12 #include "src/base/file-utils.h" 48 FILE* file = base::Fopen(blob_file, "rb"); in Load() local 49 if (!file) { in Load() 54 fseek(file, 0, SEEK_END); in Load() 55 startup_data->raw_size = static_cast<int>(ftell(file)); in Load() 56 rewind(file); in Load() 60 1, startup_data->raw_size, file)); in Load() 61 base::Fclose(file); in Load()
|
| /third_party/skia/third_party/externals/dawn/src/fuzzers/ |
| H A D | StandaloneFuzzerMain.cpp | 4 // you may not use this file except in compliance with the License. 38 std::cout << "Reproducing using file: " << filename << std::endl; in main() 42 FILE* file = fopen(filename, "rb"); in main() local 43 if (!file) { in main() 48 fseek(file, 0, SEEK_END); in main() 49 long tellFileSize = ftell(file); in main() 51 std::cerr << "Input file of incorrect size: " << filename << std::endl; in main() 54 fseek(file, 0, SEEK_SET); in main() 59 size_t bytesRead = fread(data.data(), sizeof(char), fileSize, file); in main() 60 fclose(file); in main() [all...] |
| /third_party/toybox/toys/posix/ |
| H A D | comm.c | 44 int file[2]; in comm_main() local 51 file[i] = xopenro(toys.optargs[i]); in comm_main() 52 line[i] = get_line(file[i]); in comm_main() 62 line[i] = get_line(file[i]); in comm_main() 68 line[i] = get_line(file[i]); in comm_main() 72 /* print rest of the longer file */ in comm_main() 76 line[i] = get_line(file[i]); in comm_main() 79 if (CFG_TOYBOX_FREE) for (i = 0; i < 2; i++) xclose(file[i]); in comm_main()
|
| /third_party/skia/include/private/ |
| H A D | GrSingleOwner.h | 5 * found in the LICENSE file. 26 AutoEnforce(GrSingleOwner* so, const char* file, int line) in AutoEnforce() 27 : fFile(file), fLine(line), fSO(so) { in AutoEnforce() 28 fSO->enter(file, line); in AutoEnforce() 38 void enter(const char* file, int line) { in enter() argument 42 file, line); in enter() 47 void exit(const char* file, int line) { in exit() argument 49 SkASSERTF(fOwner == SkGetThreadID(), "%s:%d Single owner failure.", file, line); in exit()
|
| /third_party/vk-gl-cts/framework/delibs/deutil/ |
| H A D | deFile.h | 10 * you may not use this file except in compliance with the License. 22 * \file 35 DE_FILEMODE_READ = (1<<0), /*!< Read access to file. */ 36 DE_FILEMODE_WRITE = (1<<2), /*!< Write access to file. */ 37 DE_FILEMODE_CREATE = (1<<3), /*!< Create file if it doesn't exist. Requires DE_FILEMODE_WRITE. */ 38 DE_FILEMODE_OPEN = (1<<4), /*!< Open file if it exists. */ 39 DE_FILEMODE_TRUNCATE = (1<<5) /*!< Truncate content of file. Requires DE_FILEMODE_OPEN. */ 74 void deFile_destroy (deFile* file); 76 deBool deFile_setFlags (deFile* file, deUint32 flags); 78 deInt64 deFile_getPosition (const deFile* file); [all...] |
| /base/account/os_account/frameworks/common/log/src/ |
| H A D | account_log_wrapper.cpp | 4 * you may not use this file except in compliance with the License. 28 std::string AccountLogWrapper::GetBriefFileName(const std::string &file) in GetBriefFileName() argument 30 auto pos = file.find_last_of("/"); in GetBriefFileName() 32 return file.substr(pos + 1); in GetBriefFileName() 35 pos = file.find_last_of("\\"); in GetBriefFileName() 37 return file.substr(pos + 1); in GetBriefFileName() 40 return file; in GetBriefFileName()
|
| /base/hiviewdfx/faultloggerd/common/dfxutil/ |
| H A D | file_util.h | 4 * you may not use this file except in compliance with the License. 31 std::ifstream file(filePath.c_str()); in LoadStringFromFile() 32 if (!file.is_open()) { in LoadStringFromFile() 36 file.seekg(0, std::ios::end); in LoadStringFromFile() 37 const long fileLength = file.tellg(); in LoadStringFromFile() 43 file.seekg(0, std::ios::beg); in LoadStringFromFile() 44 std::copy(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>(), std::back_inserter(content)); in LoadStringFromFile()
|
| /base/telephony/telephony_data/common/src/ |
| H A D | data_storage_log_wrapper.cpp | 4 * you may not use this file except in compliance with the License. 34 std::string DataStorageLogWrapper::GetBriefFileName(const std::string &file) in GetBriefFileName() argument 36 auto pos = file.find_last_of("/"); in GetBriefFileName() 38 return file.substr(pos + 1); in GetBriefFileName() 41 pos = file.find_last_of("\\"); in GetBriefFileName() 43 return file.substr(pos + 1); in GetBriefFileName() 46 return file; in GetBriefFileName()
|
| /foundation/multimedia/player_framework/test/fuzztest/common/ |
| H A D | aw_common.cpp | 4 * you may not use this file except in compliance with the License.
38 FILE *file = nullptr;
in WriteDataToFile() local 39 file = fopen(path.c_str(), "w+");
in WriteDataToFile() 40 if (file == nullptr) {
in WriteDataToFile() 43 if (fwrite(data, 1, size, file) != size) {
in WriteDataToFile() 44 (void)fclose(file);
in WriteDataToFile() 47 (void)fclose(file);
in WriteDataToFile()
|
| /foundation/communication/netmanager_ext/utils/log/src/ |
| H A D | netmgr_ext_log_wrapper.cpp | 4 * you may not use this file except in compliance with the License. 29 std::string NetMgrExtLogWrapper::GetBriefFileName(const std::string &file) in GetBriefFileName() argument 31 auto position = file.find_last_of("/"); in GetBriefFileName() 33 return file.substr(position + 1); in GetBriefFileName() 36 position = file.find_last_of("\\"); in GetBriefFileName() 38 return file.substr(position + 1); in GetBriefFileName() 41 return file; in GetBriefFileName()
|