Home
last modified time | relevance | path

Searched refs:path2 (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/ia64/
H A Daliasing-test.c65 char *name, *path2; in scan_tree() local
83 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
84 strcpy(path2, path); in scan_tree()
85 strcat(path2, "/"); in scan_tree()
86 strcat(path2, name); in scan_tree()
89 rc = map_mem(path2, offset, length, touch); in scan_tree()
91 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree()
93 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree()
95 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree()
99 r = lstat(path2, &buf); in scan_tree()
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-inotify/
H A Dnew-test-inotify.patch140 os.mkdir(path2)
213 path2 = TestInotify._make_temp_path(path, 'bb')
215 i = inotify.adapters.Inotify([path1, path2])
219 TestInotify._open_write_close(path2, 'seen_new_file2')
222 + wd_path2 = get_wd(i, path2)
233 - TestInotify._event_create(wd=2, path=path2, filename='seen_new_file2'),
234 - TestInotify._event_open(wd=2, path=path2, filename='seen_new_file2'),
235 - TestInotify._event_close_write(wd=2, path=path2, filename='seen_new_file2'),
241 …s._INOTIFY_EVENT(wd=wd_path2, mask=256, cookie=0, len=16), ['IN_CREATE'], path2, u'seen_new_file2'…
242 …ters._INOTIFY_EVENT(wd=wd_path2, mask=32, cookie=0, len=16), ['IN_OPEN'], path2, u'seen_new_file2'…
[all …]
/openbmc/phosphor-power/test/
H A Dtemporary_subdirectory_tests.cpp83 fs::path path2 = subdirectory2.getPath(); in TEST() local
86 EXPECT_NE(path1, path2); in TEST()
100 EXPECT_FALSE(fs::exists(path2)); in TEST()
137 fs::path path2 = subdirectory2.getPath(); in TEST() local
140 EXPECT_NE(path1, path2); in TEST()
143 fs::permissions(path2, fs::perms::none); in TEST()
157 fs::permissions(path2, fs::perms::owner_all); in TEST()
164 EXPECT_EQ(subdirectory2.getPath(), path2); in TEST()
165 EXPECT_TRUE(fs::exists(path2)); in TEST()
H A Dtemporary_file_tests.cpp123 fs::path path2 = file2.getPath(); in TEST() local
126 EXPECT_NE(path1, path2); in TEST()
139 EXPECT_FALSE(fs::exists(path2)); in TEST()
176 fs::path path2 = file2.getPath(); in TEST() local
179 EXPECT_NE(path1, path2); in TEST()
182 makeFileUnRemovable(path2); in TEST()
200 EXPECT_EQ(file2.getPath(), path2); in TEST()
201 EXPECT_TRUE(fs::exists(path2)); in TEST()
204 makeFileRemovable(path2); in TEST()
/openbmc/linux/tools/perf/util/
H A Dpath.c37 int path__join(char *bf, size_t size, const char *path1, const char *path2) in path__join() argument
39 return scnprintf(bf, size, "%s%s%s", path1, path1[0] ? "/" : "", path2); in path__join()
42 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3) in path__join3() argument
45 path2, path2[0] ? "/" : "", path3); in path__join3()
H A Dpath.h10 int path__join(char *bf, size_t size, const char *path1, const char *path2);
11 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
/openbmc/phosphor-logging/test/openpower-pels/
H A Dtemporary_file_test.cpp166 fs::path path2 = tmpFileNoData->getPath(); in TEST_F() local
169 EXPECT_NE(path1, path2); in TEST_F()
182 EXPECT_FALSE(fs::exists(path2)); in TEST_F()
218 fs::path path2 = tmpFileNoData->getPath(); in TEST_F() local
221 EXPECT_NE(path1, path2); in TEST_F()
224 makeFileUnRemovable(path2); in TEST_F()
242 EXPECT_EQ(tmpFileNoData->getPath(), path2); in TEST_F()
243 EXPECT_TRUE(fs::exists(path2)); in TEST_F()
246 makeFileRemovable(path2); in TEST_F()
/openbmc/linux/include/linux/
H A Dpath.h16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() argument
18 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; in path_equal()
/openbmc/linux/security/tomoyo/
H A Dfile.c183 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
184 r->param.path2.filename1->name, in tomoyo_audit_path2_log()
185 r->param.path2.filename2->name); in tomoyo_audit_path2_log()
302 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
303 tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1) in tomoyo_check_path2_acl()
304 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
904 const struct path *path2) in tomoyo_path2_perm() argument
912 .path2 = { .mnt = path2->mnt, .dentry = path2->dentry } in tomoyo_path2_perm()
923 !tomoyo_get_realpath(&buf2, path2)) in tomoyo_path2_perm()
938 r.param.path2.operation = operation; in tomoyo_path2_perm()
[all …]
H A Dtomoyo.c267 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link() local
269 return tomoyo_path2_perm(TOMOYO_TYPE_LINK, &path1, &path2); in tomoyo_path_link()
290 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename() local
293 const int err = tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path2, in tomoyo_path_rename()
299 return tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path1, &path2); in tomoyo_path_rename()
H A Dcommon.h446 } path2; member
593 struct path path2; member
988 const struct path *path2);
H A Dmount.c104 obj.path2 = *dir; in tomoyo_mount_acl()
H A Dcondition.c728 dentry = obj->path2.dentry; in tomoyo_get_attributes()
/openbmc/openpower-hw-diags/test/
H A Dtest-util-data-file.cpp37 fs::path path2 = fullPathTempFile2; in TEST() local
46 it = find(dataPaths.begin(), dataPaths.end(), path2); in TEST()
/openbmc/sdbusplus/test/message/
H A Dtypes.cpp108 sdbusplus::message::object_path path2("/"); in TEST() local
109 path2 /= std::string("d-ef"); in TEST()
110 EXPECT_EQ(path2, sdbusplus::message::object_path("/_64_2def")); in TEST()
/openbmc/linux/kernel/
H A Daudit_tree.c874 struct path path1, path2; in audit_tag_tree() local
878 err = kern_path(new, 0, &path2); in audit_tag_tree()
881 tagged = collect_mounts(&path2); in audit_tag_tree()
882 path_put(&path2); in audit_tag_tree()
905 err = kern_path(tree->pathname, 0, &path2); in audit_tag_tree()
907 good_one = path_is_under(&path1, &path2); in audit_tag_tree()
908 path_put(&path2); in audit_tag_tree()
/openbmc/linux/fs/ext4/
H A Dextents.c5646 struct ext4_ext_path *path2 = NULL; in ext4_swap_extents() local
5671 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5672 if (IS_ERR(path2)) { in ext4_swap_extents()
5673 *erp = PTR_ERR(path2); in ext4_swap_extents()
5674 path2 = NULL; in ext4_swap_extents()
5678 ex2 = path2[path2->p_depth].p_ext; in ext4_swap_extents()
5695 next2 = ext4_ext_next_allocated_block(path2); in ext4_swap_extents()
5727 &path2, lblk2, 0); in ext4_swap_extents()
5753 &path2, lblk2 + len, 0); in ext4_swap_extents()
5766 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/systemd/systemd-systemctl/
H A Dsystemctl33 for path2 in sorted((root / location / "system" / dirname).glob("*.conf")):
34 self._parse(root, path2)
/openbmc/linux/fs/btrfs/
H A Dfree-space-tree.c1070 struct btrfs_path *path, *path2; in populate_free_space_tree() local
1080 path2 = btrfs_alloc_path(); in populate_free_space_tree()
1081 if (!path2) { in populate_free_space_tree()
1086 ret = add_new_free_space_info(trans, block_group, path2); in populate_free_space_tree()
1122 path2, start, in populate_free_space_tree()
1145 ret = __add_to_free_space_tree(trans, block_group, path2, in populate_free_space_tree()
1155 btrfs_free_path(path2); in populate_free_space_tree()
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd-systemctl/
H A Dsystemctl41 for path2 in sorted(files):
42 self._parse(root, path2)
/openbmc/u-boot/Documentation/sphinx/
H A Dkfigure.py105 def isNewer(path1, path2): argument
112 and os.stat(path1).st_ctime > os.stat(path2).st_ctime)
/openbmc/qemu/block/
H A Dvvfat.c2022 char path2[PATH_MAX + 1]; in check_directory_consistency() local
2025 pstrcpy(path2, sizeof(path2), path); in check_directory_consistency()
2026 path2[path_len] = '/'; in check_directory_consistency()
2027 path2[path_len + 1] = '\0'; in check_directory_consistency()
2103 pstrcpy(path2 + path_len + 1, sizeof(path2) - path_len - 1, in check_directory_consistency()
2108 … DLOG(fprintf(stderr, "invalid begin for directory: %s\n", path2); print_direntry(direntries + i)); in check_directory_consistency()
2112 begin_of_direntry(direntries + i), path2); in check_directory_consistency()
2114 … DLOG(fprintf(stderr, "problem in directory %s:\n", path2); print_direntry(direntries + i)); in check_directory_consistency()
2119 cluster_count = get_cluster_count_for_direntry(s, direntries + i, path2); in check_directory_consistency()
/openbmc/linux/Documentation/sphinx/
H A Dkfigure.py99 def isNewer(path1, path2): argument
106 and os.stat(path1).st_ctime > os.stat(path2).st_ctime)
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dphy.c1012 u8 path1, path2; in rtl92s_phy_bb_config() local
1024 path2 = (u8)(rtl92s_phy_query_bb_reg(hw, ROFDM0_TRXPATHENABLE, 0xf)); in rtl92s_phy_bb_config()
1025 pathmap = path1 | path2; in rtl92s_phy_bb_config()
1040 path1, path2, pathmap); in rtl92s_phy_bb_config()
/openbmc/linux/fs/ceph/
H A Dmds_client.c2870 const char *path2 = NULL; in create_request_message() local
2900 &path2, &pathlen2, &ino2, &freepath2, true); in create_request_message()
3006 ceph_encode_filepath(&p, end, ino2, path2); in create_request_message()
3070 ceph_mdsc_free_path((char *)path2, pathlen2); in create_request_message()

12