| /third_party/libfuse/example/ |
| H A D | null.c | 36 static int null_getattr(const char *path, struct stat *stbuf, in null_getattr() argument 41 if(strcmp(path, "/") != 0) in null_getattr() 55 static int null_truncate(const char *path, off_t size, in null_truncate() argument 61 if(strcmp(path, "/") != 0) in null_truncate() 67 static int null_open(const char *path, struct fuse_file_info *fi) in null_open() argument 71 if(strcmp(path, "/") != 0) in null_open() 77 static int null_read(const char *path, char *buf, size_t size, in null_read() argument 84 if(strcmp(path, "/") != 0) in null_read() 94 static int null_write(const char *path, const char *buf, size_t size, in null_write() argument 101 if(strcmp(path, "/") ! in null_write() [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
| H A D | truncate.c | 60 char path[PATH_MAX] = {0}; in truncate_0200() local 61 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in truncate_0200() 62 FILE *f = fopen(path, "a"); in truncate_0200() 71 int result = truncate(path, vlen); in truncate_0200() 73 remove(path); in truncate_0200() 79 f = fopen(path, "r"); in truncate_0200() 90 remove(path); in truncate_0200() 104 char path[PATH_MAX] = {0}; in truncate_0300() local 105 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in truncate_0300() 106 int result = truncate(path, nle in truncate_0300() [all...] |
| /third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/ |
| H A D | lib.rs | 34 use std::path::PathBuf; 60 let header_path = dir.path().join("prop_test.h"); in run_predicate_script() 69 .map_err(|_| "error converting path into String")?; in run_predicate_script() 77 .map_err(|_| "error converting path into String")?; in run_predicate_script() 80 // If `None`, output path not specified, don't copy. in run_predicate_script() 81 if let Some(ref path) = CONTEXT.lock().unwrap().output_path { in run_predicate_script() 84 .arg(dir.path().to_str().unwrap()) in run_predicate_script() 85 .arg(path) in run_predicate_script() 116 if let Some(path) = output_path { in test_bindgen() 118 Some(String::from(PathBuf::from(path) in test_bindgen() [all...] |
| H A D | bin.rs | 21 use std::path::Path; 43 // Validate CLI argument input for fuzzed headers output path. 45 match Path::new(&v).is_dir() { in validate_path() 47 false => Err(String::from("Provided directory path does not exist.")), in validate_path() 60 Arg::with_name("path") in main() 62 .long("path") in main() 63 .value_name("PATH") in main() 66 provide directory path for header output. [default: None] ", in main() 105 let output_path: Option<&str> = matches.value_of("path"); in main() [all...] |
| /third_party/python/Tools/scripts/ |
| H A D | pysource.py | 104 for path in paths: 105 print_debug("testing: %s" % path) 106 if os.path.isfile(path): 107 if is_python(path): 108 yield path 109 elif os.path.isdir(path): 111 for dirpath, dirnames, filenames in os.walk(path): 116 fullpath = os.path [all...] |
| /third_party/skia/third_party/externals/harfbuzz/test/subset/ |
| H A D | run-repack-tests.py | 44 print (' test.test_path %s' % os.path.abspath (test.test_path)) 48 out_file = os.path.join (tempfile.mkdtemp (), test.font_name + '-subset.ttf') 79 def check_ots (path): 80 ots_report, returncode = cmd ([ots_sanitize, path]) 87 if not args or sys.argv[1].find ('hb-subset') == -1 or not os.path.exists (sys.argv[1]): 103 path = args[0] variable 104 if not path.endswith(".tests"): 105 sys.exit ("Not a valid test case path.") 107 with open (path, mode="r", encoding="utf-8") as f: 109 fails += run_test (RepackTest (path, [all...] |
| /third_party/skia/third_party/externals/tint/fuzzers/ |
| H A D | generate_spirv_corpus.py | 19 # flattening their file names by replacing path separators with underscores. 27 # generate_spirv_corpus.py <input_dir> <corpus_dir> <path to spirv-as> 40 if pathlib.Path(filename).suffix == ".spvasm": 41 yield os.path.join(root, filename) 47 " <input dir> <output dir> <spirv-as path>") 49 input_dir: str = os.path.abspath(sys.argv[1].rstrip(os.sep)) 50 corpus_dir: str = os.path.abspath(sys.argv[2]) 51 spirv_as_path: str = os.path.abspath(sys.argv[3]) 52 if os.path.exists(corpus_dir): 68 out_file = os.path [all...] |
| /third_party/typescript/src/testRunner/unittests/tsserver/ |
| H A D | projectReferenceErrors.ts | 66 path: `${dependecyLocation}/fns.ts`,
75 path: `${dependecyLocation}/tsconfig.json`,
79 path: `${usageLocation}/usage.ts`,
91 path: `${usageLocation}/tsconfig.json`,
94 references: [{ path: "../dependency" }]
102 path: `${dependecyLocation}/fns.ts`,
111 path: `${dependecyLocation}/tsconfig.json`,
115 path: `${usageLocation}/usage.ts`,
122 path: `${usageLocation}/tsconfig.json`,
125 references: [{ path [all...] |
| /third_party/typescript/tests/baselines/reference/ |
| H A D | twiceNestedKeyofIndexInference.types | 16 declare function set<T, K1 extends keyof T>(source: T, path: [K1], value: T[K1]): Set1<T, K1>;
17 >set : { <T, K1 extends keyof T>(source: T, path: [K1], value: T[K1]): Set1<T, K1>; <T, K1 extends keyof T, K2 extends keyof T[K1]>(source: T, path: [K1, K2], value: T[K1][K2]): Set2<T, K1, K2>; }
19 >path : [K1]
22 declare function set<T, K1 extends keyof T, K2 extends keyof T[K1]>(source: T, path: [K1, K2], value: T[K1][K2]): Set2<T, K1, K2>;
23 >set : { <T, K1 extends keyof T>(source: T, path: [K1], value: T[K1]): Set1<T, K1>; <T, K1 extends keyof T, K2 extends keyof T[K1]>(source: T, path: [K1, K2], value: T[K1][K2]): Set2<T, K1, K2>; }
25 >path : [K1, K2]
70 >set : { <T, K1 extends keyof T>(source: T, path: [K1], value: T[K1]): Set1<T, K1>; <T, K1 extends keyof T, K2 extends keyof T[K1]>(source: T, path [all...] |
| /third_party/python/Lib/test/test_zoneinfo/data/ |
| H A D | update_test_data.py | 38 TEST_DATA_LOC = pathlib.Path(__file__).parent 42 def get_zoneinfo_path() -> pathlib.Path: 45 for path in map(pathlib.Path, zoneinfo.TZPATH): 46 if (path / key).exists(): 47 return path 53 path = get_zoneinfo_path() 55 tzdata_zi = path / "tzdata.zi" 80 path = get_zoneinfo_path() 82 with open(path / ke [all...] |
| /third_party/python/Lib/test/test_importlib/import_/ |
| H A D | test_meta_path.py | 29 first.find_spec = lambda self, fullname, path=None, parent=None: None 56 """If there is no __path__ entry on the parent module, then 'path' is None 57 [no path]. Otherwise, the value for __path__ is passed in for the 'path' 58 argument [path set].""" 69 # [no path] 84 # [path set] 87 path = [42] 90 importer.modules[pkg_name].__path__ = path 101 self.assertIs(args[1], path) [all...] |
| /third_party/selinux/libselinux/src/ |
| H A D | ignore_path.c | 16 /* Skipping relabel path if define in ignore_cfg. */ 36 new_node->path = strdup(line); in insert_ignore_path() 37 if (new_node->path == NULL) { in insert_ignore_path() 134 static bool find_ignore_path(ignore_path_node_t *current, const char *path) in find_ignore_path() argument 137 if (strcmp(path, current->path) == 0) { in find_ignore_path() 145 enum skip_type skip_ignore_relabel(const char *path) in skip_ignore_relabel() argument 147 if (find_ignore_path(g_ignore_paths.slash_suffix_paths, path)) { in skip_ignore_relabel() 150 if (find_ignore_path(g_ignore_paths.star_suffix_paths, path)) { in skip_ignore_relabel() 161 free(temp->path); in free_ignore_list() [all...] |
| H A D | selinuxswig_python.i | 23 def restorecon(path, recursive=False, verbose=False, force=False, nthreads=1): 24 """ Restore SELinux context on a given path 27 path -- The pathname for the file or directory to be relabeled. 46 selinux_restorecon_parallel(os.path.expanduser(path), restorecon_flags, nthreads) 48 def chcon(path, context, recursive=False): 49 """ Set the SELinux context on a given path """ 50 lsetfilecon(path, context) 52 for root, dirs, files in os.walk(path): 54 lsetfilecon(os.path [all...] |
| /third_party/skia/buildtools/checkdeps/ |
| H A D | proto_checker.py | 41 """Checks if the given path is a valid path starting from |_root_dir|.""" 45 return os.path.isdir(self._root_dir + "/" + match.group(1)) 76 dependee_dir = os.path.dirname(dependee_path) 77 import_path = os.path.join(dependee_dir, import_path) 78 import_path = os.path.relpath(import_path, self._root_dir) 113 """Returns True iff the given path ends in one of the extensions 116 return os.path.splitext(file_path)[1] in ProtoChecker.EXTENSIONS 119 """Check if the new #include file path should be presubmit checked. 122 file_path: file path t [all...] |
| /third_party/vk-gl-cts/external/vulkancts/scripts/ |
| H A D | amber_verify.py | 28 scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts") 29 sys.path.insert(0, scriptPath) 42 DEFAULT_BUILD_DIR = os.path.join(tempfile.gettempdir(), "amber-verify", "{targetName}-{buildType}") 44 DEFAULT_DST_DIR = os.path.join(DEQP_DIR, "external", "vulkancts", "data", "vulkan", "prebuilt") 54 workDir = os.path.join(buildCfg.getBuildDir(), "modules", module.dirName) 59 binPath = generator.getBinaryPath(buildCfg.getBuildType(), os.path.join(".", "deqp-vk")) 83 "--dst-path", 86 help="Destination path") 98 if not os.path [all...] |
| /third_party/vulkan-loader/tests/ |
| H A D | loader_testing_main.cpp | 59 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "null_dir"); in main() 60 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "icd_manifests"); in main() 61 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "icd_env_vars_manifests"); in main() 62 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_layer_manifests"); in main() 63 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_env_var_layer_folder"); in main() 64 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_add_env_var_layer_folder"); in main() 65 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "implicit_layer_manifests"); in main() 66 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "override_layer_manifests"); in main() 67 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "app_package_manifests"); in main() 68 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTOR in main() [all...] |
| /third_party/python/Doc/library/ |
| H A D | shutil.rst | 55 *src* and *dst* are path-like objects or path names given as strings. 58 for a copy that accepts a target directory path. If *src* and *dst* 97 group are unaffected. *src* and *dst* are path-like objects or path names 116 group are unaffected. *src* and *dst* are path-like objects or path 161 should be :term:`path-like objects <path-like object>` or strings. If 164 it will be replaced. Returns the path t [all...] |
| /third_party/icu/icu4c/source/tools/gencnval/ |
| H A D | gencnval.c | 152 * path to convrtrs.txt 154 const char *path; variable 254 "\t-d or --destdir destination directory, followed by the path\n" in main() 255 "\t-s or --sourcedir source directory, followed by the path\n", in main() 269 path = argv[1]; in main() 271 path = "convrtrs.txt"; in main() 282 uprv_strcpy(end, path); in main() 283 path = pathBuf; in main() 294 in=T_FileStream_open(path, "r"); in main() 296 fprintf(stderr, "gencnval: unable to open input file %s\n", path); in main() [all...] |
| /third_party/libuv/docs/src/ |
| H A D | fs.rst | 187 .. c:member:: const char* uv_fs_t.path 189 Path affecting the request. 221 .. c:function:: int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode, uv_fs_cb cb) 240 .. c:function:: int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) 254 .. c:function:: int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb cb) 263 Equivalent to :man:`mkdtemp(3)`. The result can be found as a null terminated string at `req->path`. 267 Equivalent to :man:`mkstemp(3)`. The created file path can be found as a null terminated string at `req->path`. 272 .. c:function:: int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) 276 .. c:function:: int uv_fs_opendir(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_c [all...] |
| /third_party/python/Lib/importlib/metadata/ |
| H A D | __init__.py | 508 """A reference to a path in a package""" 519 """Return a path-like object for this path""" 543 def locate_file(self, path): 545 Given a path to a file in this distribution, return a path 586 def at(path): 587 """Return a Distribution for the indicated metadata path 589 :param path: a string or path 758 def path(self): global() member in DistributionFinder.Context [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/gencnval/ |
| H A D | gencnval.c | 151 * path to convrtrs.txt 153 const char *path; variable 253 "\t-d or --destdir destination directory, followed by the path\n" in main() 254 "\t-s or --sourcedir source directory, followed by the path\n", in main() 268 path = argv[1]; in main() 270 path = "convrtrs.txt"; in main() 281 uprv_strcpy(end, path); in main() 282 path = pathBuf; in main() 293 in=T_FileStream_open(path, "r"); in main() 295 fprintf(stderr, "gencnval: unable to open input file %s\n", path); in main() [all...] |
| /third_party/protobuf/python/google/protobuf/internal/ |
| H A D | well_known_types.py | 425 for path in self.paths: 426 camelcase_paths.append(_SnakeCaseToCamelCase(path)) 433 for path in value.split(','): 434 self.paths.append(_CamelCaseToSnakeCase(path)) 438 for path in self.paths: 439 if not _IsValidPath(message_descriptor, path): 452 Removes paths that are covered by another path. For example, 476 for path in mask2.paths: 477 tree.IntersectPath(path, intersection) 498 def _IsValidPath(message_descriptor, path) [all...] |
| /third_party/skia/ |
| H A D | OAT.xml | 24 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
25 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
27 "compatibility" is used to check license compatibility in the specified path;
28 "license" is used to check source license header in the specified path;
29 "copyright" is used to check source copyright header in the specified path;
30 "import" is used to check source dependency in the specified path, such as import ... ,include ...
31 "filetype" is used to check file type in the specified path, supported file types: archive, binary
32 "filename" is used to check whether the specified file exists in the specified path(projectroot means the root dir of the project), supported file names: LICENSE, README, README.OpenSource
34 5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
38 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path [all...] |
| /base/security/code_signature/services/key_enable/src/ |
| H A D | profile_utils.rs | 69 /// add cert path error 294 let path = entry.path(); in get_paths_from_prefix() 295 let filename = fmt_store_path(&path.to_string_lossy(), PROFILE_STORE_TAIL); in get_paths_from_prefix() 304 /// add profile cert path data 325 for path in profiles_paths { in process_profile() 327 if load_bytes_from_file(&path, &mut pkcs7_data).is_err() { in process_profile() 328 info!(LOG_LABEL, "load profile failed {}!", @public(path)); in process_profile() 331 info!(LOG_LABEL, "load profile success {}!", @public(path)); in process_profile() 335 error!(LOG_LABEL, "load profile to pkcs7 obj failed {}!", @public(path)); in process_profile() [all...] |
| /base/startup/appspawn/modules/sandbox/ |
| H A D | sandbox_cfgvar.c | 39 return -1, "Failed to format path app: %{public}s", context->bundleName); in VarPackageNameIndexReplace() 49 return -1, "Failed to format path app: %{public}s", context->bundleName); in VarPackageNameReplace() 67 return -1, "Failed to format path app: %{public}s", context->bundleName); in VarCurrentUseIdReplace() 88 "Failed to format path app: %{public}s", arkWebPackageName); in VarArkWebPackageNameReplace() 145 char *path = extraData->data.depNode->source; in ReplaceVariableForDepPath() local 147 path = extraData->data.depNode->target; in ReplaceVariableForDepPath() 148 } else if (CHECK_FLAGS_BY_INDEX(extraData->operation, MOUNT_PATH_OP_REPLACE_BY_SRC) && IsPathEmpty(path)) { in ReplaceVariableForDepPath() 149 path = extraData->data.depNode->target; in ReplaceVariableForDepPath() 151 APPSPAWN_CHECK(path != NULL, return -1, "Invalid path in ReplaceVariableForDepPath() [all...] |