Home
last modified time | relevance | path

Searched refs:path (Results 626 - 650 of 10795) sorted by relevance

1...<<21222324252627282930>>...432

/third_party/vk-gl-cts/scripts/
H A Dcppcheck.py136 fullDstFile = os.path.realpath(dstFile)
142 for path in INCLUDE_DIRS:
143 command += " -I %s" % path
145 for path in SRC_DIRS:
146 command += " %s" % path
159 srcDir = os.path.realpath(os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..")))
/third_party/ninja/src/
H A Ddisk_interface.h37 virtual Status ReadFile(const std::string& path, std::string* contents,
48 virtual TimeStamp Stat(const std::string& path, std::string* err) const = 0;
51 virtual bool MakeDir(const std::string& path) = 0;
55 virtual bool WriteFile(const std::string& path,
58 /// Remove the file named @a path. It behaves like 'rm -f path' so no errors
63 virtual int RemoveFile(const std::string& path) = 0;
65 /// Create all the parent directories for path; like mkdir -p
66 /// `basename path`.
67 bool MakeDirs(const std::string& path);
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_path.py10 def execute(self, package, path):
11 with resources.as_file(resources.files(package).joinpath(path)):
21 with resources.as_file(target) as path:
22 self.assertTrue(path.name.endswith("utf-8.file"), repr(path))
24 with path.open('r', encoding='utf-8') as file:
37 with resources.as_file(target) as path:
38 assert 'data' in str(path)
46 file=file, path=FileNotFoundError("package exists only in memory")
57 with resources.as_file(target) as path
[all...]
/third_party/vk-gl-cts/scripts/src_util/
H A Dcommon.py69 ext = os.path.splitext(filePath)[1]
96 scriptDir = os.path.dirname(os.path.abspath(__file__))
97 projectDir = os.path.normpath(os.path.join(scriptDir, "../.."))
108 return os.path.normpath(os.path.join(getProjectPath(), projectRelativePath))
114 return [getAbsolutePathPathFromProjectRelativePath(path) for path in relativePaths]
119 return [getAbsolutePathPathFromProjectRelativePath(path) fo
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Drelocation.c212 * walk down backref nodes to find start of next reference path
476 struct btrfs_path *path; in build_backref_tree() local
486 path = btrfs_alloc_path(); in build_backref_tree()
487 if (!path) { in build_backref_tree()
503 ret = btrfs_backref_add_tree_node(trans, cache, path, iter, in build_backref_tree()
532 btrfs_free_path(path); in build_backref_tree()
1019 struct btrfs_path *path; in get_new_location() local
1024 path = btrfs_alloc_path(); in get_new_location()
1025 if (!path) in get_new_location()
1029 ret = btrfs_lookup_file_extent(NULL, root, path, in get_new_location()
1191 memcmp_node_keys(struct extent_buffer *eb, int slot, struct btrfs_path *path, int level) memcmp_node_keys() argument
1211 replace_path(struct btrfs_trans_handle *trans, struct reloc_control *rc, struct btrfs_root *dest, struct btrfs_root *src, struct btrfs_path *path, struct btrfs_key *next_key, int lowest_level, int max_level) replace_path() argument
1438 walk_up_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, int *level) walk_up_reloc_tree() argument
1475 walk_down_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, int *level) walk_down_reloc_tree() argument
1591 find_next_key(struct btrfs_path *path, int level, struct btrfs_key *key) find_next_key() argument
1702 struct btrfs_path *path; merge_reloc_root() local
2402 do_relocation(struct btrfs_trans_handle *trans, struct reloc_control *rc, struct btrfs_backref_node *node, struct btrfs_key *key, struct btrfs_path *path, int lowest) do_relocation() argument
2560 link_to_upper(struct btrfs_trans_handle *trans, struct reloc_control *rc, struct btrfs_backref_node *node, struct btrfs_path *path) link_to_upper() argument
2571 finish_pending_nodes(struct btrfs_trans_handle *trans, struct reloc_control *rc, struct btrfs_path *path, int err) finish_pending_nodes() argument
2670 relocate_tree_block(struct btrfs_trans_handle *trans, struct reloc_control *rc, struct btrfs_backref_node *node, struct btrfs_key *key, struct btrfs_path *path) relocate_tree_block() argument
2776 struct btrfs_path *path; relocate_tree_blocks() local
3195 add_tree_block(struct reloc_control *rc, struct btrfs_key *extent_key, struct btrfs_path *path, struct rb_root *blocks) add_tree_block() argument
3300 struct btrfs_path *path; __add_tree_block() local
3448 add_data_references(struct reloc_control *rc, struct btrfs_key *extent_key, struct btrfs_path *path, struct rb_root *blocks) add_data_references() argument
3498 find_next_extent(struct reloc_control *rc, struct btrfs_path *path, struct btrfs_key *extent_key) find_next_extent() argument
3652 struct btrfs_path *path; relocate_block_group() local
3817 struct btrfs_path *path; __insert_orphan_inode() local
3847 struct btrfs_path *path; delete_orphan_inode() local
4025 struct btrfs_path *path; btrfs_relocate_block_group() local
4210 struct btrfs_path *path; btrfs_recover_relocation() local
[all...]
H A Dxattr.c32 struct btrfs_path *path; in btrfs_getxattr() local
37 path = btrfs_alloc_path(); in btrfs_getxattr()
38 if (!path) in btrfs_getxattr()
42 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), in btrfs_getxattr()
52 leaf = path->nodes[0]; in btrfs_getxattr()
79 btrfs_free_path(path); in btrfs_getxattr()
89 struct btrfs_path *path; in btrfs_setxattr() local
98 path = btrfs_alloc_path(); in btrfs_setxattr()
99 if (!path) in btrfs_setxattr()
101 path in btrfs_setxattr()
283 struct btrfs_path *path; btrfs_listxattr() local
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dfile_path.cpp53 FilePath::FilePath(const std::string &path) : path_(path) in FilePath() argument
110 // Capture path components. in GetComponents()
228 for (FilePath path = const_cast<FilePath &>(fullPath).DirName(); path.Value() != lastPath.Value(); in CreateDirectory()
229 path = path.DirName()) { in CreateDirectory()
230 subpaths.push_back(path); in CreateDirectory()
231 lastPath = path; in CreateDirectory()
250 bool FilePath::DirectoryExists(const FilePath &path) in DirectoryExists() argument
260 IsDir(const FilePath &path) IsDir() argument
272 PathIsValid(const FilePath &path) PathIsValid() argument
277 PathIsReadable(const FilePath &path) PathIsReadable() argument
282 PathIsWriteable(const FilePath &path) PathIsWriteable() argument
342 AppendRelativePath(const FilePath &child, FilePath *path) AppendRelativePath() argument
385 GetZipAllDirFiles(const std::string &path, std::vector<std::string> &files) GetZipAllDirFiles() argument
450 HasRelativePathBaseOnAPIVersion(const std::string &path) HasRelativePathBaseOnAPIVersion() argument
[all...]
/kernel/linux/linux-5.10/fs/
H A Dopen.c69 long vfs_truncate(const struct path *path, loff_t length) in vfs_truncate() argument
74 inode = path->dentry->d_inode; in vfs_truncate()
82 error = mnt_want_write(path->mnt); in vfs_truncate()
108 error = security_path_truncate(path); in vfs_truncate()
110 error = do_truncate(path->dentry, length, 0, NULL); in vfs_truncate()
115 mnt_drop_write(path->mnt); in vfs_truncate()
124 struct path path; in do_sys_truncate() local
131 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
399 struct path path; do_faccessat() local
487 struct path path; SYSCALL_DEFINE1() local
535 struct path path; SYSCALL_DEFINE1() local
566 chmod_common(const struct path *path, umode_t mode) chmod_common() argument
615 struct path path; do_fchmodat() local
642 chown_common(const struct path *path, uid_t user, gid_t group) chown_common() argument
687 struct path path; do_fchownat() local
928 vfs_open(const struct path *path, struct file *file) vfs_open() argument
934 dentry_open(const struct path *path, int flags, const struct cred *cred) dentry_open() argument
957 open_with_fake_path(const struct path *path, int flags, struct inode *inode, const struct cred *cred) open_with_fake_path() argument
[all...]
/third_party/libdrm/tests/amdgpu/
H A Dras_tests.c504 char path[PATH_SIZE]; in amdgpu_ras_lookup_id() local
513 snprintf(path, PATH_SIZE, "/sys/kernel/debug/dri/%d/name", i); in amdgpu_ras_lookup_id()
514 if (get_file_contents(path, str, sizeof(str)) <= 0) in amdgpu_ras_lookup_id()
611 char path[PATH_SIZE]; in amdgpu_ras_invoke() local
614 snprintf(path, sizeof(path), "%s", get_ras_debugfs_root()); in amdgpu_ras_invoke()
615 strncat(path, "ras_ctrl", sizeof(path) - strlen(path)); in amdgpu_ras_invoke()
617 ret = set_file_contents(path, (cha in amdgpu_ras_invoke()
846 char path[PATH_SIZE]; amdgpu_ras_basic_test() local
[all...]
/third_party/python/Lib/distutils/
H A Dmsvc9compiler.py63 def get_value(cls, path, key):
65 d = cls.read_values(base, path)
128 def set_macro(self, macro, path, key):
129 self.macros["$(%s)" % macro] = Reg.get_value(path, key)
200 np = os.path.normpath(p)
231 if not productdir or not os.path.isdir(productdir):
235 if toolsdir and os.path.isdir(toolsdir):
236 productdir = os.path.join(toolsdir, os.pardir, os.pardir, "VC")
237 productdir = os.path.abspath(productdir)
238 if not os.path
[all...]
/third_party/python/Lib/test/
H A Dtest_httpservers.py131 self.send_error(int(self.path[1:]))
134 self.send_error(int(self.path[1:]))
364 self.tempdir_name = os.path.basename(self.tempdir)
366 tempname = os.path.join(self.tempdir, 'test')
422 with open(os.path.join(self.tempdir, filename), 'wb') as f:
456 This checks that a path resolving to a directory on our server cannot
459 os.mkdir(os.path.join(self.tempdir, 'existing_directory'))
495 # there are or aren't multiple slashes at the start of the path that
500 #constructs the path relative to the root directory of the HTTPServer
521 os.makedirs(os.path
[all...]
/kernel/linux/linux-6.6/tools/include/nolibc/
H A Dsys.h108 * int chdir(const char *path);
112 int sys_chdir(const char *path) in sys_chdir() argument
114 return my_syscall1(__NR_chdir, path); in sys_chdir()
118 int chdir(const char *path) in chdir() argument
120 return __sysret(sys_chdir(path)); in chdir()
125 * int chmod(const char *path, mode_t mode);
129 int sys_chmod(const char *path, mode_t mode) in sys_chmod() argument
132 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod()
134 return my_syscall2(__NR_chmod, path, mode); in sys_chmod()
141 int chmod(const char *path, mode_ argument
152 sys_chown(const char *path, uid_t owner, gid_t group) sys_chown() argument
164 chown(const char *path, uid_t owner, gid_t group) chown() argument
175 sys_chroot(const char *path) sys_chroot() argument
181 chroot(const char *path) chroot() argument
603 sys_mkdir(const char *path, mode_t mode) sys_mkdir() argument
615 mkdir(const char *path, mode_t mode) mkdir() argument
625 sys_rmdir(const char *path) sys_rmdir() argument
637 rmdir(const char *path) rmdir() argument
648 sys_mknod(const char *path, mode_t mode, dev_t dev) sys_mknod() argument
660 mknod(const char *path, mode_t mode, dev_t dev) mknod() argument
738 sys_open(const char *path, int flags, mode_t mode) sys_open() argument
750 open(const char *path, int flags, ...) open() argument
987 sys_statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf) sys_statx() argument
997 statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf) statx() argument
1004 stat(const char *path, struct stat *buf) stat() argument
1083 sys_umount2(const char *path, int flags) sys_umount2() argument
1089 umount2(const char *path, int flags) umount2() argument
1100 sys_unlink(const char *path) sys_unlink() argument
1112 unlink(const char *path) unlink() argument
[all...]
/third_party/gn/src/gn/
H A Dfilesystem_utils.h20 inline std::string FilePathToUTF8(const base::FilePath& path) { in FilePathToUTF8() argument
21 return FilePathToUTF8(path.value()); in FilePathToUTF8()
28 // slash). Returns std::string::npos if not found. Returns path.size() if the
30 size_t FindExtensionOffset(const std::string& path);
34 std::string_view FindExtension(const std::string* path);
39 // 0 if no slash was found. Returns path.size() if the path ends with a slash.
41 size_t FindFilenameOffset(const std::string& path);
46 std::string_view FindFilename(const std::string* path);
49 std::string_view FindFilenameNoExtension(const std::string* path);
[all...]
/third_party/libwebsockets/lib/misc/
H A Dromfs.c66 romfs_lookup(romfs_t romfs, romfs_inode_t start, const char *path);
124 romfs_lookup(romfs_t romfs, romfs_inode_t start, const char *path) in romfs_lookup() argument
136 p = path; in romfs_lookup()
146 (p - path) < RFS_STRING_MAX) { in romfs_lookup()
186 while (*path != '/' && *path) in romfs_lookup()
187 path++; in romfs_lookup()
188 if (!*path) in romfs_lookup()
190 path++; in romfs_lookup()
193 path in romfs_lookup()
219 romfs_get_info(romfs_t romfs, const char *path, size_t *len, size_t *csum) romfs_get_info() argument
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_grep.py44 cls.realpath = os.path.realpath(__file__)
45 cls.path = os.path.dirname(cls.realpath)
49 del cls.realpath, cls.path
61 os.chdir(self.path)
64 self.assertIn(os.path.join(os.curdir, filename), filelist)
69 readme = os.path.join(self.path, 'README.txt')
71 # Check for Python files in path where this file lives.
72 filelist = list(ff(self.path, '*
[all...]
/third_party/python/Lib/distutils/tests/
H A Dsupport.py72 Returns the path of the directory.
78 def write_file(self, path, content='xxx'):
79 """Writes a file in the given path.
82 path can be a string or a sequence.
84 if isinstance(path, (list, tuple)):
85 path = os.path.join(*path)
86 f = open(path, 'w')
103 pkg_dir = os.path
[all...]
/third_party/skia/tools/
H A Dbuild_command_buffer.py26 'path to Chromium checkout (directory containing .gclient)')
28 help='path to copy the command buffer shared library to. Typically this '
51 args.chrome_dir = os.path.abspath(args.chrome_dir)
52 args.output_dir = os.path.abspath(args.output_dir)
57 if os.path.isfile(args.chrome_dir):
60 if os.path.isfile(args.output_dir):
63 chrome_src_dir = os.path.join(args.chrome_dir, 'src')
65 if not os.path.isdir(chrome_src_dir):
68 if os.path.isfile(args.output_dir):
70 elif not os.path
[all...]
/kernel/linux/linux-5.10/drivers/acpi/x86/
H A Dutils.c41 const char *path; member
45 #define ENTRY(status, hid, uid, path, cpu_model, dmi...) { \
50 path, \
60 #define PRESENT_ENTRY_PATH(path, cpu_model, dmi...) \
61 ENTRY(ACPI_STA_DEFAULT, "", NULL, path, cpu_model, dmi)
63 #define NOT_PRESENT_ENTRY_PATH(path, cpu_model, dmi...) \
64 ENTRY(0, "", NULL, path, cpu_model, dmi)
152 if (override_status_ids[i].path) { in acpi_device_override_status()
153 struct acpi_buffer path = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_device_override_status() local
156 if (acpi_get_name(adev->handle, ACPI_FULL_PATHNAME, &path)) in acpi_device_override_status()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
H A Dhelpers.c22 int raw_openat2(int dfd, const char *path, void *how, size_t size) in raw_openat2() argument
24 int ret = syscall(__NR_openat2, dfd, path, how, size); in raw_openat2()
28 int sys_openat2(int dfd, const char *path, struct open_how *how) in sys_openat2() argument
30 return raw_openat2(dfd, path, how, sizeof(*how)); in sys_openat2()
33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() argument
35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
47 int touchat(int dfd, const char *path) in touchat() argument
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
71 bool fdequal(int fd, int dfd, const char *path) in fdequal() argument
79 if (!path) in fdequal()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dinterconnect.h29 * @path: reference to the interconnect path (internal use)
35 struct icc_path *path; member
47 void icc_put(struct icc_path *path);
48 int icc_enable(struct icc_path *path);
49 int icc_disable(struct icc_path *path);
50 int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw);
51 void icc_set_tag(struct icc_path *path, u32 tag);
52 const char *icc_get_name(struct icc_path *path);
79 static inline void icc_put(struct icc_path *path) in icc_put() argument
83 icc_enable(struct icc_path *path) icc_enable() argument
88 icc_disable(struct icc_path *path) icc_disable() argument
93 icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) icc_set_bw() argument
98 icc_set_tag(struct icc_path *path, u32 tag) icc_set_tag() argument
102 icc_get_name(struct icc_path *path) icc_get_name() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/
H A Dhelpers.c22 int raw_openat2(int dfd, const char *path, void *how, size_t size) in raw_openat2() argument
24 int ret = syscall(__NR_openat2, dfd, path, how, size); in raw_openat2()
28 int sys_openat2(int dfd, const char *path, struct open_how *how) in sys_openat2() argument
30 return raw_openat2(dfd, path, how, sizeof(*how)); in sys_openat2()
33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() argument
35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
47 int touchat(int dfd, const char *path) in touchat() argument
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
71 bool fdequal(int fd, int dfd, const char *path) in fdequal() argument
79 if (!path) in fdequal()
[all...]
/third_party/backends/testsuite/backend/genesys/
H A Dminigtest.h30 inline void print_location(std::ostream& out, const char* function, const char* path, in print_location() argument
33 out << path << ":" << line << " in " << function; in print_location()
37 void check_equal(const T& t, const U& u, const char* function, const char* path, unsigned line) in check_equal() argument
42 print_location(std::cerr, function, path, line); in check_equal()
47 print_location(std::cerr, function, path, line); in check_equal()
52 inline void check_true(bool x, const char* function, const char* path, unsigned line) in check_true() argument
61 print_location(std::cerr, function, path, line); in check_true()
65 inline void check_raises_success(const char* function, const char* path, unsigned line) in check_raises_success() argument
69 print_location(std::cerr, function, path, line); in check_raises_success()
73 inline void check_raises_did_not_raise(const char* function, const char* path, unsigne argument
82 check_raises_raised_unexpected(const char* function, const char* path, unsigned line) check_raises_raised_unexpected() argument
[all...]
/third_party/googletest/googletest/test/
H A Dgtest_test_utils.py50 # The environment variable for specifying the path to the premature-exit file.
72 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]),
73 'build_dir': os.path.dirname(sys.argv[0])}
118 """Returns the absolute path of the directory where the .py files are."""
120 return os.path.abspath(GetFlag('source_dir'))
124 """Returns the absolute path of the directory where the test binaries are."""
126 return os.path.abspath(GetFlag('build_dir'))
146 """Returns the absolute path of the test binary given its name.
157 The absolute path of the test binary.
160 path
[all...]
/third_party/ltp/include/
H A Dtst_fs.h56 * @path: path is the pathname of any file within the mounted file system
60 int tst_fs_has_free_(void (*cleanup)(void), const char *path, unsigned int size,
64 * Returns filesystem magick for a given path.
86 long tst_fs_type_(void (*cleanup)(void), const char *path);
137 * Search $PATH for prog_name and fills buf with absolute path if found.
163 * @path: path to file
168 int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount);
172 * @path
217 tst_fs_type(const char *path) tst_fs_type() argument
222 tst_fs_has_free(const char *path, unsigned int size, unsigned int mult) tst_fs_has_free() argument
243 tst_fs_type(void (*cleanup)(void), const char *path) tst_fs_type() argument
248 tst_fs_has_free(void (*cleanup)(void), const char *path, unsigned int size, unsigned int mult) tst_fs_has_free() argument
[all...]
/third_party/ltp/lib/
H A Dtst_fill_fs.c19 void fill_random(const char *path, int verbose) in fill_random() argument
28 statvfs(path, &fi); in fill_random()
33 snprintf(file, sizeof(file), "%s/file%i", path, i++); in fill_random()
74 void fill_flat_vec(const char *path, int verbose) in fill_flat_vec() argument
81 dir = open(path, O_PATH | O_DIRECTORY); in fill_flat_vec()
87 tst_brk(TBROK | TERRNO, "open(%s, %d) failed", path, O_PATH | O_DIRECTORY); in fill_flat_vec()
96 tst_brk(TBROK | TERRNO, "openat(%d, %d, 0600) failed for path %s", in fill_flat_vec()
97 dir, O_PATH | O_DIRECTORY, path); in fill_flat_vec()
117 tst_res(TINFO, "writev(\"%s/AOF\", iov, %d) = %d", path, iovcnt, ret); in fill_flat_vec()
124 tst_brk(TBROK | TERRNO, "writev(\"%s/AOF\", iov, %d)", path, iovcn in fill_flat_vec()
135 tst_fill_fs(const char *path, int verbose, enum tst_fill_access_pattern pattern) tst_fill_fs() argument
[all...]

Completed in 19 milliseconds

1...<<21222324252627282930>>...432