| /third_party/PyYAML/tests/lib/ |
| H A D | test_reader.py | 16 with open(error_filename, 'rb') as file: 17 _run_reader(file, verbose) 18 with open(error_filename, 'rb') as file: 19 _run_reader(file.read(), verbose) 22 with open(error_filename, 'rb') as file: 23 data = file.read().decode(encoding) 30 with open(error_filename, encoding=encoding) as file: 31 _run_reader(file, verbose)
|
| H A D | test_structure.py | 37 with open(structure_filename, 'r') as file: 38 nodes2 = eval(file.read()) 40 with open(data_filename, 'rb') as file: 41 loader = yaml.Loader(file) 78 with open(data_filename, 'rb') as file: 79 events1 = list(yaml.parse(file)) 80 with open(canonical_filename, 'rb') as file: 81 events2 = list(yaml.canonical_parse(file)) 96 with open(canonical_filename, 'rb') as file: 97 events1 = list(yaml.parse(file)) [all...] |
| /third_party/icu/icu4c/source/tools/gentest/ |
| H A D | genres32.c | 10 * file name: genres32.c 55 char file[512]; in genres32() local 58 uprv_strcpy(file,path); in genres32() 59 if(file[strlen(file)-1]!=U_FILE_SEP_CHAR) { in genres32() 60 uprv_strcat(file,U_FILE_SEP_STRING); in genres32() 62 uprv_strcat(file,"testtable32.txt"); in genres32() 63 out = fopen(file, "w"); in genres32() 64 /*puts(file);*/ in genres32() 67 fprintf(stderr, "%s: Couldn't create resource test file in genres32() [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/gentest/ |
| H A D | genres32.c | 10 * file name: genres32.c 55 char file[512]; in genres32() local 58 uprv_strcpy(file,path); in genres32() 59 if(file[strlen(file)-1]!=U_FILE_SEP_CHAR) { in genres32() 60 uprv_strcat(file,U_FILE_SEP_STRING); in genres32() 62 uprv_strcat(file,"testtable32.txt"); in genres32() 63 out = fopen(file, "w"); in genres32() 64 /*puts(file);*/ in genres32() 67 fprintf(stderr, "%s: Couldn't create resource test file in genres32() [all...] |
| /third_party/python/Tools/scripts/ |
| H A D | cleanfuture.py | 13 Pass one or more file and/or directory paths. When a directory path, all 18 cleanfuture finds nothing to change, the file is left alone. If cleanfuture 19 does change a file, the changed file is a fixed-point (i.e., running 20 cleanfuture on the resulting .py file won't change it again, at least not 30 Example: Assuming you're using Python 2.2, if a file containing 78 def check(file): 79 if os.path.isdir(file) and not os.path.islink(file): 81 print("listing directory", file) [all...] |
| /test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
| H A D | stdioextndk.cpp | 4 * you may not use this file except in compliance with the License.
54 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+");
in Flbf() local 55 NAPI_ASSERT(env, file != nullptr, "Flbf fopen Error");
in Flbf() 56 __flbf(file);
in Flbf() 62 fclose(file);
in Flbf() 71 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+");
in Fwriting() local 72 NAPI_ASSERT(env, file != nullptr, "Fwriting fopen Error");
in Fwriting() 73 int returnValue = __fwriting(file);
in Fwriting() 79 fclose(file);
in Fwriting() 88 FILE *file in Fpending() local 105 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); FBufSize() local 122 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Fpurge() local 139 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Freadable() local 156 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Freading() local 187 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Fwritable() local 205 FILE *file = fopen(path, mode); DPrintf() local [all...] |
| /third_party/python/Lib/ |
| H A D | dis.py | 68 def dis(x=None, *, file=None, depth=None, show_caches=False, adaptive=False): 78 distb(file=file, show_caches=show_caches, adaptive=adaptive) 97 print("Disassembly of %s:" % name, file=file) 99 dis(x1, file=file, depth=depth, show_caches=show_caches, adaptive=adaptive) 101 print("Sorry:", msg, file=file) 102 print(file [all...] |
| /third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
| H A D | vkPrograms.cpp | 8 * you may not use this file except in compliance with the License. 20 * \file 410 // Open file with "w" access to truncate it in shaderCacheFirstRunCheck() 417 // Parse chunked shader cache file for hashes and offsets in shaderCacheFirstRunCheck() 418 FILE* file = fopen(commandLine.getShaderCacheFilename(), "rb"); in shaderCacheFirstRunCheck() local 420 if (file) in shaderCacheFirstRunCheck() 428 offset = (deUint32)ftell(file); in shaderCacheFirstRunCheck() 429 if (ok) ok = fread(&chunksize, 1, 4, file) == 4; in shaderCacheFirstRunCheck() 430 if (ok) ok = fread(&hash, 1, 4, file) == 4; in shaderCacheFirstRunCheck() 432 if (ok) ok = fseek(file, offse in shaderCacheFirstRunCheck() 484 FILE* file = fopen(shaderCacheFilename, "rb"); shadercacheLoad() local 542 FILE* file = fopen(shaderCacheFilename, "rb"); shadercacheSave() local 583 FILE* file = fopen(shaderCacheFilename, "ab"); shadercacheSave() local [all...] |
| /third_party/skia/third_party/externals/tint/tools/src/cmd/trim-includes/ |
| H A D | main.go | 4 // you may not use this file except in compliance with the License. 18 // trim-includes removes each #include from each file, then runs the provided 21 // After all the #include statements have been tested, the file is 59 trim-includes removes each #include from each file, then runs the provided build 62 After all the #include statements have been tested, the file is clang-formatted 113 for fileIdx, file := range files { 114 fmt.Printf("[%d/%d]: %v\n", fileIdx+1, len(files), file.path) 115 includeLines := file.includesLineNumbers() 116 enabled := make(map[int]bool, len(file.lines)) 117 for i := range file 170 type file struct { global() type [all...] |
| /third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
| H A D | Descriptors.java | 71 * FileDescriptor} for a relevant {@code .proto} file. You can obtain it by calling {@code 73 * in that file, and file descriptors for all the imported {@code .proto} files. 83 * Describes a {@code .proto} file, including everything defined within. That includes, in 84 * particular, descriptors for all the messages and file descriptors for all other imported {@code 94 /** Get the file name. */ 114 * in the {@code .proto} file, which differs from the Java package. 125 /** Get a list of top-level message types declared in this file. */ 130 /** Get a list of top-level enum types declared in this file. */ 135 /** Get a list of top-level services declared in this file 822 private final FileDescriptor file; global() field in Descriptors.Descriptor 861 Descriptor( final DescriptorProto proto, final FileDescriptor file, final Descriptor parent, final int index) Descriptor() argument 1257 private final FileDescriptor file; global() field in Descriptors.FieldDescriptor 1363 FieldDescriptor( final FieldDescriptorProto proto, final FileDescriptor file, final Descriptor parent, final int index, final boolean isExtension) FieldDescriptor() argument 1781 private final FileDescriptor file; global() field in Descriptors.EnumDescriptor 1787 EnumDescriptor( final EnumDescriptorProto proto, final FileDescriptor file, final Descriptor parent, final int index) EnumDescriptor() argument 1893 private final FileDescriptor file; global() field in Descriptors.EnumValueDescriptor 1896 EnumValueDescriptor( final EnumValueDescriptorProto proto, final FileDescriptor file, final EnumDescriptor parent, final int index) EnumValueDescriptor() argument 1914 EnumValueDescriptor( final FileDescriptor file, final EnumDescriptor parent, final Integer number) EnumValueDescriptor() argument 2001 private final FileDescriptor file; global() field in Descriptors.ServiceDescriptor 2004 ServiceDescriptor( final ServiceDescriptorProto proto, final FileDescriptor file, final int index) ServiceDescriptor() argument 2108 private final FileDescriptor file; global() field in Descriptors.MethodDescriptor 2115 MethodDescriptor( final MethodDescriptorProto proto, final FileDescriptor file, final ServiceDescriptor parent, final int index) MethodDescriptor() argument 2159 computeFullName( final FileDescriptor file, final Descriptor parent, final String name) computeFullName() argument 2286 importPublicDependencies(final FileDescriptor file) importPublicDependencies() argument 2517 PackageDescriptor(final String name, final String fullName, final FileDescriptor file) PackageDescriptor() argument 2525 private final FileDescriptor file; global() field in Descriptors.DescriptorPool.PackageDescriptor 2533 addPackage(final String fullName, final FileDescriptor file) addPackage() argument 2708 OneofDescriptor( final OneofDescriptorProto proto, final FileDescriptor file, final Descriptor parent, final int index) OneofDescriptor() argument 2726 private final FileDescriptor file; global() field in Descriptors.OneofDescriptor [all...] |
| /base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
| H A D | hc_file.c | 4 * you may not use this file except in compliance with the License. 87 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen() argument 89 if (path == NULL || file == NULL) { in HcFileOpen() 93 file->pfd = HcFileOpenRead(path); in HcFileOpen() 95 file->pfd = HcFileOpenWrite(path); in HcFileOpen() 97 if (file->pfd == NULL) { in HcFileOpen() 103 int HcFileSize(FileHandle file) in HcFileSize() argument 105 FILE *fp = (FILE *)file.pfd; in HcFileSize() 120 int HcFileRead(FileHandle file, void *dst, int dstSize) in HcFileRead() argument 122 FILE *fp = (FILE *)file in HcFileRead() 144 HcFileWrite(FileHandle file, const void *src, int srcSize) HcFileWrite() argument 175 HcFileClose(FileHandle file) HcFileClose() argument [all...] |
| /base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/ |
| H A D | hc_file_posix.c | 4 * you may not use this file except in compliance with the License. 71 LOGI("[OS]: file open enter."); in HcFileOpenRead() 73 LOGI("[OS]: file open quit."); in HcFileOpenRead() 75 LOGE("[OS]: file open fail. [Errno]: %d", errno); in HcFileOpenRead() 88 LOGI("[OS]: file open enter."); in HcFileOpenWrite() 90 LOGI("[OS]: file open quit."); in HcFileOpenWrite() 92 LOGE("[OS]: file open fail. [Errno]: %d", errno); in HcFileOpenWrite() 97 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen() argument 99 if (path == NULL || file == NULL) { in HcFileOpen() 103 file in HcFileOpen() 114 HcFileSize(FileHandle file) HcFileSize() argument 122 HcFileRead(FileHandle file, void *dst, int dstSize) HcFileRead() argument 148 HcFileWrite(FileHandle file, const void *src, int srcSize) HcFileWrite() argument 170 HcFileClose(FileHandle file) HcFileClose() argument [all...] |
| /third_party/node/deps/v8/third_party/zlib/contrib/minizip/ |
| H A D | zip.h | 105 uLong internal_fa; /* internal file attributes 2 bytes */ 106 uLong external_fa; /* external file attributes 4 bytes */ 122 if the file pathname exist and append==APPEND_STATUS_CREATEAFTER, the zip 123 will be created at the end of the file. 124 (useful if the file contain a self extractor code) 125 if the file pathname exist and append==APPEND_STATUS_ADDINZIP, we will 126 add files in existing zip (be sure you don't add file that doesn't exist) 133 If you want delete file into a zipfile, you must open a zipfile, and create another 134 Of couse, you can use RAW reading and writing to copy the file you did not want delte 147 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, [all...] |
| H A D | unzip.c | 23 See the accompanying file LICENSE, version 2000-Apr-09 or later 36 Roger Schlafly, described by Phil Katz in the file appnote.txt. This 37 file (appnote.txt) is distributed with the PKZIP program (even in the 121 /* unz_file_info_interntal contain internal info about a file in zipfile*/ 128 /* file_in_zip_read_info_s contain internal information about a file in zipfile, 168 ZPOS64_T num_file; /* number of the current file in the zipfile*/ 169 ZPOS64_T pos_in_central_dir; /* pos of the current file in the central dir*/ 170 ZPOS64_T current_file_ok; /* flag about the usability of the current file*/ 177 unz_file_info64 cur_file_info; /* public info about the current file in zip*/ 180 file i 804 unzClose(unzFile file) unzClose() argument 824 unzGetGlobalInfo64(unzFile file, unz_global_info64* pglobal_info) unzGetGlobalInfo64() argument 834 unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info32) unzGetGlobalInfo() argument 875 unz64local_GetCurrentFileInfoInternal(unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) unz64local_GetCurrentFileInfoInternal() argument 1120 unzGetCurrentFileInfo64(unzFile file, unz_file_info64 * pfile_info, char * szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char* szComment, uLong commentBufferSize) unzGetCurrentFileInfo64() argument 1132 unzGetCurrentFileInfo(unzFile file, unz_file_info * pfile_info, char * szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char* szComment, uLong commentBufferSize) unzGetCurrentFileInfo() argument 1174 unzGoToFirstFile(unzFile file) unzGoToFirstFile() argument 1195 unzGoToNextFile(unzFile file) unzGoToNextFile() argument 1228 unzLocateFile(unzFile file, const char *szFileName, int iCaseSensitivity) unzLocateFile() argument 1304 unzGetFilePos64(unzFile file, unz64_file_pos* file_pos) unzGetFilePos64() argument 1320 unzGetFilePos( unzFile file, unz_file_pos* file_pos) unzGetFilePos() argument 1334 unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) unzGoToFilePos64() argument 1356 unzGoToFilePos( unzFile file, unz_file_pos* file_pos) unzGoToFilePos() argument 1468 unzOpenCurrentFile3(unzFile file, int* method, int* level, int raw, const char* password) unzOpenCurrentFile3() argument 1638 unzOpenCurrentFile(unzFile file) unzOpenCurrentFile() argument 1643 unzOpenCurrentFilePassword(unzFile file, const char* password) unzOpenCurrentFilePassword() argument 1648 unzOpenCurrentFile2(unzFile file, int* method, int* level, int raw) unzOpenCurrentFile2() argument 1655 unzGetCurrentFileZStreamPos64( unzFile file) unzGetCurrentFileZStreamPos64() argument 1681 unzReadCurrentFile(unzFile file, voidp buf, unsigned len) unzReadCurrentFile() argument 1881 unztell(unzFile file) unztell() argument 1896 unztell64(unzFile file) unztell64() argument 1916 unzeof(unzFile file) unzeof() argument 1948 unzGetLocalExtrafield(unzFile file, voidp buf, unsigned len) unzGetLocalExtrafield() argument 1996 unzCloseCurrentFile(unzFile file) unzCloseCurrentFile() argument 2043 unzGetGlobalComment(unzFile file, char * szComment, uLong uSizeBuf) unzGetGlobalComment() argument 2071 unzGetOffset64(unzFile file) unzGetOffset64() argument 2086 unzGetOffset(unzFile file) unzGetOffset() argument 2096 unzSetOffset64(unzFile file, ZPOS64_T pos) unzSetOffset64() argument 2114 unzSetOffset(unzFile file, uLong pos) unzSetOffset() argument [all...] |
| /third_party/skia/third_party/externals/zlib/contrib/minizip/ |
| H A D | zip.h | 105 uLong internal_fa; /* internal file attributes 2 bytes */ 106 uLong external_fa; /* external file attributes 4 bytes */ 122 if the file pathname exist and append==APPEND_STATUS_CREATEAFTER, the zip 123 will be created at the end of the file. 124 (useful if the file contain a self extractor code) 125 if the file pathname exist and append==APPEND_STATUS_ADDINZIP, we will 126 add files in existing zip (be sure you don't add file that doesn't exist) 133 If you want delete file into a zipfile, you must open a zipfile, and create another 134 Of couse, you can use RAW reading and writing to copy the file you did not want delte 147 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, [all...] |
| H A D | unzip.c | 23 See the accompanying file LICENSE, version 2000-Apr-09 or later 36 Roger Schlafly, described by Phil Katz in the file appnote.txt. This 37 file (appnote.txt) is distributed with the PKZIP program (even in the 121 /* unz_file_info_interntal contain internal info about a file in zipfile*/ 128 /* file_in_zip_read_info_s contain internal information about a file in zipfile, 168 ZPOS64_T num_file; /* number of the current file in the zipfile*/ 169 ZPOS64_T pos_in_central_dir; /* pos of the current file in the central dir*/ 170 ZPOS64_T current_file_ok; /* flag about the usability of the current file*/ 177 unz_file_info64 cur_file_info; /* public info about the current file in zip*/ 180 file i 804 unzClose(unzFile file) unzClose() argument 824 unzGetGlobalInfo64(unzFile file, unz_global_info64* pglobal_info) unzGetGlobalInfo64() argument 834 unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info32) unzGetGlobalInfo() argument 875 unz64local_GetCurrentFileInfoInternal(unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) unz64local_GetCurrentFileInfoInternal() argument 1120 unzGetCurrentFileInfo64(unzFile file, unz_file_info64 * pfile_info, char * szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char* szComment, uLong commentBufferSize) unzGetCurrentFileInfo64() argument 1132 unzGetCurrentFileInfo(unzFile file, unz_file_info * pfile_info, char * szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char* szComment, uLong commentBufferSize) unzGetCurrentFileInfo() argument 1174 unzGoToFirstFile(unzFile file) unzGoToFirstFile() argument 1195 unzGoToNextFile(unzFile file) unzGoToNextFile() argument 1228 unzLocateFile(unzFile file, const char *szFileName, int iCaseSensitivity) unzLocateFile() argument 1304 unzGetFilePos64(unzFile file, unz64_file_pos* file_pos) unzGetFilePos64() argument 1320 unzGetFilePos( unzFile file, unz_file_pos* file_pos) unzGetFilePos() argument 1334 unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) unzGoToFilePos64() argument 1356 unzGoToFilePos( unzFile file, unz_file_pos* file_pos) unzGoToFilePos() argument 1468 unzOpenCurrentFile3(unzFile file, int* method, int* level, int raw, const char* password) unzOpenCurrentFile3() argument 1638 unzOpenCurrentFile(unzFile file) unzOpenCurrentFile() argument 1643 unzOpenCurrentFilePassword(unzFile file, const char* password) unzOpenCurrentFilePassword() argument 1648 unzOpenCurrentFile2(unzFile file, int* method, int* level, int raw) unzOpenCurrentFile2() argument 1655 unzGetCurrentFileZStreamPos64( unzFile file) unzGetCurrentFileZStreamPos64() argument 1681 unzReadCurrentFile(unzFile file, voidp buf, unsigned len) unzReadCurrentFile() argument 1881 unztell(unzFile file) unztell() argument 1896 unztell64(unzFile file) unztell64() argument 1916 unzeof(unzFile file) unzeof() argument 1948 unzGetLocalExtrafield(unzFile file, voidp buf, unsigned len) unzGetLocalExtrafield() argument 1996 unzCloseCurrentFile(unzFile file) unzCloseCurrentFile() argument 2043 unzGetGlobalComment(unzFile file, char * szComment, uLong uSizeBuf) unzGetGlobalComment() argument 2071 unzGetOffset64(unzFile file) unzGetOffset64() argument 2086 unzGetOffset(unzFile file) unzGetOffset() argument 2096 unzSetOffset64(unzFile file, ZPOS64_T pos) unzSetOffset64() argument 2114 unzSetOffset(unzFile file, uLong pos) unzSetOffset() argument [all...] |
| /third_party/zlib/contrib/minizip/ |
| H A D | zip.h | 105 uLong internal_fa; /* internal file attributes 2 bytes */ 106 uLong external_fa; /* external file attributes 4 bytes */ 122 if the file pathname exist and append==APPEND_STATUS_CREATEAFTER, the zip 123 will be created at the end of the file. 124 (useful if the file contain a self extractor code) 125 if the file pathname exist and append==APPEND_STATUS_ADDINZIP, we will 126 add files in existing zip (be sure you don't add file that doesn't exist) 133 If you want delete file into a zipfile, you must open a zipfile, and create another 134 Of course, you can use RAW reading and writing to copy the file you did not want delete 152 extern int ZEXPORT zipOpenNewFileInZip(zipFile file, [all...] |
| /third_party/icu/icu4c/source/python/icutools/databuilder/ |
| H A D | filtration.py | 28 filter_type = "file-stem" 30 if filter_type == "file-stem": 43 print("Error: Unknown filterType option: %s" % filter_type, file=sys.stderr) 49 for file in request.all_input_files(): 50 assert self.match(file) 54 def _file_to_file_stem(file): 55 start = file.filename.rfind("/") 56 limit = file.filename.rfind(".") 57 return file.filename[start+1:limit] 60 def _file_to_subdir(file) [all...] |
| /third_party/node/deps/v8/tools/ |
| H A D | locs.py | 5 # found in the LICENSE file. 118 help="Output results for each file separately") 138 build_dir), file=sys.stderr) 143 print("Error: Building {} failed.".format(build_dir), file=sys.stderr) 148 compile_commands_file), file=out) 153 compile_commands_file, build_dir), file=sys.stderr) 158 ninja_deps_file), file=out) 163 ninja_deps_file, build_dir), file=sys.stderr) 195 def __init__(self, file, target, loc, in_bytes, expanded, expanded_bytes): 197 self.file [all...] |
| /third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/ |
| H A D | filtration.py | 28 filter_type = "file-stem" 30 if filter_type == "file-stem": 43 print("Error: Unknown filterType option: %s" % filter_type, file=sys.stderr) 49 for file in request.all_input_files(): 50 assert self.match(file) 54 def _file_to_file_stem(file): 55 start = file.filename.rfind("/") 56 limit = file.filename.rfind(".") 57 return file.filename[start+1:limit] 60 def _file_to_subdir(file) [all...] |
| /third_party/node/lib/ |
| H A D | child_process.js | 203 file: command, 234 return module.exports.execFile(opts.file, 263 function normalizeExecFileArgs(file, args, options, callback) { 300 return { file, args, options, callback }; 304 * Spawns the specified file as a shell. 305 * @param {string} file 328 function execFile(file, args, options, callback) { 329 ({ file, args, options, callback } = normalizeExecFileArgs(file, args, options, callback)); 351 const child = spawn(file, arg [all...] |
| /base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
| H A D | log_util.cpp | 4 * you may not use this file except in compliance with the License. 85 bool LogUtil::ReadFileBuff(const string& file, stringstream& buffer) in ReadFileBuff() argument 87 int fd = LogUtil::GetFileFd(file); in ReadFileBuff() 89 HIVIEW_LOGE("%{public}s get fd fail, fd is %{public}d.", file.c_str(), fd); in ReadFileBuff() 95 HIVIEW_LOGE("read file: %s failed, fd is %d\n", file.c_str(), fd); in ReadFileBuff() 104 int LogUtil::GetFileFd(const string& file) in GetFileFd() argument 106 if (file.empty() || !FileUtil::IsLegalPath(file)) { in GetFileFd() 107 HIVIEW_LOGE("the system file ( in GetFileFd() 119 FileExist(const string& file) FileExist() argument [all...] |
| /third_party/elfutils/tests/ |
| H A D | line2addr.c | 2 This file is part of elfutils. 4 This file is free software; you can redistribute it and/or modify 63 char *file; member 79 if (dwfl_module_getsrc_file (mod, a->file, a->line, 0, &lines, &nlines) == 0) in handle_module() 85 const char *file = dwfl_lineinfo (lines[inner], &addr, &line, &col, in handle_module() local 87 if (file != NULL) in handle_module() 93 if (strcmp (file, a->file) || line != a->line || col != 0) in handle_module() 95 file, line); in handle_module() 99 || strcmp (file, in handle_module() [all...] |
| /third_party/libsnd/tests/ |
| H A D | locale_test.c | 61 SNDFILE * file ; in wchar_test() local 71 file = sf_wchar_open (filename, SFM_WRITE, &info) ; in wchar_test() 72 exit_if_true (file == NULL, "\n\nLine %d : sf_wchar_open failed : %s\n\n", __LINE__, sf_strerror (NULL)) ; in wchar_test() 73 sf_close (file) ; in wchar_test() 75 /* This should check that the file did in fact get created with a in wchar_test() 83 /* Use this because the file was created with CreateFileW. */ in wchar_test() 136 SNDFILE *file ; in locale_test() 152 file = test_open_file_or_die (ldata->filename, SFM_WRITE, &sfinfo, 0, __LINE__) ; in locale_test() 153 test_write_short_or_die (file, 0, wdata, ARRAY_LEN (wdata), __LINE__) ; in locale_test() 154 sf_close (file) ; in locale_test() [all...] |
| /third_party/ltp/include/ |
| H A D | tst_safe_sysv_ipc.h | 14 int safe_msgget(const char *file, const int lineno, key_t key, int msgflg); 18 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, 23 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, 28 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, 35 int safe_shmget(const char *file, const int lineno, key_t key, size_t size, 40 void *safe_shmat(const char *file, const int lineno, int shmid, 45 int safe_shmdt(const char *file, const int lineno, const void *shmaddr); 48 int safe_shmctl(const char *file, const int lineno, int shmid, int cmd, 55 int safe_semget(const char *file, const int lineno, key_t key, int nsems, 60 int safe_semctl(const char *file, cons [all...] |