Home
last modified time | relevance | path

Searched refs:relpath (Results 1 - 25 of 113) sorted by relevance

12345

/third_party/python/Lib/test/
H A Dtest_posixpath.py417 os.symlink(posixpath.relpath(ABSTFN+"1"), ABSTFN)
607 self.assertRaises(ValueError, posixpath.relpath, "")
608 self.assertEqual(posixpath.relpath("a"), "a")
609 self.assertEqual(posixpath.relpath(posixpath.abspath("a")), "a")
610 self.assertEqual(posixpath.relpath("a/b"), "a/b")
611 self.assertEqual(posixpath.relpath("../a/b"), "../a/b")
612 self.assertEqual(posixpath.relpath("a", "../b"), "../"+curdir+"/a")
613 self.assertEqual(posixpath.relpath("a/b", "../c"),
615 self.assertEqual(posixpath.relpath("a", "b/c"), "../../a")
616 self.assertEqual(posixpath.relpath("
[all...]
/third_party/ltp/testcases/kernel/syscalls/mkdirat/
H A Dmkdirat01.c44 static char relpath[256]; variable
56 {&dir_fd, relpath, 0, 0},
58 {&fd_atcwd, relpath, 0, 0},
59 {&fd, relpath, -1, ENOTDIR},
60 {&fd_invalid, relpath, -1, EBADF},
94 sprintf(relpath, "mkdiratrelpath%d_%d", getpid(), i); in setup_iteration()
/third_party/NuttX/fs/nfs/
H A Dnfs_util.c366 int nfs_findnode(struct nfsmount *nmp, const char *relpath, in nfs_findnode() argument
371 const char *path = relpath; in nfs_findnode()
417 relpath, buffer, error); in nfs_findnode()
427 relpath, buffer, error); in nfs_findnode()
475 int nfs_finddir(struct nfsmount *nmp, const char *relpath, in nfs_finddir() argument
479 const char *path = relpath; in nfs_finddir()
511 relpath, filename, error); in nfs_finddir()
535 relpath, filename, error); in nfs_finddir()
H A Dnfs.h143 extern int nfs_findnode(struct nfsmount *nmp, const char *relpath,
147 extern int nfs_finddir(struct nfsmount *nmp, const char *relpath,
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dantora-prep.py150 - relpath - path to file source relative to root
162 relpath
171 self.relpath = None
245 self.relpath = os.path.relpath(self.srcpath, root)
274 self.dstpath = Path(self.component) / Partials / self.relpath
277 self.dstpath = Path(self.component) / Partials / self.relpath
278 self.dstlink = Path(self.component) / Pages / self.relpath
284 self.dstpath = Path(self.component) / self.relpath
312 print(f'WARNING: No closing >> found on line {lineno} of {self.relpath}', fil
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dlibcpuset.c2012 /* Create (if new set) or modify cpuset 'cp' at location 'relpath' */
2013 static int cr_or_mod(const char *relpath, const struct cpuset *cp, int new) in cr_or_mod() argument
2027 fullpath(buf, sizeof(buf), relpath); in cr_or_mod()
2038 if (cpuset_query(cp_sav, relpath) < 0) in cr_or_mod()
2063 /* Create cpuset 'cp' at location 'relpath' */
2064 int cpuset_create(const char *relpath, const struct cpuset *cp) in cpuset_create() argument
2066 return cr_or_mod(relpath, cp, 1); in cpuset_create()
2070 int cpuset_delete(const char *relpath) in cpuset_delete() argument
2077 fullpath(buf, sizeof(buf), relpath); in cpuset_delete()
2087 int cpuset_query(struct cpuset *cp, const char *relpath) in cpuset_query() argument
2171 cpuset_modify(const char *relpath, const struct cpuset *cp) cpuset_modify() argument
2433 cpuset_nuke(const char *relpath, unsigned int seconds) cpuset_nuke() argument
2589 read_task_file(const char *relpath, struct pidblock **ppbhead) read_task_file() argument
2650 cpuset_init_pidlist(const char *relpath, int recursiveflag) cpuset_init_pidlist() argument
2731 cpuset_move(pid_t pid, const char *relpath) cpuset_move() argument
2746 cpuset_move_all(struct cpuset_pidlist *pl, const char *relpath) cpuset_move_all() argument
2875 cpuset_migrate(pid_t pid, const char *relpath) cpuset_migrate() argument
2904 cpuset_migrate_all(struct cpuset_pidlist *pl, const char *relpath) cpuset_migrate_all() argument
2935 cpuset_reattach(const char *relpath) cpuset_reattach() argument
3206 char *relpath; cpuset_fts_open() local
[all...]
H A Dcpuinfo.c316 static int find_domain_cpusets(char *relpath) in find_domain_cpusets() argument
322 if (relpath == NULL) { in find_domain_cpusets()
333 if (cpuset_query(cp, relpath)) { in find_domain_cpusets()
348 while_each_childdir(cpuset_mountpoint(), relpath, c_relpath, in find_domain_cpusets() local
/third_party/jerryscript/tools/runners/
H A Drun-test-suite.py126 summary_list = [os.path.relpath(args.engine)]
130 summary_list.append(os.path.relpath(args.test_dir))
132 summary_list.append(os.path.relpath(args.test_list))
149 test_path = os.path.relpath(test)
188 test_path = os.path.relpath(test)
H A Drun-unittests.py66 test_path = os.path.relpath(test)
79 util.print_test_summary(os.path.join(os.path.relpath(args.path), "unit-*"), total, passed, failed)
/third_party/skia/build/fuchsia/skqp/
H A Dappend_assets_to_manifest40 relative_path = os.path.relpath(args.manifest, root_build_dir)
54 relative_path = os.path.relpath(base_line_rhs, root_build_dir)
69 relative_path = os.path.relpath(source, root_build_dir)
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
H A Dimport.go180 relpath, err := filepath.Rel(e.RootDir, f.Name)
184 if strings.HasPrefix(relpath, "..") {
187 file := File{Path: relpath}
227 relpath, err := filepath.Rel(e.RootDir, path)
231 if strings.HasPrefix(relpath, "..") {
235 file := File{Path: relpath}
/third_party/NuttX/fs/driver/
H A Dfs_devsyslog.c243 const char *relpath = NULL; in syslog_initialize() local
283 relpath = desc.relpath; in syslog_initialize()
328 ret = inode_ptr->u.i_mops->open(&g_sysdev.sl_file, relpath, in syslog_initialize()
/third_party/node/deps/v8/tools/
H A Dgenerate-header-include-checks.py105 header_dir = os.path.relpath(split[0], V8_DIR)
116 rel_cc_file_name = os.path.relpath(cc_file_name, V8_DIR)
130 printv('Generating file "{}"'.format(os.path.relpath(gni_file, V8_DIR)))
142 gn.write(' "{}",\n'.format(os.path.relpath(cc_file_name, V8_DIR)))
/third_party/NuttX/fs/tmpfs/
H A Dfs_tmpfs.c88 const char *relpath,
94 const char *relpath,
99 const char *relpath, struct tmpfs_object_s **object,
102 const char *relpath,
106 const char *relpath,
131 int tmpfs_mkdir(struct Vnode *parent, const char *relpath, mode_t mode, struct Vnode **vpp);
133 int tmpfs_unlink(struct Vnode *parent, struct Vnode *node, const char *relpath);
515 const char *relpath, in tmpfs_create_file()
527 copy = strdup(relpath); in tmpfs_create_file()
591 /* Free the copy of the relpath an in tmpfs_create_file()
514 tmpfs_create_file(struct tmpfs_s *fs, const char *relpath, struct tmpfs_directory_s *parent_input, struct tmpfs_file_s **tfo) tmpfs_create_file() argument
657 tmpfs_create_directory(struct tmpfs_s *fs, const char *relpath, struct tmpfs_directory_s *parent_input, struct tmpfs_directory_s **tdo) tmpfs_create_directory() argument
770 tmpfs_find_object(struct tmpfs_s *fs, const char *relpath, struct tmpfs_object_s **object, struct tmpfs_directory_s **parent) tmpfs_find_object() argument
905 tmpfs_find_file(struct tmpfs_s *fs, const char *relpath, struct tmpfs_file_s **tfo, struct tmpfs_directory_s **parent) tmpfs_find_file() argument
952 tmpfs_find_directory(struct tmpfs_s *fs, const char *relpath, struct tmpfs_directory_s **tdo, struct tmpfs_directory_s **parent) tmpfs_find_directory() argument
1907 tmpfs_unlink(struct Vnode *parent, struct Vnode *node, const char *relpath) tmpfs_unlink() argument
2031 tmpfs_mkdir(struct Vnode *parent, const char *relpath, mode_t mode, struct Vnode **vpp) tmpfs_mkdir() argument
[all...]
/third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/
H A Dconsistent-resolve.js6 const relpath = require('./relpath.js')
25 return `file:${relpath(toPath, cleanFetchSpec)}`
/third_party/skia/third_party/externals/spirv-cross/
H A Dtest_shaders.py599 def reference_path(directory, relpath, opt):
603 return os.path.join(reference_dir, relpath)
794 def test_shader_file(relpath, stats, args, backend):
798 test_shader_msl(stats, (args.folder, relpath), args, paths)
800 test_shader_hlsl(stats, (args.folder, relpath), args, paths)
802 test_shader_reflect(stats, (args.folder, relpath), args, paths)
804 test_shader(stats, (args.folder, relpath), args, paths)
815 relpath = os.path.relpath(path, args.folder)
816 all_files.append(relpath)
[all...]
/third_party/python/Tools/c-analyzer/c_common/
H A Dfsutil.py64 relpath = os.path.relpath(filename, relroot)
65 if os.path.join(relroot, relpath) != filename:
94 filename = os.path.relpath(filename)
101 filename = os.path.relpath(filename, relroot)
281 filename = os.path.relpath(filename, relparent)
/third_party/icu/icu4c/source/tools/tzcode/
H A Dzdump.c1036 static void getzones(char * basedir, char * relpath, struct listentry ** last, int * count) { in getzones() argument
1042 if (relpath != NULL) { in getzones()
1044 strcat(path, relpath); in getzones()
1049 if (strstr(relpath, ".tab") == NULL && strcmp(relpath, "Etc/Unknown") != 0) { in getzones()
1053 if ((pzonename = malloc(strlen(relpath) + 1)) == NULL) { in getzones()
1056 strcpy(pzonename, relpath); in getzones()
1077 if (relpath != NULL) { in getzones()
1078 strcpy(subpath, relpath); in getzones()
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
H A Dzdump.c1042 static void getzones(char * basedir, char * relpath, struct listentry ** last, int * count) { in getzones() argument
1048 if (relpath != NULL) { in getzones()
1050 strcat(path, relpath); in getzones()
1055 if (strstr(relpath, ".tab") == NULL && strcmp(relpath, "Etc/Unknown") != 0) { in getzones()
1059 if ((pzonename = malloc(strlen(relpath) + 1)) == NULL) { in getzones()
1062 strcpy(pzonename, relpath); in getzones()
1083 if (relpath != NULL) { in getzones()
1084 strcpy(subpath, relpath); in getzones()
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/gen/
H A Dgenerate.go39 // relpath is the relative path from the currently executing template.
41 type WriteFile func(relpath, content string) error
79 "WriteFile": func(relpath, content string) (string, error) { return "", writeFile(relpath, content) },
/third_party/gn/build/
H A Dgen.py326 os.path.relpath(
368 os.path.relpath(os.path.join(SCRIPT_DIR, 'gen.py'),
370 os.path.relpath(template_filename, os.path.dirname(path)) + '\n')
396 os.path.relpath(os.path.join(REPO_ROOT, 'src'), os.path.dirname(path)),
581 win_manifest = os.path.relpath(
/third_party/libuv/src/win/
H A Dfs-event.c68 WCHAR** relpath) { in uv__relative_path()
76 *relpath = uv__malloc((relpathlen + 1) * sizeof(WCHAR)); in uv__relative_path()
77 if (!*relpath) in uv__relative_path()
79 wcsncpy(*relpath, filename + dirlen + 1, relpathlen); in uv__relative_path()
80 (*relpath)[relpathlen] = L'\0'; in uv__relative_path()
66 uv__relative_path(const WCHAR* filename, const WCHAR* dir, WCHAR** relpath) uv__relative_path() argument
/third_party/node/deps/uv/src/win/
H A Dfs-event.c68 WCHAR** relpath) { in uv__relative_path()
76 *relpath = uv__malloc((relpathlen + 1) * sizeof(WCHAR)); in uv__relative_path()
77 if (!*relpath) in uv__relative_path()
79 wcsncpy(*relpath, filename + dirlen + 1, relpathlen); in uv__relative_path()
80 (*relpath)[relpathlen] = L'\0'; in uv__relative_path()
66 uv__relative_path(const WCHAR* filename, const WCHAR* dir, WCHAR** relpath) uv__relative_path() argument
/third_party/benchmark/
H A Dsetup.py47 self.relpath, self.target_name = stripped_target.split(":")
96 ext_bazel_bin_path = temp_path / 'bazel-bin' / ext.relpath / ext_name
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/
H A Dmain.go104 // Create or update the file at relpath if the file content has changed
105 // relpath is a path relative to the template
106 writeFile := func(relpath, body string) error {
112 abspath := filepath.Join(filepath.Dir(tmplPath), relpath)

Completed in 18 milliseconds

12345