Home
last modified time | relevance | path

Searched refs:path (Results 601 - 625 of 12350) sorted by relevance

1...<<21222324252627282930>>...494

/third_party/python/Lib/distutils/
H A D_msvccompiler.py47 if v and vt == winreg.REG_SZ and os.path.isdir(vc_dir):
57 """Returns "15, path" based on the result of invoking vswhere.exe
61 result. It may be ignored when the path is not None.
71 path = subprocess.check_output([
72 os.path.join(root, "Microsoft Visual Studio", "Installer", "vswhere.exe"),
82 path = os.path.join(path, "VC", "Auxiliary", "Build")
83 if os.path.isdir(path)
[all...]
H A Dmsvccompiler.py106 def set_macro(self, macro, path, key):
108 d = read_values(base, path)
192 np = os.path.normpath(p)
258 self.__paths = self.get_msvc_paths("path")
274 # extend the MSVC path with the current path
276 for p in os.environ['path'].split(';'):
281 os.environ['path'] = ";".join(self.__paths)
320 (base, ext) = os.path.splitext (src_name)
321 base = os.path
[all...]
/third_party/python/Lib/distutils/command/
H A Dbuild_py.py54 for name, path in self.distribution.package_dir.items():
55 self.package_dir[name] = convert_path(path)
107 build_dir = os.path.join(*([self.build_lib] + package.split('.')))
109 # Length of path to strip from found files
127 # Each pattern has to be converted to a platform-specific path
128 filelist = glob.glob(os.path.join(glob.escape(src_dir), convert_path(pattern)))
131 and os.path.isfile(fn)])
139 target = os.path.join(build_dir, filename)
140 self.mkpath(os.path.dirname(target))
141 self.copy_file(os.path
[all...]
/third_party/vulkan-loader/scripts/
H A Dupdate_deps.py76 Note that the "dir" option can also specify an absolute path:
231 option can be a relative or absolute path.
238 import os.path namespace
263 def on_rm_error( func, path, exc_info):
268 os.chmod( path, stat.S_IWRITE )
269 os.unlink( path )
271 def make_or_exist_dirs(path):
273 # Could use os.makedirs(path, exist_ok=True) if we drop python2
274 if not os.path.isdir(path)
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dbackref.c418 static int add_all_parents(struct btrfs_root *root, struct btrfs_path *path, in add_all_parents() argument
438 eb = path->nodes[level]; in add_all_parents()
446 * 1. We normally enter this function with the path already pointing to in add_all_parents()
455 eb = path->nodes[0]; in add_all_parents()
456 if (path->slots[0] >= btrfs_header_nritems(eb) || in add_all_parents()
460 ret = btrfs_next_leaf(root, path); in add_all_parents()
462 ret = btrfs_next_old_leaf(root, path, time_seq); in add_all_parents()
466 eb = path->nodes[0]; in add_all_parents()
467 slot = path->slots[0]; in add_all_parents()
484 ret = btrfs_next_leaf(root, path); in add_all_parents()
541 resolve_indirect_ref(struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 time_seq, struct preftrees *preftrees, struct prelim_ref *ref, struct ulist *parents, const u64 *extent_item_pos, bool ignore_offset) resolve_indirect_ref() argument
684 resolve_indirect_refs(struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 time_seq, struct preftrees *preftrees, const u64 *extent_item_pos, struct share_check *sc, bool ignore_offset) resolve_indirect_refs() argument
963 add_inline_refs(const struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 bytenr, int *info_level, struct preftrees *preftrees, struct share_check *sc) add_inline_refs() argument
1086 add_keyed_refs(struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 bytenr, int info_level, struct preftrees *preftrees, struct share_check *sc) add_keyed_refs() argument
1209 struct btrfs_path *path; global() local
1628 btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid, u64 start_off, struct btrfs_path *path, struct btrfs_inode_extref **ret_extref, u64 *found_off) global() argument
1710 btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, u32 name_len, unsigned long name_off, struct extent_buffer *eb_in, u64 parent, char *dest, u32 size) global() argument
1786 extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, struct btrfs_path *path, struct btrfs_key *found_key, u64 *flags_ret) global() argument
2087 iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, struct btrfs_path *path, void *ctx, bool ignore_offset) global() argument
2115 iterate_inode_refs(u64 inum, struct btrfs_root *fs_root, struct btrfs_path *path, iterate_irefs_t *iterate, void *ctx) global() argument
2178 iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root, struct btrfs_path *path, iterate_irefs_t *iterate, void *ctx) global() argument
2240 iterate_irefs(u64 inum, struct btrfs_root *fs_root, struct btrfs_path *path, iterate_irefs_t *iterate, void *ctx) global() argument
2342 init_ipath(s32 total_bytes, struct btrfs_root *fs_root, struct btrfs_path *path) global() argument
2399 struct btrfs_path *path = iter->path; global() local
2496 struct btrfs_path *path = iter->path; global() local
2747 handle_indirect_tree_backref(struct btrfs_backref_cache *cache, struct btrfs_path *path, struct btrfs_key *ref_key, struct btrfs_key *tree_key, struct btrfs_backref_node *cur) global() argument
2913 btrfs_backref_add_tree_node(struct btrfs_backref_cache *cache, struct btrfs_path *path, struct btrfs_backref_iter *iter, struct btrfs_key *node_key, struct btrfs_backref_node *cur) global() argument
[all...]
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/
H A Dcloud_download_uri_manager.cpp28 int32_t CloudDownloadUriManager::AddPathToUri(const std::string& path, const std::string& uri) in AddPathToUri() argument
30 LOGI("download_file : add path [ %{public}s ] -> uri [ %{public}s ]", in AddPathToUri()
31 GetAnonyString(path).c_str(), GetAnonyString(uri).c_str()); in AddPathToUri()
33 if (pathUriMap_.find(path) == pathUriMap_.end()) { in AddPathToUri()
34 pathUriMap_[path] = uri; in AddPathToUri()
35 LOGI("download_file : add path [ %{public}s ] success, pathUriMap_ size is %{public}zu", in AddPathToUri()
36 GetAnonyString(path).c_str(), pathUriMap_.size()); in AddPathToUri()
54 void CloudDownloadUriManager::RemoveUri(const std::string& path) in RemoveUri() argument
57 if (pathUriMap_.find(path) != pathUriMap_.end()) { in RemoveUri()
58 LOGI("download_file : remove path [ in RemoveUri()
105 GetUri(const std::string& path) GetUri() argument
[all...]
/test/xts/device_attest_lite/services/core/mini/utils/
H A Dattest_utils_file_detail.c60 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument
62 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize()
73 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument
75 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile()
105 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) in ReadFile() argument
107 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadFile()
113 if (GetFileSize(path, fileName, &fileSize) != 0 || fileSize > bufferLen) { in ReadFile()
133 int32_t CreateFile(const char* path, const char* fileName) in CreateFile() argument
135 if (path == NULL || fileName == NULL) { in CreateFile()
147 bool IsFileExist(const char* path, cons argument
161 DeleteFile(const char* path, const char* fileName) DeleteFile() argument
[all...]
/third_party/lzma/CPP/Windows/
H A DFileDir.h14 bool GetWindowsDir(FString &path);
15 bool GetSystemDir(FString &path);
22 bool SetDirTime(CFSTR path, const CFiTime *cTime, const CFiTime *aTime, const CFiTime *mTime);
27 bool SetFileAttrib(CFSTR path, DWORD attrib);
37 int my_chown(CFSTR path, uid_t owner, gid_t group);
41 bool SetFileAttrib_PosixHighDetect(CFSTR path, DWORD attrib);
50 bool RemoveDir(CFSTR path);
51 bool CreateDir(CFSTR path);
56 path can be WITH or WITHOUT trailing path separato
[all...]
/third_party/jerryscript/tools/
H A Djs2c.py47 def extract_name(path):
49 return special_chars.sub('_', os.path.splitext(os.path.basename(path))[0])
59 def js_to_native_code(path, name, build_type):
60 with open(path, 'r') as js_source:
99 gen_line = "/* This file is generated by %s. Please do not modify. */" % os.path.basename(__file__)
107 files = glob.glob(os.path.join(script_args.js_source_path, '*.js'))
109 for path in files:
110 if os.path
[all...]
/third_party/jerryscript/tools/runners/
H A Drun-test-suite-test262.py50 args.test_dir = os.path.join(args.test_dir, 'es2015')
52 args.test_dir = os.path.join(args.test_dir, 'es51')
58 if os.path.isdir(os.path.join(args.test_dir, '.git')):
78 shutil.copyfile(os.path.join('tests', 'test262-es6-excludelist.xml'),
79 os.path.join(args.test_dir, 'excludelist.xml'))
81 return_code = subprocess.call(['git', 'apply', os.path.join('..', '..', 'test262-es6.patch')],
88 path_to_remove = os.path.join(args.test_dir, 'test', 'suite', 'bestPractice')
89 if os.path.isdir(path_to_remove):
92 path_to_remove = os.path
[all...]
/third_party/python/Lib/importlib/resources/
H A Dreaders.py17 self.path = pathlib.Path(loader.path).parent
21 Return the file system path to prevent
22 `resources.path()` from creating a temporary
25 return str(self.path.joinpath(resource))
28 return self.path
43 def is_resource(self, path):
46 target = self.files().joinpath(path)
64 message = 'MultiplexedPath must contain at least one path'
66 if not all(path
[all...]
/third_party/skia/src/ports/
H A DSkOSFile_stdio.cpp68 FILE* sk_fopen(const char path[], SkFILE_Flags flags) { in sk_fopen() argument
82 file = fopen_win(path, perm); in sk_fopen()
84 file = fopen(path, perm); in sk_fopen()
87 // if not found in default path and read-only, try to open from bundle in sk_fopen()
90 if (ios_get_path_in_bundle(path, &bundlePath)) { in sk_fopen()
98 path, perm, errno, strerror(errno)); in sk_fopen()
153 bool sk_isdir(const char *path) { in sk_isdir() argument
155 if (0 != stat(path, &status)) { in sk_isdir()
157 // check the bundle directory if not in default path in sk_isdir()
159 if (ios_get_path_in_bundle(path, in sk_isdir()
171 sk_mkdir(const char* path) sk_mkdir() argument
[all...]
/third_party/skia/tests/
H A DPathOpsSimplifyQuadralateralsThreadedTest.cpp38 SkPath path, out; in testSimplifyQuadralateralsMain() local
39 path.moveTo(SkIntToScalar(ax), SkIntToScalar(ay)); in testSimplifyQuadralateralsMain()
40 path.lineTo(SkIntToScalar(bx), SkIntToScalar(by)); in testSimplifyQuadralateralsMain()
41 path.lineTo(SkIntToScalar(cx), SkIntToScalar(cy)); in testSimplifyQuadralateralsMain()
42 path.lineTo(SkIntToScalar(dx), SkIntToScalar(dy)); in testSimplifyQuadralateralsMain()
43 path.close(); in testSimplifyQuadralateralsMain()
44 path.moveTo(SkIntToScalar(ex), SkIntToScalar(ey)); in testSimplifyQuadralateralsMain()
45 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyQuadralateralsMain()
46 path.lineTo(SkIntToScalar(gx), SkIntToScalar(gy)); in testSimplifyQuadralateralsMain()
47 path in testSimplifyQuadralateralsMain()
[all...]
/third_party/toybox/toys/other/
H A Dsysctl.c51 static int write_key(char *path, char *key, char *value) in write_key() argument
53 int fd = open(path, O_WRONLY); in write_key()
66 // Display all keys under a path
69 char *path, *data, *key; in do_show_keys() local
74 path = dirtree_path(dt, 0); in do_show_keys()
75 data = readfile(path, 0, 0); in do_show_keys()
76 replace_char(key = path + 10, '/', '.'); // skip "/proc/sys/" in do_show_keys()
88 free(path); in do_show_keys()
96 char *path; in process_key() local
105 path in process_key()
[all...]
/third_party/skia/gm/
H A Dnonclosedpaths.cpp20 // closed rects, but they don't call path.close(). Depending on the stroke
28 // The path looks not closed at all.
31 // The path looks closed, but final rendering has 2 ends with cap.
34 // The path looks closed, and the final rendering looks closed too.
50 // Use rect-like geometry for non-closed path, for right angles make it
53 SkPathBuilder path; in MakePath() local
55 path.moveTo(30, 50); in MakePath()
56 path.lineTo(30, 30); in MakePath()
58 path.moveTo(30, 30); in MakePath()
60 path in MakePath()
113 SkPath path = MakePath(kType[type]); global() variable
135 SkPath path = MakePath(kType[type]); global() variable
[all...]
/third_party/rust/crates/rustix/src/fs/
H A Dmount.rs6 use crate::{backend, io, path};
15 pub fn mount<Source: path::Arg, Target: path::Arg, Fs: path::Arg, Data: path::Arg>( in mount()
46 pub fn remount<Target: path::Arg, Data: path::Arg>( in remount()
71 pub fn bind_mount<Source: path::Arg, Target: path::Arg>( in bind_mount()
95 pub fn recursive_bind_mount<Source: path
[all...]
/third_party/ltp/include/
H A Dtst_safe_macros.h29 #define SAFE_ACCESS(path, mode) \
30 safe_access(__FILE__, __LINE__, (path), (mode))
32 #define SAFE_BASENAME(path) \
33 safe_basename(__FILE__, __LINE__, NULL, (path))
35 #define SAFE_CHDIR(path) \
36 safe_chdir(__FILE__, __LINE__, NULL, (path))
46 #define SAFE_CHROOT(path) \
47 safe_chroot(__FILE__, __LINE__, (path))
48 int safe_chroot(const char *file, const int lineno, const char *path);
50 #define SAFE_DIRNAME(path) \
321 safe_truncate(const char *file, const int lineno, const char *path, off_t length) safe_truncate() argument
342 safe_stat(const char *file, const int lineno, const char *path, struct stat *buf) safe_stat() argument
383 safe_lstat(const char *file, const int lineno, const char *path, struct stat *buf) safe_lstat() argument
404 safe_statfs(const char *file, const int lineno, const char *path, struct statfs *buf) safe_statfs() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_uri.cpp180 static void ParsePathWithExtrPara(std::string &path) in ParsePathWithExtrPara() argument
182 auto index = path.rfind('/'); in ParsePathWithExtrPara()
184 MEDIA_ERR_LOG("find split for last string failed, %{private}s", path.c_str()); in ParsePathWithExtrPara()
187 auto lastStr = path.substr(index + 1); in ParsePathWithExtrPara()
188 auto uriTempNext = path.substr(0, index); in ParsePathWithExtrPara()
197 path = uriTempNext.substr(0, index); in ParsePathWithExtrPara()
203 path = uriTempNext; in ParsePathWithExtrPara()
206 path = preStr; in ParsePathWithExtrPara()
212 std::string path = uri->GetPath(); in CalFileId() local
214 ParsePathWithExtrPara(path); in CalFileId()
423 HandleOldUriPath(std::string &path) HandleOldUriPath() argument
432 RemovePrecedSlash(std::string &path) RemovePrecedSlash() argument
439 GetValidPath(Uri &uri, std::string &path) GetValidPath() argument
453 std::string path; GetPathFirstDentry() local
466 std::string path; GetPathSecondDentry() local
598 string path = ROOT_MEDIA_DIR; GetPathFromUri() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_source_loading.cpp92 std::string GetLocalThumbnailPath(const std::string &path, const std::string &key) in GetLocalThumbnailPath() argument
94 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetLocalThumbnailPath()
98 return LOCAL_MEDIA_PATH + ((key == "") ? "" : ".thumbs/") + path.substr(ROOT_MEDIA_DIR.length()) + suffix; in GetLocalThumbnailPath()
101 std::string GetLocalKeyFrameThumbnailPath(const std::string &path, const std::string &key, const std::string &timeStamp) in GetLocalKeyFrameThumbnailPath() argument
103 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetLocalKeyFrameThumbnailPath()
107 return LOCAL_MEDIA_PATH + ((key == "") ? "" : ".thumbs/") + path.substr(ROOT_MEDIA_DIR.length()) + in GetLocalKeyFrameThumbnailPath()
111 std::string GetLcdExPath(const std::string &path) in GetLcdExPath() argument
113 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetLcdExPath()
117 return ROOT_MEDIA_DIR + ".thumbs/" + path.substr(ROOT_MEDIA_DIR.length()) + suffix; in GetLcdExPath()
120 bool IsLocalSourceAvailable(const std::string& path) in IsLocalSourceAvailable() argument
144 IsCloudSourceAvailable(const std::string& path) IsCloudSourceAvailable() argument
[all...]
/third_party/ninja/src/
H A Dgraph.cc94 EXPLAIN("%s has no in-edge and is missing", node->path().c_str()); in RecomputeNodeDirty()
185 EXPLAIN("%s is dirty", (*i)->path().c_str()); in RecomputeNodeDirty()
250 err->append((*i)->path()); in VerifyDAG()
253 err->append((*start)->path()); in VerifyDAG()
286 output->path().c_str()); in RecomputeOutputDirty()
302 EXPLAIN("output %s doesn't exist", output->path().c_str()); in RecomputeOutputDirty()
316 (entry = build_log()->LookupByOutput(output->path()))) { in RecomputeOutputDirty()
324 output->path().c_str(), in RecomputeOutputDirty()
325 most_recent_input->path().c_str(), in RecomputeOutputDirty()
332 if (entry || (entry = build_log()->LookupByOutput(output->path()))) { in RecomputeOutputDirty()
476 const string& path = (*i)->PathDecanonicalized(); MakePathList() local
494 std::string path = (*it)->PathDecanonicalized(); CollectInputs() local
591 PathDecanonicalized(const string& path, uint64_t slash_bits) PathDecanonicalized() argument
653 LoadDepFile(Edge* edge, const string& path, string* err) LoadDepFile() argument
[all...]
/third_party/skia/modules/pathkit/
H A Dpathkit_wasm_bindings.cpp48 JSArray EMSCRIPTEN_KEEPALIVE ToCmds(const SkPath& path) { in ToCmds() argument
50 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in ToCmds()
94 SkPath path; in FromCmds() local
97 // if there are not enough arguments, bail with the path we've constructed so far. in FromCmds()
109 path.moveTo(x1, y1); in FromCmds()
114 path.lineTo(x1, y1); in FromCmds()
120 path.quadTo(x1, y1, x2, y2); in FromCmds()
127 path.conicTo(x1, y1, x2, y2, x3); in FromCmds()
134 path.cubicTo(x1, y1, x2, y2, x3, y3); in FromCmds()
137 path in FromCmds()
210 ToSVGString(const SkPath& path) ToSVGString() argument
222 SkPath path; FromSVGString() local
233 ApplySimplify(SkPath& path) ApplySimplify() argument
250 SkPath path; ResolveBuilder() local
261 ToCanvas(const SkPath& path, emscripten::val ctx) ToCanvas() argument
298 ToPath2D(const SkPath& path) ToPath2D() argument
307 ApplyAddRect(SkPath& path, SkScalar x, SkScalar y, SkScalar width, SkScalar height) ApplyAddRect() argument
311 ApplyAddArc(SkPath& path, SkScalar x, SkScalar y, SkScalar radius, SkScalar startAngle, SkScalar endAngle, bool ccw) ApplyAddArc() argument
320 ApplyEllipse(SkPath& path, SkScalar x, SkScalar y, SkScalar radiusX, SkScalar radiusY, SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) ApplyEllipse() argument
345 GetFillTypeString(const SkPath& path) GetFillTypeString() argument
360 ApplyDash(SkPath& path, SkScalar on, SkScalar off, SkScalar phase) ApplyDash() argument
375 ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) ApplyTrim() argument
400 ApplyStroke(SkPath& path, StrokeOpts opts) ApplyStroke() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Drosen_render_option.cpp60 SkPath path; in PaintBackground() local
64 path.addRRect(skRRect); in PaintBackground()
68 canvas->drawPath(path, paint); in PaintBackground()
73 canvas->drawPath(path, paint); in PaintBackground()
75 canvas->drawPath(path, paint); in PaintBackground()
77 RSRecordingPath path; in PaintBackground() local
80 path.AddRoundRect(tempRect, radius, radius); in PaintBackground()
85 canvas->DrawPath(path); in PaintBackground()
92 canvas->DrawPath(path); in PaintBackground()
96 canvas->DrawPath(path); in PaintBackground()
142 SkPath path; PaintLine() local
151 RSRecordingPath path; PaintLine() local
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_file_utils.cpp28 bool BundleFileUtils::IsExistDir(const char *path) in IsExistDir() argument
30 if (path == nullptr) { in IsExistDir()
35 if (stat(path, &buf) != 0) { in IsExistDir()
107 bool BundleFileUtils::RemoveFile(const char *path) in RemoveFile() argument
109 if (IsExistFile(path)) { in RemoveFile()
110 return remove(path) == 0; in RemoveFile()
111 } else if (IsExistDir(path)) { in RemoveFile()
112 DIR *dir = opendir(path); in RemoveFile()
122 std::string dirName = std::string(path) + "/" + dp->d_name; in RemoveFile()
129 return remove(path) in RemoveFile()
176 IsValidPath(const std::string &rootDir, const std::string &path) IsValidPath() argument
188 GetPathDir(const std::string &path) GetPathDir() argument
[all...]
/foundation/resourceschedule/memmgr/common/include/
H A Dkernel_interface.h46 bool EchoToPath(const char* path, const char* content);
49 bool IsFileExists(const std::string& path);
50 bool CreateFile(const std::string& path); // default mode 644(-rw-r--r--)
51 bool CreateFile(const std::string& path, const mode_t& mode);
52 bool RemoveFile(const std::string& path);
53 bool WriteToFile(const std::string& path, const std::string& content, bool truncated = true);
54 bool ReadFromFile(const std::string& path, std::string& content);
55 bool ReadLinesFromFile(const std::string& path, std::vector<std::string>& lines);
57 bool IsDirExists(const std::string& path);
58 bool IsExists(const std::string& path); // fil
[all...]
/kernel/linux/linux-5.10/fs/
H A Dfs_struct.c6 #include <linux/path.h>
15 void set_fs_root(struct fs_struct *fs, const struct path *path) in set_fs_root() argument
17 struct path old_root; in set_fs_root()
19 path_get(path); in set_fs_root()
23 fs->root = *path; in set_fs_root()
34 void set_fs_pwd(struct fs_struct *fs, const struct path *path) in set_fs_pwd() argument
36 struct path old_pwd; in set_fs_pwd()
38 path_get(path); in set_fs_pwd()
[all...]

Completed in 15 milliseconds

1...<<21222324252627282930>>...494