/base/startup/init/test/systest/ |
H A D | loopserver_systest.c | 73 int MakeDirRec(const char *path, mode_t mode, int lastPath) in MakeDirRec() argument 75 if (path == NULL || *path == '\0') { in MakeDirRec() 76 printf("Invalid path to create \n"); in MakeDirRec() 82 const char *p = path; in MakeDirRec() 83 char *curPos = strchr(path, slash); in MakeDirRec() 92 int ret = memcpy_s(buffer, PATH_MAX, path, p - path - 1); in MakeDirRec() 94 printf("Failed to copy path \n"); in MakeDirRec() 106 if (mkdir(path, mod in MakeDirRec() 124 char path[128] = {0}; CreatePipeServer() local 152 char path[128] = {0}; CreateTcpServer() local [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | inode.c | 441 struct path path; in bpf_obj_do_pin() local 445 dentry = user_path_create(path_fd, pathname, &path, 0); in bpf_obj_do_pin() 449 dir = d_inode(path.dentry); in bpf_obj_do_pin() 456 ret = security_path_mknod(&path, dentry, mode, 0); in bpf_obj_do_pin() 474 done_path_create(&path, dentry); in bpf_obj_do_pin() 499 struct path path; in bpf_obj_do_get() local 503 ret = user_path_at(path_fd, pathname, LOOKUP_FOLLOW, &path); in bpf_obj_do_get() 507 inode = d_backing_inode(path in bpf_obj_do_get() 586 struct path path; bpf_prog_get_type_path() local [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | usprep.cpp | 113 pathkey.pointer = b->path; in hashEntry() 127 path1.pointer = b1->path; in compareEntries() 128 path2.pointer = b2->path; in compareEntries() 174 if(key->path != NULL) { in usprep_internal_flushCache() 175 uprv_free(key->path); in usprep_internal_flushCache() 176 key->path=NULL; in usprep_internal_flushCache() 226 const char* path, in loadData() 243 //TODO: change the path in loadData() 244 dataMemory=udata_openChoice(path, type, name, isSPrepAcceptable, NULL, errorCode); in loadData() 305 usprep_getProfile(const char* path, in usprep_getProfile() argument 225 loadData(UStringPrepProfile* profile, const char* path, const char* name, const char* type, UErrorCode* errorCode) loadData() argument 392 usprep_open(const char* path, const char* name, UErrorCode* status) usprep_open() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | usprep.cpp | 113 pathkey.pointer = b->path; in hashEntry() 127 path1.pointer = b1->path; in compareEntries() 128 path2.pointer = b2->path; in compareEntries() 174 if(key->path != nullptr) { in usprep_internal_flushCache() 175 uprv_free(key->path); in usprep_internal_flushCache() 176 key->path=nullptr; in usprep_internal_flushCache() 226 const char* path, in loadData() 243 //TODO: change the path in loadData() 244 dataMemory=udata_openChoice(path, type, name, isSPrepAcceptable, nullptr, errorCode); in loadData() 305 usprep_getProfile(const char* path, in usprep_getProfile() argument 225 loadData(UStringPrepProfile* profile, const char* path, const char* name, const char* type, UErrorCode* errorCode) loadData() argument 392 usprep_open(const char* path, const char* name, UErrorCode* status) usprep_open() argument [all...] |
/third_party/ninja/ |
H A D | configure.py | 28 sourcedir = os.path.dirname(os.path.realpath(__file__)) 29 sys.path.insert(0, os.path.join(sourcedir, 'misc')) 182 def _shell_escape(self, path): 184 return '"%s"' % path if ' ' in path else path 219 default=os.path.basename(sys.executable)) 250 n.comment('It is generated by ' + os.path [all...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | persistent-map.h | 125 // Output the path to this {FocusedTree} and its length. If no such 126 // {FocusedTree} exists, return {nullptr} and output the path to the last node 128 // path and may be less than the length of the found {FocusedTree}. 130 std::array<const FocusedTree*, kHashBits>* path, 133 // Load value from the leaf node on the focused path of {tree}. 137 // (bit==kRight) child of the node on the path of {tree} at tree level 142 // Find the leftmost path in the tree, starting at the node at tree level 143 // {level} on the path of {start}. Output the level of the leaf to {level} and 144 // the path to {path} 187 const FocusedTree*& path(int i) { path() function 427 FindHash( HashValue hash, std::array<const FocusedTree*, kHashBits>* path, int* length) const FindHash() argument 488 FindLeftmost( const FocusedTree* start, int* level, std::array<const FocusedTree*, kHashBits>* path) FindLeftmost() argument [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/common/ |
H A D | usprep.cpp | 113 pathkey.pointer = b->path; in hashEntry() 127 path1.pointer = b1->path; in compareEntries() 128 path2.pointer = b2->path; in compareEntries() 174 if(key->path != NULL) { in usprep_internal_flushCache() 175 uprv_free(key->path); in usprep_internal_flushCache() 176 key->path=NULL; in usprep_internal_flushCache() 226 const char* path, in loadData() 243 //TODO: change the path in loadData() 244 dataMemory=udata_openChoice(path, type, name, isSPrepAcceptable, NULL, errorCode); in loadData() 305 usprep_getProfile(const char* path, in usprep_getProfile() argument 225 loadData(UStringPrepProfile* profile, const char* path, const char* name, const char* type, UErrorCode* errorCode) loadData() argument 392 usprep_open(const char* path, const char* name, UErrorCode* status) usprep_open() argument [all...] |
/third_party/toybox/lib/ |
H A D | lib.h | 103 struct dirtree *dirtree_flagread(char *path, int flags, 105 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node)); 118 #define ABS_PATH 1 // all but last path component must exist 119 #define ABS_FILE 2 // last path component must exist 120 #define ABS_KEEP 4 // don't resolve symlinks in path to last component 121 #define ABS_LAST 8 // don't resolve symlink in last path component 150 void xaccess(char *path, int flags); 151 void xunlink(char *path); 154 int xcreate(char *path, int flags, int mode); 155 int xopen(char *path, in [all...] |
/third_party/toybox/porting/liteos_a/lib/ |
H A D | lib.h | 105 struct dirtree *dirtree_flagread(char *path, int flags, 107 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node)); 145 void xaccess(char *path, int flags); 146 void xunlink(char *path); 149 int xcreate(char *path, int flags, int mode); 150 int xopen(char *path, int flags); 151 int xcreate_stdio(char *path, int flags, int mode); 152 int xopen_stdio(char *path, int flags); 153 int openro(char *path, int flags); 154 int xopenro(char *path); [all...] |
/third_party/protobuf/src/google/protobuf/util/internal/ |
H A D | default_value_objectwriter.cc | 192 const std::vector<std::string>& path, bool suppress_empty_list, in CreateNewNode() 195 return new Node(name, type, kind, data, is_placeholder, path, in CreateNewNode() 203 const std::vector<std::string>& path, bool suppress_empty_list, in Node() 212 path_(path), in Node() 326 std::vector<std::string> path; in PopulateChildren() local 328 path.insert(path.begin(), path_.begin(), path_.end()); in PopulateChildren() 330 path.push_back(field.name()); in PopulateChildren() 331 if (field_scrub_callback_ && field_scrub_callback_(path, &field)) { in PopulateChildren() 389 true, path, suppress_empty_list in PopulateChildren() 189 CreateNewNode( const std::string& name, const google::protobuf::Type* type, NodeKind kind, const DataPiece& data, bool is_placeholder, const std::vector<std::string>& path, bool suppress_empty_list, bool preserve_proto_field_names, bool use_ints_for_enums, FieldScrubCallBack field_scrub_callback) CreateNewNode() argument 200 Node( const std::string& name, const google::protobuf::Type* type, NodeKind kind, const DataPiece& data, bool is_placeholder, const std::vector<std::string>& path, bool suppress_empty_list, bool preserve_proto_field_names, bool use_ints_for_enums, FieldScrubCallBack field_scrub_callback) Node() argument 490 std::vector<std::string> path; StartObject() local 492 DataPiece::NullData(), false, path, StartObject() local 541 std::vector<std::string> path; StartList() local 543 DataPiece::NullData(), false, path, StartList() local [all...] |
/base/update/updater/services/package/pkg_manager/ |
H A D | pkg_managerImpl.cpp | 100 int32_t PkgManagerImpl::CreatePackage(const std::string &path, const std::string &keyName, PkgInfoPtr header,
in CreatePackage() argument 113 PkgFilePtr pkgFile = CreatePackage<ZipFileInfo>(path, header, files, offset);
in CreatePackage() 122 int32_t PkgManagerImpl::CreatePackage(const std::string &path, const std::string &keyName, PkgInfoPtr header,
in CreatePackage() argument 135 PkgFilePtr pkgFile = CreatePackage<ComponentInfo>(path, header, files, offset);
in CreatePackage() 145 int32_t PkgManagerImpl::CreatePackage(const std::string &path, const std::string &keyName, PkgInfoPtr header,
in CreatePackage() argument 158 PkgFilePtr pkgFile = CreatePackage<Lz4FileInfo>(path, header, files, offset);
in CreatePackage() 169 PkgFilePtr PkgManagerImpl::CreatePackage(const std::string &path, PkgInfoPtr header,
in CreatePackage() argument 173 int32_t ret = CreatePkgStream(stream, path, 0, PkgStream::PkgStreamType_Write);
in CreatePackage() 175 PKG_LOGE("CreatePackage fail %s", path.c_str());
in CreatePackage() 182 PKG_LOGE("CreatePackage fail %s", path in CreatePackage() 332 GetExtraPath(const std::string &path) GetExtraPath() argument 343 ExtraAndLoadPackage(const std::string &path, const std::string &name, PkgFile::PkgType type, std::vector<std::string> &fileIds) ExtraAndLoadPackage() argument 434 ExtractFile(const std::string &path, PkgManager::StreamPtr output) ExtractFile() argument 474 GetFileInfo(const std::string &path) GetFileInfo() argument 483 GetPkgEntry(const std::string &path) GetPkgEntry() argument 644 GetPkgName(const std::string &path) DoCreatePkgStream() argument 664 GetPkgTypeByName(const std::string &path) DoCreatePkgStream() argument [all...] |
/kernel/linux/linux-5.10/fs/notify/fanotify/ |
H A D | fanotify_user.c | 128 static int create_fd(struct fsnotify_group *group, struct path *path, in create_fd() argument 142 new_file = dentry_open(path, in create_fd() 328 struct path *path = fanotify_event_path(event); in copy_event_to_user() local 345 if (path && path->mnt && path->dentry) { in copy_event_to_user() 346 fd = create_fd(group, path, &f); in copy_event_to_user() 666 struct path *pat in fanotify_find_path() 665 fanotify_find_path(int dfd, const char __user *filename, struct path *path, unsigned int flags, __u64 mask, unsigned int obj_type) fanotify_find_path() argument 1052 fanotify_test_fid(struct path *path, __kernel_fsid_t *fsid) fanotify_test_fid() argument 1093 fanotify_events_supported(struct path *path, __u64 mask, unsigned int flags) fanotify_events_supported() argument 1134 struct path path; do_fanotify_mark() local [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | ref-verify.c | 430 struct btrfs_path *path, struct btrfs_key *key, in process_extent_item() 437 struct extent_buffer *leaf = path->nodes[0]; in process_extent_item() 498 struct btrfs_path *path, u64 *bytenr, u64 *num_bytes) in process_leaf() 501 struct extent_buffer *leaf = path->nodes[0]; in process_leaf() 517 ret = process_extent_item(fs_info, path, &key, i, in process_leaf() 551 static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path, in walk_down_tree() argument 563 block_bytenr = btrfs_node_blockptr(path->nodes[level], in walk_down_tree() 564 path->slots[level]); in walk_down_tree() 565 gen = btrfs_node_ptr_generation(path->nodes[level], in walk_down_tree() 566 path in walk_down_tree() 429 process_extent_item(struct btrfs_fs_info *fs_info, struct btrfs_path *path, struct btrfs_key *key, int slot, int *tree_block_level) process_extent_item() argument 497 process_leaf(struct btrfs_root *root, struct btrfs_path *path, u64 *bytenr, u64 *num_bytes) process_leaf() argument 593 walk_up_tree(struct btrfs_path *path, int *level) walk_up_tree() argument 995 struct btrfs_path *path; btrfs_build_ref_tree() local [all...] |
/third_party/littlefs/scripts/ |
H A D | perfbd.py | 135 def openio(path, mode='r', buffering=-1): 137 if path == '-': 143 return open(path, mode, buffering) 159 '\s+(?P<path>[^\s]+)' 238 dirs[int(m.group('no'))] = m.group('path') 243 files[int(m.group('no'))] = os.path.join( 245 m.group('path')) 247 files[int(m.group('no'))] = m.group('path') 260 file = os.path.abspath(files.get(op_file, '?')) 295 def collect_job(path, star [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/ |
H A D | capture_replay_tests.py | 21 # python path/to/capture_replay_tests.py 127 path = os.path.join('third_party', 'depot_tools') 128 return os.path.join(path, winext('gn', 'bat')), os.path.join(path, winext('ninja', 'exe')) 151 cmd_name = os.path.basename(command[0]) 376 if os.path.isfile(os.path [all...] |
/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/test/unittest/src/ |
H A D | sandbox_manager_kit_test.cpp | 87 char *path = nullptr; member 100 static void SetDeny(const std::string& path) in SetDeny() argument 103 string infoPath = path; in SetDeny() 104 info.path = const_cast<char *>(infoPath.c_str()); in SetDeny() 160 .path = "/A/B", in HWTEST_F() 200 .path = "/A/B", in HWTEST_F() 233 * @tc.desc: PersistPolicy with invalid path. 240 .path = "", in HWTEST_F() 251 info.path = "/A/B/"; in HWTEST_F() 271 .path in HWTEST_F() [all...] |
/base/update/sys_installer/frameworks/ipc_server/src/ |
H A D | module_update_service.cpp | 65 LOG(ERROR) << "Invalid package path " << pkgPath; in InstallModulePackage() 106 int32_t ModuleUpdateService::StartUpdateHmpPackage(const std::string &path, in StartUpdateHmpPackage() argument 112 ModuleUpdateMain::GetInstance().SaveInstallerResult(path, ret, std::to_string(ret), timer); in StartUpdateHmpPackage() 118 LOG(INFO) << "StartUpdateHmpPackage " << path; in StartUpdateHmpPackage() 126 if (VerifyModulePackageSign(path) != 0) { in StartUpdateHmpPackage() 127 LOG(ERROR) << "Verify sign failed " << path; in StartUpdateHmpPackage() 132 ret = InstallModulePackage(path); in StartUpdateHmpPackage() 156 tmpUpdateInfo.path = signalResult[0]; in GetHmpUpdateResult() 161 if (iter.path.find(tmpUpdateInfo.path) ! in GetHmpUpdateResult() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | sysctl.h | 195 const char *path, struct ctl_table *table); 198 const struct ctl_path *path, struct ctl_table *table); 199 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table); 201 struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, 207 extern void __register_sysctl_init(const char *path, struct ctl_table *table, 209 #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table) 229 const struct ctl_path *path, struct ctl_table *table) in register_sysctl_paths() 234 static inline struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table) in register_sysctl() argument 228 register_sysctl_paths( const struct ctl_path *path, struct ctl_table *table) register_sysctl_paths() argument
|
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | mount.c | 40 * tomoyo_check_mount_acl - Check permission for path path path number operation. 69 * @dir: Pointer to "struct path". 79 const struct path *dir, const char *type, in tomoyo_mount_acl() 83 struct path path; in tomoyo_mount_acl() local 136 if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) { in tomoyo_mount_acl() 140 obj.path1 = path; in tomoyo_mount_acl() 141 requested_dev_name = tomoyo_realpath_from_path(&path); in tomoyo_mount_acl() 191 tomoyo_mount_permission(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data_page) tomoyo_mount_permission() argument [all...] |
/kernel/linux/linux-5.10/scripts/kconfig/tests/ |
H A D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 36 self._test_dir = os.path.dirname(str(request.fspath)) 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) 90 with open(os.path.join(temp_dir, out_file)) as f: 150 defconfig_path = os.path.join(self._test_dir, defconfig) 155 all_config_path = os.path.join(self._test_dir, all_config) 226 with open(os.path.join(self._test_dir, expected)) as f:
|
/kernel/linux/linux-5.10/tools/cgroup/ |
H A D | iocost_coef_gen.py | 59 # determine ('DEVNAME', 'MAJ:MIN') for @path 60 def dir_to_dev(path): 62 devname = subprocess.run(f'findmnt -nvo SOURCE -T{path}', 64 devname = os.path.basename(devname).decode('utf-8').strip() 69 devname = os.path.basename(os.path.dirname(parents[0])) 73 def create_testfile(path, size): 76 if os.path.isfile(path) and os.stat(path) [all...] |
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | extent-buffer-tests.c | 15 struct btrfs_path *path = NULL; in test_btrfs_split_item() local 44 path = btrfs_alloc_path(); in test_btrfs_split_item() 45 if (!path) { in test_btrfs_split_item() 51 path->nodes[0] = eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item() 57 path->slots[0] = 0; in test_btrfs_split_item() 63 setup_items_for_insert(root, path, &key, &value_len, 1); in test_btrfs_split_item() 75 ret = btrfs_split_item(NULL, root, path, &key, 17); in test_btrfs_split_item() 136 ret = btrfs_split_item(NULL, root, path, &key, 4); in test_btrfs_split_item() 214 btrfs_free_path(path); in test_btrfs_split_item()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | eeprom.c | 151 u8 path, nss, band_idx = phy->mt76->band_idx; in mt7996_eeprom_parse_hw_cap() local 158 path = FIELD_GET(MT_EE_WIFI_CONF2_TX_PATH_BAND1, in mt7996_eeprom_parse_hw_cap() 164 path = FIELD_GET(MT_EE_WIFI_CONF2_TX_PATH_BAND2, in mt7996_eeprom_parse_hw_cap() 170 path = FIELD_GET(MT_EE_WIFI_CONF1_TX_PATH_BAND0, in mt7996_eeprom_parse_hw_cap() 177 if (!path || path > 4) in mt7996_eeprom_parse_hw_cap() 178 path = 4; in mt7996_eeprom_parse_hw_cap() 180 nss = min_t(u8, min_t(u8, 4, nss), path); in mt7996_eeprom_parse_hw_cap() 183 mphy->chainmask = (BIT(path) - 1) << dev->chainshift[band_idx]; in mt7996_eeprom_parse_hw_cap()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-ps-io-affinity.c | 7 #include "dm-path-selector.h" 15 struct dm_path *path; member 43 static int ioa_add_path(struct path_selector *ps, struct dm_path *path, in ioa_add_path() argument 58 *error = "io-affinity ps: Error allocating path context"; in ioa_add_path() 62 pi->path = path; in ioa_add_path() 63 path->pscontext = pi; in ioa_add_path() 153 static int ioa_status(struct path_selector *ps, struct dm_path *path, in ioa_status() argument 160 if (!path) { in ioa_status() 170 pi = path in ioa_status() [all...] |