/third_party/selinux/libselinux/src/ |
H A D | compute_relabel.c | 18 char path[PATH_MAX]; in security_compute_relabel_raw() local 28 snprintf(path, sizeof path, "%s/relabel", selinux_mnt); in security_compute_relabel_raw() 29 fd = open(path, O_RDWR | O_CLOEXEC); in security_compute_relabel_raw()
|
H A D | canonicalize_context.c | 15 char path[PATH_MAX]; in security_canonicalize_context_raw() local 25 snprintf(path, sizeof path, "%s/context", selinux_mnt); in security_canonicalize_context_raw() 26 fd = open(path, O_RDWR | O_CLOEXEC); in security_canonicalize_context_raw()
|
/third_party/skia/bench/ |
H A D | BlurRectsBench.cpp | 36 SkPath path; variable 37 path.addRect(fOuter, SkPathDirection::kCW); 38 path.addRect(fInner, SkPathDirection::kCW); 41 canvas->drawPath(path, paint);
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | provider.rs | 62 /// Specifies the default search path that is to be used for looking for providers in the specified library context. 67 pub fn set_default_search_path(ctx: Option<&LibCtxRef>, path: &str) -> Result<(), ErrorStack> { in set_default_search_path() 68 let path = CString::new(path).unwrap(); in set_default_search_path() 72 path.as_ptr(), in set_default_search_path()
|
/third_party/rust/crates/syn/src/ |
H A D | meta.rs | 6 use crate::path::{Path, PathSegment}; 54 /// if meta.path.is_ident("kind") { 57 /// } else if meta.path.is_ident("hot") { 60 /// } else if meta.path.is_ident("with") { 62 /// with.push(meta.path); 122 /// if meta.path.is_ident("kind") { 164 pub path: Path, 185 /// if attr.path().is_ident("tea") { // this parses the `tea` 187 /// if meta.path.is_ident("kind") { // this parses the `kind` 219 /// if attr.path() [all...] |
/third_party/spirv-tools/utils/ |
H A D | generate_changelog.py | 25 import os.path namespace 49 if e.errno == errno.EEXIST and os.path.isdir(directory): 58 logging.error("usage: {} <CHANGES-path> <tag> <output-file>".format(sys.argv[0])) 87 if os.path.isfile(output_file_path): 92 mkdir_p(os.path.dirname(output_file_path))
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deDirectoryIterator.cpp | 37 DirectoryIterator::DirectoryIterator (const FilePath& path) in DirectoryIterator() argument 38 : m_path(FilePath::normalize(path)) in DirectoryIterator() 80 DirectoryIterator::DirectoryIterator (const FilePath& path) 81 : m_path (FilePath::normalize(path))
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/ |
H A D | static_factory.cpp | 72 std::shared_ptr<Typeface> StaticFactory::MakeFromFile(const char path[], int index) in MakeFromFile() argument 76 return DDGRStaticFactory::MakeFromFile(path, index); in MakeFromFile() 79 return EngineStaticFactory::MakeFromFile(path, index); in MakeFromFile() 82 std::shared_ptr<Typeface> StaticFactory::MakeFromFile(const char path[], const FontArguments& fontArguments) in MakeFromFile() argument 86 return DDGRStaticFactory::MakeFromFile(path, fontArguments); in MakeFromFile() 89 return EngineStaticFactory::MakeFromFile(path, fontArguments); in MakeFromFile() 288 std::shared_ptr<Data> StaticFactory::MakeDataFromFileName(const char path[]) in MakeDataFromFileName() argument 292 return DDGRStaticFactory::MakeDataFromFileName(path); in MakeDataFromFileName() 295 return EngineStaticFactory::MakeDataFromFileName(path); in MakeDataFromFileName() 298 void StaticFactory::PathOutlineDecompose(const Path& path, st argument [all...] |
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/ |
H A D | file_permission.cpp | 40 const std::string INVALID_PATH_MESSAGE = "Invalid path!"; 138 Uri uri(pathPolicies[i].path); in ParseErrorResults() 182 string path = fileuri.GetRealPath(); in GetPathPolicyInfoFromUriPolicyInfo() local 183 if (!CheckValidUri(uriPolicy.uri) || access(path.c_str(), F_OK) != 0) { in GetPathPolicyInfoFromUriPolicyInfo() 188 PolicyInfo policyInfo = {path, uriPolicy.mode}; in GetPathPolicyInfoFromUriPolicyInfo() 201 string path = fileuri.GetRealPath(); in GetPathPolicyInfoFromUriPolicyInfo() local 206 PolicyInfo policyInfo = {path, uriPolicy.mode}; in GetPathPolicyInfoFromUriPolicyInfo() 251 resultCodes[i] = CheckFileManagerUriPermission(tokenId, pathPolicies[i].path); in CheckUriPersistentPermission() 370 string path = permissionPathMap.at(permission); in GetPathByPermission() local 372 path in GetPathByPermission() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/user/src/ |
H A D | user_manager.cpp | 166 if (!PrepareDir(StringPrintf(dir.path.c_str(), level.c_str(), userId), dir.mode, dir.uid, dir.gid)) { in PrepareDirsFromVec() 179 if (IsEndWith(dir.path.c_str(), "%d")) { in DestroyDirsFromVec() 180 err = RmDirRecurse(StringPrintf(dir.path.c_str(), level.c_str(), userId)); in DestroyDirsFromVec() 201 temp.path = StringPrintf(item.path.c_str(), level.c_str(), userId); in PrepareDirsFromIdAndLevel() 213 temp.path = StringPrintf(item.path.c_str(), level.c_str(), userId); in PrepareDirsFromIdAndLevel() 257 temp.path = StringPrintf(bundle_.c_str(), userId); in PrepareEl1BundleDir() 297 if (!PrepareDir(StringPrintf(dir.path.c_str(), userId), dir.mode, dir.uid, dir.gid)) { in PrepareEl2BackupDir() 308 if (!RmDirRecurse(StringPrintf(dir.path in DestroyEl2BackupDir() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | charge_reserved_hugetlb.sh | 112 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 114 while [ $(cat $path) != 0 ]; do 116 cat $path 125 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 127 while [ $(cat $path) != $size ]; do 129 cat $path 138 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file" 140 while [ $(cat $path) != $size ]; do 142 cat $path 152 local path [all...] |
/kernel/linux/linux-5.10/fs/notify/ |
H A D | fsnotify.c | 183 const struct path *path = fsnotify_data_path(data, data_type); in __fsnotify_parent() local 184 struct mount *mnt = path ? real_mount(path->mnt) : NULL; in __fsnotify_parent() 248 const struct path *path = fsnotify_data_path(data, data_type); in fsnotify_handle_inode_event() local 256 path && d_unlinked(path->dentry)) in fsnotify_handle_inode_event() 465 const struct path *path in fsnotify() local [all...] |
/kernel/linux/linux-6.6/fs/notify/ |
H A D | fsnotify.c | 181 const struct path *path = fsnotify_data_path(data, data_type); in __fsnotify_parent() local 182 struct mount *mnt = path ? real_mount(path->mnt) : NULL; in __fsnotify_parent() 246 const struct path *path = fsnotify_data_path(data, data_type); in fsnotify_handle_inode_event() local 257 path && d_unlinked(path->dentry)) in fsnotify_handle_inode_event() 484 const struct path *path in fsnotify() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | charge_reserved_hugetlb.sh | 115 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 117 while [ $(cat $path) != 0 ]; do 119 cat $path 128 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 130 while [ $(cat $path) != $size ]; do 132 cat $path 141 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file" 143 while [ $(cat $path) != $size ]; do 145 cat $path 155 local path [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_frei0r.c | 176 char *path = av_asprintf("%s%s%s", prefix, name, SLIBSUF); in load_path() local 177 if (!path) in load_path() 179 av_log(ctx, AV_LOG_DEBUG, "Looking for frei0r effect in '%s'.\n", path); in load_path() 180 *handle_ptr = dlopen(path, RTLD_NOW|RTLD_LOCAL); in load_path() 181 av_free(path); in load_path() 192 char *path; in frei0r_init() local 208 if (path = getenv_dup("FREI0R_PATH")) { in frei0r_init() 215 for (p = path; p = av_strtok(p, separator, &ptr); p = NULL) { in frei0r_init() 231 av_free(path); in frei0r_init() 235 if (!s->dl_handle && (path in frei0r_init() [all...] |
/third_party/alsa-lib/src/mixer/ |
H A D | simple_abst.c | 68 char *xlib, *path, errbuf[256]; in try_open() local 74 path = getenv("ALSA_MIXER_SIMPLE_MODULES"); in try_open() 75 if (!path) in try_open() 76 path = SO_PATH; in try_open() 77 xlib = malloc(strlen(lib) + strlen(path) + 1 + 1); in try_open() 80 strcpy(xlib, path); in try_open() 116 char *xlib, *path, errbuf[256]; in try_open_full() local 120 path = getenv("ALSA_MIXER_SIMPLE_MODULES"); in try_open_full() 121 if (!path) in try_open_full() 122 path in try_open_full() [all...] |
/third_party/curl/lib/ |
H A D | file.c | 155 if(file->path) { in file_connect() 164 result = Curl_urldecode(data->state.up.path, 0, &real_path, in file_connect() 172 the path, skip the slash. If we remove the initial in file_connect() 193 /* change path separators from '/' to '\\' for DOS, Windows and OS/2 */ in file_connect() 203 file->path = actual_path; in file_connect() 213 * A leading slash in an AmigaDOS path denotes the parent in file_connect() 216 * this first. Failing that, we treat the path as a real unix in file_connect() 217 * path, but only if the application was compiled with -lunix. in file_connect() 220 file->path = real_path; in file_connect() 225 /* Amiga absolute path */ in file_connect() [all...] |
/third_party/lzma/CPP/7zip/Common/ |
H A D | MultiOutStream.cpp | 214 FString path = GetFilePath(index);
in CloseStream_and_DeleteFile() local 215 path += Streams[index].Postfix;
in CloseStream_and_DeleteFile() 217 // if (NFind::DoesFileExist_Raw(path))
in CloseStream_and_DeleteFile() 218 if (!DeleteFileAlways(path))
in CloseStream_and_DeleteFile() 238 if (s.Postfix.IsEmpty()) // if Postfix is empty, the path is already final
in CloseStream_and_FinalRename() 240 const FString path = GetFilePath(index);
in CloseStream_and_FinalRename() local 241 FString tempPath = path;
in CloseStream_and_FinalRename() 251 if (!MyMoveFile(tempPath, path))
in CloseStream_and_FinalRename() 253 /* we clear CVolStream::Postfix. So we will not use Temp path
in CloseStream_and_FinalRename() 254 anymore for this stream, and we will work only with final path */
in CloseStream_and_FinalRename() 292 const FString path = GetFilePath(Streams.Size()); CreateNewStream() local 365 FString path = GetFilePath(streamIndex); ReOpenStream() local [all...] |
/third_party/jerryscript/tools/ |
H A D | run-tests.py | 28 OUTPUT_DIR = os.path.join(settings.PROJECT_DIR, 'build', 'tests') 275 build_dir_path = os.path.join(options.outdir, job.name) 278 install_dir_path = os.path.join(build_dir_path, 'local') 304 return os.path.join(build_dir_path, 'local', 'bin', 'jerry' + executable_extension) 368 test_case, _ = os.path.splitext(test_file) 369 test_case_path = os.path.join(settings.DEBUGGER_TESTS_DIR, test_case) 375 os.path.relpath(test_case_path, settings.PROJECT_DIR) 400 skip_list.append(os.path.join('es5.1', '')) 402 skip_list.append(os.path.join('es2015', '')) 432 skip_list.append(os.path [all...] |
/third_party/ltp/lib/ |
H A D | tst_kconfig.c | 32 const char *path = getenv("KCONFIG_PATH"); in kconfig_path() local 35 if (path) { in kconfig_path() 36 if (!access(path, F_OK)) in kconfig_path() 37 return path; in kconfig_path() 39 tst_res(TWARN, "KCONFIG_PATH='%s' does not exist", path); in kconfig_path() 47 /* Common install module path */ in kconfig_path() 82 const char *path = kconfig_path(path_buf, sizeof(path_buf)); in open_kconfig() local 84 if (!path) in open_kconfig() 87 tst_res(TINFO, "Parsing kernel config '%s'", path); in open_kconfig() 89 is_gzip = !!strstr(path, " in open_kconfig() [all...] |
/third_party/node/lib/internal/fs/cp/ |
H A D | cp-sync.js | 48 } = require('path'); 78 path: dest, 88 path: dest, 98 path: dest, 109 path: dest, 147 path: dest, 171 path: src, 185 path: dest, 193 path: dest, 201 path [all...] |
/third_party/node/lib/internal/fs/ |
H A D | streams.js | 71 stream[kFs].open(stream.path, stream.flags, stream.mode, (er, fd) => { 87 open: (path, flags, mode, cb) => { 150 function ReadStream(path, options) { 152 return new ReadStream(path, options); 169 this.path = toPathIfFileURL(path); 173 validatePath(this.path); 269 // Slow path. Shrink to fit. 309 function WriteStream(path, options) { 311 return new WriteStream(path, option [all...] |
/third_party/node/deps/v8/tools/ |
H A D | generate-runtime-call-stats.py | 92 help=("path to executable to run. If not given it will pass '--browser " 100 help=("path to chromium directory. If not given, the script must be run " 173 xvfb = os.path.join(chromium_dir, "testing", "xvfb.py") 174 if not os.path.isfile(xvfb): 175 chromium_dir = os.path(chromium_dir, "src") 176 xvfb = os.path.join(chromium_dir, "testing", "xvfb.py") 177 if not os.path.isfile(xvfb): 184 os.path.join(chromium_dir, "tools", "perf", "run_benchmark"), 193 os.path.join(output_dir, "artifacts"), 378 trace_dir = os.path [all...] |
/third_party/lz4/tests/ |
H A D | test-lz4-list.py | 12 LZ4 = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../lz4") 13 if not os.path.exists(LZ4): 14 LZ4 = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../programs/lz4") 29 self.exp_unc_size += os.path.getsize(f"{TEMP}/test_list_{i}M") 32 self.exp_unc_size += os.path.getsize(f"{TEMP}/{uncompressed_filename}") 33 self.exp_comp_size = os.path [all...] |
/third_party/mesa3d/src/util/tests/ |
H A D | cache_test.cpp | 49 remove_entry(const char *path, in remove_entry() argument 54 int err = remove(path); in remove_entry() 57 fprintf(stderr, "Error removing %s: %s\n", path, strerror(errno)); in remove_entry() 71 rmrf_local(const char *path) in rmrf_local() argument 73 if (path == NULL || *path == '\0' || *path != '.') in rmrf_local() 76 return nftw(path, remove_entry, 64, FTW_DEPTH | FTW_PHYS); in rmrf_local() 194 char *path = ralloc_asprintf( in test_disk_cache_create() local 196 check_directories_created(mem_ctx, path); in test_disk_cache_create() [all...] |