Home
last modified time | relevance | path

Searched refs:path (Results 226 - 250 of 11028) sorted by relevance

12345678910>>...442

/third_party/node/deps/v8/third_party/test262-harness/src/
H A D_packager.py38 if not os.path.exists(EXCLUDED_FILENAME):
57 if not os.path.exists(TEST262_CASES_DIR):
58 print "Cannot generate (JSON) test262 tests when the path containing said tests, %s, does not exist!" % TEST262_CASES_DIR
61 if not os.path.exists(TEST262_HARNESS_DIR):
62 print "Cannot copy the test harness from a path, %s, that does not exist!" % TEST262_HARNESS_DIR
65 if not os.path.exists(TEST262_WEB_CASES_DIR):
68 if not os.path.exists(TEST262_WEB_HARNESS_DIR):
78 if dirName==os.path.dirname(dirName):
79 if not os.path.exists(dirName):
82 if not os.path
[all...]
/third_party/skia/docs/examples/
H A DPath_isRect.cpp7 auto debugster = [](const char* prefix, const SkPath& path) -> void { in REG_FIDDLE()
11 path.isRect(&rect, &isClosed, &direction) ? in REG_FIDDLE()
17 SkPath path; in REG_FIDDLE() local
18 debugster("empty", path); in REG_FIDDLE()
19 path.addRect({10, 20, 30, 40}); in REG_FIDDLE()
20 debugster("addRect", path); in REG_FIDDLE()
21 path.moveTo(60, 70); in REG_FIDDLE()
22 debugster("moveTo", path); in REG_FIDDLE()
23 path.lineTo(60, 70); in REG_FIDDLE()
24 debugster("lineTo", path); in REG_FIDDLE()
[all...]
H A DPath_isEmpty.cpp7 auto debugster = [](const char* prefix, const SkPath& path) -> void { in REG_FIDDLE()
8 SkDebugf("%s path is %s" "empty\n", prefix, path.isEmpty() ? "" : "not "); in REG_FIDDLE()
10 SkPath path; in REG_FIDDLE() local
11 debugster("initial", path); in REG_FIDDLE()
12 path.moveTo(0, 0); in REG_FIDDLE()
13 debugster("after moveTo", path); in REG_FIDDLE()
14 path.rewind(); in REG_FIDDLE()
15 debugster("after rewind", path); in REG_FIDDLE()
16 path in REG_FIDDLE()
[all...]
H A DPath_countPoints.cpp7 auto debugster = [](const char* prefix, const SkPath& path) -> void { in REG_FIDDLE()
8 SkDebugf("%s point count: %d\n", prefix, path.countPoints()); in REG_FIDDLE()
10 SkPath path; in REG_FIDDLE() local
11 debugster("empty", path); in REG_FIDDLE()
12 path.lineTo(0, 0); in REG_FIDDLE()
13 debugster("zero line", path); in REG_FIDDLE()
14 path.rewind(); in REG_FIDDLE()
15 path.moveTo(10, 10); in REG_FIDDLE()
16 path.lineTo(20, 20); in REG_FIDDLE()
17 debugster("line", path); in REG_FIDDLE()
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file_operator.c32 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
34 if (path != NULL && strlen(path) > 0) { in GetFileName()
35 if (strncpy_s(fullFileName, fullFileNameLen, path, strlen(path)) != EOK) { in GetFileName()
39 if (path[strlen(path) - 1] != '/') { in GetFileName()
56 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
65 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
85 int32_t CmIsDirExist(const char *path) in CmIsDirExist() argument
206 CmFileRemove(const char *path, const char *fileName) CmFileRemove() argument
223 CmMakeDir(const char *path) CmMakeDir() argument
240 CmUserBakupMakeDir(const char *path, const mode_t *mode) CmUserBakupMakeDir() argument
262 CmOpenDir(const char *path) CmOpenDir() argument
294 CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) CmFileRead() argument
311 CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) CmFileWrite() argument
328 CmUserBackupFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) CmUserBackupFileWrite() argument
345 CmFileSize(const char *path, const char *fileName) CmFileSize() argument
389 CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, const uint32_t arraySize, uint32_t *fileCount) CmUidLayerGetFileCountAndNames() argument
439 CmUserIdLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, const uint32_t arraySize, uint32_t *fileCount) CmUserIdLayerGetFileCountAndNames() argument
488 CmIsFileExist(const char *path, const char *fileName) CmIsFileExist() argument
530 DirRemove(const char *path) DirRemove() argument
567 CmDirRemove(const char *path) CmDirRemove() argument
[all...]
/third_party/libfuse/example/
H A Dpassthrough.c76 static int xmp_getattr(const char *path, struct stat *stbuf, in xmp_getattr() argument
82 res = lstat(path, stbuf); in xmp_getattr()
89 static int xmp_access(const char *path, int mask) in xmp_access() argument
93 res = access(path, mask); in xmp_access()
100 static int xmp_readlink(const char *path, char *buf, size_t size) in xmp_readlink() argument
104 res = readlink(path, buf, size - 1); in xmp_readlink()
113 static int xmp_readdir(const char *path, void *buf, fuse_fill_dir_t filler, in xmp_readdir() argument
124 dp = opendir(path); in xmp_readdir()
141 static int xmp_mknod(const char *path, mode_t mode, dev_t rdev) in xmp_mknod() argument
145 res = mknod_wrapper(AT_FDCWD, path, NUL in xmp_mknod()
152 xmp_mkdir(const char *path, mode_t mode) xmp_mkdir() argument
163 xmp_unlink(const char *path) xmp_unlink() argument
174 xmp_rmdir(const char *path) xmp_rmdir() argument
221 xmp_chmod(const char *path, mode_t mode, struct fuse_file_info *fi) xmp_chmod() argument
234 xmp_chown(const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi) xmp_chown() argument
247 xmp_truncate(const char *path, off_t size, struct fuse_file_info *fi) xmp_truncate() argument
263 xmp_utimens(const char *path, const struct timespec ts[2], struct fuse_file_info *fi) xmp_utimens() argument
278 xmp_create(const char *path, mode_t mode, struct fuse_file_info *fi) xmp_create() argument
291 xmp_open(const char *path, struct fuse_file_info *fi) xmp_open() argument
303 xmp_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi) xmp_read() argument
326 xmp_write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi) xmp_write() argument
350 xmp_statfs(const char *path, struct statvfs *stbuf) xmp_statfs() argument
361 xmp_release(const char *path, struct fuse_file_info *fi) xmp_release() argument
368 xmp_fsync(const char *path, int isdatasync, struct fuse_file_info *fi) xmp_fsync() argument
381 xmp_fallocate(const char *path, int mode, off_t offset, off_t length, struct fuse_file_info *fi) xmp_fallocate() argument
410 xmp_setxattr(const char *path, const char *name, const char *value, size_t size, int flags) xmp_setxattr() argument
419 xmp_getxattr(const char *path, const char *name, char *value, size_t size) xmp_getxattr() argument
428 xmp_listxattr(const char *path, char *list, size_t size) xmp_listxattr() argument
436 xmp_removexattr(const char *path, const char *name) xmp_removexattr() argument
487 xmp_lseek(const char *path, off_t off, int whence, struct fuse_file_info *fi) xmp_lseek() argument
[all...]
/third_party/vk-gl-cts/external/
H A Dfetch_sources.py35 scriptPath = os.path.join(os.path.dirname(__file__), "..", "scripts")
36 sys.path.insert(0, scriptPath)
40 EXTERNAL_DIR = os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
47 def onReadonlyRemoveError (func, path, exc_info):
48 os.chmod(path, stat.S_IWRITE)
49 os.unlink(path)
57 fullDstPath = os.path
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dctree.c30 *root, struct btrfs_path *path, int level);
32 const struct btrfs_key *ins_key, struct btrfs_path *path,
196 /* this also releases the path */
206 * path release drops references on the extent buffers in the path
207 * and it drops any locks held by this path
1043 struct btrfs_path *path, int level) in balance_level()
1053 int orig_slot = path->slots[level]; in balance_level()
1058 mid = path->nodes[level]; in balance_level()
1060 WARN_ON(path in balance_level()
1041 balance_level(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) balance_level() argument
1299 push_nodes_for_insert(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) push_nodes_for_insert() argument
1450 reada_for_search(struct btrfs_fs_info *fs_info, struct btrfs_path *path, int level, int slot, u64 objectid) reada_for_search() argument
1533 reada_for_balance(struct btrfs_path *path, int level) reada_for_balance() argument
1566 unlock_up(struct btrfs_path *path, int level, int lowest_unlock, int min_write_lock_level, int *write_lock_level) unlock_up() argument
1790 btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, u64 iobjectid, u64 ioff, u8 key_type, struct btrfs_key *found_key) btrfs_find_item() argument
1919 finish_need_commit_sem_search(struct btrfs_path *path) finish_need_commit_sem_search() argument
1965 search_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *key, struct btrfs_path *path, int ins_len, int prev_cmp) search_leaf() argument
2477 btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path) btrfs_prev_leaf() argument
2632 btrfs_search_backwards(struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *path) btrfs_search_backwards() argument
2658 btrfs_get_next_valid_item(struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *path) btrfs_get_next_valid_item() argument
2681 fixup_low_keys(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_disk_key *key, int level) fixup_low_keys() argument
2711 btrfs_set_item_key_safe(struct btrfs_trans_handle *trans, struct btrfs_path *path, const struct btrfs_key *new_key) btrfs_set_item_key_safe() argument
2975 insert_new_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) insert_new_root() argument
3042 insert_ptr(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_disk_key *key, u64 bytenr, int slot, int level) insert_ptr() argument
3098 split_node(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) split_node() argument
3233 __push_leaf_right(struct btrfs_trans_handle *trans, struct btrfs_path *path, int data_size, int empty, struct extent_buffer *right, int free_space, u32 left_nritems, u32 min_slot) __push_leaf_right() argument
3371 push_leaf_right(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int min_data_size, int data_size, int empty, u32 min_slot) push_leaf_right() argument
3449 __push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_path *path, int data_size, int empty, struct extent_buffer *left, int free_space, u32 right_nritems, u32 max_slot) __push_leaf_left() argument
3587 push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int min_data_size, int data_size, int empty, u32 max_slot) push_leaf_left() argument
3649 copy_for_split(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct extent_buffer *l, struct extent_buffer *right, int slot, int mid, int nritems) copy_for_split() argument
3718 push_for_double_split(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int data_size) push_for_double_split() argument
3778 split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *ins_key, struct btrfs_path *path, int data_size, int extend) split_leaf() argument
3963 setup_leaf_for_split(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int ins_len) setup_leaf_for_split() argument
4029 split_item(struct btrfs_trans_handle *trans, struct btrfs_path *path, const struct btrfs_key *new_key, unsigned long split_offset) split_item() argument
4111 btrfs_split_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *new_key, unsigned long split_offset) btrfs_split_item() argument
4133 btrfs_truncate_item(struct btrfs_trans_handle *trans, struct btrfs_path *path, u32 new_size, int from_end) btrfs_truncate_item() argument
4225 btrfs_extend_item(struct btrfs_trans_handle *trans, struct btrfs_path *path, u32 data_size) btrfs_extend_item() argument
4295 setup_items_for_insert(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_item_batch *batch) setup_items_for_insert() argument
4392 btrfs_setup_item_for_insert(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *key, u32 data_size) btrfs_setup_item_for_insert() argument
4412 btrfs_insert_empty_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_item_batch *batch) btrfs_insert_empty_items() argument
4444 struct btrfs_path *path; btrfs_insert_item() local
4470 btrfs_duplicate_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *new_key) btrfs_duplicate_item() argument
4504 btrfs_del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level, int slot) btrfs_del_ptr() argument
4561 btrfs_del_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct extent_buffer *leaf) btrfs_del_leaf() argument
4590 btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int slot, int nr) btrfs_del_items() argument
4738 btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key, struct btrfs_path *path, u64 min_trans) btrfs_search_forward() argument
4853 btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, int level, u64 min_trans) btrfs_find_next_key() argument
4918 btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, u64 time_seq) btrfs_next_old_leaf() argument
5119 btrfs_next_old_item(struct btrfs_root *root, struct btrfs_path *path, u64 time_seq) btrfs_next_old_item() argument
5133 btrfs_previous_item(struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid, int type) btrfs_previous_item() argument
5175 btrfs_previous_extent_item(struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid) btrfs_previous_extent_item() argument
[all...]
/kernel/linux/linux-5.10/Documentation/sphinx/
H A Dkernel_include.py16 the path name and allows to include files from arbitrary locations.
34 import os.path namespace
62 path = os.path.realpath(
63 os.path.expandvars(self.arguments[0]))
66 if path.startswith(os.sep + "etc"):
68 'Problems with "%s" directive, prohibited path: %s'
69 % (self.name, path))
71 self.arguments[0] = path
88 source_dir = os.path
[all...]
/test/testfwk/xdevice/src/xdevice/_core/
H A Dvariables.py27 SRC_DIR = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
28 MODULES_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
29 TOP_DIR = os.path.abspath(
30 os.path.dirname(os.path
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dnftw.c59 void remove_directory(const char *path) in remove_directory() argument
65 if (!(dir = opendir(path))) { in remove_directory()
75 int result = snprintf(filepath, sizeof(filepath), "%s/%s", path, entry->d_name); in remove_directory()
81 int result = snprintf(filepath, sizeof(filepath), "%s/%s", path, entry->d_name); in remove_directory()
94 if (rmdir(path) == -1) { in remove_directory()
95 t_error("%s error in rmdir test nftw path! \n", __func__); in remove_directory()
99 void nftw_build_testfile(const char *path) in nftw_build_testfile() argument
102 if (mkdir(path, 0755) == -1) { in nftw_build_testfile()
103 t_error("%s error in mkdir test nftw path! %s \n", __func__, path); in nftw_build_testfile()
182 char path[PATH_MAX]; nftw_build_testDir() local
229 char path[PATH_MAX * TEST_DIGIT_TWO]; nftw_0300() local
[all...]
/third_party/node/tools/gyp/pylib/gyp/
H A Dmac_tool.py53 extension = os.path.splitext(source)[1].lower()
54 if os.path.isdir(source):
59 if os.path.exists(dest):
69 if os.path.exists(dest):
80 base = os.path.dirname(os.path.realpath(__file__))
81 if os.path.relpath(source):
82 source = os.path.join(base, source)
83 if os.path.relpath(dest):
84 dest = os.path
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dmac_tool.py53 extension = os.path.splitext(source)[1].lower()
54 if os.path.isdir(source):
59 if os.path.exists(dest):
69 if os.path.exists(dest):
80 base = os.path.dirname(os.path.realpath(__file__))
81 if os.path.relpath(source):
82 source = os.path.join(base, source)
83 if os.path.relpath(dest):
84 dest = os.path
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c32 #define format_cgroup_path(buf, path) \
34 CGROUP_WORK_DIR, path)
46 char path[PATH_MAX + 1]; in enable_all_controllers() local
52 snprintf(path, sizeof(path), "%s/cgroup.controllers", cgroup_path); in enable_all_controllers()
53 fd = open(path, O_RDONLY); in enable_all_controllers()
55 log_err("Opening cgroup.controllers: %s", path); in enable_all_controllers()
62 log_err("Reading cgroup.controllers: %s", path); in enable_all_controllers()
72 snprintf(path, sizeof(path), " in enable_all_controllers()
178 join_cgroup(const char *path) join_cgroup() argument
218 create_and_get_cgroup(const char *path) create_and_get_cgroup() argument
246 get_cgroup_id(const char *path) get_cgroup_id() argument
294 cgroup_setup_and_join(const char *path) cgroup_setup_and_join() argument
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
H A Dmisc.c54 char path[SYSFS_PATH_MAX]; in cpupower_intel_get_perf_bias() local
61 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_get_perf_bias()
63 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in cpupower_intel_get_perf_bias()
75 char path[SYSFS_PATH_MAX]; in cpupower_intel_set_perf_bias() local
81 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_set_perf_bias()
84 if (cpupower_write_sysfs(path, linebuf, 3) <= 0) in cpupower_intel_set_perf_bias()
92 char path[SYSFS_PATH_MAX]; in cpupower_set_epp() local
95 snprintf(path, sizeo in cpupower_set_epp()
111 char path[SYSFS_PATH_MAX]; cpupower_set_amd_pstate_mode() local
129 char path[SYSFS_PATH_MAX]; cpupower_set_turbo_boost() local
[all...]
/third_party/python/Lib/distutils/
H A Darchive_util.py87 mkpath(os.path.dirname(archive_name), dry_run=dry_run)
132 (if installed and found on the default search path). If neither tool is
137 mkpath(os.path.dirname(zip_filename), dry_run=dry_run)
171 path = os.path.normpath(os.path.join(base_dir, ''))
172 zip.write(path, path)
173 log.info("adding '%s'", path)
176 path
[all...]
/third_party/skia/gm/
H A Dsharedcorners.cpp114 SkPath path; in drawTriangleBoxes() local
115 path.setFillType(SkPathFillType::kEvenOdd); in drawTriangleBoxes()
116 path.setIsVolatile(true); in drawTriangleBoxes()
118 path.moveTo(points[triangle[0]]); in drawTriangleBoxes()
119 path.lineTo(points[triangle[1]]); in drawTriangleBoxes()
120 path.lineTo(points[triangle[2]]); in drawTriangleBoxes()
121 path.close(); in drawTriangleBoxes()
123 SkScalar scale = kBoxSize / std::max(path.getBounds().height(), path.getBounds().width()); in drawTriangleBoxes()
124 path in drawTriangleBoxes()
141 drawRow(SkCanvas* canvas, const SkPath& path) drawRow() argument
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dfile_operator.cpp41 int32_t FileOperator::InputFileByPathAndContent(const std::string& path, const std::string& content) in InputFileByPathAndContent() argument
43 std::string str = path; in InputFileByPathAndContent()
54 DLP_LOG_INFO(LABEL, "path need to be canonical, str %{public}s realPath %{public}s.", str.c_str(), realPath); in InputFileByPathAndContent()
58 FILE* fp = fopen(path.c_str(), "wb"); in InputFileByPathAndContent()
60 DLP_LOG_INFO(LABEL, "failed to open %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
65 DLP_LOG_INFO(LABEL, "failed to fwrite %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
70 DLP_LOG_INFO(LABEL, "failed to fflush %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
75 DLP_LOG_INFO(LABEL, "failed to fsync %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
82 if (!ChangeModeFile(path, S_IRUSR | S_IWUSR)) { in InputFileByPathAndContent()
83 DLP_LOG_INFO(LABEL, "failed to change mode for file %{public}s, errno %{public}d.", path in InputFileByPathAndContent()
89 GetFileContentByPath(const std::string& path, std::string& content) GetFileContentByPath() argument
112 IsExistFile(const std::string& path) IsExistFile() argument
128 IsExistDir(const std::string& path) IsExistDir() argument
[all...]
/third_party/musl/porting/linux/user/include/fortify/
H A Dfcntl.h44 int open(const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags)
49 return __open_chk(path, flags);
51 return __open_real(path, flags);
56 int open(const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, unsigned modes)
60 return __open_real(path, flags, modes);
64 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags)
69 return __openat_chk(dirfd, path, flags);
71 return __openat_real(dirfd, path, flags);
76 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, mode_t modes)
80 return __openat_real(dirfd, path, flag
[all...]
/third_party/musl/include/fortify/linux/
H A Dfcntl.h44 int open(const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags)
49 return __open_chk(path, flags);
51 return __open_real(path, flags);
56 int open(const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, unsigned modes)
60 return __open_real(path, flags, modes);
64 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags)
69 return __openat_chk(dirfd, path, flags);
71 return __openat_real(dirfd, path, flags);
76 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, mode_t modes)
80 return __openat_real(dirfd, path, flag
[all...]
/third_party/skia/tests/
H A DParsePathTest.cpp11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { in test_to_from() argument
13 SkParsePath::ToSVGString(path, &str); in test_to_from()
22 // edge, even if it is not in the path. in test_to_from()
23 REPORTER_ASSERT(reporter, path == path2); in test_to_from()
24 if (path != path2) { in test_to_from()
46 SkPath path; in DEF_TEST() local
47 bool success = SkParsePath::FromSVGString(gRec[i].fStr, &path); in DEF_TEST()
50 const SkRect& pathBounds = path.getBounds(); in DEF_TEST()
53 test_to_from(reporter, path); in DEF_TEST()
68 SkPath path; in DEF_TEST() local
81 SkPath path, path2; DEF_TEST() local
124 SkPath path; DEF_TEST() local
134 SkPath path; DEF_TEST() local
[all...]
/third_party/node/test/parallel/
H A Dtest-fs-rm.js7 const path = require('path');
17 path.join(tmpdir.path, `${name}-${count++}`);
30 fs.writeFileSync(path.join(dirname, 'text.txt'), 'hello', 'utf8');
35 fs.writeFileSync(path.join(dirname, `f-${depth}-${f}`), '', options);
42 path.join(dirname, `link-${depth}-good`),
49 path.join(dirname, `link-${depth}-bad`),
57 path.join(dirname, `link-${depth}-loop-${y}`),
64 fs.writeFileSync(path
[all...]
/base/security/huks/utils/file_operator/
H A Dhks_file_operator.c36 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
38 if (path != NULL) { in GetFileName()
39 if (strncpy_s(fullFileName, fullFileNameLen, path, strlen(path)) != EOK) { in GetFileName()
43 if (path[strlen(path) - 1] != '/') { in GetFileName()
61 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
68 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
79 static int32_t IsValidPath(const char *path) in IsValidPath() argument
81 if (path in IsValidPath()
246 HksFileRemove(const char *path, const char *fileName) HksFileRemove() argument
263 HksIsFileExist(const char *path, const char *fileName) HksIsFileExist() argument
280 HksIsDirExist(const char *path) HksIsDirExist() argument
289 HksMakeDir(const char *path) HksMakeDir() argument
307 HksOpenDir(const char *path) HksOpenDir() argument
375 HksDeletDirPartTwo(const char *path) HksDeletDirPartTwo() argument
410 HksDeletDirPartOne(const char *path) HksDeletDirPartOne() argument
447 HksDeleteDir(const char *path) HksDeleteDir() argument
488 HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) HksFileRead() argument
507 HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) HksFileWrite() argument
526 HksFileSize(const char *path, const char *fileName) HksFileSize() argument
543 HksGetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) HksGetFileName() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Ddata.c26 zfree(&files[nr].path); in close_dir()
51 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir()
57 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
98 dir = opendir(data->path); in perf_data__open_dir()
104 char path[PATH_MAX]; in perf_data__open_dir() local
107 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir()
108 if (stat(path, in perf_data__open_dir()
483 has_kcore_dir(const char *path) has_kcore_dir() argument
540 is_perf_data(const char *path) is_perf_data() argument
[all...]
/third_party/skia/fuzz/
H A DFuzzCommon.cpp30 // allows some float values for path points
31 void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps) { in FuzzNicePath() argument
32 if (maxOps <= 0 || fuzz->exhausted() || path->countPoints() > 100000) { in FuzzNicePath()
37 path->setFillType((SkPathFillType)fillType); in FuzzNicePath()
41 // When we start adding the path to itself, the fuzzer can make an in FuzzNicePath()
42 // exponentially long path, which causes timeouts. in FuzzNicePath()
43 if (path->countPoints() > 100000) { in FuzzNicePath()
61 path->moveTo(a, b); in FuzzNicePath()
65 path->rMoveTo(a, b); in FuzzNicePath()
69 path in FuzzNicePath()
225 FuzzEvilPath(Fuzz* fuzz, SkPath* path, int last_verb) FuzzEvilPath() argument
[all...]

Completed in 18 milliseconds

12345678910>>...442