/kernel/linux/linux-5.10/tools/include/nolibc/ |
H A D | nolibc.h | 1473 int sys_chdir(const char *path) in sys_chdir() argument 1475 return my_syscall1(__NR_chdir, path); in sys_chdir() 1479 int sys_chmod(const char *path, mode_t mode) in sys_chmod() argument 1482 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod() 1484 return my_syscall2(__NR_chmod, path, mode); in sys_chmod() 1489 int sys_chown(const char *path, uid_t owner, gid_t group) in sys_chown() argument 1492 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown() 1494 return my_syscall3(__NR_chown, path, owner, group); in sys_chown() 1499 int sys_chroot(const char *path) in sys_chroot() argument 1501 return my_syscall1(__NR_chroot, path); in sys_chroot() 1593 sys_mkdir(const char *path, mode_t mode) sys_mkdir() argument 1603 sys_mknod(const char *path, mode_t mode, dev_t dev) sys_mknod() argument 1620 sys_open(const char *path, int flags, mode_t mode) sys_open() argument 1698 sys_stat(const char *path, struct stat *buf) sys_stat() argument 1743 sys_umount2(const char *path, int flags) sys_umount2() argument 1749 sys_unlink(const char *path) sys_unlink() argument 1807 chdir(const char *path) chdir() argument 1819 chmod(const char *path, mode_t mode) chmod() argument 1831 chown(const char *path, uid_t owner, gid_t group) chown() argument 1843 chroot(const char *path) chroot() argument 2011 mkdir(const char *path, mode_t mode) mkdir() argument 2023 mknod(const char *path, mode_t mode, dev_t dev) mknod() argument 2049 open(const char *path, int flags, mode_t mode) open() argument 2181 stat(const char *path, struct stat *buf) stat() argument 2217 umount2(const char *path, int flags) umount2() argument 2229 unlink(const char *path) unlink() argument [all...] |
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | usdt.c | 305 static int sanity_check_usdt_elf(Elf *elf, const char *path) in sanity_check_usdt_elf() argument 311 pr_warn("usdt: unrecognized ELF kind %d for '%s'\n", elf_kind(elf), path); in sanity_check_usdt_elf() 318 pr_warn("usdt: attaching to 64-bit ELF binary '%s' is not supported\n", path); in sanity_check_usdt_elf() 324 pr_warn("usdt: attaching to 32-bit ELF binary '%s' is not supported\n", path); in sanity_check_usdt_elf() 329 pr_warn("usdt: unsupported ELF class for '%s'\n", path); in sanity_check_usdt_elf() 338 path, ehdr.e_type); in sanity_check_usdt_elf() 350 pr_warn("usdt: ELF endianness mismatch for '%s'\n", path); in sanity_check_usdt_elf() 400 static int parse_elf_segs(Elf *elf, const char *path, struct elf_seg **segs, size_t *seg_cnt) in parse_elf_segs() argument 422 i, path, (long)phdr.p_vaddr, (long)phdr.p_memsz, (long)phdr.p_offset, in parse_elf_segs() 442 pr_warn("usdt: failed to find PT_LOAD program headers in '%s'\n", path); in parse_elf_segs() 452 char path[PATH_MAX], line[PATH_MAX], mode[16]; parse_vma_segs() local 578 collect_usdt_targets(struct usdt_manager *man, Elf *elf, const char *path, pid_t pid, const char *usdt_provider, const char *usdt_name, __u64 usdt_cookie, struct usdt_target **out_targets, size_t *out_target_cnt) collect_usdt_targets() argument 955 usdt_manager_attach_usdt(struct usdt_manager *man, const struct bpf_program *prog, pid_t pid, const char *path, const char *usdt_provider, const char *usdt_name, __u64 usdt_cookie) usdt_manager_attach_usdt() argument 1133 parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, const char *data, size_t name_off, size_t desc_off, struct usdt_note *note) parse_usdt_note() argument [all...] |
/third_party/json/tests/src/ |
H A D | unit-json_patch.cpp | 27 json op1 = R"({ "op": "add", "path": "/a/b/c", "value": "foo" })"_json; 28 json op2 = R"({ "path": "/a/b/c", "op": "add", "value": "foo" })"_json; 29 json op3 = R"({ "value": "foo", "path": "/a/b/c", "op": "add" })"_json; 38 json patch1 = R"([{ "op": "add", "path": "/a/b", "value": [ "foo", "bar" ] }])"_json; 66 json patch2 = R"([{ "op": "add", "path": "/a/b/c", "value": 1 }])"_json; 81 json patch = {{{"op", "remove"}, {"path", "/1"}}}; 95 { "op": "add", "path": "/baz", "value": "qux" } 124 { "op": "add", "path": "/foo/1", "value": "qux" } 153 { "op": "remove", "path": "/baz" } 179 { "op": "remove", "path" [all...] |
/third_party/libbpf/src/ |
H A D | usdt.c | 305 static int sanity_check_usdt_elf(Elf *elf, const char *path) in sanity_check_usdt_elf() argument 311 pr_warn("usdt: unrecognized ELF kind %d for '%s'\n", elf_kind(elf), path); in sanity_check_usdt_elf() 318 pr_warn("usdt: attaching to 64-bit ELF binary '%s' is not supported\n", path); in sanity_check_usdt_elf() 324 pr_warn("usdt: attaching to 32-bit ELF binary '%s' is not supported\n", path); in sanity_check_usdt_elf() 329 pr_warn("usdt: unsupported ELF class for '%s'\n", path); in sanity_check_usdt_elf() 338 path, ehdr.e_type); in sanity_check_usdt_elf() 350 pr_warn("usdt: ELF endianness mismatch for '%s'\n", path); in sanity_check_usdt_elf() 400 static int parse_elf_segs(Elf *elf, const char *path, struct elf_seg **segs, size_t *seg_cnt) in parse_elf_segs() argument 422 i, path, (long)phdr.p_vaddr, (long)phdr.p_memsz, (long)phdr.p_offset, in parse_elf_segs() 442 pr_warn("usdt: failed to find PT_LOAD program headers in '%s'\n", path); in parse_elf_segs() 452 char path[PATH_MAX], line[PATH_MAX], mode[16]; parse_vma_segs() local 578 collect_usdt_targets(struct usdt_manager *man, Elf *elf, const char *path, pid_t pid, const char *usdt_provider, const char *usdt_name, __u64 usdt_cookie, struct usdt_target **out_targets, size_t *out_target_cnt) collect_usdt_targets() argument 955 usdt_manager_attach_usdt(struct usdt_manager *man, const struct bpf_program *prog, pid_t pid, const char *path, const char *usdt_provider, const char *usdt_name, __u64 usdt_cookie) usdt_manager_attach_usdt() argument 1133 parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, const char *data, size_t name_off, size_t desc_off, struct usdt_note *note) parse_usdt_note() argument [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_spec.py | 7 import os.path namespace 18 def __init__(self, path=None, is_package=None): 19 self.path = path 26 if name == 'get_filename' and self.path is not None: 33 return self.path 69 self.path = 'spam.py' 70 self.cached = self.util.cache_from_source(self.path) 74 origin=self.path) 144 origin=self.path, [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | block-group.c | 505 struct btrfs_path *path; in load_extent_tree_free() local 514 path = btrfs_alloc_path(); in load_extent_tree_free() 515 if (!path) in load_extent_tree_free() 535 path->skip_locking = 1; in load_extent_tree_free() 536 path->search_commit_root = 1; in load_extent_tree_free() 537 path->reada = READA_FORWARD; in load_extent_tree_free() 544 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in load_extent_tree_free() 548 leaf = path->nodes[0]; in load_extent_tree_free() 557 if (path->slots[0] < nritems) { in load_extent_tree_free() 558 btrfs_item_key_to_cpu(leaf, &key, path in load_extent_tree_free() 879 remove_block_group_item(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_block_group *block_group) remove_block_group_item() argument 907 struct btrfs_path *path; btrfs_remove_block_group() local 1547 read_bg_from_eb(struct btrfs_fs_info *fs_info, struct btrfs_key *key, struct btrfs_path *path) read_bg_from_eb() argument 1598 find_first_block_group(struct btrfs_fs_info *fs_info, struct btrfs_path *path, struct btrfs_key *key) find_first_block_group() argument 1888 read_block_group_item(struct btrfs_block_group *cache, struct btrfs_path *path, const struct btrfs_key *key) read_block_group_item() argument 1904 read_one_block_group(struct btrfs_fs_info *info, struct btrfs_path *path, const struct btrfs_key *key, int need_clear) read_one_block_group() argument 2008 struct btrfs_path *path; btrfs_read_block_groups() local 2343 update_block_group_item(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_block_group *cache) update_block_group_item() argument 2380 cache_save_setup(struct btrfs_block_group *block_group, struct btrfs_trans_handle *trans, struct btrfs_path *path) cache_save_setup() argument 2547 struct btrfs_path *path; btrfs_setup_space_cache() local 2587 struct btrfs_path *path = NULL; btrfs_start_dirty_block_groups() local 2753 struct btrfs_path *path; btrfs_write_dirty_block_groups() local [all...] |
/third_party/libabigail/tools/ |
H A D | abipkgdiff.cc | 282 string path; member in elf_file 288 /// The path to the elf file. 290 /// @param path the path to the elf file. 291 elf_file(const string& path) in elf_file() argument 292 : path(path) in elf_file() 294 abigail::tools_utils::base_name(path, name); in elf_file() 295 get_soname_of_elf_file(path, soname); in elf_file() 296 get_type_of_elf_file(path, typ in elf_file() 373 package(const string& path, const string& dir, kind pkg_kind = package::KIND_MAIN) package() argument 390 path() const path() function in package 397 path(const string& s) path() function in package 622 convert_path_to_relative(const string& path, string& converted_path) const convert_path_to_relative() argument 643 convert_path_to_unique_suffix(const string& path, string& converted_path) const convert_path_to_unique_suffix() argument [all...] |
/test/xts/acts/storage/storagefilesharendktest/entry/src/main/cpp/ |
H A D | fileshare.cpp | 28 char path[] = in FileShare_001() local 31 {path, sizeof(path) - 1, FileShare_OperationMode::READ_MODE}}; in FileShare_001() 67 char path[] = in FileShare_003() local 70 {path, sizeof(path) - 1, FileShare_OperationMode::READ_MODE}}; in FileShare_003() 87 char path[] = in FileShare_004() local 90 {path, sizeof(path) - 1, FileShare_OperationMode::READ_MODE}}; in FileShare_004() 109 char path[] in FileShare_005() local [all...] |
/test/xts/hats/kernel/syscalls/fileio/fchownat/ |
H A D | FchownatApiTest.cpp | 64 * @tc.desc : fchownat change specify path file owner id and group id success. 99 * @tc.desc : fchownat change current path file owner id and group id by AT_FDCWD success. 107 char path[PATH_MAX_LEN]; in HWTEST_F() local 112 char *dir = getcwd(path, sizeof(path)); in HWTEST_F() 131 chdir(path); in HWTEST_F() 166 char path[PATH_MAX_LEN]; in HWTEST_F() local 167 char *dir = getcwd(path, sizeof(path)); in HWTEST_F() 193 chdir(path); in HWTEST_F() 209 char path[PATH_MAX_LEN]; HWTEST_F() local [all...] |
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
H A D | RbPath.java | 22 * A resource bundle path, used to identify entries in ICU data. 58 * Returns a path with the specified segments in (possibly empty). Note that unlike 59 * {@link #parse(String)}, {@code '/'} is not treated specially and can be present in a path 67 * Returns a path with the specified segments in (possibly empty). Note that unlike 68 * {@link #parse(String)}, {@code '/'} is not treated specially and can be present in a path 75 /** Parses the given path string, assuming {@code '/'} as a path separator. */ 76 public static RbPath parse(String path) { in parse() argument 77 checkArgument(!path.isEmpty(), "cannot parse an empty path strin in parse() 158 contains(RbPath path) contains() argument 169 matchesSublist(RbPath path, int offset) matchesSublist() argument [all...] |
/third_party/libuv/src/ |
H A D | heap-inl.h | 112 unsigned int path; in HEAP_EXPORT() local 120 /* Calculate the path from the root to the insertion point. This is a min in HEAP_EXPORT() 123 path = 0; in HEAP_EXPORT() 125 path = (path << 1) | (n & 1); in HEAP_EXPORT() 127 /* Now traverse the heap using the path we calculated in the previous step. */ in HEAP_EXPORT() 131 if (path & 1) in HEAP_EXPORT() 135 path >>= 1; in HEAP_EXPORT() 157 unsigned int path; in HEAP_EXPORT() local 164 /* Calculate the path fro in HEAP_EXPORT() [all...] |
/third_party/mbedtls/scripts/ |
H A D | generate_driver_wrappers.py | 45 loader=jinja2.FileSystemLoader(os.path.dirname(template_path)), 47 template = environment.get_template(os.path.basename(template_path)) 59 os.path.join(template_dir, template_file_name) 63 with open(file=os.path.join(output_dir, os.path.splitext(template_file_name)[0]), 116 'transparent': os.path.join(project_root, 121 'opaque': os.path.join(project_root, 142 with open(file=os.path.join(json_directory, jsondriver_list), 148 driver_file=os.path.join(json_directory, driver_file_name)) 179 project_root = os.path [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-rmdir-recursive.js | 7 const path = require('path'); 12 'In future versions of Node.js, fs.rmdir(path, { recursive: true }) ' + 13 'will be removed. Use fs.rm(path, { recursive: true }) instead', 21 path.join(tmpdir.path, `${name}-${count++}`); 25 fs.writeFileSync(path.join(dirname, 'text.txt'), 'hello', 'utf8'); 30 fs.writeFileSync(path.join(dirname, `f-${depth}-${f}`), '', options); 37 path.join(dirname, `link-${depth}-good`), 44 path [all...] |
H A D | test-fs-utimes.js | 32 const lpath = `${tmpdir.path}/symlink`; 73 const stats = fs.statSync(tmpdir.path); 75 const asPath = (path) => path; 76 const asUrl = (path) => url.pathToFileURL(path); 101 fs.utimes(pathType(tmpdir.path), atime, mtime, common.mustCall((err) => { 102 expect_ok('utimes', tmpdir.path, err, atime, mtime); 112 fd = fs.openSync(tmpdir.path, 'r+'); 114 fd = fs.openSync(tmpdir.path, ' [all...] |
/third_party/ltp/testcases/kernel/syscalls/nftw/ |
H A D | lib64.c | 55 * Create a path containing a component of length pathconf(NAME_MAX) + 1 179 char *path, *tmpPtr; in test_ENAMETOOLONG_path() local 194 if ((path = malloc(pcPathMax + 2)) == NULL) { in test_ENAMETOOLONG_path() 195 tst_resm(TFAIL, "malloc(%zu) for path failed: %s", in test_ENAMETOOLONG_path() 200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path() 201 pathLength = (int)strlen(path); in test_ENAMETOOLONG_path() 204 /* leave some chars for element that pushes path over PC_PATH_MAX */ in test_ENAMETOOLONG_path() 207 tmpPtr = path + strlen(path); in test_ENAMETOOLONG_path() [all...] |
H A D | lib.c | 55 * Create a path containing a component of length pathconf(NAME_MAX) + 1 179 char *path, *tmpPtr; in test_ENAMETOOLONG_path() local 194 if ((path = malloc(pcPathMax + 2)) == NULL) { in test_ENAMETOOLONG_path() 195 tst_resm(TFAIL, "malloc(%zu) for path failed: %s", in test_ENAMETOOLONG_path() 200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path() 201 pathLength = (int)strlen(path); in test_ENAMETOOLONG_path() 204 /* leave some chars for element that pushes path over PC_PATH_MAX */ in test_ENAMETOOLONG_path() 207 tmpPtr = path + strlen(path); in test_ENAMETOOLONG_path() [all...] |
/third_party/node/deps/uv/src/ |
H A D | heap-inl.h | 111 unsigned int path; in HEAP_EXPORT() local 119 /* Calculate the path from the root to the insertion point. This is a min in HEAP_EXPORT() 122 path = 0; in HEAP_EXPORT() 124 path = (path << 1) | (n & 1); in HEAP_EXPORT() 126 /* Now traverse the heap using the path we calculated in the previous step. */ in HEAP_EXPORT() 130 if (path & 1) in HEAP_EXPORT() 134 path >>= 1; in HEAP_EXPORT() 156 unsigned int path; in HEAP_EXPORT() local 163 /* Calculate the path fro in HEAP_EXPORT() [all...] |
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | attr.rs | 28 let kind = if attr.path().is_ident("clap") { in parse_all() 29 Sp::new(AttrKind::Clap, attr.path().span()) in parse_all() 30 } else if attr.path().is_ident("structopt") { in parse_all() 31 Sp::new(AttrKind::StructOpt, attr.path().span()) in parse_all() 32 } else if attr.path().is_ident("command") { in parse_all() 33 Sp::new(AttrKind::Command, attr.path().span()) in parse_all() 34 } else if attr.path().is_ident("group") { in parse_all() 35 Sp::new(AttrKind::Group, attr.path().span()) in parse_all() 36 } else if attr.path().is_ident("arg") { in parse_all() 37 Sp::new(AttrKind::Arg, attr.path() in parse_all() [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_upload.py | 118 path = os.path.join(tmp, 'xxx') 119 self.write_file(path) 120 command, pyversion, filename = 'xxx', '2.6', path 167 path = os.path.join(tmp, 'xxx') 168 self.write_file(path, content='yy\r') 169 command, pyversion, filename = 'xxx', '2.6', path 195 path = os.path [all...] |
/third_party/openssl/crypto/http/ |
H A D | http_lib.c | 49 const char *path, *path_end; in OSSL_parse_url() local 94 /* look for start of optional port, path, query, or fragment */ in OSSL_parse_url() 122 /* check for optional path starting with '/' or '?'. Else must start '#' */ in OSSL_parse_url() 123 path = p; in OSSL_parse_url() 124 if (*path != '\0' && *path != '/' && *path != '?' && *path != '#') { in OSSL_parse_url() 128 path_end = query = query_end = frag = frag_end = path + strlen(path); in OSSL_parse_url() [all...] |
/third_party/skia/samplecode/ |
H A D | SampleCusp.cpp | 32 // Create a path with one or two cubics, where one has a cusp. 34 SkPath path; in cusp() local 35 path.moveTo(P[0]); in cusp() 42 path.cubicTo(P[1], P[2], P[3]); in cusp() 46 path.cubicTo(PP[1], PP[2], PP[3]); in cusp() 47 path.cubicTo(PP[4], PP[5], PP[6]); in cusp() 50 return path; in cusp() 114 SkPath path; 121 path.moveTo( SkBits2Float(dat[i].pt[0].fX), SkBits2Float(dat[i].pt[0].fY)); 122 path 126 SkPath path; global() variable [all...] |
/third_party/skia/src/pathops/ |
H A D | SkPathOpsSimplify.cpp | 140 bool SimplifyDebug(const SkPath& path, SkPath* result in SimplifyDebug() argument 143 SkPathFillType fillType = path.isInverseFillType() ? SkPathFillType::kInverseEvenOdd in SimplifyDebug() 145 if (path.isConvex()) { in SimplifyDebug() 146 if (result != &path) { in SimplifyDebug() 147 *result = path; in SimplifyDebug() 152 // turn path into list of segments in SimplifyDebug() 164 SkPathOpsDebug::DumpSimplify(path, testName); in SimplifyDebug() 170 SkOpEdgeBuilder builder(path, contourList, &globalState); in SimplifyDebug() 214 bool Simplify(const SkPath& path, SkPath* result) { in Simplify() argument 217 if (!SimplifyDebug(path, resul in Simplify() [all...] |
/third_party/skia/third_party/externals/angle2/util/ |
H A D | test_utils_unittest.cpp | 82 char path[kMaxPath] = {}; in TEST() local 83 ASSERT_TRUE(CreateTemporaryFile(path, kMaxPath)); in TEST() 84 ASSERT_TRUE(strlen(path) > 0); in TEST() 88 FILE *fp = fopen(path, "wt"); in TEST() 97 EXPECT_TRUE(ReadEntireFileToString(path, actualString, kMaxPath)); in TEST() 101 EXPECT_TRUE(angle::DeleteSystemFile(path)); in TEST() 110 char path[kMaxPath] = {}; in TEST() local 111 ASSERT_TRUE(CreateTemporaryFileInDir(tempDir, path, kMaxPath)); in TEST() 112 ASSERT_TRUE(strlen(path) > 0); in TEST() 116 FILE *fp = fopen(path, "w in TEST() [all...] |
/third_party/skia/tools/ |
H A D | git-sync-deps | 14 GIT_EXECUTABLE: path to "git" binary; if unset, will look for git in 15 your default path. 24 cd path/to/repository 28 cd path/to/repository 59 DEFAULT_DEPS_PATH = os.path.normpath( 60 os.path.join(os.path.dirname(__file__), os.pardir, 'DEPS')) 91 directory (string) the path into which the repository 97 return os.path.realpath(directory) == os.path [all...] |
/third_party/python/PC/ |
H A D | python_uwp.cpp | 68 std::wstring path { localCache.Path().c_str() }; in get_user_base() 69 if (!path.empty()) { in get_user_base() 70 return path + L"\\local-packages"; in get_user_base() 85 std::wstring path; in get_package_home() local 86 path.resize(pathLength); in get_package_home() 87 DWORD rc = GetCurrentPackagePath(&pathLength, path.data()); in get_package_home() 89 path.resize(pathLength - 1); in get_package_home() 90 return path; in get_package_home() 95 path.resize(pathLength); in get_package_home() 96 rc = GetCurrentPackagePath(&pathLength, path in get_package_home() [all...] |