| /third_party/toybox/porting/liteos_a/toys/posix/ |
| H A D | chmod.c | 1 /* chmod.c - Change file mode bits 15 Change mode of listed file[s] (recursively with -R). 23 suid/sgid: execute as the user/group who owns the file. 31 chmod u+w file - allow owner of "file" to write to it. 32 chmod 744 file - user can read/write/execute, everyone else read only 62 char **file; in chmod_main() local 64 for (file = toys.optargs+1; *file; file in chmod_main() [all...] |
| /third_party/toybox/toys/other/ |
| H A D | chcon.c | 1 /* chcon.c - Change file security context 14 Change the SELinux security context of listed file[s]. 41 char **file; in chcon_main() local 43 for (file = toys.optargs+1; *file; file++) dirtree_read(*file, do_chcon); in chcon_main()
|
| H A D | lsusb.c | 20 FILE *file; in list_device() local 28 file = fopen(toybuf, "r"); in list_device() 29 if (file) { in list_device() 32 while (fgets(toybuf, sizeof(toybuf), file)) in list_device() 39 fclose(file); in list_device()
|
| /third_party/toybox/toys/posix/ |
| H A D | chmod.c | 1 /* chmod.c - Change file mode bits 15 Change mode of listed file[s] (recursively with -R). 23 suid/sgid: execute as the user/group who owns the file. 31 chmod u+w file - allow owner of "file" to write to it. 32 chmod 744 file - user can read/write/execute, everyone else read only 62 char **file; in chmod_main() local 64 for (file = toys.optargs+1; *file; file in chmod_main() [all...] |
| /third_party/protobuf/php/src/Google/Protobuf/Internal/ |
| H A D | FileDescriptor.php | 74 $file = new FileDescriptor(); variable 75 $file->setPackage($proto->getPackage()); 77 $file->addMessageType(Descriptor::buildFromProto( 81 $file->addEnumType( 87 return $file;
|
| /foundation/graphic/graphic_3d/lume/LumeEngine/src/image/ |
| H A D | image_loader_manager.cpp | 4 * you may not use this file except in compliance with the License. 80 // Load 12 bytes (maximum header size of currently implemented file types) in LoadImage() 81 IFile::Ptr file = fileManager_.OpenFile(uri); in LoadImage() local 82 if (!file) { in LoadImage() 86 return LoadImage(*file, loadFlags); in LoadImage() 89 ImageLoaderManager::LoadResult ImageLoaderManager::LoadImage(IFile& file, uint32_t loadFlags) in LoadImage() argument 91 CORE_CPU_PERF_SCOPE("Image", "loadImage()", "file"); in LoadImage() 95 // Read header of the file to a buffer. in LoadImage() 97 const uint64_t read = file.Read(buffer.get(), byteLength); in LoadImage() 99 return ResultFailure("Can not read file heade in LoadImage() 136 IFile::Ptr file = fileManager_.OpenFile(uri); LoadAnimatedImage() local 144 LoadAnimatedImage(IFile& file, uint32_t loadFlags) LoadAnimatedImage() argument [all...] |
| /third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/ |
| H A D | gen_restricted_traces.py | 5 # found in the LICENSE file. 24 # found in the LICENSE file. 40 // found in the LICENSE file. 104 // found in the LICENSE file. 175 # TODO(http://anglebug.com/5878): Revert back to non-autogen'ed file names for the angledata.gz. 195 source_files = ['"%s/%s"' % (trace, file.strip()) for file in files] 202 source_files = ['"%s/%s"' % (trace, file.strip()) for file in files] 229 for file i [all...] |
| /third_party/python/Lib/ |
| H A D | pyclbr.py | 3 Parse enough of a Python file to recognize imports and class and 22 file -- file in which the object is defined; 23 lineno -- line in the file where the object's definition starts; 24 end_lineno -- line in the file where the object's definition ends; 55 def __init__(self, module, name, file, lineno, end_lineno, parent): 58 self.file = file 70 def __init__(self, module, name, file, lineno, 72 super().__init__(module, name, file, linen [all...] |
| /third_party/selinux/libsepol/cil/test/unit/ |
| H A D | CuTest.c | 171 static void CuFailInternal(CuTest* tc, const char* file, int line, CuString* string) in CuFailInternal() argument 175 sprintf(buf, "%s:%d: ", file, line); in CuFailInternal() 183 void CuFail_Line(CuTest* tc, const char* file, int line, const char* message2, const char* message) in CuFail_Line() argument 194 CuFailInternal(tc, file, line, &string); in CuFail_Line() 197 void CuAssert_Line(CuTest* tc, const char* file, int line, const char* message, int condition) in CuAssert_Line() argument 200 CuFail_Line(tc, file, line, NULL, message); in CuAssert_Line() 203 void CuAssertStrEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, in CuAssertStrEquals_LineMsg() argument 225 CuFailInternal(tc, file, line, &string); in CuAssertStrEquals_LineMsg() 228 void CuAssertIntEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, in CuAssertIntEquals_LineMsg() argument 234 CuFail_Line(tc, file, lin in CuAssertIntEquals_LineMsg() 237 CuAssertDblEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, double expected, double actual, double delta) CuAssertDblEquals_LineMsg() argument 247 CuAssertPtrEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, void* expected, void* actual) CuAssertPtrEquals_LineMsg() argument [all...] |
| /arkcompiler/runtime_core/scripts/ |
| H A D | memdump.py | 5 # you may not use this file except in compliance with the License. 20 Panda runtime writes memory reports into memdump.bin file at runtime destruction and at SIGUSR2 21 signal. This script is aimed to analyse memdump.bin file. 105 def read_string(file): 106 """Reads string from file""" 108 num = struct.unpack('I', file.read(4))[0] 109 return file.read(num).decode('utf-8') 158 help='Filter allocations by a string in stacktrace (it may be a function of file and line)') 173 with open(args.input_file, "rb") as file: 174 num_items, num_stacktraces = struct.unpack('II', file [all...] |
| /arkcompiler/runtime_core/static_core/scripts/ |
| H A D | memdump.py | 5 # you may not use this file except in compliance with the License. 20 Panda runtime writes memory reports into memdump.bin file at runtime destruction and at SIGUSR2 21 signal. This script is aimed to analyse memdump.bin file. 105 def read_string(file): 106 """Reads string from file""" 108 num = struct.unpack('I', file.read(4))[0] 109 return file.read(num).decode('utf-8') 158 help='Filter allocations by a string in stacktrace (it may be a function of file and line)') 173 with open(args.input_file, "rb") as file: 174 num_items, num_stacktraces = struct.unpack('II', file [all...] |
| /foundation/ai/intelligent_voice_framework/utils/ |
| H A D | intell_voice_util.cpp | 4 * you may not use this file except in compliance with the License. 72 std::ifstream file(filePath, std::ios::binary); in ReadFile() 73 if (!file.good()) { in ReadFile() 74 INTELL_VOICE_LOG_ERROR("open file failed"); in ReadFile() 78 file.seekg(0, file.end); in ReadFile() 79 size = static_cast<uint32_t>(file.tellg()); in ReadFile() 81 INTELL_VOICE_LOG_ERROR("file is empty"); in ReadFile() 90 file.seekg(0, file in ReadFile() [all...] |
| /foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
| H A D | bundle_file_utils.cpp | 4 * you may not use this file except in compliance with the License. 41 bool BundleFileUtils::IsExistFile(const char *file) in IsExistFile() argument 43 if (file == nullptr) { in IsExistFile() 48 if (stat(file, &buf) != 0) { in IsExistFile() 117 // Remove file before delete the directory in RemoveFile() 147 bool BundleFileUtils::ChownFile(const char *file, int32_t uid, int32_t gid) in ChownFile() argument 149 if (file == nullptr) { in ChownFile() 152 return chown(file, uid, gid) == 0; in ChownFile() 155 bool BundleFileUtils::WriteFile(const char *file, const void *buffer, uint32_t size) in WriteFile() argument 157 if (file in WriteFile() [all...] |
| /foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
| H A D | proxy_filesystem.cpp | 4 * you may not use this file except in compliance with the License. 80 auto file = fileManager_.GetEntry(destination + normalizedPath); in GetEntry() local 81 if (file.type != IDirectory::Entry::UNKNOWN) { in GetEntry() 82 return file; in GetEntry() 93 auto file = fileManager_.OpenFile(destination + normalizedPath); in OpenFile() local 94 if (file) { in OpenFile() 95 return file; in OpenFile() 108 auto file = fileManager_.CreateFile(destination + normalizedPath); in CreateFile() local 109 if (file) { in CreateFile() 110 return file; in CreateFile() [all...] |
| /foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/ |
| H A D | rs_profiler_beta_recorder.cpp | 4 * you may not use this file except in compliance with the License. 53 const std::string cacheFile("/data/service/el0/render_service/file"); in GetBetaRecordFileName() 100 void RSProfiler::WriteBetaRecordFileThread(RSFile& file, const std::string& path) in WriteBetaRecordFileThread() argument 103 if (!file.GetDataCopy(fileData)) { in WriteBetaRecordFileThread() 129 // Start recording for the first file in StartBetaRecord() 184 bool RSProfiler::OpenBetaRecordFile(RSFile& file) in OpenBetaRecordFile() argument 191 file.SetVersion(RSFILE_VERSION_LATEST); in OpenBetaRecordFile() 192 file.Create(path); in OpenBetaRecordFile() 198 bool RSProfiler::SaveBetaRecordFile(RSFile& file) in SaveBetaRecordFile() argument 206 WriteBetaRecordFileThread(file, GetBetaRecordFileNam in SaveBetaRecordFile() 215 WriteBetaRecordMetrics(RSFile& file, double time) WriteBetaRecordMetrics() argument [all...] |
| /third_party/curl/docs/examples/ |
| H A D | multi-event.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. 69 FILE *file; in add_download() local 74 file = fopen(filename, "wb"); in add_download() 75 if(!file) { in add_download() 81 curl_easy_setopt(handle, CURLOPT_WRITEDATA, file); in add_download() 82 curl_easy_setopt(handle, CURLOPT_PRIVATE, file); in add_download() 94 FILE *file; in check_multi_info() local 107 curl_easy_getinfo(easy_handle, CURLINFO_PRIVATE, &file); in check_multi_info() 112 if(file) { in check_multi_info() [all...] |
| H A D | multi-uv.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. 79 FILE *file; in add_download() local 84 file = fopen(filename, "wb"); in add_download() 85 if(!file) { in add_download() 91 curl_easy_setopt(handle, CURLOPT_WRITEDATA, file); in add_download() 92 curl_easy_setopt(handle, CURLOPT_PRIVATE, file); in add_download() 104 FILE *file; in check_multi_info() local 117 curl_easy_getinfo(easy_handle, CURLINFO_PRIVATE, &file); in check_multi_info() 122 if(file) { in check_multi_info() [all...] |
| /third_party/ltp/include/ |
| H A D | tst_cgroup.h | 71 * if the file exists before trying to use it. 73 * Often a control file has almost the same functionality between V1 172 enum tst_cg_ver tst_cg_ver(const char *const file, const int lineno, 183 int safe_cg_has(const char *const file, const int lineno, 192 ssize_t safe_cg_read(const char *const file, const int lineno, 205 void safe_cg_printf(const char *const file, const int lineno, 214 int safe_cg_open(const char *const file, const int lineno, 223 void safe_cg_fchown(const char *const file, const int lineno, 233 void safe_cg_scanf(const char *file, const int lineno, 243 void safe_cg_lines_scanf(const char *const file, cons [all...] |
| /third_party/icu/icu4c/source/tools/gentest/ |
| H A D | gentest.c | 10 * file name: gentest.c 18 * This program writes a little data file for testing the udata API. 81 "\tcreate the test file " DATA_NAME "." DATA_TYPE " unless the -r option is given.\n" in main() 85 "\t\t-r or --genres generate resource file testtable32.txt instead of UData test \n" in main() 96 /* printf("Generating the test memory mapped file\n"); */ in main() 102 /* Create data file ----------------------------------------------------- */ 119 /* write the data to the file */ in createData() 127 fprintf(stderr, "gentest: error %d writing the output file\n", *errorCode); in createData() 140 /* Create Java file ----------------------------------------------------- */ 145 char file[51 in outputJavaStuff() local [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/gentest/ |
| H A D | gentest.c | 10 * file name: gentest.c 18 * This program writes a little data file for testing the udata API. 81 "\tcreate the test file " DATA_NAME "." DATA_TYPE " unless the -r option is given.\n" in main() 85 "\t\t-r or --genres generate resource file testtable32.txt instead of UData test \n" in main() 96 /* printf("Generating the test memory mapped file\n"); */ in main() 102 /* Create data file ----------------------------------------------------- */ 119 /* write the data to the file */ in createData() 127 fprintf(stderr, "gentest: error %d writing the output file\n", *errorCode); in createData() 140 /* Create Java file ----------------------------------------------------- */ 145 char file[51 in outputJavaStuff() local [all...] |
| /third_party/skia/third_party/externals/tint/src/diagnostic/ |
| H A D | formatter_test.cc | 4 // you may not use this file except in compliance with the License. 33 Source::File file{"file.name", content}; 35 Source{Source::Range{Source::Location{1, 14}}, &file}, 38 Source{Source::Range{{2, 14}, {2, 18}}, &file}, "grrr", 41 Source{Source::Range{{3, 16}, {3, 21}}, &file}, "hiss", 44 Source{Source::Range{{4, 16}, {4, 19}}, &file}, 47 Source{Source::Range{{4, 16}, {4, 19}}, &file}, 81 auto* expect = R"(file.name:1:14: purr in TEST_F() 82 file in TEST_F() [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/ |
| H A D | plugin.cc | 76 CodeGeneratorResponse::File* file = response_->add_file(); in Open() local 77 file->set_name(filename); in Open() 78 return new io::StringOutputStream(file->mutable_content()); in Open() 83 CodeGeneratorResponse::File* file = response_->add_file(); in OpenForInsert() local 84 file->set_name(filename); in OpenForInsert() 85 file->set_insertion_point(insertion_point); in OpenForInsert() 86 return new io::StringOutputStream(file->mutable_content()); in OpenForInsert() 108 const FileDescriptor* file = pool.BuildFile(request.proto_file(i)); in GenerateCode() local 109 if (file == NULL) { in GenerateCode() 120 "protoc asked plugin to generate a file bu in GenerateCode() [all...] |
| /third_party/python/Lib/test/test_importlib/resources/ |
| H A D | util.py | 26 if isinstance(self.file, Exception): 27 raise self.file 28 return self.file 63 def create_package(file=None, path=None, is_package=True, contents=()): 65 Reader(file=file, path=path, _contents=contents), 84 self.execute(data01.__name__, 'utf-8.file') 88 self.execute(data01, 'utf-8.file') 92 path = 'utf-8.file' 97 path = PurePath('utf-8.file') [all...] |
| /third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
| H A D | raw_logging.cc | 4 // you may not use this file except in compliance with the License. 133 void RawLogVA(absl::LogSeverity severity, const char* file, int line, 135 void RawLogVA(absl::LogSeverity severity, const char* file, int line, in RawLogVA() argument 155 enabled = log_prefix_hook_ptr(severity, file, line, &buf, &size); in RawLogVA() 158 DoRawLog(&buf, &size, "[%s : %d] RAW: ", file, line); in RawLogVA() 181 abort_hook(file, line, buffer, prefix_end, buffer + kLogBufSize); in RawLogVA() 190 void DefaultInternalLog(absl::LogSeverity severity, const char* file, int line, in DefaultInternalLog() argument 192 RawLog(severity, file, line, "%.*s", static_cast<int>(message.size()), in DefaultInternalLog() 212 void RawLog(absl::LogSeverity severity, const char* file, int line, in RawLog() argument 216 RawLogVA(severity, file, lin in RawLog() [all...] |
| /foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
| H A D | platform_specific.cpp | 4 * you may not use this file except in compliance with the License. 64 LOGE("[Rename] Rename file fail. err = %d", errno); in RenameFilePath() 67 LOGI("Rename file path successfully!"); in RenameFilePath() 78 LOGE("[RemoveFile] Remove file fail %s %d err = %d", filePath.c_str(), errCode, errno); in RemoveFile() 81 LOGD("Remove file successfully!"); in RemoveFile() 90 LOGD("Get file[%zu] size failed, errno [%d].", fileUrl.size(), errno); in CalFileSize() 143 LOGE("[CreateFile] Create file fail:%d.", errno); in CreateFileByFileName() 219 static void InitFileType(const _finddata_t &file, FileAttr& fileAttr) in InitFileType() argument 221 switch (file.attrib) { in InitFileType() 238 _finddata_t file; in GetFilePathAttr() local [all...] |