Home
last modified time | relevance | path

Searched refs:path (Results 76 - 100 of 6294) sorted by relevance

12345678910>>...252

/third_party/eudev/src/shared/
H A Dmkdir.c29 #include "path-util.h"
32 int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir) { in mkdir_safe_internal() argument
35 if (_mkdir(path, mode) >= 0) in mkdir_safe_internal()
36 if (chmod_and_chown(path, mode, uid, gid) < 0) in mkdir_safe_internal()
39 if (lstat(path, &st) < 0) in mkdir_safe_internal()
53 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) { in mkdir_parents_internal() argument
57 assert(path); in mkdir_parents_internal()
59 if (prefix && !path_startswith(path, prefix)) in mkdir_parents_internal()
63 e = strrchr(path, '/'); in mkdir_parents_internal()
67 if (e == path) in mkdir_parents_internal()
107 mkdir_parents(const char *path, mode_t mode) mkdir_parents() argument
111 mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) mkdir_p_internal() argument
127 udev_mkdir_p(const char *path, mode_t mode) udev_mkdir_p() argument
[all...]
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dbuild_tree.py12 def looks_like_tf_psa_crypto_root(path: str) -> bool:
14 return all(os.path.isdir(os.path.join(path, subdir))
17 def looks_like_mbedtls_root(path: str) -> bool:
19 return all(os.path.isdir(os.path.join(path, subdir))
22 def looks_like_root(path: str) -> bool:
23 return looks_like_tf_psa_crypto_root(path) o
[all...]
/third_party/node/lib/internal/fs/
H A Dpromises.js85 const pathModule = require('path');
553 async function access(path, mode = F_OK) {
554 path = getValidatedPath(path);
557 return binding.access(pathModule.toNamespacedPath(path), mode,
580 async function open(path, flags, mode) {
581 path = getValidatedPath(path);
585 await binding.openFileHandle(pathModule.toNamespacedPath(path),
710 async function truncate(path, le
[all...]
/third_party/python/Lib/
H A Dpkgutil.py9 import os.path namespace
53 def walk_packages(path=None, prefix='', onerror=None):
55 on path, or, if path is None, all accessible modules.
57 'path' should be either None or a list of paths to look for
64 modules!) on the given path, in order to access the __path__
87 for info in iter_modules(path, prefix):
102 path = getattr(sys.modules[info.name], '__path__', None) or []
104 # don't traverse path items we've seen before
105 path
[all...]
H A Dimp.py73 def cache_from_source(path, debug_override=None):
76 Given the path to a .py file, return the path to its .pyc file.
78 The .py file does not need to exist; this simply returns the path to the
89 return util.cache_from_source(path, debug_override)
92 def source_from_cache(path):
95 Given the path to a .pyc. file, return the path to its .py file.
97 The .pyc file does not need to exist; this simply returns the path to
98 the .py file calculated to correspond to the .pyc file. If path doe
[all...]
/third_party/skia/tests/
H A DPathOpsBuilderTest.cpp83 SkPath path; in DEF_TEST() local
84 path.moveTo(200, 170); in DEF_TEST()
85 path.lineTo(220, 170); in DEF_TEST()
86 path.lineTo(220, 230); in DEF_TEST()
87 path.lineTo(240, 230); in DEF_TEST()
88 path.lineTo(240, 210); in DEF_TEST()
89 path.lineTo(180, 210); in DEF_TEST()
90 path.lineTo(180, 190); in DEF_TEST()
91 path.lineTo(260, 190); in DEF_TEST()
92 path in DEF_TEST()
105 SkPath path; DEF_TEST() local
119 SkPath path; DEF_TEST() local
140 SkPath path, pathB; DEF_TEST() local
306 SkPath path; DEF_TEST() local
349 SkPath path; DEF_TEST() local
[all...]
/third_party/gn/src/gn/
H A Dvisual_studio_writer_unittest.cc21 std::string MakeTestPath(const std::string& path) { in MakeTestPath() argument
23 return "C:" + path; in MakeTestPath()
25 return path; in MakeTestPath()
36 std::string path = in TEST_F() local
40 "base", path, MakeGuid(path, "project"), in TEST_F()
43 path = MakeTestPath("/foo/chromium/src/out/Debug/obj/tools/gn/gn.vcxproj"); in TEST_F()
46 "gn", path, MakeGuid(path, "project"), in TEST_F()
49 path in TEST_F()
95 std::string path = TEST_F() local
172 std::string path = MakeTestPath("blah.vcxproj"); TEST_F() local
207 std::string path = MakeTestPath("blah.vcxproj"); TEST_F() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dpkt_builder.py29 root_path = os.path.join(os.getcwd(), '..', '..') if getattr(sys, 'frozen', False) else os.path.join(os.path.dirname(__file__), '..', '..')
34 self.__bootBinPath = os.path.join(root_path, usr_realtive_output, 'build', 'flashboot', 'Hi3861_flash_boot.bin')
35 self.__kernelBinPath = os.path.join(root_path, usr_realtive_output, 'output', 'bin', '%s_non_rom.bin'%self.__app_name)
36 self.__normalNvPath = os.path.join(root_path, 'build', 'build_tmp', 'nv', '%s_normal.hnv'%app_name)
37 self.__factoryNvPath = os.path.join(root_path, 'build', 'build_tmp', 'nv', '%s_factory.hnv'%app_name)
38 self.__pktPath = os.path.join(root_path, usr_realtive_output, 'output', 'bin')
39 self.__key_dir_path = os.path.join(root_path, 'tools', 'sign_tool')
40 self.__lzma_tool_path = os.path
[all...]
/third_party/skia/samplecode/
H A DSamplePathOverstroke.cpp66 SkPath path; in quadPath() local
67 path.moveTo(p1); in quadPath()
68 path.lineTo(p2); in quadPath()
72 path.quadTo(p3, p1); in quadPath()
74 return path; in quadPath()
80 SkPath path; in cubicPath() local
81 path.moveTo(p1); in cubicPath()
86 path.cubicTo(p3, p4, p2); in cubicPath()
88 return path; in cubicPath()
94 SkPath path; in linSemicirclePath() local
114 SkPath path; rectPath() local
129 SkPath path; global() variable
[all...]
/third_party/skia/third_party/externals/libjpeg-turbo/gtest/
H A Dgtest-utils.cpp26 base::FilePath path; in GetTargetDirectory() local
27 base::PathService::Get(base::DIR_CURRENT, &path); in GetTargetDirectory()
28 return base::UTF8ToWide(path.MaybeAsASCII()); in GetTargetDirectory()
35 base::FilePath path; in GetTargetDirectory()
36 base::PathService::Get(base::DIR_CURRENT, &path); in GetTargetDirectory()
37 return path.MaybeAsASCII(); in GetTargetDirectory()
42 void GetTestFilePath(base::FilePath* path, const std::string filename) { in GetTestFilePath() argument
43 ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, path)); in GetTestFilePath()
44 *path = path in GetTestFilePath()
51 CompareFileAndMD5(const base::FilePath& path, const std::string expected_md5) CompareFileAndMD5() argument
[all...]
/third_party/node/lib/
H A Dfs.js60 const pathModule = require('path');
220 * specified by `path`.
221 * @param {string | Buffer | URL} path
226 function access(path, mode, callback) {
232 path = getValidatedPath(path);
238 binding.access(pathModule.toNamespacedPath(path), mode, req);
243 * directory specified by `path`.
244 * @param {string | Buffer | URL} path
248 function accessSync(path, mod
[all...]
/third_party/ninja/src/
H A Ddisk_interface.cc41 string DirName(const string& path) { in DirName() argument
49 string::size_type slash_pos = path.find_last_of(kPathSeparators); in DirName()
53 std::find(kPathSeparators, kEnd, path[slash_pos - 1]) != kEnd) in DirName()
55 return path.substr(0, slash_pos); in DirName()
58 int MakeDir(const string& path) { in MakeDir() argument
60 return _mkdir(path.c_str()); in MakeDir()
62 return mkdir(path.c_str(), 0777); in MakeDir()
77 TimeStamp StatSingleFile(const string& path, string* err) { in StatSingleFile() argument
79 if (!GetFileAttributesExA(path.c_str(), GetFileExInfoStandard, &attrs)) { in StatSingleFile()
83 *err = "GetFileAttributesEx(" + path in StatSingleFile()
140 MakeDirs(const string& path) MakeDirs() argument
181 Stat(const string& path, string* err) const global() argument
250 WriteFile(const string& path, const string& contents) global() argument
274 MakeDir(const string& path) global() argument
285 ReadFile(const string& path, string* contents, string* err) global() argument
295 RemoveFile(const string& path) global() argument
[all...]
/third_party/skia/fuzz/
H A DFuzzPathop.cpp26 SkPath path; in DEF_FUZZ() local
27 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
30 path.setFillType(ft); in DEF_FUZZ()
34 builder.add(path, op); in DEF_FUZZ()
42 SkPath path; in DEF_FUZZ() local
43 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
46 path.setFillType(ft); in DEF_FUZZ()
52 result = path; in DEF_FUZZ()
54 Simplify(path, &result); in DEF_FUZZ()
58 SkPath path; in DEF_FUZZ() local
84 SkPath path; DEF_FUZZ() local
100 SkPath path; DEF_FUZZ() local
120 BuildPath(Fuzz* fuzz, SkPath* path) BuildPath() argument
189 SkPath path; DEF_FUZZ() local
[all...]
/third_party/python/Lib/importlib/
H A D_bootstrap_external.py1 """Core implementation of path-based import.
97 """Replacement for os.path.join()."""
103 path = []
107 path = [path_sep + tail]
113 path = [tail]
115 path.append(tail)
118 path.append(tail)
119 path = [p.rstrip(path_separators) for p in path if p]
120 if len(path)
[all...]
/third_party/libfuse/lib/modules/
H A Dsubdir.c30 static int subdir_addpath(struct subdir *d, const char *path, char **newpathp) in subdir_addpath() argument
34 if (path != NULL) { in subdir_addpath()
35 unsigned newlen = d->baselen + strlen(path); in subdir_addpath()
41 if (path[0] == '/') in subdir_addpath()
42 path++; in subdir_addpath()
44 strcpy(newpath + d->baselen, path); in subdir_addpath()
53 static int subdir_getattr(const char *path, struct stat *stbuf, in subdir_getattr() argument
58 int err = subdir_addpath(d, path, &newpath); in subdir_getattr()
66 static int subdir_access(const char *path, int mask) in subdir_access() argument
70 int err = subdir_addpath(d, path, in subdir_access()
104 transform_symlink(struct subdir *d, const char *path, char *buf, size_t size) transform_symlink() argument
142 subdir_readlink(const char *path, char *buf, size_t size) subdir_readlink() argument
156 subdir_opendir(const char *path, struct fuse_file_info *fi) subdir_opendir() argument
168 subdir_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi, enum fuse_readdir_flags flags) subdir_readdir() argument
184 subdir_releasedir(const char *path, struct fuse_file_info *fi) subdir_releasedir() argument
196 subdir_mknod(const char *path, mode_t mode, dev_t rdev) subdir_mknod() argument
208 subdir_mkdir(const char *path, mode_t mode) subdir_mkdir() argument
220 subdir_unlink(const char *path) subdir_unlink() argument
232 subdir_rmdir(const char *path) subdir_rmdir() argument
244 subdir_symlink(const char *from, const char *path) subdir_symlink() argument
290 subdir_chmod(const char *path, mode_t mode, struct fuse_file_info *fi) subdir_chmod() argument
303 subdir_chown(const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi) subdir_chown() argument
316 subdir_truncate(const char *path, off_t size, struct fuse_file_info *fi) subdir_truncate() argument
329 subdir_utimens(const char *path, const struct timespec ts[2], struct fuse_file_info *fi) subdir_utimens() argument
342 subdir_create(const char *path, mode_t mode, struct fuse_file_info *fi) subdir_create() argument
355 subdir_open(const char *path, struct fuse_file_info *fi) subdir_open() argument
367 subdir_read_buf(const char *path, struct fuse_bufvec **bufp, size_t size, off_t offset, struct fuse_file_info *fi) subdir_read_buf() argument
380 subdir_write_buf(const char *path, struct fuse_bufvec *buf, off_t offset, struct fuse_file_info *fi) subdir_write_buf() argument
393 subdir_statfs(const char *path, struct statvfs *stbuf) subdir_statfs() argument
405 subdir_flush(const char *path, struct fuse_file_info *fi) subdir_flush() argument
417 subdir_release(const char *path, struct fuse_file_info *fi) subdir_release() argument
429 subdir_fsync(const char *path, int isdatasync, struct fuse_file_info *fi) subdir_fsync() argument
442 subdir_fsyncdir(const char *path, int isdatasync, struct fuse_file_info *fi) subdir_fsyncdir() argument
455 subdir_setxattr(const char *path, const char *name, const char *value, size_t size, int flags) subdir_setxattr() argument
469 subdir_getxattr(const char *path, const char *name, char *value, size_t size) subdir_getxattr() argument
482 subdir_listxattr(const char *path, char *list, size_t size) subdir_listxattr() argument
494 subdir_removexattr(const char *path, const char *name) subdir_removexattr() argument
506 subdir_lock(const char *path, struct fuse_file_info *fi, int cmd, struct flock *lock) subdir_lock() argument
519 subdir_flock(const char *path, struct fuse_file_info *fi, int op) subdir_flock() argument
531 subdir_bmap(const char *path, size_t blocksize, uint64_t *idx) subdir_bmap() argument
543 subdir_lseek(const char *path, off_t off, int whence, struct fuse_file_info *fi) subdir_lseek() argument
[all...]
/third_party/node/deps/v8/tools/vim/
H A Dninja_output.py31 os.path.isdir(os.path.join(v8_root, name_value[1]))):
36 return os.path.join(os.path.join(v8_root, output_dir), configuration)
41 if os.path.isdir(os.path.join(v8_root, f)):
46 out_path = os.path.join(v8_root, out_dir)
48 path = os.path.join(out_path, config)
49 if os.path
[all...]
/third_party/skia/tools/skp/
H A Dwebpages_playback.py77 LOCAL_REPLAY_WEBPAGES_ARCHIVE_DIR = os.path.join(
78 os.path.abspath(os.path.dirname(__file__)), 'page_sets', 'data')
83 CREDENTIALS_FILE_PATH = os.path.join(
84 os.path.abspath(os.path.dirname(__file__)), 'page_sets', 'data',
112 CHROMIUM_PAGE_SETS_PATH = os.path.join('tools', 'perf', 'page_sets')
149 self._chrome_page_sets_path = os.path.join(parse_options.chrome_src_path,
166 self._telemetry_binaries_dir = os.path.join(parse_options.chrome_src_path,
168 self._catapult_dir = os.path
[all...]
/third_party/skia/infra/bots/assets/valgrind/
H A Dcreate.py23 FILE_DIR = os.path.dirname(os.path.abspath(__file__))
24 INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
25 sys.path.insert(0, INFRA_BOTS_DIR)
32 TEMP_DIR = os.path.join(tempfile.gettempdir(), 'skia-%s' % VALGRIND)
33 INSTALL_DIR = os.path.join(TEMP_DIR, 'valgrind_install')
38 if os.path.isfile(TARBALL):
46 if os.path.isdir(VALGRIND):
52 if os.path
[all...]
/third_party/rust/crates/serde/serde_derive_internals/src/
H A Dattr.rs313 if attr.path() != SERDE { in from_ast()
315 matches!(&attr.meta, syn::Meta::Path(path) if path == NON_EXHAUSTIVE); in from_ast()
326 if meta.path == RENAME { in from_ast()
330 ser_name.set_opt(&meta.path, ser.as_ref().map(syn::LitStr::value)); in from_ast()
331 de_name.set_opt(&meta.path, de.as_ref().map(syn::LitStr::value)); in from_ast()
332 } else if meta.path == RENAME_ALL { in from_ast()
339 Ok(rename_rule) => rename_all_ser_rule.set(&meta.path, rename_rule), in from_ast()
345 Ok(rename_rule) => rename_all_de_rule.set(&meta.path, rename_rule), in from_ast()
353 } else if meta.path in from_ast()
1261 let mut path = syn::Path { from_ast() variables
1278 let mut path = syn::Path { from_ast() variables
[all...]
/third_party/rust/crates/serde/serde_derive/src/internals/
H A Dattr.rs313 if attr.path() != SERDE { in from_ast()
315 matches!(&attr.meta, syn::Meta::Path(path) if path == NON_EXHAUSTIVE); in from_ast()
326 if meta.path == RENAME { in from_ast()
330 ser_name.set_opt(&meta.path, ser.as_ref().map(syn::LitStr::value)); in from_ast()
331 de_name.set_opt(&meta.path, de.as_ref().map(syn::LitStr::value)); in from_ast()
332 } else if meta.path == RENAME_ALL { in from_ast()
339 Ok(rename_rule) => rename_all_ser_rule.set(&meta.path, rename_rule), in from_ast()
345 Ok(rename_rule) => rename_all_de_rule.set(&meta.path, rename_rule), in from_ast()
353 } else if meta.path in from_ast()
1261 let mut path = syn::Path { from_ast() variables
1278 let mut path = syn::Path { from_ast() variables
[all...]
/third_party/rust/crates/clang-sys/src/
H A Dsupport.rs5 use std::path::{Path, PathBuf};
22 /// The path to this `clang` executable.
23 pub path: PathBuf,
35 fn new(path: impl AsRef<Path>, args: &[String]) -> Self { in new()
37 path: path.as_ref().into(), in new()
38 version: parse_version(path.as_ref()), in new()
39 c_search_paths: parse_search_paths(path.as_ref(), "c", args), in new()
40 cpp_search_paths: parse_search_paths(path.as_ref(), "c++", args), in new()
48 /// a path i
[all...]
/third_party/skia/third_party/externals/dawn/generator/
H A Dgenerator_lib.py43 # template: Jinja2 template name, relative to --template-dir path.
45 # output: Output file path, relative to temporary output directory.
76 # Allow custom Jinja2 installation path through an additional python
77 # path from the arguments if present. This isn't done through the regular
83 kJinja2Path = '--jinja2-path'
86 # Add parent path for the import to succeed.
87 path = os.path.join(sys.argv[jinja2_path_argv_index + 1], os.pardir) variable
88 sys.path.insert(1, path)
[all...]
/third_party/vulkan-loader/tests/framework/shim/
H A Dshim.h69 explicit HKeyHandle(const size_t value, const std::string& key_path) noexcept : key(HKEY{}), path(key_path) { in path() function
76 std::string path; member
105 D3DKMT_Adapter& add_driver_manifest_path(fs::path const& src);
106 D3DKMT_Adapter& add_implicit_layer_manifest_path(fs::path const& src);
107 D3DKMT_Adapter& add_explicit_layer_manifest_path(fs::path const& src);
116 D3DKMT_Adapter& add_path(fs::path src, std::vector<std::wstring>& dest);
146 void redirect_all_paths(fs::path const& path);
147 void redirect_category(fs::path const& new_path, ManifestCategory category);
150 void set_fake_path(ManifestCategory category, fs::path cons
[all...]
/third_party/skia/gm/
H A Daaa.cpp47 // The following path is empty but it'll reveal bug chrome:662914 in DEF_SIMPLE_GM()
48 SkPathBuilder path; in DEF_SIMPLE_GM() local
49 path.moveTo(SkBits2Float(0x429b9d5c), SkBits2Float(0x4367a041)); // 77.8073f, 231.626f in DEF_SIMPLE_GM()
51 path.cubicTo(SkBits2Float(0x429b9d71), SkBits2Float(0x4367a022), in DEF_SIMPLE_GM()
54 path.lineTo(SkBits2Float(0x429b9d5c), SkBits2Float(0x4367a041)); // 77.8073f, 231.626f in DEF_SIMPLE_GM()
55 path.close(); in DEF_SIMPLE_GM()
56 canvas->drawPath(path.detach(), p); in DEF_SIMPLE_GM()
58 // The following path reveals a subtle SkAnalyticQuadraticEdge::updateQuadratic bug: in DEF_SIMPLE_GM()
61 path.moveTo(SkBits2Float(0x434ba71e), SkBits2Float(0x438a06d0)); // 203.653f, 276.053f in DEF_SIMPLE_GM()
62 path in DEF_SIMPLE_GM()
108 SkPath path = builder.detach(); DEF_SIMPLE_GM() local
142 SkPath path = SkPath::Circle(100, 100, 30); DEF_SIMPLE_GM() local
[all...]
/third_party/python/Lib/test/
H A Dtest_getpath.py298 contains the relative path from the executable's directory to the
299 platstdlib path.
391 "Test a venv created from non-installed python has correct zip path."""
397 ns.add_known_xfile("/path/to/non-installed/bin/python")
400 "/path/to/non-installed/bin/python")
401 ns.add_known_file("/path/to/non-installed/lib/python9.8/os.py")
402 ns.add_known_dir("/path/to/non-installed/lib/python9.8/lib-dynload")
404 r"home = /path/to/non-installed"
408 prefix="/path/to/non-installed",
409 exec_prefix="/path/t
[all...]

Completed in 15 milliseconds

12345678910>>...252