/kernel/linux/linux-6.6/tools/testing/selftests/nsfs/ |
H A D | owner.c | 30 char path[128]; in main() local 55 snprintf(path, sizeof(path), "/proc/%d/ns/uts", pid); in main() 56 ns = open(path, O_RDONLY); in main() 58 return pr_err("Unable to open %s", path); in main() 67 snprintf(path, sizeof(path), "/proc/%d/ns/user", pid); in main() 68 if (stat(path, &st2)) in main()
|
/third_party/curl/tests/libtest/ |
H A D | testutil.c | 139 TCHAR *path; in win32_load_system_library() local 146 path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in win32_load_system_library() 147 if(!path) in win32_load_system_library() 151 written = GetSystemDirectory(path, (unsigned int)systemdirlen); in win32_load_system_library() 155 if(path[written - 1] != _T('\\')) in win32_load_system_library() 156 path[written++] = _T('\\'); in win32_load_system_library() 158 _tcscpy(path + written, filename); in win32_load_system_library() 160 return LoadLibrary(path); in win32_load_system_library()
|
/third_party/libuv/test/ |
H A D | test-get-currentexe.c | 43 char path[PATHMAX]; in TEST_IMPL() local 53 snprintf(path, sizeof(path), "%s", executable_path); in TEST_IMPL() 55 ASSERT_NOT_NULL(realpath(executable_path, path)); in TEST_IMPL() 58 match = strstr(buffer, path); in TEST_IMPL() 59 /* Verify that the path returned from uv_exepath is a subdirectory of in TEST_IMPL() 62 ASSERT(match && !strcmp(match, path)); in TEST_IMPL() 101 match = strstr(buffer, path); in TEST_IMPL() 102 /* Verify that the path returned from uv_exepath is a subdirectory of in TEST_IMPL() 106 ASSERT_STR_EQ(match, path); in TEST_IMPL() [all...] |
/third_party/ltp/lib/ |
H A D | tst_fill_file.c | 75 int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount) in tst_fill_file() argument 79 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_fill_file() 85 unlink(path); in tst_fill_file() 90 unlink(path); in tst_fill_file() 98 int tst_prealloc_file(const char *path, size_t bs, size_t bcount) in tst_prealloc_file() argument 102 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_prealloc_file() 108 unlink(path); in tst_prealloc_file() 113 unlink(path); in tst_prealloc_file()
|
/third_party/node/test/parallel/ |
H A D | test-fs-symlink.js | 29 const path = require('path'); 39 const linkData = fixtures.path('/cycles/root.js'); 40 const linkPath = path.join(tmpdir.path, 'symlink1.js'); 58 const linkData = fixtures.path('/not/exists/file'); 59 const linkPath = path.join(tmpdir.path, 'symlink2.js'); 70 message: /target|path/
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | removexattr.c | 34 char path[PATH_MAX] = {0}; in removexattr_0100() local 35 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in removexattr_0100() 36 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in removexattr_0100() 46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in removexattr_0100() 58 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100() 72 result = removexattr(path, name); in removexattr_0100() 78 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100() 87 remove(path); in removexattr_0100()
|
/third_party/python/Tools/scripts/ |
H A D | findnocoding.py | 20 for path in paths: 21 if os.path.isfile(path): 22 yield path.endswith(".py") 23 elif os.path.isdir(path): 24 for root, dirs, files in os.walk(path): 27 yield os.path.join(root, filename)
|
/third_party/skia/src/core/ |
H A D | HMSymbol.cpp | 19 void HMSymbol::PathOutlineDecompose(const SkPath& path, std::vector<SkPath>& paths) in PathOutlineDecompose() argument 21 SkPath::RawIter iter = SkPath::RawIter(path); in PathOutlineDecompose() 68 SkPath path; in MultilayerPath() local 70 path.addPath(paths[i]); in MultilayerPath() 72 multPaths.push_back(path); in MultilayerPath() 76 SkPath path; in MultilayerPath() local 79 path.addPath(paths[multMap[i][j]]); in MultilayerPath() 82 multPaths.push_back(path); in MultilayerPath()
|
/third_party/skia/samplecode/ |
H A D | SampleCircle.cpp | 54 static void make_poly(SkPath* path, int n) { in make_poly() argument 58 path->incReserve(n + 1); in make_poly() 59 path->moveTo(SK_Scalar1, 0); in make_poly() 64 path->lineTo(SkScalarCos(angle), SkScalarSin(angle)); in make_poly() 66 path->close(); in make_poly() 78 SkPath path; variable 79 make_poly(&path, n); 83 canvas->drawPath(path, paint);
|
/third_party/skia/third_party/externals/dawn/generator/ |
H A D | remove_files.py | 19 def check_in_subdirectory(path, directory): 20 return path.startswith(directory) and not '/' in path[len(directory):] 23 def check_is_allowed(path, allowed_dirs): 25 check_in_subdirectory(path, directory) for directory in allowed_dirs) 31 result += [os.path.join(directory, filename) for filename in files] 64 [os.path.join(root_dir, line.strip()) for line in f.readlines()]) 77 stale_dir = os.path.join(root_dir, stale_dir)
|
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/ |
H A D | run-draw-fuzzer-tests.py | 27 hb_draw_fuzzer = os.path.join (top_builddir, "hb-draw-fuzzer" + EXEEXT) 29 if not os.path.exists (hb_draw_fuzzer): 30 if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]): 45 parent_path = os.path.join (srcdir, "fonts") 48 path = os.path.join (parent_path, file) variable 51 text, returncode = cmd ([valgrind, '--leak-check=full', '--error-exitcode=1', hb_draw_fuzzer, path]) 53 text, returncode = cmd ([hb_draw_fuzzer, path])
|
H A D | run-shape-fuzzer-tests.py | 27 hb_shape_fuzzer = os.path.join (top_builddir, "hb-shape-fuzzer" + EXEEXT) 29 if not os.path.exists (hb_shape_fuzzer): 30 if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]): 45 parent_path = os.path.join (srcdir, "fonts") 47 path = os.path.join (parent_path, file) variable 50 text, returncode = cmd ([valgrind, '--leak-check=full', '--error-exitcode=1', hb_shape_fuzzer, path]) 52 text, returncode = cmd ([hb_shape_fuzzer, path])
|
/third_party/protobuf/src/google/protobuf/io/ |
H A D | io_win32.h | 65 PROTOBUF_EXPORT FILE* fopen(const char* path, const char* mode); 66 PROTOBUF_EXPORT int access(const char* path, int mode); 67 PROTOBUF_EXPORT int chdir(const char* path); 71 PROTOBUF_EXPORT int mkdir(const char* path, int _mode); 72 PROTOBUF_EXPORT int open(const char* path, int flags, int mode = 0); 75 PROTOBUF_EXPORT int stat(const char* path, struct _stat* buffer); 77 PROTOBUF_EXPORT std::wstring testonly_utf8_to_winpath(const char* path); 86 // Expand wildcards in a path pattern, feed the result to a consumer function. 88 // `path` must be a valid, Windows-style path [all...] |
/third_party/skia/gm/ |
H A D | hittestpath.cpp | 18 static void test_hittest(SkCanvas* canvas, const SkPath& path) { in test_hittest() argument 20 SkRect r = path.getBounds(); in test_hittest() 23 canvas->drawPath(path, paint); in test_hittest() 30 if (path.contains(x, y)) { in test_hittest() 66 SkPath path = b.detach(); in DEF_SIMPLE_GM_CAN_FAIL() local 68 test_hittest(canvas, path); in DEF_SIMPLE_GM_CAN_FAIL() 71 path.setFillType(SkPathFillType::kWinding); in DEF_SIMPLE_GM_CAN_FAIL() 73 test_hittest(canvas, path); in DEF_SIMPLE_GM_CAN_FAIL()
|
H A D | getpostextpath.cpp | 26 static void strokePath(SkCanvas* canvas, const SkPath& path) { in strokePath() argument 31 canvas->drawPath(path, paint); in strokePath() 37 SkPath path; in DEF_SIMPLE_GM() local 49 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, nullptr); in DEF_SIMPLE_GM() 50 strokePath(canvas, path); in DEF_SIMPLE_GM() 51 path.reset(); in DEF_SIMPLE_GM() 70 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, &pos[0]); in DEF_SIMPLE_GM() 71 strokePath(canvas, path); in DEF_SIMPLE_GM()
|
/third_party/skia/platform_tools/android/bin/ |
H A D | android_build_app | 28 args_gn_path = os.path.join(args.output_dir, "args.gn") 29 if os.path.exists(args_gn_path): 39 '-P' + target_cpu + '.out.dir=' + os.path.abspath(args.output_dir)] 43 subprocess.check_call(cmd, cwd=os.path.join(os.path.dirname(__file__), "..")) 49 current_dir = os.path.dirname(__file__) 50 apk_src = os.path.join(current_dir, "..", "apps", args.app_name, "build", "outputs", "apk", 53 apk_dst = os.path.join(args.output_dir, args.app_name + ".apk")
|
/third_party/skia/infra/bots/recipe_modules/flavor/resources/ |
H A D | symbolize_stack_trace.py | 55 stack_line = r'^(?P<path>.+)\(\+?(?P<addr>.*)\) ?\[(?P<addr2>.+)\]' 73 path = m.group('path') 76 if os.path.exists(path): 80 sym = subprocess.check_output(['addr2line', '-Cfpe', path, addr]) 87 if path.startswith(basedir): 88 path = path[len(basedir)+1:] 90 line = path [all...] |
/third_party/vk-gl-cts/scripts/src_util/ |
H A D | pre_commit.py | 51 def croak(path, line, msg, *args): 54 if path is not None: 55 sys.stderr.write("%s:%d: " % (path, line or 0)) 69 for path in get_changed_paths('ACR'): 71 path.decode('ascii') 73 croak(path, 0, "Non-ASCII file name") 96 for path in get_changed_paths('AM'): 97 check_external_guards(open(path))
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | amber_verify.py | 28 scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts") 29 sys.path.insert(0, scriptPath) 42 DEFAULT_BUILD_DIR = os.path.join(tempfile.gettempdir(), "amber-verify", "{targetName}-{buildType}") 44 DEFAULT_DST_DIR = os.path.join(DEQP_DIR, "external", "vulkancts", "data", "vulkan", "prebuilt") 54 workDir = os.path.join(buildCfg.getBuildDir(), "modules", module.dirName) 59 binPath = generator.getBinaryPath(buildCfg.getBuildType(), os.path.join(".", "deqp-vk")) 83 "--dst-path", 86 help="Destination path") 98 if not os.path [all...] |
/third_party/skia/third_party/externals/spirv-cross/ |
H A D | test_shaders.py | 20 import os.path namespace 42 def remove_file(path): 43 #print('Removing file:', path) 44 os.remove(path) 47 f, path = tempfile.mkstemp(suffix = suff) 49 #print('Creating temporary:', path) 50 return path 70 _, ext = os.path.splitext(shader) 87 path = create_temporary() 91 remove_file(path) [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | namespace.c | 621 * lookup_mnt - Return the first child mount mounted at path 636 struct vfsmount *lookup_mnt(const struct path *path) in lookup_mnt() argument 645 child_mnt = __lookup_mnt(path->mnt, path->dentry); in lookup_mnt() 1228 /* path_is_mountpoint() - Check if path is a mount in the current 1235 * checks if the passed in path is a mountpoint rather than the dentry 1238 bool path_is_mountpoint(const struct path *path) in path_is_mountpoint() argument 1243 if (!d_mountpoint(path in path_is_mountpoint() 1257 mnt_clone_internal(const struct path *path) mnt_clone_internal() argument 1717 can_umount(const struct path *path, int flags) can_umount() argument 1735 path_umount(struct path *path, int flags) path_umount() argument 1753 struct path path; ksys_umount() local 1882 collect_mounts(const struct path *path) collect_mounts() argument 1950 clone_private_mount(const struct path *path) clone_private_mount() argument 2225 lock_mount(struct path *path) lock_mount() argument 2298 do_change_type(struct path *path, int ms_flags) do_change_type() argument 2357 do_loopback(struct path *path, const char *old_name, int recurse) do_loopback() argument 2403 open_detached_copy(struct path *path, bool recursive) open_detached_copy() argument 2445 struct path path; SYSCALL_DEFINE3() local 2579 do_reconfigure_mnt(struct path *path, unsigned int mnt_flags) do_reconfigure_mnt() argument 2610 do_remount(struct path *path, int ms_flags, int sb_flags, int mnt_flags, void *data) do_remount() argument 2769 do_move_mount_old(struct path *path, const char *old_name) do_move_mount_old() argument 2789 do_add_mount(struct mount *newmnt, struct mountpoint *mp, struct path *path, int mnt_flags) do_add_mount() argument 2864 do_new_mount(struct path *path, const char *fstype, int sb_flags, int mnt_flags, const char *name, void *data) do_new_mount() argument 2919 finish_automount(struct vfsmount *m, struct path *path) finish_automount() argument 3166 path_mount(const char *dev_name, struct path *path, const char *type_page, unsigned long flags, void *data_page) path_mount() argument 3248 struct path path; do_mount() local 3407 struct path path; mount_subtree() local [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
H A D | get_hardware_info.cpp | 49 * @param {string} &path-Reg node directory 52 void GetHardwareInfo::GetResverRegPath(string &path) in GetResverRegPath() argument 55 StringUtils::GetInstance().StringSplit(path, "/", strs); in GetResverRegPath() 56 path = ""; in GetResverRegPath() 62 path += "/"; in GetResverRegPath() 63 path += strs.at(i); in GetResverRegPath() 107 bool GetHardwareInfo::GetResverRegValue(const string &path, uint64_t &value) in GetResverRegValue() argument 109 string cmd = "xxd -g 4 " + path; in GetResverRegValue() 125 for (string path : paths) { in CalcHardware() 126 GetResverRegPath(path); in CalcHardware() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/ |
H A D | SerializableChecker.java | 43 private String path = null; field in SerializableChecker 47 public SerializableChecker(String path) in SerializableChecker() argument 49 this.path = path; in SerializableChecker() 51 if (path != null) { in SerializableChecker() 52 File dir = new File(path); in SerializableChecker() 72 File file = new File(path + File.separator + className + ".dat"); in writeFile() 134 if (path != null) { in visit() 179 String path = null; in main() 186 path in main() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
H A D | SerializableChecker.java | 40 private String path = null; field in SerializableChecker 44 public SerializableChecker(String path) in SerializableChecker() argument 46 this.path = path; in SerializableChecker() 48 if (path != null) { in SerializableChecker() 49 File dir = new File(path); in SerializableChecker() 69 File file = new File(path + File.separator + className + ".dat"); in writeFile() 131 if (path != null) { in visit() 176 String path = null; in main() 183 path in main() [all...] |
/third_party/lzma/CPP/Common/ |
H A D | Wildcard.h | 15 void SplitPathToParts(const UString &path, UStringVector &pathParts);
16 void SplitPathToParts_2(const UString &path, UString &dirPrefix, UString &name);
17 void SplitPathToParts_Smart(const UString &path, UString &dirPrefix, UString &name); // ignores dir delimiter at the end of (path)
19 UString ExtractDirPrefixFromPath(const UString &path);
20 UString ExtractFileNameFromPath(const UString &path);
22 bool DoesNameContainWildcard(const UString &path);
113 int FindSubNode(const UString &path) const;
116 // void AddItem(bool include, const UString &path, const CCensorPathProps &props);
135 CheckPathVect() doesn't check path i 211 AddPreItem_NoWildcard(const UString &path) AddPreItem_NoWildcard() argument [all...] |