| /foundation/communication/netmanager_base/utils/log/src/ |
| H A D | net_mgr_log_wrapper.cpp | 4 * you may not use this file except in compliance with the License. 32 std::string NetMgrLogWrapper::GetBriefFileName(const std::string &file) in GetBriefFileName() argument 34 auto pos = file.find_last_of("/"); in GetBriefFileName() 36 return file.substr(pos + 1); in GetBriefFileName() 39 pos = file.find_last_of("\\"); in GetBriefFileName() 41 return file.substr(pos + 1); in GetBriefFileName() 44 return file; in GetBriefFileName()
|
| /third_party/curl/tests/ |
| H A D | test1276.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. 41 my @file=<$fh>; 44 if(join("", @gen) ne join("", @file)) { 47 printf "easyoptions.c is %u lines\n", scalar(@file); 48 printf "generated file is %u lines\n", scalar(@gen); 53 $file[$i] =~ s/[\r\n]//g; 54 if($gen[$i] ne $file[$i]) { 56 $i+1, showline($file[$i]),
|
| /third_party/eudev/hm_src/ |
| H A D | log.c | 13 int log_oom_internal(const char *file, int line, const char *func) in log_oom_internal() argument 18 void log_assert_failed(const char *text, const char *file, int line, const char *func) in log_assert_failed() argument 23 void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func) in log_assert_failed_unreachable() argument 28 int log_meta(int level, const char*file, int line, const char *func, const char *format, ...) in log_meta() 33 int log_metav(int level, const char*file, int line, const char *func, const char *format, va_list ap) in log_metav() 41 const char *file, in log_internal() 38 log_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...) log_internal() argument
|
| /third_party/json/tests/src/ |
| H A D | test_utils.hpp | 20 std::ifstream file(filename, std::ios::binary); in read_binary_file() 21 file.unsetf(std::ios::skipws); in read_binary_file() 23 file.seekg(0, std::ios::end); in read_binary_file() 24 const auto size = file.tellg(); in read_binary_file() 25 file.seekg(0, std::ios::beg); in read_binary_file() 29 byte_vector.insert(byte_vector.begin(), std::istream_iterator<std::uint8_t>(file), std::istream_iterator<std::uint8_t>()); in read_binary_file()
|
| /third_party/ltp/include/old/ |
| H A D | ltp_priv.h | 44 void tst_vbrk_(const char *file, const int lineno, int ttype, 47 void tst_brk_(const char *file, const int lineno, int ttype, 50 void tst_vres_(const char *file, const int lineno, int ttype, 53 void tst_res_(const char *file, const int lineno, int ttype, 57 #define NO_NEWLIB_ASSERT(file, lineno) \ 59 tst_brk_(file, lineno, TBROK, \
|
| /third_party/musl/libc-test/src/functionalext/supplement/manual/unistd/ |
| H A D | ttyname.c | 4 * you may not use this file except in compliance with the License. 25 * @tc.desc : Test the ttyname method to get the terminal name through the file handle 30 char *file = "/dev/tty"; in ttyname_0100() local 31 int fd = open(file, O_RDONLY); in ttyname_0100() 33 if (strcmp(result, file) != 0) { in ttyname_0100() 34 t_error("%s ttyname get result is %s are not want %s\n", __func__, result, file); in ttyname_0100() 40 * @tc.desc : Test the return value of ttyname when a non-existing terminal file handle is passed in 45 char *file = "/unexit"; in ttyname_0200() local 46 int fd = open(file, O_RDONLY); in ttyname_0200()
|
| /third_party/protobuf/ |
| H A D | build_files_updated_unittest.sh | 46 for file in ${generated_files[@]}; do 47 cp "${file}" "${golden_dir}/${file}" 60 for file in ${generated_files[@]}; do 61 diff "${golden_dir}/${file}" "${test_dir}/${file}"
|
| /device/soc/rockchip/common/sdk_linux/ipc/ |
| H A D | shm.c | 33 #include <linux/file.h>
54 struct file *shm_file;
77 struct file *file;
member 81 #define shm_file_data(file) (*((struct shm_file_data **)&(file)->private_data))
273 struct file *file = vma->vm_file;
in __shm_open() local 274 struct shm_file_data *sfd = shm_file_data(file);
in __shm_open() 282 if (shp->shm_file != sfd->file) {
in __shm_open() 360 struct file *file = vma->vm_file; shm_close() local 519 struct file *file = vmf->vma->vm_file; shm_fault() local 527 struct file *file = vma->vm_file; shm_split() local 539 struct file *file = vma->vm_file; shm_pagesize() local 552 struct file *file = vma->vm_file; shm_set_policy() local 564 struct file *file = vma->vm_file; shm_get_policy() local 578 shm_mmap(struct file *file, struct vm_area_struct *vma) shm_mmap() argument 606 shm_release(struct inode *ino, struct file *file) shm_release() argument 617 shm_fsync(struct file *file, loff_t start, loff_t end, int datasync) shm_fsync() argument 627 shm_fallocate(struct file *file, int mode, loff_t offset, loff_t len) shm_fallocate() argument 637 shm_get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) shm_get_unmapped_area() argument 667 is_file_shm_hugepages(struct file *file) is_file_shm_hugepages() argument 699 struct file *file; newseg() local 1535 struct file *file, *base; do_shmat() local 1755 struct file *file; ksys_shmdt() local [all...] |
| /foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
| H A D | perf_test.cpp | 4 * you may not use this file except in compliance with the License. 73 const char *file = "/data/test/media/1280x720_30.mp4"; in HWTEST_F() local 77 int fd = open(file, O_RDONLY); in HWTEST_F() 99 const char *file = "/data/test/media/1920x1080_30.mp4"; in HWTEST_F() local 102 int fd = open(file, O_RDONLY); in HWTEST_F() 125 const char *file = "/data/test/media/3840x2160_30.mp4"; in HWTEST_F() local 129 int fd = open(file, O_RDONLY); in HWTEST_F() 151 const char *file = "/data/test/media/1280x720_30.mp4"; in HWTEST_F() local 155 int fd = open(file, O_RDONLY); in HWTEST_F() 182 const char *file in HWTEST_F() local 213 const char *file = "/data/test/media/1920x1080_30.mp4"; HWTEST_F() local 244 const char *file = "/data/test/media/1920x1080_60.mp4"; HWTEST_F() local 275 const char *file = "/data/test/media/3840x2160_30.mp4"; HWTEST_F() local 306 const char *file = "/data/test/media/3840x2160_60.mp4"; HWTEST_F() local 337 const char *file = "/data/test/media/1280x720_30_10M.mp4"; HWTEST_F() local 363 const char *file = "/data/test/media/1920x1080_30.mp4"; HWTEST_F() local 389 const char *file = "/data/test/media/3840x2160_30.mp4"; HWTEST_F() local [all...] |
| /third_party/libsnd/src/ |
| H A D | test_file_io.c | 64 print_test_name ("Testing file open") ; in file_open_test() 69 /* Ensure that the file doesn't already exist. */ in file_open_test() 75 psf->file.mode = SFM_READ ; in file_open_test() 76 snprintf (psf->file.path, sizeof (psf->file.path), "%s", filename) ; in file_open_test() 78 /* Test that open for read fails if the file doesn't exist. */ in file_open_test() 88 /* Test file open in write mode. */ in file_open_test() 89 psf->file.mode = SFM_WRITE ; in file_open_test() 94 unlink (psf->file.path) ; in file_open_test() 96 /* Test file ope in file_open_test() [all...] |
| /third_party/littlefs/scripts/ |
| H A D | coverage.py | 16 file = None 20 '^(?P<file>SF:/?(?P<file_name>.*))$' 27 if m and m.group('file'): 28 file = m.group('file_name') 29 elif m and file and m.group('func'): 30 funcs.append((file, int(m.group('func_lineno')), 32 elif m and file and m.group('line'): 33 lines[(file, int(m.group('line_lineno')))] += ( 38 def func_from_lineno(file, lineno): 39 i = b.bisect(funcs, (file, linen [all...] |
| /third_party/python/Tools/scripts/ |
| H A D | stable_abi.py | 7 (relative to the manifest file, as they appear in the CPython codebase). 93 """Yield lines to recreate the manifest file (sans comments/newlines)""" 147 def parse_manifest(file): 148 """Parse the given file (iterable of lines) to a Manifest""" 152 data = tomllib.load(file) 166 # Most actions are "generators", which generate a single file from the 167 # manifest. (Checking works by generating a temp file & comparing.) 168 # Other actions, like "--unixy-check", don't work on a single file. 172 """Decorates a file generator: function that writes to a file""" [all...] |
| /third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
| H A D | Context.cpp | 4 // you may not use this file except in compliance with the License. 175 void addFile(const std::shared_ptr<File> &file); 230 void Context::Impl::addFile(const std::shared_ptr<File> &file) in addFile() argument 232 files.add(file->id, file); in addFile() 234 auto it = pendingBreakpoints.find(file->name); in addFile() 239 file->addBreakpoint(line); in addFile() 336 auto file = File::createVirtual(ctx->nextFileID++, name, source); in createVirtualFile() local 337 ctx->addFile(file); in createVirtualFile() 338 return file; in createVirtualFile() 343 auto file = File::createPhysical(ctx->nextFileID++, path); createPhysicalFile() local 357 auto &file = it.second; findFile() local 377 createFrame( const std::shared_ptr<File> &file, std::string function) createFrame() argument 395 createScope( const std::shared_ptr<File> &file) createScope() argument [all...] |
| /base/theme/wallpaper_mgr/utils/src/ |
| H A D | file_deal.cpp | 4 * you may not use this file except in compliance with the License. 65 HILOG_ERROR("Failed to copy file, error code: %{public}d", errCode.value()); in CopyFile() 80 HILOG_ERROR("Failed to remove source file, errInfo=%{public}s.", strerror(errno)); in DeleteFile() 122 HILOG_ERROR("real path file is not exist! %{public}s", outRealPath.c_str()); in GetRealPath() 126 HILOG_ERROR("illegal file path input %{public}s", inOriPath.c_str()); in GetRealPath() 133 fs::path file(filePath); in IsZipFile() 134 if (fs::exists(file) && fs::is_regular_file(file)) { in IsZipFile() 135 std::string extension = file.extension().string(); in IsZipFile() 147 HILOG_ERROR("get real path file faile in ForcedRefreshDisk() 150 FILE *file = std::fopen(fileRealPath.c_str(), "rb"); ForcedRefreshDisk() local [all...] |
| /device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/himedia/ |
| H A D | himedia.c | 45 static int himedia_open(struct inode *inode, struct file *file) in himedia_open() argument 81 old_fops = file->f_op; in himedia_open() 82 file->f_op = new_fops; in himedia_open() 83 if (file->f_op->open) { in himedia_open() 84 file->private_data = c; in himedia_open() 85 err = file->f_op->open(inode, file); in himedia_open() 87 fops_put(file->f_op); in himedia_open() 88 file in himedia_open() [all...] |
| /third_party/mesa3d/src/util/format/ |
| H A D | u_format_table.py | 124 def write_format_table_header(file): 125 print('/* This file is autogenerated by u_format_table.py from u_format.csv. Do not edit directly. */', file=file) 126 print(file=file) 127 # This will print the copyright message on the top of this file 128 print(CopyRight.strip(), file=file) 129 print(file [all...] |
| /third_party/python/Lib/distutils/ |
| H A D | text_file.py | 11 """Provides a file-like object that takes care of all the things you 12 commonly want to do when processing a text file that has some 26 TextFile (filename=None, file=None, **options) 28 It bombs (RuntimeError) if both 'filename' and 'file' are None; 29 'filename' should be a string, and 'file' a file object (or 32 can include it in warning messages. If 'file' is not supplied, 60 error handler used to decode the file content 63 semantics of 'readline()' must differ from those of the builtin file 65 None for end-of-file [all...] |
| /third_party/skia/third_party/externals/tint/fuzzers/ |
| H A D | tint_black_box_fuzz_target.cc | 4 // you may not use this file except in compliance with the License. 35 /// Copies the content from the file named `input_file` to `buffer`, 36 /// assuming each element in the file is of type `T`. If any error occurs, 39 /// @returns true if we successfully read the file. 47 FILE* file = nullptr; in ReadFile() local 49 fopen_s(&file, input_file.c_str(), "rb"); in ReadFile() 51 file = fopen(input_file.c_str(), "rb"); in ReadFile() 53 if (!file) { in ReadFile() 58 fseek(file, 0, SEEK_END); in ReadFile() 59 auto tell_file_size = ftell(file); in ReadFile() [all...] |
| /third_party/unity/auto/ |
| H A D | generate_module.rb | 8 # A simple module only requires a source file, header file, and test file. 9 # Triad modules require a source, header, and test file for each triad type (like model, conductor, and hardware). 61 # Create default file paths if none were provided 145 # single file patterns (currently just 'test') can reject the other parts of the triad 199 files.each do |file| 200 all_files_exist = false unless File.exist?(file[:path]) 205 files.each_with_index do |file, _i| 206 # If this file alread [all...] |
| /third_party/ltp/testcases/kernel/mce-test/hwpoison/kinclude/linux/ |
| H A D | fs.h | 2 struct file; 6 ssize_t (*read) (struct file *, char *, size_t, loff_t *); 7 int (*open) (struct inode *, struct file *); 8 int (*release) (struct inode *, struct file *); 9 ssize_t (*write) (struct file *, const char *, size_t, loff_t *);
|
| /third_party/ltp/testcases/kernel/mce-test/tsrc/kinclude/linux/ |
| H A D | fs.h | 2 struct file; 6 ssize_t (*read) (struct file *, char *, size_t, loff_t *); 7 int (*open) (struct inode *, struct file *); 8 int (*release) (struct inode *, struct file *); 9 ssize_t (*write) (struct file *, const char *, size_t, loff_t *);
|
| /third_party/ffmpeg/libavformat/ |
| H A D | concatdec.c | 4 * This file is part of FFmpeg. 117 ConcatFile *file; in add_file() local 125 av_log(avf, AV_LOG_ERROR, "Unsafe file name '%s'\n", filename); in add_file() 152 file = &cat->files[cat->nb_files++]; in add_file() 153 memset(file, 0, sizeof(*file)); in add_file() 154 *rfile = file; in add_file() 156 file->url = url; in add_file() 157 file->start_time = AV_NOPTS_VALUE; in add_file() 158 file in add_file() 320 get_best_effort_duration(ConcatFile *file, AVFormatContext *avf) get_best_effort_duration() argument 336 ConcatFile *file = &cat->files[fileno]; open_file() local 464 ConcatFile *file = NULL; concat_parse_script() local [all...] |
| /third_party/EGL/api/ |
| H A D | reg.py | 11 file = kwargs.pop('file', sys.stdout) 13 file.write(' '.join([str(arg) for arg in args])) 14 file.write(end) 194 # filename - name of file to generate, or None to write to stdout. 258 # generated around a feature interface in the header file. 308 # Manages basic logic, logging, and output file control 313 # errFile, warnFile, diagFile - file handles to write errors, 319 # beginFile(genOpts) - start a new interface file 321 # endFile() - finish an interface file, closin [all...] |
| /third_party/openGLES/xml/ |
| H A D | reg.py | 10 file = kwargs.pop('file', sys.stdout) 12 file.write(' '.join([str(arg) for arg in args])) 13 file.write(end) 193 # filename - name of file to generate, or None to write to stdout. 257 # generated around a feature interface in the header file. 307 # Manages basic logic, logging, and output file control 312 # errFile, warnFile, diagFile - file handles to write errors, 318 # beginFile(genOpts) - start a new interface file 320 # endFile() - finish an interface file, closin [all...] |
| /third_party/skia/third_party/externals/opengl-registry/xml/ |
| H A D | reg.py | 6 # you may not use this file except in compliance with the License. 21 file = kwargs.pop('file', sys.stdout) 23 file.write(' '.join([str(arg) for arg in args])) 24 file.write(end) 204 # filename - name of file to generate, or None to write to stdout. 268 # generated around a feature interface in the header file. 318 # Manages basic logic, logging, and output file control 323 # errFile, warnFile, diagFile - file handles to write errors, 329 # beginFile(genOpts) - start a new interface file [all...] |