/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
H A D | remove.c | 6 int remove(const char *path) in remove() argument 8 int r = unlink(path); in remove() 9 if (r==-EISDIR) r = rmdir(path); in remove()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
H A D | remove.c | 6 int remove(const char *path) in remove() argument 8 int r = unlink(path); in remove() 9 if (r==-EISDIR) r = rmdir(path); in remove()
|
/third_party/rust/crates/cxx/tests/ui/ |
H A D | include.rs | 4 include!("path/to" what); 5 include!(<path/to> what); 6 include!(<path/to); 7 include!(<path[to]>);
|
/third_party/skia/third_party/externals/brotli/scripts/dictionary/ |
H A D | step-01-download-rfc.py | 11 path = "rfc7932.txt" variable 13 with open(path, "w") as rfc: 16 print("Downloaded and saved " + str(len(text)) + " bytes to " + path)
|
/third_party/skia/tools/fiddle/ |
H A D | make_all_examples_cpp.py | 9 os.chdir(os.path.dirname(__file__)) 14 for path in sorted(glob.glob('../../docs/examples/*.cpp')): 15 o.write('#include "%s"\n' % path)
|
/third_party/skia/docs/examples/ |
H A D | Path_setFillType.cpp | 7 SkPath path; in REG_FIDDLE() local 8 path.setFillType(SkPathFillType::kInverseWinding); in REG_FIDDLE() 11 canvas->drawPath(path, paint); in REG_FIDDLE()
|
/foundation/graphic/graphic_3d/lume/LumeFont/src/ |
H A D | font_manager.cpp | 65 TypeFace InitTypeFace(FT_Face face, string_view path, string_view filename) in InitTypeFace() argument 68 string(path), // font file path in InitTypeFace() 160 IFile::Ptr file = fileManager.OpenFile(typeFace.path); in CreateFontBuffer() 162 CORE_LOG_E("failed to open font %s | %s", typeFace.path.data(), GetErrorString().c_str()); in CreateFontBuffer() 171 CORE_LOG_E("failed to read %zu bytes from %s | %s", len, typeFace.path.data(), GetErrorString().c_str()); in CreateFontBuffer() 245 void FontManager::GetTypeFacesByFile(vector<TypeFace>& typeFaces, string_view path) in GetTypeFacesByFile() argument 249 IFile::Ptr file = fileManager.OpenFile(path); in GetTypeFacesByFile() 251 CORE_LOG_E("failed to open font %s | %s", path.data(), GetErrorString().c_str()); in GetTypeFacesByFile() 255 auto entry = fileManager.GetEntry(path); in GetTypeFacesByFile() 302 GetTypeFacesByDir(vector<TypeFace>& typeFaces, string_view path) GetTypeFacesByDir() argument [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | untar_file.cpp | 61 static bool ForceCreateDirectoryWithMode(const string& path, mode_t mode) in ForceCreateDirectoryWithMode() argument 65 index = path.find('/', index + 1); in ForceCreateDirectoryWithMode() 66 string subPath = (index == string::npos) ? path : path.substr(0, index); in ForceCreateDirectoryWithMode() 73 return access(path.c_str(), F_OK) == 0; in ForceCreateDirectoryWithMode() 340 HILOGE("Check file path : %{public}s err, path is forbidden", GetAnonyPath(info.fullPath).c_str()); in ParseFileByTypeFlag() 351 HILOGE("Check file path : %{public}s err, path is forbidden", GetAnonyPath(info.fullPath).c_str()); in ParseFileByTypeFlag() 360 HILOGE("Check file path in ParseFileByTypeFlag() 540 CreateDir(string &path, mode_t mode) CreateDir() argument 575 string path = filePath.substr(0, pos); CreateFile() local [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_flow_offload.c | 98 const struct net_device_path *path; in nft_dev_path_info() local 104 path = &stack->path[i]; in nft_dev_path_info() 105 switch (path->type) { in nft_dev_path_info() 110 info->indev = path->dev; in nft_dev_path_info() 112 memcpy(info->h_source, path->dev->dev_addr, ETH_ALEN); in nft_dev_path_info() 114 if (path->type == DEV_PATH_ETHERNET) in nft_dev_path_info() 116 if (path->type == DEV_PATH_DSA) { in nft_dev_path_info() 127 info->outdev = path->dev; in nft_dev_path_info() 128 info->encap[info->num_encaps].id = path in nft_dev_path_info() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | cpumap.c | 192 char path[PATH_MAX]; in cpu__get_topology_int() local 194 snprintf(path, PATH_MAX, in cpu__get_topology_int() 197 return sysfs__read_int(path, value); in cpu__get_topology_int() 370 static int get_max_num(char *path, int *max) in get_max_num() argument 376 if (filename__read_str(path, &buf, &num)) in get_max_num() 405 char path[PATH_MAX]; in set_max_cpu_num() local 417 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num() 419 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num() 423 ret = get_max_num(path, &max_cpu_num.cpu); in set_max_cpu_num() 428 ret = snprintf(path, PATH_MA in set_max_cpu_num() 445 char path[PATH_MAX]; set_max_node_num() local 529 char path[PATH_MAX]; cpu__setup_cpunode_map() local [all...] |
/third_party/libuv/src/unix/ |
H A D | fsevents.c | 91 char path[1]; member 189 handle->cb(handle, event->path[0] ? event->path : NULL, event->events, 0); in uv__fsevents_cb() 224 char* path; in uv__fsevents_event_cb() local 253 path = paths[i]; in uv__fsevents_event_cb() 254 len = strlen(path); in uv__fsevents_event_cb() 268 path[handle->realpath_len] != '/') in uv__fsevents_event_cb() 271 if (memcmp(path, handle->realpath, handle->realpath_len) != 0) in uv__fsevents_event_cb() 276 path += handle->realpath_len; in uv__fsevents_event_cb() 279 /* Ignore events with path equa in uv__fsevents_event_cb() [all...] |
/third_party/ltp/testcases/kernel/mem/lib/ |
H A D | mem.c | 243 static void check(char *path, long int value) in check() argument 248 snprintf(fullpath, BUFSIZ, PATH_KSM "%s", path); in check() 252 tst_res(TFAIL, "%s is not %ld but %ld.", path, value, in check() 255 tst_res(TPASS, "%s is %ld.", path, actual_val); in check() 546 char path[BUFSIZ], path1[BUFSIZ]; in gather_node_cpus() local 552 snprintf(path, BUFSIZ, in gather_node_cpus() 554 if (path_exist(path)) { in gather_node_cpus() 555 snprintf(path1, BUFSIZ, "%s/online", path); in gather_node_cpus() 629 int path_exist(const char *path, ...) in path_exist() argument 634 va_start(ap, path); in path_exist() 644 char path[BUFSIZ]; set_sys_tune() local 661 char path[BUFSIZ]; get_sys_tune() local [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | fsevents.c | 91 char path[1]; member 191 handle->cb(handle, event->path[0] ? event->path : NULL, event->events, 0); in uv__fsevents_cb() 226 char* path; in uv__fsevents_event_cb() local 255 path = paths[i]; in uv__fsevents_event_cb() 256 len = strlen(path); in uv__fsevents_event_cb() 270 path[handle->realpath_len] != '/') in uv__fsevents_event_cb() 273 if (memcmp(path, handle->realpath, handle->realpath_len) != 0) in uv__fsevents_event_cb() 278 path += handle->realpath_len; in uv__fsevents_event_cb() 281 /* Ignore events with path equa in uv__fsevents_event_cb() [all...] |
/third_party/rust/crates/nix/src/ |
H A D | fcntl.rs | 74 /// If the specified path isn't a directory, fail. 130 /// `open()` will fail if the given path is a symbolic link. 196 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> { in open() 197 let fd = path.with_nix_path(|cstr| { in open() 209 path: &P, in openat() 213 let fd = path.with_nix_path(|cstr| { in openat() 286 path: &P, in readlink_maybe_at() 289 path.with_nix_path(|cstr| unsafe { in readlink_maybe_at() 309 fn inner_readlink<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P) -> Result<OsString> { in inner_readlink() 312 let res = readlink_maybe_at(dirfd, path, in inner_readlink() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | shader_manager.cpp | 285 inline RenderHandle GetHandle(const string_view path, const unordered_map<string, RenderHandle>& nameToClientHandle) in GetHandle() argument 287 if (auto const pos = nameToClientHandle.find(path); pos != nameToClientHandle.end()) { in GetHandle() 444 const string_view path, const RenderHandleType type, const ClientDataIndices& cdi) in CreateClientData() 453 if (auto iter = nameToClientHandle_.find(path); iter != nameToClientHandle_.end()) { in CreateClientData() 479 if (!path.empty()) { in CreateClientData() 480 nameToClientHandle_[path] = clientHandle; in CreateClientData() 492 const string fullName = createInfo.path + pathCreateInfo.variantName; in Create() 527 nameDataRef.path = createInfo.path; in Create() 542 createInfo.path in Create() 443 CreateClientData( const string_view path, const RenderHandleType type, const ClientDataIndices& cdi) CreateClientData() argument 846 GetShaderHandle(const string_view path, const string_view variantName) const GetShaderHandle() argument 1002 GetGraphicsStateHandle(const string_view path, const string_view variantName) const GetGraphicsStateHandle() argument [all...] |
/kernel/linux/linux-5.10/fs/cachefiles/ |
H A D | namei.c | 2 /* CacheFiles path walking and related routines 295 struct path path, path_to_graveyard; in cachefiles_bury_object() local 307 path.mnt = cache->mnt; in cachefiles_bury_object() 308 path.dentry = dir; in cachefiles_bury_object() 309 ret = security_path_unlink(&path, rep); in cachefiles_bury_object() 407 path.mnt = cache->mnt; in cachefiles_bury_object() 408 path.dentry = dir; in cachefiles_bury_object() 411 ret = security_path_rename(&path, rep, &path_to_graveyard, grave, 0); in cachefiles_bury_object() 466 * so it's no longer in the key path an in cachefiles_delete_object() 490 struct path path; cachefiles_walk_to_object() local 760 struct path path; cachefiles_get_directory() local [all...] |
/third_party/libinput/test/ |
H A D | test-path.c | 43 open_restricted_count(const char *path, int flags, void *data) in open_restricted_count() argument 50 fd = open(path, flags); in open_restricted_count() 69 open_restricted(const char *path, int flags, void *data) in open_restricted() argument 71 int fd = open(path, flags); in open_restricted() 109 const char *path = "/tmp"; in START_TEST() local 120 device = libinput_path_add_device(li, path); in START_TEST() 136 const char *path = "/dev/uinput"; in START_TEST() local 147 device = libinput_path_add_device(li, path); in START_TEST() 163 char path[] = "/tmp/litest_path_XXXXXX"; in START_TEST() local 168 fd = mkstemp(path); in START_TEST() 197 char *path; START_TEST() local 1036 const char *path; START_TEST() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_cmd_line_script.py | 10 import os.path namespace 51 import os.path 55 expected_spec_name = os.path.splitext(os.path.basename(__file__))[0] 74 print('sys.path[0]==%a' % sys.path[0]) 105 printed_path0 = 'sys.path[0]==%a' % expected_path0 119 # PYTHONSAFEPATH=1 changes the default sys.path[0] 162 # interactive REPL, since that code path only gets executed when 229 # pass the script using the relative path, expec [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | FileSystem.h | 11 // path class. 295 /// Make \a path an absolute path. 297 /// Makes \a path absolute using the \a current_directory if it is not already. 298 /// An empty \a path will result in the \a current_directory. 300 /// /absolute/path => /absolute/path 301 /// relative/../path => <current-directory>/relative/../path 303 /// @param path 1234 const std::string &path() const { return Path; } path() function in llvm::sys::fs::directory_entry 1285 directory_iterator(const Twine &path, std::error_code &ec, bool follow_symlinks = true) directory_iterator() argument 1348 recursive_directory_iterator(const Twine &path, std::error_code &ec, bool follow_symlinks = true) recursive_directory_iterator() argument [all...] |
/third_party/vulkan-loader/tests/framework/ |
H A D | test_environment.h | 427 BUILDER_VALUE(LoaderSettingsLayerConfiguration, std::string, path, {}) 432 return a.name == b.name && a.path == b.path && a.control == b.control && in operator ==() 478 TestICDHandle(fs::path const& icd_path) noexcept; 481 fs::path get_icd_full_path() noexcept; 482 fs::path get_icd_manifest_path() noexcept; 483 fs::path get_shimmed_manifest_path() noexcept; 489 fs::path manifest_path; // path to the manifest file is on the actual filesystem (aka <build_folder>/tests/framework/<...>) 490 fs::path shimmed_manifest_pat [all...] |
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | lsm.c | 36 #include "include/path.h" 197 * @path: path to check permission of (NOT NULL) 203 static int common_perm(const char *op, const struct path *path, u32 mask, in common_perm() argument 211 error = aa_path_perm(op, label, path, 0, mask, cond); in common_perm() 220 * @path: location to check (NOT NULL) 225 static int common_perm_cond(const char *op, const struct path *path, u32 mask) in common_perm_cond() argument 227 struct path_cond cond = { d_backing_inode(path in common_perm_cond() 251 struct path path = { .mnt = dir->mnt, .dentry = dentry }; common_perm_dir_dentry() local 324 apparmor_path_truncate(const struct path *path) apparmor_path_truncate() argument 387 apparmor_path_chmod(const struct path *path, umode_t mode) apparmor_path_chmod() argument 392 apparmor_path_chown(const struct path *path, kuid_t uid, kgid_t gid) apparmor_path_chown() argument 397 apparmor_inode_getattr(const struct path *path) apparmor_inode_getattr() argument 529 apparmor_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data) apparmor_sb_mount() argument [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_asset_operations.cpp | 482 int32_t MediaLibraryAssetOperations::CheckExist(const std::string &path) in CheckExist() argument 487 MEDIA_DEBUG_LOG("query media_file_path=%{public}s start\n", DfxUtils::GetSafePath(path).c_str()); in CheckExist() 488 predicates.EqualTo(PhotoColumn::MEDIA_FILE_PATH, path); in CheckExist() 707 string path = MediaFileUri::GetPathFromUri(uri, isPhoto); in GetFileAssetByUri() local 708 if (path.empty()) { in GetFileAssetByUri() 715 fileAsset->SetPath(path); in GetFileAssetByUri() 716 fileAsset->SetMediaType(MediaFileUtils::GetMediaType(path)); in GetFileAssetByUri() 1309 MEDIA_ERR_LOG("Failed to get real path: %{private}s", filePath.c_str()); in OpenFileWithPrivacy() 1343 MEDIA_ERR_LOG("Create asset failed, path=%{private}s", fileAsset->GetPath().c_str()); in CreateFileAndSetPending() 1376 static int32_t CreateDirectoryAndAsset(const string path) in CreateDirectoryAndAsset() argument 1424 string path; OpenAsset() local 1476 string path = fileAsset->GetPath(); CloseAsset() local 1507 string path = MediaFileUtils::GetHighlightPath(uriStr); OpenHighlightCover() local 1526 string path = MediaFileUtils::GetHighlightVideoPath(uriStr); OpenHighlightVideo() local 1559 ScanFile(const string &path, bool isCreateThumbSync, bool isInvalidateThumb, bool isForceScan, int32_t fileId) ScanFile() argument 1582 ScanFileWithoutAlbumUpdate(const string &path, bool isCreateThumbSync, bool isInvalidateThumb, bool isForceScan, int32_t fileId) ScanFileWithoutAlbumUpdate() argument 1605 GetEditDataDirPath(const string &path) GetEditDataDirPath() argument 1613 GetEditDataSourcePath(const string &path) GetEditDataSourcePath() argument 1622 GetEditDataPath(const string &path) GetEditDataPath() argument 1631 GetEditDataCameraPath(const string &path) GetEditDataCameraPath() argument 1918 ConvertMediaPathFromCloudPath(const string &path) ConvertMediaPathFromCloudPath() argument 1930 GrantUriPermission(const string &uri, const string &bundleName, const string &path, bool isMovingPhoto) GrantUriPermission() argument 2271 CreateThumbnailFileScaned(const string &uri, const string &path, bool isSync) CreateThumbnailFileScaned() argument 2284 OnScanFinished(const int32_t status, const string &uri, const string &path) OnScanFinished() argument [all...] |
/third_party/ltp/lib/ |
H A D | tst_fs_has_free.c | 29 int tst_fs_has_free_(void (*cleanup)(void), const char *path, in tst_fs_has_free_() argument 34 if (statfs(path, &sf)) { in tst_fs_has_free_() 36 "tst_fs_has_free: failed to statfs(%s)", path); in tst_fs_has_free_()
|
/third_party/node/test/known_issues/ |
H A D | testcfg.py | 3 sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
/third_party/musl/src/unistd/ |
H A D | chown.c | 5 int chown(const char *path, uid_t uid, gid_t gid) in chown() argument 8 return syscall(SYS_chown, path, uid, gid); in chown() 10 return syscall(SYS_fchownat, AT_FDCWD, path, uid, gid, 0); in chown()
|