Home
last modified time | relevance | path

Searched refs:fullpath (Results 1 - 25 of 54) sorted by relevance

123

/third_party/python/Tools/scripts/
H A Dpysource.py33 def _open(fullpath):
35 size = os.stat(fullpath).st_size
37 print_debug("%s: permission denied: %s" % (fullpath, err))
41 print_debug("%s: the file is too big: %d bytes" % (fullpath, size))
45 return open(fullpath, "rb")
47 print_debug("%s: access denied: %s" % (fullpath, err))
50 def has_python_ext(fullpath):
51 return fullpath.endswith(".py") or fullpath.endswith(".pyw")
53 def looks_like_python(fullpath)
[all...]
H A Dfindnocoding.py52 def needs_declaration(fullpath):
54 infile = open(fullpath, 'rb')
102 for fullpath in pysource.walk_python_files(args, is_python):
104 print("Testing for coding: %s" % fullpath)
105 result = needs_declaration(fullpath)
107 print(fullpath)
/third_party/NuttX/fs/vfs/
H A Dfs_mkdir.c44 char *fullpath = NULL; in do_mkdir() local
58 ret = vfs_normalize_path((const char *)relativepath, pathname, &fullpath); in do_mkdir()
69 if (!strncmp(fullpath, "/dev", 4) || !strcmp(fullpath, "/proc")) in do_mkdir()
71 if (!strncmp(fullpath, "/dev", 4) || !strncmp(fullpath, "/proc", 5)) in do_mkdir()
76 ret = VnodeLookup(fullpath, &vnode, V_DUMMY|V_CREATE); in do_mkdir()
87 dirname = strrchr(fullpath, '/') + 1; in do_mkdir()
90 ret = VnodeLookup(fullpath, &parentVnode, 0); in do_mkdir()
136 vnode->filePath = strdup(fullpath); in do_mkdir()
[all...]
H A Dfs_symlink.c36 int follow_symlink(int dirfd, const char *path, struct Vnode **vnode, char **fullpath) in follow_symlink() argument
49 if (*fullpath) in follow_symlink()
51 free(*fullpath); in follow_symlink()
52 *fullpath = NULL; in follow_symlink()
55 ret = vfs_normalize_pathat(dirfd, pathname, fullpath); in follow_symlink()
61 ret = VnodeLookupFullpath(*fullpath, &newvnode, 0); in follow_symlink()
64 /* The object of fullpath is not exist. Return its parent's vnode. */ in follow_symlink()
70 /* The object of fullpath is exist, and is not a symbol link. Return its vnode. */ in follow_symlink()
80 /* The object of fullpath is a symbol link. Read its target and find the source file successively. */ in follow_symlink()
97 char *fullpath in do_symlink() local
[all...]
H A Dfs_open.c115 static int do_creat(struct Vnode *parentNode, char *fullpath, mode_t mode, struct Vnode **node) in do_creat() argument
118 char *name = strrchr(fullpath, '/') + 1; in do_creat()
152 char *fullpath = NULL; in fp_open() local
155 ret = follow_symlink(dirfd, path, &vnode, &fullpath); in fp_open()
168 if (OsDevLimitCheckPermission(vnode->type, fullpath, oflags) != LOS_OK) in fp_open()
180 int fd = block_proxy(fullpath, oflags); in fp_open()
187 if (OsDevLimitCheckPermission(vnode->type, fullpath, oflags) != LOS_OK) in fp_open()
240 ret = do_creat(parentVnode, fullpath, mode, &vnode); in fp_open()
246 vnode->filePath = strdup(fullpath); in fp_open()
299 if (fullpath) in fp_open()
[all...]
H A Dfs_rmdir.c94 char *fullpath = NULL; in do_rmdir() local
114 ret = vfs_normalize_path((const char *)relativepath, pathname, &fullpath); in do_rmdir()
121 name = strrchr(fullpath, '/'); in do_rmdir()
123 ret = VnodeLookup(fullpath, &vnode, 0); in do_rmdir()
168 if (fullpath) in do_rmdir()
170 free(fullpath); in do_rmdir()
179 if (fullpath) in do_rmdir()
181 free(fullpath); in do_rmdir()
H A Dfs_unlink.c77 char *fullpath = NULL; in do_unlink() local
87 ret = vfs_normalize_path((const char *)relativepath, pathname, &fullpath); in do_unlink()
99 ret = VnodeLookup(fullpath, &vnode, 0); in do_unlink()
110 name = strrchr(fullpath, '/') + 1; in do_unlink()
140 free(fullpath); in do_unlink()
147 if (fullpath) in do_unlink()
149 free(fullpath); in do_unlink()
H A Dfs_readlink.c38 char *fullpath = NULL; in do_readlink() local
53 ret = vfs_normalize_pathat(dirfd, path, &fullpath); in do_readlink()
60 ret = VnodeLookup(fullpath, &vnode, 0); in do_readlink()
89 free(fullpath); in do_readlink()
95 free(fullpath); in do_readlink()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dcommon.h45 char fullpath[PATH_MAX]; \
53 snprintf(fullpath, sizeof(fullpath), "%s%s", basepath, \
55 pathlen = strlen(fullpath); \
57 if ((dp = opendir(fullpath)) == NULL) \
64 if (fullpath[pathlen - 1] == '/') { \
65 fullpath[pathlen - 1] = '\0'; \
68 sprintf(fullpath + pathlen, "/%s", direntp->d_name); \
69 stat(fullpath, &st); \
75 fullpath
[all...]
/third_party/ltp/testcases/kernel/controllers/libcontrollers/
H A Dlibcontrollers.c38 char fullpath[PATH_MAX]; variable
64 if (lstat(fullpath, &statbuffer) < 0) { in scan_shares_files()
65 error_function("Can not read stat for file ", fullpath); in scan_shares_files()
75 && (strcmp(fullpath, "/dev/cpuctl/cpu.shares") != 0) in scan_shares_files()
77 *shares_pointer += read_shares_file(fullpath); in scan_shares_files()
84 * of fullpath to append new files names in scan_shares_files()
87 path_pointer = fullpath + strlen(fullpath); in scan_shares_files()
91 if ((dp = opendir(fullpath)) == NULL) { /* Error in opening directory */ in scan_shares_files()
92 error_function("Can't open ", fullpath); in scan_shares_files()
[all...]
/third_party/node/deps/npm/node_modules/path-scurry/dist/cjs/
H A Dindex.js287 #fullpath;
303 return (this.parent || this).fullpath();
319 this.#fullpath = opts.fullpath;
422 const fullpath = this.#fullpath
423 ? this.#fullpath + s + pathPart
428 fullpath,
440 * the cwd, then this ends up being equivalent to the fullpath()
476 fullpath() {
[all...]
/third_party/node/deps/npm/node_modules/path-scurry/dist/mjs/
H A Dindex.js259 #fullpath;
275 return (this.parent || this).fullpath();
291 this.#fullpath = opts.fullpath;
394 const fullpath = this.#fullpath
395 ? this.#fullpath + s + pathPart
400 fullpath,
412 * the cwd, then this ends up being equivalent to the fullpath()
448 fullpath() {
[all...]
/third_party/node/deps/npm/node_modules/glob/dist/commonjs/
H A Dignore.js79 const fullpath = p.fullpath();
80 const fullpaths = `${fullpath}/`;
88 if (m.match(fullpath) || m.match(fullpaths))
94 const fullpath = p.fullpath() + '/';
101 if (m.match(fullpath))
/third_party/node/deps/npm/node_modules/glob/dist/esm/
H A Dignore.js76 const fullpath = p.fullpath();
77 const fullpaths = `${fullpath}/`;
85 if (m.match(fullpath) || m.match(fullpaths))
91 const fullpath = p.fullpath() + '/';
98 if (m.match(fullpath))
/third_party/toybox/porting/liteos_a/toys/posix/
H A Drm.c30 char *fullpath = NULL; in toybox_cmd_do_rmdir() local
52 fullpath = (char *)malloc(fullpath_buf_size); in toybox_cmd_do_rmdir()
53 if (fullpath == NULL) { in toybox_cmd_do_rmdir()
57 ret = snprintf(fullpath, fullpath_buf_size, "%s/%s", pathname, dirent->d_name); in toybox_cmd_do_rmdir()
60 free(fullpath); in toybox_cmd_do_rmdir()
64 (void)toybox_cmd_do_rmdir(fullpath); in toybox_cmd_do_rmdir()
65 free(fullpath); in toybox_cmd_do_rmdir()
/third_party/rust/crates/nix/test/
H A Dtest_stat.rs177 let fullpath = tempdir.path().join(filename); in test_fchmodat()
178 File::create(&fullpath).unwrap(); in test_fchmodat()
190 let file_stat1 = stat(&fullpath).unwrap(); in test_fchmodat()
199 let file_stat2 = stat(&fullpath).unwrap(); in test_fchmodat()
227 let fullpath = tempdir.path().join("file"); in test_utimes()
228 drop(File::create(&fullpath).unwrap()); in test_utimes()
230 utimes(&fullpath, &TimeVal::seconds(9990), &TimeVal::seconds(5550)) in test_utimes()
232 assert_times_eq(9990, 5550, &fs::metadata(&fullpath).unwrap()); in test_utimes()
246 let fullpath = tempdir.path().join("symlink"); in test_lutimes()
248 symlink(&target, &fullpath) in test_lutimes()
[all...]
/third_party/node/deps/v8/tools/dev/
H A Dgen-tags.py60 def Exclude(fullpath, exclude_arches):
62 if ("/%s/" % arch) in fullpath: return True
85 fullpath = os.path.join(root, file)
86 if Exclude(fullpath, exclude_arches): continue
87 gtags.write(fullpath + os.linesep)
/third_party/python/Lib/
H A Dzipimport.py245 fullpath = _bootstrap_external._path_join(path, '__init__.py')
247 fullpath = f'{path}.py'
250 toc_entry = self._files[fullpath]
295 fullpath = _bootstrap_external._path_join(self.archive, path)
296 mod.__path__ = [fullpath]
373 fullpath = path + suffix
374 if fullpath in self._files:
641 def _unmarshal_code(self, pathname, fullpath, fullname, data):
644 'path': fullpath,
654 source_bytes = _get_pyc_source(self, fullpath)
[all...]
/third_party/NuttX/fs/dirent/
H A Dfs_opendir.c161 char *fullpath = NULL; in do_opendir() local
176 ret = vfs_normalize_path((const char *)relativepath, path, &fullpath); in do_opendir()
238 if (fullpath) in do_opendir()
240 free(fullpath); in do_opendir()
252 if (fullpath) in do_opendir()
254 free(fullpath); in do_opendir()
/third_party/ffmpeg/libavutil/tests/
H A Davstring.c28 char *fullpath, *ptr; in main() local
73 fullpath = av_append_path_component((path), (component)); \ in main()
74 printf("%s = %s\n", fullpath ? fullpath : "(null)", expected); \ in main()
75 av_free(fullpath); in main()
/third_party/python/Python/
H A Dpathconfig.c411 wchar_t fullpath[MAXPATHLEN]; in _PyPathConfig_ComputeSysPath0() local
413 wchar_t fullpath[MAX_PATH]; in _PyPathConfig_ComputeSysPath0() local
418 if (!_Py_wgetcwd(fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeSysPath0()
421 path0 = fullpath; in _PyPathConfig_ComputeSysPath0()
474 Py_ARRAY_LENGTH(fullpath), in _PyPathConfig_ComputeSysPath0()
475 fullpath, in _PyPathConfig_ComputeSysPath0()
477 path0 = fullpath; in _PyPathConfig_ComputeSysPath0()
495 if (_Py_wrealpath(path0, fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeSysPath0()
[all...]
/third_party/NuttX/drivers/usbdev/gadget/
H A Df_mass_storage_ram.c221 char *fullpath = NULL; in ram_mass_storage_deinit() local
225 ret = vfs_normalize_path(NULL, RAM_DEV_NAME, &fullpath); in ram_mass_storage_deinit()
231 inode = inode_find(fullpath, NULL); in ram_mass_storage_deinit()
234 free(fullpath); in ram_mass_storage_deinit()
239 free(fullpath); in ram_mass_storage_deinit()
/third_party/ffmpeg/libavutil/
H A Davstring.c310 char *fullpath; in av_append_path_component() local
321 fullpath = av_malloc(p_len + c_len + 2); in av_append_path_component()
322 if (fullpath) { in av_append_path_component()
324 av_strlcpy(fullpath, path, p_len + 1); in av_append_path_component()
326 if (fullpath[p_len - 1] != '/' && component[0] != '/') in av_append_path_component()
327 fullpath[p_len++] = '/'; in av_append_path_component()
328 else if (fullpath[p_len - 1] == '/' && component[0] == '/') in av_append_path_component()
332 av_strlcpy(&fullpath[p_len], component, c_len + 1); in av_append_path_component()
333 fullpath[p_len + c_len] = 0; in av_append_path_component()
335 return fullpath; in av_append_path_component()
[all...]
/third_party/FreeBSD/sbin/fsck_msdosfs/
H A Ddir.c95 static char *fullpath(struct dosDirEntry *);
162 fullpath(struct dosDirEntry *dir) in fullpath() function
424 fullpath(dir), dir->size, (uintmax_t)physicalSize); in checksize()
436 fullpath(dir)); in checksize()
623 fullpath(dir)); in readDosDirSection()
760 fullpath(dir), 2); in readDosDirSection()
800 fullpath(&dirent), 0); in readDosDirSection()
840 fullpath(&dirent), in readDosDirSection()
844 fullpath(&dirent)); in readDosDirSection()
876 fullpath( in readDosDirSection()
[all...]
/third_party/python/Lib/test/
H A Dtest_compileall.py301 fullpath = ["test", "foo"]
304 for subdir in fullpath:
343 fullpath = ["test", "build", "real", "path"]
344 path = os.path.join(self.directory, *fullpath)
348 stripdir = os.path.join(self.directory, *fullpath[:2])
351 expected_in = os.path.join(*fullpath[2:])
362 fullpath = ["test", "build", "real", "path"]
363 path = os.path.join(self.directory, *fullpath)
370 expected_in = os.path.join(prependdir, self.directory, *fullpath)
377 fullpath
[all...]

Completed in 11 milliseconds

123