| /kernel/linux/linux-5.10/fs/ |
| H A D | file.c | 51 * space if any. This does not copy the file pointers. Called with the files 74 * clear the extra space. Called with the files spinlock held for write. 167 * The files->file_lock should be held on entry, and will be held on exit. 169 static int expand_fdtable(struct files_struct *files, unsigned int nr) 170 __releases(files->file_lock) 171 __acquires(files->file_lock) 175 spin_unlock(&files->file_lock); 181 if (atomic_read(&files->count) > 1) 184 spin_lock(&files->file_lock); 195 cur_fdt = files_fdtable(files); 412 close_files(struct files_struct * files) close_files() argument 446 struct files_struct *files; get_files_struct() local 457 put_files_struct(struct files_struct *files) put_files_struct() argument 469 reset_files_struct(struct files_struct *files) reset_files_struct() argument 483 struct files_struct * files = tsk->files; exit_files() local 524 __alloc_fd(struct files_struct *files, unsigned start, unsigned end, unsigned flags) __alloc_fd() argument 598 __put_unused_fd(struct files_struct *files, unsigned int fd) __put_unused_fd() argument 608 struct files_struct *files = current->files; put_unused_fd() local 636 __fd_install(struct files_struct *files, unsigned int fd, struct file *file) __fd_install() argument 671 pick_file(struct files_struct *files, unsigned fd) pick_file() argument 695 __close_fd(struct files_struct *files, unsigned fd) __close_fd() argument 791 struct files_struct *files = current->files; __close_fd_get_file() local 818 struct files_struct *files = current->files; close_fd_get_file() local 828 do_close_on_exec(struct files_struct *files) do_close_on_exec() argument 864 __fget_files_rcu(struct files_struct *files, unsigned int fd, fmode_t mask, unsigned int refs) __fget_files_rcu() argument 919 __fget_files(struct files_struct *files, unsigned int fd, fmode_t mask, unsigned int refs) __fget_files() argument 984 struct files_struct *files = current->files; __fget_light() local 1051 struct files_struct *files = current->files; set_close_on_exec() local 1064 struct files_struct *files = current->files; get_close_on_exec() local 1121 struct files_struct *files = current->files; replace_fd() local 1200 struct files_struct *files = current->files; ksys_dup3() local 1238 struct files_struct *files = current->files; SYSCALL_DEFINE2() local 1278 iterate_fd(struct files_struct *files, unsigned n, int (*f)(const void *, struct file *, unsigned), const void *p) iterate_fd() argument [all...] |
| /kernel/linux/linux-6.6/fs/ |
| H A D | file.c | 51 * space if any. This does not copy the file pointers. Called with the files 74 * clear the extra space. Called with the files spinlock held for write. 167 * The files->file_lock should be held on entry, and will be held on exit. 169 static int expand_fdtable(struct files_struct *files, unsigned int nr) 170 __releases(files->file_lock) 171 __acquires(files->file_lock) 175 spin_unlock(&files->file_lock); 181 if (atomic_read(&files->count) > 1) 184 spin_lock(&files->file_lock); 195 cur_fdt = files_fdtable(files); 412 close_files(struct files_struct * files) close_files() argument 444 put_files_struct(struct files_struct *files) put_files_struct() argument 458 struct files_struct * files = tsk->files; exit_files() local 501 struct files_struct *files = current->files; alloc_fd() local 568 __put_unused_fd(struct files_struct *files, unsigned int fd) __put_unused_fd() argument 578 struct files_struct *files = current->files; put_unused_fd() local 604 struct files_struct *files = current->files; fd_install() local 637 pick_file(struct files_struct *files, unsigned fd) pick_file() argument 656 struct files_struct *files = current->files; close_fd() local 696 __range_close(struct files_struct *files, unsigned int fd, unsigned int max_fd) __range_close() argument 810 struct files_struct *files = current->files; close_fd_get_file() local 820 do_close_on_exec(struct files_struct *files) do_close_on_exec() argument 856 __fget_files_rcu(struct files_struct *files, unsigned int fd, fmode_t mask) __fget_files_rcu() argument 910 __fget_files(struct files_struct *files, unsigned int fd, fmode_t mask) __fget_files() argument 954 struct files_struct *files; task_lookup_fd_rcu() local 969 struct files_struct *files; task_lookup_next_fd_rcu() local 1006 struct files_struct *files = current->files; __fget_light() local 1082 struct files_struct *files = current->files; set_close_on_exec() local 1095 struct files_struct *files = current->files; get_close_on_exec() local 1152 struct files_struct *files = current->files; replace_fd() local 1236 struct files_struct *files = current->files; ksys_dup3() local 1274 struct files_struct *files = current->files; SYSCALL_DEFINE2() local 1315 iterate_fd(struct files_struct *files, unsigned n, int (*f)(const void *, struct file *, unsigned), const void *p) iterate_fd() argument [all...] |
| /third_party/node/deps/v8/tools/mb/ |
| H A D | mb_test.py | 39 self.files = {} 51 return self.files.get(path) is not None 54 self.files[path] = True 60 return self.files[path] 65 self.files[path] = contents 83 return FakeFile(self.files) 86 del self.files[path] 90 files_to_delete = [f for f in self.files if f.startswith(path)] 92 self.files[f] = None 97 def __init__(self, files) [all...] |
| /third_party/python/Lib/test/test_importlib/ |
| H A D | test_compatibilty_files.py | 25 def files(self): member in CompatibilityFilesTests 26 return resources.files(self.package) 30 sorted(path.name for path in self.files.iterdir()), 35 self.assertEqual(list((self.files / 'a').iterdir()), []) 38 self.assertEqual(list((self.files / 'a' / 'a').iterdir()), []) 39 self.assertEqual(list((self.files / 'a' / 'a' / 'a').iterdir()), []) 42 self.assertFalse(self.files.is_file()) 43 self.assertFalse(self.files.is_dir()) 46 self.assertTrue((self.files / 'a').is_file()) 47 self.assertFalse((self.files / ' 98 def files(self): global() member in CompatibilityFilesNoReaderTests [all...] |
| H A D | test_resource.py | 18 target = resources.files(self.data) / 'binary.file' 22 target = resources.files(self.data) / 'not-a-file' 26 target = resources.files(self.data) / 'subdirectory' 49 self.assertEqual(names(resources.files(package)), {'A', 'B', 'C'}) 55 self.assertTrue(resources.files(package).joinpath('B').is_file()) 61 self.assertTrue(resources.files(package).joinpath('D').is_dir()) 67 self.assertFalse(resources.files(package).joinpath('Z').is_file()) 85 self.assertFalse(resources.files(module).joinpath('A').is_file()) 93 self.assertTrue(resources.files(submodule).joinpath('binary.file').is_file()) 97 resources.files('ziptestdat [all...] |
| /third_party/rust/crates/codespan/codespan-reporting/examples/ |
| H A D | custom_files.rs | 18 let mut files = files::Files::new(); in main() variables 20 let file_id0 = files.add("0.greeting", "hello world!").unwrap(); in main() 21 let file_id1 = files.add("1.greeting", "bye world").unwrap(); in main() 36 term::emit(writer, &config, &files, &message.to_diagnostic())?; in main() 43 mod files { modules 44 use codespan_reporting::files; 59 fn line_start(&self, line_index: usize) -> Result<usize, files::Error> { in line_start() 69 Ordering::Greater => Err(files::Error::LineTooLarge { in line_start() 83 files [all...] |
| /third_party/NuttX/fs/inode/ |
| H A D | fs_files.c | 247 * This is called from the FS initialization logic to configure the files. 258 * Description: Initializes the list of files for a new task 304 * Assign an vnode to a specific files structure. This is the heart of 498 process_files = processCB->files; in files_close_internal() 501 PRINT_ERR("process files is NULL, %s %d\n", __FUNCTION__ ,__LINE__); in files_close_internal() 780 struct files_struct *files = LOS_MemAlloc(m_aucSysMem0, sizeof(struct files_struct)); in alloc_files() local 781 if (!files) in alloc_files() 786 files->count = 1; in alloc_files() 787 files->file_lock = 0; in alloc_files() 788 files in alloc_files() 816 struct files_struct *files = NULL; dup_fd() local 864 delete_files(struct files_struct *files) delete_files() argument 906 struct files_struct *files = NULL; create_files_snapshot() local 947 delete_files_snapshot(struct files_struct *files) delete_files_snapshot() argument [all...] |
| /third_party/rust/crates/codespan/codespan-lsp/src/ |
| H A D | lib.rs | 5 use codespan_reporting::files::{Error, Files}; 38 files: &'a F, in byte_index_to_position() 45 let source = files.source(file_id)?; in byte_index_to_position() 48 let line_index = files.line_index(file_id, byte_index)?; in byte_index_to_position() 49 let line_span = files.line_range(file_id, line_index).unwrap(); in byte_index_to_position() 67 files: &'a F, in byte_span_to_range() 75 start: byte_index_to_position(files, file_id, span.start)?, in byte_span_to_range() 76 end: byte_index_to_position(files, file_id, span.end)?, in byte_span_to_range() 108 files: &'a F, in position_to_byte_index() 115 let source = files in position_to_byte_index() 151 let mut files = SimpleFiles::new(); position() variables 178 let mut files = SimpleFiles::new(); unicode_get_byte_index() variables 204 let mut files = SimpleFiles::new(); unicode_get_position() variables [all...] |
| /third_party/elfutils/libdw/ |
| H A D | dwarf_getsrcfiles.c | 39 dwarf_getsrcfiles (Dwarf_Die *cudie, Dwarf_Files **files, size_t *nfiles) in dwarf_getsrcfiles() argument 53 if (cu->files == NULL) in dwarf_getsrcfiles() 61 cu->files = (void *) -1; in dwarf_getsrcfiles() 67 /* We are only interested in the files, the lines will in dwarf_getsrcfiles() 72 &cu->files); in dwarf_getsrcfiles() 80 res = INTUSE(dwarf_getsrcfiles) (&skeldie, files, nfiles); in dwarf_getsrcfiles() 81 cu->files = skel->files; in dwarf_getsrcfiles() 95 else if (cu->files != (void *) -1l) in dwarf_getsrcfiles() 101 assert (cu->files ! in dwarf_getsrcfiles() [all...] |
| H A D | dwarf_macro_getsrcfiles.c | 37 Dwarf_Files **files, size_t *nfiles) in dwarf_macro_getsrcfiles() 41 if (table->files == NULL) in dwarf_macro_getsrcfiles() 46 *files = NULL; in dwarf_macro_getsrcfiles() 76 NULL, &table->files) < 0) in dwarf_macro_getsrcfiles() 77 table->files = (void *) -1; in dwarf_macro_getsrcfiles() 80 if (table->files == (void *) -1) in dwarf_macro_getsrcfiles() 83 *files = table->files; in dwarf_macro_getsrcfiles() 84 *nfiles = table->files->nfiles; in dwarf_macro_getsrcfiles() 36 dwarf_macro_getsrcfiles(Dwarf *dbg, Dwarf_Macro *macro, Dwarf_Files **files, size_t *nfiles) dwarf_macro_getsrcfiles() argument
|
| /kernel/linux/linux-5.10/include/linux/ |
| H A D | fdtable.h | 74 #define rcu_dereference_check_fdtable(files, fdtfd) \ 75 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock)) 77 #define files_fdtable(files) \ 78 rcu_dereference_check_fdtable((files), (files)->fdt) 83 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument 85 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in files_lookup_fd_raw() 94 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument 96 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked() 98 return files_lookup_fd_raw(files, f in files_lookup_fd_locked() 101 fcheck_files(struct files_struct *files, unsigned int fd) fcheck_files() argument [all...] |
| /third_party/python/Lib/distutils/tests/ |
| H A D | test_filelist.py | 78 l('global/files.x'), 103 self.assertEqual(file_list.files, wanted) 121 files = ['a', 'b', 'c'] 122 file_list.set_allfiles(files) 123 self.assertEqual(file_list.allfiles, files) 127 file_list.files = ['a', 'b', 'a', 'g', 'c', 'g'] 128 # files must be sorted beforehand (sdist does it) 131 self.assertEqual(file_list.files, ['a', 'b', 'c', 'g']) 159 # return True if files match 161 file_list.files [all...] |
| /third_party/mesa3d/.gitlab-ci/container/ |
| H A D | lava_build.sh | 16 # If remote files are up-to-date, skip rebuilding them 136 mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/usr/lib/$GCC_ARCH 141 mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/apitrace 142 mv /apitrace/build /lava-files/rootfs-${DEBIAN_ARCH}/apitrace 148 mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin 149 mv /usr/local/bin/*-runner /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin/. 155 mv /deqp /lava-files/rootfs-${DEBIAN_ARCH}/. 162 mv /skqp /lava-files/rootfs-${DEBIAN_ARCH}/. 167 mv /piglit /lava-files/rootfs-${DEBIAN_ARCH}/. 172 mv /va/bin/* /lava-files/rootf [all...] |
| /third_party/skia/infra/bots/recipes/ |
| H A D | compute_buildstats.py | 49 files = api.file.glob_paths( 54 analyzed += len(files) 55 if files: 56 analyze_wasm_file(api, checkout_root, out_dir, files) 58 files = api.file.glob_paths( 59 'find JS files', 63 analyzed += len(files) 64 if files: 65 analyze_web_file(api, checkout_root, out_dir, files) 67 files [all...] |
| /third_party/node/deps/icu-small/source/tools/toolutil/ |
| H A D | pkg_gencmn.cpp | 28 /* ICU package data file format (.dat files) ------------------------------- *** 90 static File *files = nullptr; variable 171 /* read the list of files and get their lengths */ in createCommonDataFile() 217 fprintf(stderr, "gencmn: no files listed in %s\n", dataFile == nullptr ? "<stdin>" : dataFile); in createCommonDataFile() 221 /* sort the files by basename */ in createCommonDataFile() 222 qsort(files, fileCount, sizeof(File), compareFiles); in createCommonDataFile() 227 /* determine the offsets of all basenames and files in this common one */ in createCommonDataFile() 231 files[i].fileOffset=fileOffset; in createCommonDataFile() 232 fileOffset+=(files[i].fileSize+15)&~0xf; in createCommonDataFile() 233 files[ in createCommonDataFile() [all...] |
| /third_party/icu/icu4c/source/tools/toolutil/ |
| H A D | pkg_gencmn.cpp | 28 /* ICU package data file format (.dat files) ------------------------------- *** 90 static File *files = NULL; variable 171 /* read the list of files and get their lengths */ in createCommonDataFile() 217 fprintf(stderr, "gencmn: no files listed in %s\n", dataFile == NULL ? "<stdin>" : dataFile); in createCommonDataFile() 221 /* sort the files by basename */ in createCommonDataFile() 222 qsort(files, fileCount, sizeof(File), compareFiles); in createCommonDataFile() 227 /* determine the offsets of all basenames and files in this common one */ in createCommonDataFile() 231 files[i].fileOffset=fileOffset; in createCommonDataFile() 232 fileOffset+=(files[i].fileSize+15)&~0xf; in createCommonDataFile() 233 files[ in createCommonDataFile() [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
| H A D | pkg_gencmn.cpp | 28 /* ICU package data file format (.dat files) ------------------------------- *** 90 static File *files = NULL; variable 171 /* read the list of files and get their lengths */ in createCommonDataFile() 217 fprintf(stderr, "gencmn: no files listed in %s\n", dataFile == NULL ? "<stdin>" : dataFile); in createCommonDataFile() 221 /* sort the files by basename */ in createCommonDataFile() 222 qsort(files, fileCount, sizeof(File), compareFiles); in createCommonDataFile() 227 /* determine the offsets of all basenames and files in this common one */ in createCommonDataFile() 231 files[i].fileOffset=fileOffset; in createCommonDataFile() 232 fileOffset+=(files[i].fileSize+15)&~0xf; in createCommonDataFile() 233 files[ in createCommonDataFile() [all...] |
| /kernel/linux/linux-5.10/fs/proc/ |
| H A D | fd.c | 22 struct files_struct *files = NULL; in seq_show() local 31 files = get_files_struct(task); in seq_show() 34 if (files) { in seq_show() 37 spin_lock(&files->file_lock); in seq_show() 38 file = files_lookup_fd_locked(files, fd); in seq_show() 40 struct fdtable *fdt = files_fdtable(files); in seq_show() 49 spin_unlock(&files->file_lock); in seq_show() 50 put_files_struct(files); in seq_show() 60 show_fd_locks(m, file, files); in seq_show() 86 struct files_struct *files in tid_fd_mode() local 149 struct files_struct *files = NULL; proc_fd_link() local 232 struct files_struct *files; proc_readfd_common() local [all...] |
| /third_party/node/lib/internal/fs/ |
| H A D | recursive_watch.js | 47 async function traverse(dir, files = new SafeMap(), symbolicLinks = new SafeSet()) { 56 files.set(f, file); 62 ArrayPrototypePush(subdirectories, traverse(f, files)); 68 return files; 74 #files = new SafeMap(); 117 for (const file of this.#files.keys()) { 121 this.#files.clear(); 131 for (const filename of this.#files.keys()) { 142 const files = await opendir(folder); 144 for await (const file of files) { [all...] |
| /third_party/vk-gl-cts/scripts/src_util/ |
| H A D | check_all.py | 36 parser.add_argument("-i", "--only-changed", action="store_true", dest="useGitIndex", default=False, help="Check only modified files. Uses git.") 42 files = getChangedFiles() variable 44 files = getAllProjectFiles() variable 47 files = [f for f in files if "vulkancts/scripts/src" not in f.replace("\\", "/")] variable 50 checkBOMs(files, args.fixBOMs), 51 checkEncoding(files), 52 checkWhitespace(files), 53 checkIncludeGuards(files), 54 checkLicense(files), [all...] |
| /third_party/node/deps/v8/tools/ |
| H A D | find-commit-for-patch.py | 34 files = {} 47 if old_hash.startswith("0000000"): continue # Ignore new files. 48 files[next_file] = old_hash 49 return files 57 def CountMatchingFiles(commit, files): 61 cmd = ["git", "ls-tree", "-r", commit] + [f for f in files] 66 expected_hash = files[filename] 71 def FindFirstMatchingCommit(start, files, limit, verbose): 73 num_files = len(files) 74 if verbose: print(">>> Found %d files modifie 89 files = FindFilesInPatch(args.patch_file) global() variable [all...] |
| /kernel/linux/linux-6.6/include/linux/ |
| H A D | fdtable.h | 74 #define rcu_dereference_check_fdtable(files, fdtfd) \ 75 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock)) 77 #define files_fdtable(files) \ 78 rcu_dereference_check_fdtable((files), (files)->fdt) 83 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument 85 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in files_lookup_fd_raw() 94 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument 96 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked() 98 return files_lookup_fd_raw(files, f in files_lookup_fd_locked() 101 files_lookup_fd_rcu(struct files_struct *files, unsigned int fd) files_lookup_fd_rcu() argument [all...] |
| /third_party/gn/src/gn/ |
| H A D | analyzer_unittest.cc | 124 "files": [ "//dir/file_name.cc" ], in TEST_F() 137 "files": [ "//dir/file_name.cc" ], 155 "files": [ "//dir/header_name.h" ], 168 "files": [ "//dir/header_name.h" ], 186 "files": [ "//dir/extra_input.cc" ], 200 "files": [ "//dir/extra_input.cc" ], 218 "files": [ "//dir/extra_input.cc" ], 252 "files": [ "//dir3/BUILD.gn" ], 270 "files": [ "//dir/data.html" ], 283 "files" [all...] |
| /third_party/rust/crates/codespan/codespan/src/ |
| H A D | file.rs | 1 use codespan_reporting::files::Error; 15 /// Offset of our `FileId`'s numeric value to an index on `Files::files`. 30 /// A database of source files. 41 files: Vec<File<Source>>, 49 Self { files: vec![] } in default() 57 /// Create a new, empty database of files. 65 let file_id = FileId::new(self.files.len()); in add() 66 self.files.push(File::new(name.into(), source.into())); in add() 81 &self.files[file_id.get()] in get() 87 &mut self.files[file_i in get_mut() 397 let mut files = Files::<String>::new(); line_starts() variables 416 let mut files = Files::<Arc<str>>::new(); line_starts() variables [all...] |
| /third_party/lzma/CPP/7zip/UI/Console/ |
| H A D | OpenCallbackConsole.cpp | 20 HRESULT COpenCallbackConsole::Open_SetTotal(const UInt64 *files, const UInt64 *bytes)
in Open_SetTotal() argument 24 if (files)
in Open_SetTotal() 27 // _totalFiles = *files;
in Open_SetTotal() 28 _percent.Total = *files;
in Open_SetTotal() 37 if (!files)
in Open_SetTotal() 43 if (!files)
in Open_SetTotal() 51 HRESULT COpenCallbackConsole::Open_SetCompleted(const UInt64 *files, const UInt64 *bytes)
in Open_SetCompleted() argument 55 if (files)
in Open_SetCompleted() 57 _percent.Files = *files;
in Open_SetCompleted() 59 _percent.Completed = *files;
in Open_SetCompleted() [all...] |