Home
last modified time | relevance | path

Searched refs:path (Results 301 - 325 of 8571) sorted by relevance

1...<<11121314151617181920>>...343

/third_party/ltp/include/old/
H A Dold_safe_file_ops.h33 #define FILE_SCANF(path, fmt, ...) \
35 (path), (fmt), ## __VA_ARGS__)
37 #define SAFE_FILE_SCANF(cleanup_fn, path, fmt, ...) \
39 (path), (fmt), ## __VA_ARGS__)
41 #define FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \
43 (path), (fmt), ## __VA_ARGS__)
45 #define SAFE_FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \
47 (path), (fmt), ## __VA_ARGS__)
49 #define FILE_PRINTF(path, fmt, ...) \
51 (path), (fm
[all...]
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/
H A Dcgroup_fj_common.sh19 local path="$2"
23 tst_res TINFO "Attaching task $pid to $path"
25 ROD echo "$pid" \> "$path/$task_list"
27 for task in $(cat "$path/$task_list"); do
29 tst_res TINFO "Unexpected pid $task in $path/$task_list, expected $pid"
39 path="$1"
41 [ ! -d "$path" ] && ROD mkdir "$path"
49 ROD cat "$mount_point/cpus" \> "$path/cpus"
50 ROD cat "$mount_point/mems" \> "$path/mem
[all...]
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/mutators/
H A Dmutator.js25 visitor['enter'] = (path) => {
26 if (this.shouldSkip(path.node)) {
27 path.skip();
32 oldEnter(path);
70 insertBeforeSkip(path, node) {
72 path.insertBefore(node);
75 insertAfterSkip(path, node) {
77 path.insertAfter(node);
80 replaceWithSkip(path, node) {
82 path
[all...]
H A Dvariable_mutator.js17 function _isInFunctionParam(path) {
18 const child = path.find(p => p.parent && babelTypes.isFunction(p.parent));
32 Identifier(path) {
37 if (!common.isVariableIdentifier(path.node.name)) {
42 if (babelTypes.isVariableDeclarator(path.parent)) {
47 if (_isInFunctionParam(path)) {
51 if (common.isInForLoopCondition(path) ||
52 common.isInWhileLoop(path)) {
56 const randVar = common.randomVariable(path);
63 path
[all...]
/third_party/ntfs-3g/libntfs-3g/
H A Drealpath.c26 char *ntfs_realpath(const char *path, char *resolved_path) in ntfs_realpath() argument
28 strncpy(resolved_path, path, PATH_MAX); in ntfs_realpath()
49 char path[sizeof(name) + 16]; in canonicalize_dm_name() local
52 snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname); in canonicalize_dm_name()
53 if (!(f = fopen(path, "r"))) in canonicalize_dm_name()
59 snprintf(path, sizeof(path), "/dev/mapper/%s", name); in canonicalize_dm_name()
60 res = strcpy(canonical, path); in canonicalize_dm_name()
67 * Canonicalize a device path
83 ntfs_realpath_canonicalize(const char *path, char *canonical) ntfs_realpath_canonicalize() argument
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/stat/
H A Dfchmodat.c34 char path[PATH_MAX] = {0}; in fchmodat_0100() local
35 FILE_ABSOLUTE_PATH(STR_TEST_TXT, path); in fchmodat_0100()
36 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in fchmodat_0100()
38 path, in fchmodat_0100()
42 stat(path, &buf); in fchmodat_0100()
46 remove(path); in fchmodat_0100()
58 char path[PATH_MAX] = {0}; in fchmodat_0200() local
59 FILE_ABSOLUTE_PATH(STR_TEST_TXT, path); in fchmodat_0200()
60 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in fchmodat_0200()
62 path, in fchmodat_0200()
[all...]
/third_party/protobuf/src/google/protobuf/
H A Dtest_util2.h47 std::string path = google3_path.substr(prefix.size()); in TranslatePathToOpensource() local
49 path = StringReplace(path, "internal/", "", false); in TranslatePathToOpensource()
50 path = StringReplace(path, "proto/", "", false); in TranslatePathToOpensource()
51 path = StringReplace(path, "public/", "", false); in TranslatePathToOpensource()
52 return "google/protobuf/" + path; in TranslatePathToOpensource()
56 std::string path = google3_path; in MaybeTranslatePath() local
57 path in MaybeTranslatePath()
[all...]
/third_party/python/Lib/test/test_tools/
H A D__init__.py4 import os.path namespace
20 basepath = os.path.normpath(
21 os.path.dirname( # <src/install dir>
22 os.path.dirname( # Lib
23 os.path.dirname( # test
24 os.path.dirname(__file__))))) # test_tools
26 toolsdir = os.path.join(basepath, 'Tools')
27 scriptsdir = os.path.join(toolsdir, 'scripts')
31 tooldir = os.path.join(toolsdir, tool)
35 if not os.path
[all...]
/third_party/skia/docs/examples/
H A Dgpuconicbug.cpp6 SkPath path; in REG_FIDDLE() local
7 path.moveTo(SkBits2Float(0x43507c37), SkBits2Float(0x4278037b)); // 208.485f, 62.0034f in REG_FIDDLE()
8 path.lineTo(SkBits2Float(0x434fdd66), SkBits2Float(0x41701eb0)); // 207.865f, 15.0075f in REG_FIDDLE()
9 path.lineTo(SkBits2Float(0x434fdd67), SkBits2Float(0x41701eb0)); // 207.865f, 15.0075f in REG_FIDDLE()
10 path.conicTo( in REG_FIDDLE()
14 path.lineTo(SkBits2Float(0x4350be1b), SkBits2Float(0x427800df)); // 208.743f, 62.0009f in REG_FIDDLE()
15 path.lineTo(SkBits2Float(0x4350be1b), SkBits2Float(0x427800de)); // 208.743f, 62.0008f in REG_FIDDLE()
16 path.conicTo( in REG_FIDDLE()
20 path.lineTo(SkBits2Float(0x43507c37), SkBits2Float(0x4278037b)); // 208.485f, 62.0034f in REG_FIDDLE()
21 path in REG_FIDDLE()
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_util.py106 spec = self.machinery.ModuleSpec('test', object(), origin='some/path')
113 spec.cached = 'some/path'
280 module.__path__ = ['<path>']
407 def find_spec(name, path=None, target=None): return name, path, target
565 # Given the path to a .py file, return the path to its PEP 3147
567 path = os.path.join('foo', 'bar', 'baz', 'qux.py')
568 expect = os.path
[all...]
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_dir.cpp41 static bool IsEmptyDirectory(const string &path) in IsEmptyDirectory() argument
43 DIR *dir = opendir(path.c_str()); in IsEmptyDirectory()
60 static tuple<ErrCode, map<string, struct stat>, map<string, size_t>> GetFile(const string &path, off_t size = -1) in GetFile() argument
65 if (stat(path.data(), &sta) == -1) { in GetFile()
68 if (path == "/") { in GetFile()
72 smallFiles.insert(make_pair(path, sta.st_size)); in GetFile()
74 files.try_emplace(path, sta); in GetFile()
79 static uint32_t CheckOverLongPath(const string &path) in CheckOverLongPath() argument
81 uint32_t len = path.length(); in CheckOverLongPath()
83 size_t found = path in CheckOverLongPath()
90 GetDirFilesDetail(const string &path, bool recursion, off_t size = -1) GetDirFilesDetail() argument
148 GetDirFiles(const string &path) GetDirFiles() argument
315 IsNotPath(const string &path, vector<string> &bigFiles, vector<string> &smallFiles, off_t size) IsNotPath() argument
332 GetUser0DirFilesDetail(const string &path, off_t size = -1) GetUser0DirFilesDetail() argument
[all...]
/third_party/python/Tools/freeze/
H A Dfreeze.py67 -r prefix=f: Replace path prefix.
68 Replace prefix with f in the source path references
78 module names that are search in the path instead.
118 path = sys.path[:]
218 ishome = os.path.exists(os.path.join(prefix, 'Python', 'ceval.c'))
231 incldir = os.path.join(prefix, 'Include')
233 config_c_in = os.path.join(prefix, 'Modules', 'config.c.in')
234 frozenmain_c = os.path
[all...]
/third_party/toybox/lib/
H A Dportability.c56 struct mtab_list *xgetmountlist(char *path) in xgetmountlist() argument
62 if (path) error_exit("xgetmountlist"); in xgetmountlist()
149 struct mtab_list *xgetmountlist(char *path) in xgetmountlist() argument
154 char *p = path ? path : "/proc/mounts"; in xgetmountlist()
169 if (!path) { in xgetmountlist()
206 int xnotify_add(struct xnotify *not, int fd, char *path) in xnotify_add() argument
214 not->paths[not->count] = path; in xnotify_add()
220 int xnotify_wait(struct xnotify *not, char **path) in xnotify_wait() argument
227 // We get the fd for free, but still have to search for the path in xnotify_wait()
253 xnotify_add(struct xnotify *not, int fd, char *path) xnotify_add() argument
266 xnotify_wait(struct xnotify *not, char **path) xnotify_wait() argument
286 xattr_get(const char *path, const char *name, void *value, size_t size) xattr_get() argument
291 xattr_lget(const char *path, const char *name, void *value, size_t size) xattr_lget() argument
301 xattr_list(const char *path, char *list, size_t size) xattr_list() argument
306 xattr_llist(const char *path, char *list, size_t size) xattr_llist() argument
316 xattr_set(const char* path, const char* name, const void* value, size_t size, int flags) xattr_set() argument
322 xattr_lset(const char* path, const char* name, const void* value, size_t size, int flags) xattr_lset() argument
336 xattr_get(const char *path, const char *name, void *value, size_t size) xattr_get() argument
341 xattr_lget(const char *path, const char *name, void *value, size_t size) xattr_lget() argument
351 xattr_list(const char *path, char *list, size_t size) xattr_list() argument
356 xattr_llist(const char *path, char *list, size_t size) xattr_llist() argument
366 xattr_set(const char* path, const char* name, const void* value, size_t size, int flags) xattr_set() argument
372 xattr_lset(const char* path, const char* name, const void* value, size_t size, int flags) xattr_lset() argument
390 mknodat(int dirfd, const char *path, mode_t mode, dev_t dev) mknodat() argument
[all...]
H A Ddirtree.c24 // Create a dirtree node from a path, with stat and symlink info.
63 char *path = parent ? dirtree_path(parent, 0) : ""; in dirtree_add_node() local
65 perror_msg("%s%s%s", path, parent ? "/" : "", name); in dirtree_add_node()
66 if (parent) free(path); in dirtree_add_node()
73 // Return path to this node, assembled recursively.
76 // to return the length of the path, or a value greater than 0 to allocate
81 char *path; in dirtree_path() local
85 path = xmalloc(*plen); in dirtree_path()
87 return path; in dirtree_path()
91 path in dirtree_path()
144 char *path = dirtree_path(node, 0); dirtree_recurse() local
189 dirtree_flagread(char *path, int flags, int (*callback)(struct dirtree *node)) dirtree_flagread() argument
196 dirtree_read(char *path, int (*callback)(struct dirtree *node)) dirtree_read() argument
[all...]
/third_party/node/deps/v8/tools/
H A Dgenerate-header-include-checks.py21 import os.path namespace
28 MY_DIR = os.path.dirname(os.path.realpath(__file__))
29 V8_DIR = os.path.dirname(MY_DIR)
30 OUT_DIR = os.path.join(V8_DIR, 'check-header-includes')
81 full_name = os.path.join(V8_DIR, filename)
82 if not os.path.exists(full_name):
84 if os.path.isdir(full_name):
86 full_name = os.path.join(filename, subfile)
104 split = os.path
[all...]
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dnftw.c22 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h) in do_nftw() argument
24 size_t l = strlen(path), j = l && path[l-1]=='/' ? l-1 : l; in do_nftw()
31 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) { in do_nftw()
32 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st)) in do_nftw()
37 if (access(path, R_OK) < 0) type = FTW_DNR; in do_nftw()
61 for (k=j; k && path[k]=='/'; k--); in do_nftw()
62 for (; k && path[k-1]!='/'; k--); in do_nftw()
66 if (!(flags & FTW_DEPTH) && (r=fn(path, in do_nftw()
107 nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags) nftw() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/tests/check_build_files/
H A Dmain.go25 "path/filepath"
55 filepath.Walk(wd, func(path string, info os.FileInfo, err error) error {
60 rel, err := filepath.Rel(wd, path)
74 content, err := ioutil.ReadFile(path)
80 switch filepath.Ext(path) {
82 errs = append(errs, checkBlueprint(path, string(content))...)
84 errs = append(errs, checkGn(path, string(content))...)
86 errs = append(errs, checkBazel(path, string(content))...)
109 func checkBlueprint(path, content string) []error {
116 if err := checkSource(path, sourc
[all...]
/third_party/skia/src/pathops/
H A DSkOpBuilder.cpp15 static bool one_contour(const SkPath& path) { in one_contour() argument
17 int verbCount = path.countVerbs(); in one_contour()
19 (void) path.getVerbs(verbs, verbCount); in one_contour()
28 void SkOpBuilder::ReversePath(SkPath* path) { in ReversePath() argument
31 SkAssertResult(path->getLastPt(&lastPt)); in ReversePath()
33 temp.reversePathTo(*path); in ReversePath()
35 *path = temp; in ReversePath()
38 bool SkOpBuilder::FixWinding(SkPath* path) { in FixWinding() argument
39 SkPathFillType fillType = path->getFillType(); in FixWinding()
45 if (one_contour(*path)) { in FixWinding()
111 add(const SkPath& path, SkPathOp op) add() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DIntervalMap.cpp19 assert(!path.empty() && "Can't replace missing root"); in replaceRoot()
20 path.front() = Entry(Root, Size, Offsets.first); in replaceRoot()
21 path.insert(path.begin() + 1, Entry(subtree(0), Offsets.second)); in replaceRoot()
31 while (l && path[l].offset == 0) in getLeftSibling()
35 if (path[l].offset == 0) in getLeftSibling()
39 NodeRef NR = path[l].subtree(path[l].offset - 1); in getLeftSibling()
54 while (path[l].offset == 0) { in moveLeft()
59 // end() may have created a height=0 path in moveLeft()
[all...]
/third_party/toybox/porting/liteos_a/lib/
H A Ddirtree.c32 // Create a dirtree node from a path, with stat and symlink info.
71 char *path = parent ? dirtree_path(parent, 0) : ""; in dirtree_add_node() local
73 perror_msg("%s%s%s", path, parent ? "/" : "", name); in dirtree_add_node()
74 if (parent) free(path); in dirtree_add_node()
81 // Return path to this node, assembled recursively.
84 // to return the length of the path, or a value greater than 0 to allocate
89 char *path; in dirtree_path() local
93 path = xmalloc(*plen); in dirtree_path()
95 return path; in dirtree_path()
99 path in dirtree_path()
151 char *path = dirtree_path(node, 0); dirtree_recurse() local
196 dirtree_flagread(char *path, int flags, int (*callback)(struct dirtree *node)) dirtree_flagread() argument
203 dirtree_read(char *path, int (*callback)(struct dirtree *node)) dirtree_read() argument
[all...]
/third_party/lzma/CPP/7zip/Common/
H A DFilePathAutoRename.cpp12 const FString &extension, UInt32 value, FString &path) in MakeAutoName()
14 path = name; in MakeAutoName()
15 path.Add_UInt32(value); in MakeAutoName()
16 path += extension; in MakeAutoName()
17 return NFile::NFind::DoesFileOrDirExist(path); in MakeAutoName()
20 bool AutoRenamePath(FString &path) in AutoRenamePath() argument
22 int dotPos = path.ReverseFind_Dot(); in AutoRenamePath()
23 int slashPos = path.ReverseFind_PathSepar(); in AutoRenamePath()
25 FString name = path; in AutoRenamePath()
30 extension = path in AutoRenamePath()
11 MakeAutoName(const FString &name, const FString &extension, UInt32 value, FString &path) MakeAutoName() argument
[all...]
/third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/
H A Dnode.js1 // inventory, path, realpath, root, and parent
6 // node.location is the /-delimited path from the root module to the node. In
8 // this can include some number of /../ path segments. The location of the
13 // node.path is the path to the place where this node lives on disk. It is
16 // node.realpath is the path to where the module actually resides on disk. In
17 // the case of non-link nodes, node.realpath is equivalent to node.path. In
18 // the case of link nodes, it is equivalent to node.target.path.
22 // and setting node.path to parent.path/node_module
[all...]
/third_party/libfuse/lib/modules/
H A Diconv.c42 static int iconv_convpath(struct iconv *ic, const char *path, char **newpathp, in iconv_convpath() argument
53 if (path == NULL) { in iconv_convpath()
58 pathlen = strlen(path); in iconv_convpath()
68 res = iconv(fromfs ? ic->fromfs : ic->tofs, (char **) &path, in iconv_convpath()
103 static int iconv_getattr(const char *path, struct stat *stbuf, in iconv_getattr() argument
108 int err = iconv_convpath(ic, path, &newpath, 0); in iconv_getattr()
116 static int iconv_access(const char *path, int mask) in iconv_access() argument
120 int err = iconv_convpath(ic, path, &newpath, 0); in iconv_access()
128 static int iconv_readlink(const char *path, char *buf, size_t size) in iconv_readlink() argument
132 int err = iconv_convpath(ic, path, in iconv_readlink()
149 iconv_opendir(const char *path, struct fuse_file_info *fi) iconv_opendir() argument
175 iconv_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi, enum fuse_readdir_flags flags) iconv_readdir() argument
194 iconv_releasedir(const char *path, struct fuse_file_info *fi) iconv_releasedir() argument
206 iconv_mknod(const char *path, mode_t mode, dev_t rdev) iconv_mknod() argument
218 iconv_mkdir(const char *path, mode_t mode) iconv_mkdir() argument
230 iconv_unlink(const char *path) iconv_unlink() argument
242 iconv_rmdir(const char *path) iconv_rmdir() argument
305 iconv_chmod(const char *path, mode_t mode, struct fuse_file_info *fi) iconv_chmod() argument
318 iconv_chown(const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi) iconv_chown() argument
331 iconv_truncate(const char *path, off_t size, struct fuse_file_info *fi) iconv_truncate() argument
344 iconv_utimens(const char *path, const struct timespec ts[2], struct fuse_file_info *fi) iconv_utimens() argument
357 iconv_create(const char *path, mode_t mode, struct fuse_file_info *fi) iconv_create() argument
370 iconv_open_file(const char *path, struct fuse_file_info *fi) iconv_open_file() argument
382 iconv_read_buf(const char *path, struct fuse_bufvec **bufp, size_t size, off_t offset, struct fuse_file_info *fi) iconv_read_buf() argument
395 iconv_write_buf(const char *path, struct fuse_bufvec *buf, off_t offset, struct fuse_file_info *fi) iconv_write_buf() argument
408 iconv_statfs(const char *path, struct statvfs *stbuf) iconv_statfs() argument
420 iconv_flush(const char *path, struct fuse_file_info *fi) iconv_flush() argument
432 iconv_release(const char *path, struct fuse_file_info *fi) iconv_release() argument
444 iconv_fsync(const char *path, int isdatasync, struct fuse_file_info *fi) iconv_fsync() argument
457 iconv_fsyncdir(const char *path, int isdatasync, struct fuse_file_info *fi) iconv_fsyncdir() argument
470 iconv_setxattr(const char *path, const char *name, const char *value, size_t size, int flags) iconv_setxattr() argument
484 iconv_getxattr(const char *path, const char *name, char *value, size_t size) iconv_getxattr() argument
497 iconv_listxattr(const char *path, char *list, size_t size) iconv_listxattr() argument
509 iconv_removexattr(const char *path, const char *name) iconv_removexattr() argument
521 iconv_lock(const char *path, struct fuse_file_info *fi, int cmd, struct flock *lock) iconv_lock() argument
534 iconv_flock(const char *path, struct fuse_file_info *fi, int op) iconv_flock() argument
546 iconv_bmap(const char *path, size_t blocksize, uint64_t *idx) iconv_bmap() argument
558 iconv_lseek(const char *path, off_t off, int whence, struct fuse_file_info *fi) iconv_lseek() argument
[all...]
/foundation/ability/idl_tool/idl_tool_2/util/
H A Dfile.cpp37 File::File(const std::string &path, unsigned int mode) : mode_(mode) in File() argument
39 if (path.empty()) { in File()
44 OpenByRead(path); in File()
49 fd_ = fopen(path.c_str(), "w+"); in File()
51 fd_ = fopen(path.c_str(), "a+"); in File()
55 Logger::E(TAG, "can't open '%s'", path.c_str()); in File()
59 path_ = RealPath(path); in File()
67 void File::OpenByRead(const std::string &path) in OpenByRead() argument
69 if (!CheckValid(path)) { in OpenByRead()
70 Logger::E(TAG, "failed to check path ' in OpenByRead()
204 CreateParentDir(const std::string &path) CreateParentDir() argument
243 AdapterPath(const std::string &path) CreatePartDir() argument
270 AdapterRealPath(const std::string &path) CreatePartDir() argument
278 RealPath(const std::string &path) CreatePartDir() argument
293 CheckValid(const std::string &path) CreatePartDir() argument
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_util.py29 self.join = os.path.join
30 self.isabs = os.path.isabs
31 self.splitdrive = os.path.splitdrive
50 os.path.join = self.join
51 os.path.isabs = self.isabs
52 os.path.splitdrive = self.splitdrive
175 def _join(path):
176 return '/'.join(path)
177 os.path.join = _join
184 def _join(*path)
[all...]

Completed in 11 milliseconds

1...<<11121314151617181920>>...343