Home
last modified time | relevance | path

Searched refs:path (Results 1526 - 1550 of 10146) sorted by relevance

1...<<61626364656667686970>>...406

/third_party/rust/crates/cxx/gen/lib/src/gen/
H A Dmod.rs27 use std::path::Path;
98 pub(super) fn generate_from_path(path: &Path, opt: &Opt) -> GeneratedCode {
99 let source = match read_to_string(path) {
101 Err(err) => format_err(path, "", err),
105 Err(err) => format_err(path, &source, err),
109 fn read_to_string(path: &Path) -> Result<String> { in read_to_string()
110 let bytes = if path == Path::new("-") { in read_to_string()
113 fs::read(path) in read_to_string()
117 Err(err) => Err(Error::Utf8(path.to_owned(), err.utf8_error())), in read_to_string()
/third_party/rust/crates/cxx/gen/build/src/gen/
H A Dmod.rs27 use std::path::Path;
98 pub(super) fn generate_from_path(path: &Path, opt: &Opt) -> GeneratedCode {
99 let source = match read_to_string(path) {
101 Err(err) => format_err(path, "", err),
105 Err(err) => format_err(path, &source, err),
109 fn read_to_string(path: &Path) -> Result<String> { in read_to_string()
110 let bytes = if path == Path::new("-") { in read_to_string()
113 fs::read(path) in read_to_string()
117 Err(err) => Err(Error::Utf8(path.to_owned(), err.utf8_error())), in read_to_string()
/third_party/skia/third_party/externals/angle2/src/common/
H A Dgen_packed_gl_enums.py42 def load_enums(path):
43 with open(path) as map_file:
63 def generate_include_guard(path):
64 return path.replace(".", "_").upper()
67 def header_name_from_cpp_name(path):
68 return path.replace(".cpp", ".h")
264 path_prefix = os.path.dirname(os.path.realpath(__file__)) + os.path.sep
/third_party/python/Modules/_ctypes/darwin/
H A Ddlfcn_simple.c53 extern void * dlopen(const char *path, int mode) __attribute__((weak_import));
68 void * (*ctypes_dlopen)(const char *path, int mode);
109 static void *darwin_dlopen(const char *path, int mode) in darwin_dlopen() argument
115 /* If we got no path, the app wants the global namespace, use -1 as the marker in darwin_dlopen()
117 if (!path) in darwin_dlopen()
121 ofirc = NSCreateObjectFileImageFromFile(path, &ofi); in darwin_dlopen()
126 module = NSLinkModule(ofi, path, in darwin_dlopen()
134 module = (void *)NSAddImage(path, NSADDIMAGE_OPTION_RETURN_ON_ERROR); in darwin_dlopen()
138 error(0, "Can not open \"%s\"", path); in darwin_dlopen()
142 error(0, "Can not open \"%s\"", path); in darwin_dlopen()
[all...]
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/
H A Dutil.cc26 bool WriteBinary(const std::string& path, const uint8_t* data, size_t size) { in WriteBinary() argument
27 std::ofstream spv(path, std::ios::binary); in WriteBinary()
35 const std::string* path, in LogError()
41 if (path) { in LogError()
42 auto prefix = *path + std::to_string(index); in LogError()
119 bool ReadBinary(const std::string& path, std::vector<uint32_t>* out) { in ReadBinary() argument
124 std::ifstream file(path, std::ios::binary | std::ios::ate); in ReadBinary()
149 bool WriteBinary(const std::string& path, const std::vector<uint32_t>& binary) { in WriteBinary() argument
150 return WriteBinary(path, reinterpret_cast<const uint8_t*>(binary.data()), in WriteBinary()
32 LogError(uint32_t index, const std::string& type, const std::string& message, const std::string* path, const uint8_t* data, size_t size, const std::string* wgsl) LogError() argument
/third_party/skia/gm/
H A Dblurs.cpp91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW) in DEF_SIMPLE_GM() local
95 canvas->drawPath(path, paint); in DEF_SIMPLE_GM()
97 // of the same path w.r.t. the pixel grid in DEF_SIMPLE_GM()
98 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f; in DEF_SIMPLE_GM()
100 canvas->drawPath(path, paint); in DEF_SIMPLE_GM()
109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW) in DEF_SIMPLE_GM() local
112 canvas->drawPath(path, paint); in DEF_SIMPLE_GM()
114 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f; in DEF_SIMPLE_GM()
116 canvas->drawPath(path, paint); in DEF_SIMPLE_GM()
121 canvas->drawPath(path, pain in DEF_SIMPLE_GM()
[all...]
/third_party/skia/docs/examples/
H A DSmoothBezierSplineInterpolation.cpp10 SkPath path; in REG_FIDDLE() local
12 return path; in REG_FIDDLE()
15 path.moveTo(pts[0]); in REG_FIDDLE()
16 path.lineTo(pts[1]); in REG_FIDDLE()
17 return path; in REG_FIDDLE()
51 path.moveTo(pts[0]); in REG_FIDDLE()
54 path.cubicTo(s[i].p, q, pts[i + 1]); in REG_FIDDLE()
58 path.cubicTo(s[n - 1].p, q, pts[n]); in REG_FIDDLE()
59 return path; in REG_FIDDLE()
/third_party/vk-gl-cts/framework/opengl/
H A DgluVarTypeUtil.cpp97 void parseTypePath (const char* nameWithPath, const VarType& type, TypeComponentVector& path) in parseTypePath() argument
104 path.clear(); in parseTypePath()
107 VarType curType = getVarType(type, path); in parseTypePath()
125 path.push_back(VarTypeComponent(VarTypeComponent::STRUCT_MEMBER, ndx)); in parseTypePath()
138 path.push_back(VarTypeComponent(VarTypeComponent::ARRAY_ELEMENT, ndx)); in parseTypePath()
143 path.push_back(VarTypeComponent(VarTypeComponent::MATRIX_COLUMN, ndx)); in parseTypePath()
148 path.push_back(VarTypeComponent(VarTypeComponent::VECTOR_COMPONENT, ndx)); in parseTypePath()
166 for (TypeComponentVector::const_iterator iter = format.path.begin(); iter != format.path.end(); iter++) in operator <<()
/kernel/linux/linux-5.10/fs/nfsd/
H A Dexport.c80 /* client fsidtype fsid expiry [path] */ in expkey_parse()
158 dprintk("Found the path %s\n", buf); in expkey_parse()
185 seq_puts(m, "#domain fsidtype fsid [path]\n"); in expkey_show()
326 kfree(locations[i].path); in nfsd4_fslocs_free()
353 /* client path */ in svc_export_request()
452 /* slash separated path component list */ in fsloc_parse()
457 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
458 if (!fsloc->locations[i].path) in fsloc_parse()
542 /* client path expiry [flags anonuid anongid fsid] */ in svc_export_parse()
569 /* path */ in svc_export_parse()
862 exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp, const struct path *path, struct cache_req *reqp) exp_get_by_name() argument
890 exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) exp_parent() argument
918 struct path path; exp_rootfh() local
1018 rqst_exp_get_by_name(struct svc_rqst *rqstp, struct path *path) rqst_exp_get_by_name() argument
1082 rqst_exp_parent(struct svc_rqst *rqstp, struct path *path) rqst_exp_parent() argument
[all...]
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/
H A Dcoresight-core.c33 * to the pointer of path for the source. The idr is for
39 * struct coresight_node - elements of a path, from source to sink
50 * path can exist from a tracer (associated to a CPU) to a sink.
450 * of the path, but disabling always skips the first item in the path (which is
483 * coresight_disable_path_from : Disable components in the given path beyond
487 static void coresight_disable_path_from(struct list_head *path, in coresight_disable_path_from() argument
494 nd = list_first_entry(path, struct coresight_node, link); in coresight_disable_path_from()
496 list_for_each_entry_continue(nd, path, link) { in coresight_disable_path_from()
507 type = (csdev == coresight_get_sink(path)) in coresight_disable_path_from()
537 coresight_disable_path(struct list_head *path) coresight_disable_path() argument
562 coresight_enable_path(struct list_head *path, enum cs_mode mode, void *sink_data) coresight_enable_path() argument
623 coresight_get_sink(struct list_head *path) coresight_get_sink() argument
819 _coresight_build_path(struct coresight_device *csdev, struct coresight_device *sink, struct list_head *path) _coresight_build_path() argument
878 struct list_head *path; coresight_build_path() local
906 coresight_release_path(struct list_head *path) coresight_release_path() argument
1124 struct list_head *path; coresight_enable() local
1212 struct list_head *path = NULL; coresight_disable() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dkhugepaged.c67 char path[PATH_MAX]; member
164 static int read_file(const char *path, char *buf, size_t buflen) in read_file() argument
169 fd = open(path, O_RDONLY); in read_file()
185 static int write_file(const char *path, const char *buf, size_t buflen) in write_file() argument
190 fd = open(path, O_WRONLY); in write_file()
192 printf("open(%s)\n", path); in write_file()
210 char path[PATH_MAX]; in read_string() local
215 ret = snprintf(path, PATH_MAX, THP_SYSFS "%s", name); in read_string()
221 if (!read_file(path, buf, sizeof(buf))) { in read_string()
222 perror(path); in read_string()
255 char path[PATH_MAX]; write_string() local
270 _read_num(const char *path) _read_num() argument
284 char path[PATH_MAX]; read_num() local
295 _write_num(const char *path, unsigned long num) _write_num() argument
308 char path[PATH_MAX]; write_num() local
429 char path[PATH_MAX]; get_finfo() local
[all...]
/third_party/ltp/lib/
H A Dsafe_macros.c29 void (*cleanup_fn) (void), char *path) in safe_basename()
33 rval = basename(path); in safe_basename()
37 "basename(%s) failed", path); in safe_basename()
45 const char *path) in safe_chdir()
49 rval = chdir(path); in safe_chdir()
53 "chdir(%s) failed", path); in safe_chdir()
56 "Invalid chdir(%s) return value %d", path, rval); in safe_chdir()
102 void (*cleanup_fn) (void), char *path) in safe_dirname()
106 rval = dirname(path); in safe_dirname()
110 "dirname(%s) failed", path); in safe_dirname()
28 safe_basename(const char *file, const int lineno, void (*cleanup_fn) (void), char *path) safe_basename() argument
44 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), const char *path) safe_chdir() argument
101 safe_dirname(const char *file, const int lineno, void (*cleanup_fn) (void), char *path) safe_dirname() argument
483 safe_readlink(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, char *buf, size_t bufsize) safe_readlink() argument
690 safe_chmod(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, mode_t mode) safe_chmod() argument
728 safe_chown(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, uid_t owner, gid_t group) safe_chown() argument
1053 safe_getxattr(const char *file, const int lineno, const char *path, const char *name, void *value, size_t size) safe_getxattr() argument
1079 safe_setxattr(const char *file, const int lineno, const char *path, const char *name, const void *value, size_t size, int flags) safe_setxattr() argument
1106 safe_lsetxattr(const char *file, const int lineno, const char *path, const char *name, const void *value, size_t size, int flags) safe_lsetxattr() argument
1160 safe_removexattr(const char *file, const int lineno, const char *path, const char *name) safe_removexattr() argument
1185 safe_lremovexattr(const char *file, const int lineno, const char *path, const char *name) safe_lremovexattr() argument
[all...]
/third_party/ninja/src/
H A Dninja.cc115 /// Get the Node for a given command-line path, handling features like
262 string path = input_file; in RebuildManifest() local
263 if (path.empty()) { in RebuildManifest()
264 *err = "empty path"; in RebuildManifest()
267 uint64_t slash_bits; // Unused because this path is only used for lookup. in RebuildManifest()
268 CanonicalizePath(&path, &slash_bits); in RebuildManifest()
269 Node* node = state_.LookupNode(path); in RebuildManifest()
299 BuildLog::LogEntry* log_entry = build_log_.LookupByOutput(out->path()); in ParsePreviousElapsedTimes()
310 string path = cpath; in CollectTarget() local
311 if (path in CollectTarget()
1300 string path = ".ninja_deps"; OpenDepsLog() local
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dpmu.c160 char path[PATH_MAX]; in perf_pmu_format__load() local
166 if (!perf_pmu__pathname_scnprintf(path, sizeof(path), pmu->name, "format")) in perf_pmu_format__load()
169 assert(strlen(path) + strlen(format->name) + 2 < sizeof(path)); in perf_pmu_format__load()
170 strcat(path, "/"); in perf_pmu_format__load()
171 strcat(path, format->name); in perf_pmu_format__load()
173 file = fopen(path, "r"); in perf_pmu_format__load()
293 char path[PATH_MAX]; in perf_pmu__parse_scale() local
295 len = perf_pmu__event_source_devices_scnprintf(path, sizeo in perf_pmu__parse_scale()
324 char path[PATH_MAX]; perf_pmu__parse_unit() local
360 char path[PATH_MAX]; perf_pmu__parse_per_pkg() local
381 char path[PATH_MAX]; perf_pmu__parse_snapshot() local
600 char path[PATH_MAX]; pmu_aliases_parse() local
729 char path[PATH_MAX], *str; pmu_id() local
751 char path[PATH_MAX]; is_sysfs_pmu_core() local
1763 char path[PATH_MAX]; perf_pmu__open_file() local
1819 char path[PATH_MAX]; perf_pmu__file_exists() local
2008 char path[PATH_MAX]; perf_pmu__event_source_devices_fd() local
2041 char path[PATH_MAX]; perf_pmu__pathname_fd() local
[all...]
/third_party/python/Lib/http/
H A Dcookiejar.py481 known_attrs = ("expires", "domain", "path", "secure",
651 path = escape_path(parts.path)
652 if not path.startswith("/"):
654 path = "/" + path
655 return path
677 def escape_path(path):
681 # path characters, we pick UTF-8, as recommended in the HTML 4.0
687 path
[all...]
/test/xts/acts/ai/nncore/common/
H A Dnncore_utils.cpp362 PathType CheckPath(const std::string &path) in CheckPath() argument
364 if (path.empty()) { in CheckPath()
365 LOGI("CheckPath: path is null"); in CheckPath()
369 if (stat(path.c_str(), &buf) == 0) { in CheckPath()
378 LOGI("%s not found", path.c_str()); in CheckPath()
382 bool DeleteFile(const std::string &path) in DeleteFile() argument
384 if (path.empty()) { in DeleteFile()
385 LOGI("DeleteFile: path is null"); in DeleteFile()
388 if (CheckPath(path) == PathType::NOT_FOUND) { in DeleteFile()
389 LOGI("not found: %s", path in DeleteFile()
426 DeleteFolder(const std::string &path) DeleteFolder() argument
462 CreateFolder(const std::string &path) CreateFolder() argument
[all...]
/third_party/lzma/CPP/7zip/UI/FileManager/
H A DBrowseDialog.cpp112 bool GetParentPath(const UString &path, UString &parentPrefix, UString &name);
463 bool CBrowseDialog::GetParentPath(const UString &path, UString &parentPrefix, UString &name) in GetParentPath() argument
467 if (path.IsEmpty()) in GetParentPath()
469 if (_topDirPrefix == path) in GetParentPath()
471 UString s = path; in GetParentPath()
829 bool MyBrowseForFolder(HWND owner, LPCWSTR title, LPCWSTR path, UString &resultPath) in MyBrowseForFolder() argument
836 if (!IsSuperOrDevicePath(path)) in MyBrowseForFolder()
837 if (MyStringLen(path) < MAX_PATH) in MyBrowseForFolder()
839 return NShell::BrowseForFolder(owner, title, path, resultPath); in MyBrowseForFolder()
849 if (path) in MyBrowseForFolder()
962 RemoveDotsAndSpaces(UString &path) RemoveDotsAndSpaces() argument
978 UString path = path2; CorrectFsPath() local
1069 CorrectFsPath(const UString & , const UString &path, UString &result) CorrectFsPath() argument
[all...]
/kernel/linux/linux-6.6/fs/smb/server/
H A Dmisc.h18 const struct path *path);
20 void ksmbd_conv_path_to_unix(char *path);
21 void ksmbd_strip_last_slash(char *path);
22 void ksmbd_conv_path_to_windows(char *path);
/kernel/liteos_a/fs/fat/virpart/include/
H A Dvirpartff.h41 FRESULT follow_virentry(FFOBJID *obj, const TCHAR *path);
43 FRESULT f_checkname(const TCHAR *path);
49 FRESULT f_checkvirpart(FATFS *fs, const TCHAR *path, BYTE vol);
50 FRESULT f_makevirpart(FATFS *fs, const TCHAR *path, BYTE vol);
51 FRESULT f_getvirfree(const TCHAR *path, DWORD *nclst, DWORD *cclst);
/test/xts/acts/commonlibrary/toolchain/libc-test/include/
H A Dgetfiles.cpp26 std::vector<std::string> Runtest::GetFileNames(std::string path) in GetFileNames() argument
29 GetTestNames(path, tempName); in GetFileNames()
31 if ((tempName[i].find("stat", path.length() - 1) != -1) || in GetFileNames()
32 (tempName[i].find("sem_close-unmap", path.length() - 1) != -1) || in GetFileNames()
33 (tempName[i].find("runtest", path.length() - 1) != -1)) { in GetFileNames()
/third_party/NuttX/fs/driver/
H A Dfs_registerblockdriver.c46 * path - The path to the vnode to create
56 * EINVAL - 'path' is invalid for this operation
57 * EEXIST - An vnode already exists at 'path'
62 int register_blockdriver(const char *path, in register_blockdriver() argument
69 if (path == NULL || strlen(path) >= PATH_MAX || strncmp("/dev/", path, DEV_PATH_LEN) != 0) in register_blockdriver()
87 ret = VnodeLookup(path, &vp, V_CREATE | V_DUMMY); in register_blockdriver()
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/tools/
H A Dminimize.py11 Expects the path to the minimizer tools, e.g. something like:
12 path/to/src/python/bot/minimizer
21 BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
22 OUT_PATH = os.path.join(BASE_PATH, 'out.js')
23 FAILURES_JSON_PATH = os.path.join(
26 assert(len(sys.argv) > 1, 'Need to specify minimizer path.')
/third_party/node/test/parallel/
H A Dtest-debugger-heap-profiler.js9 const path = require('path');
15 const filename = path.join(tmpdir.path, 'node.heapsnapshot');
19 const opts = { cwd: tmpdir.path };
20 const cli = startCLI(['--port=0', fixtures.path('debugger/empty.js')], [], opts);
/third_party/node/benchmark/module/
H A Dmodule-loader-circular.js3 const path = require('path');
8 path.resolve(tmpdir.path, 'benchmark-module-circular');
17 const aDotJS = path.join(benchmarkDirectory, 'a.js');
18 const bDotJS = path.join(benchmarkDirectory, 'b.js');
/third_party/node/benchmark/fs/
H A Dbench-realpathSync.js5 const path = require('path');
8 const resolved_path = path.resolve(__dirname, '../../lib/');
9 const relative_path = path.relative(__dirname, '../../lib/');
18 const path = pathType === 'relative' ? relative_path : resolved_path;
21 fs.realpathSync(path);

Completed in 19 milliseconds

1...<<61626364656667686970>>...406