/third_party/node/test/parallel/ |
D | test-fs-mkdir.js | 38 const pathname = path.join(tmpdir.path, nextdir()); constant 40 fs.mkdir(pathname, common.mustCall(function(err) { 42 assert.strictEqual(fs.existsSync(pathname), true); 48 const pathname = path.join(tmpdir.path, nextdir()); constant 50 fs.mkdir(pathname, 0o777, common.mustCall(function(err) { 52 assert.strictEqual(fs.existsSync(pathname), true); 58 const pathname = path.join(tmpdir.path, nextdir()); constant 60 fs.mkdir(pathname, { mode: 0o777 }, common.mustCall(function(err) { 62 assert.strictEqual(fs.existsSync(pathname), true); 68 const pathname = path.join(tmpdir.path, nextdir()); constant [all …]
|
D | test-url-parse-format.js | 13 pathname: '//some_path', property 22 pathname: '/foo.html', property 33 pathname: '/foo.html', property 46 pathname: '/foo.html', property 58 pathname: '/foo.html', property 69 pathname: '/', property 79 pathname: '/', property 89 pathname: '/', property 100 pathname: '/', property 111 pathname: '/', property [all …]
|
D | test-url-format.js | 17 pathname: '/' property 27 pathname: '/' property 37 pathname: '/' property 47 pathname: '/' property 57 pathname: '/' property 65 pathname: '/' property 71 pathname: '/%22%20onload=%22alert(42)/' property 77 pathname: 'a/b/c', property 93 pathname: '/' property 100 pathname: '/' property [all …]
|
/third_party/python/Lib/ |
D | glob.py | 13 def glob(pathname, *, root_dir=None, dir_fd=None, recursive=False): argument 24 return list(iglob(pathname, root_dir=root_dir, dir_fd=dir_fd, recursive=recursive)) 26 def iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False): argument 37 sys.audit("glob.glob", pathname, recursive) 38 sys.audit("glob.glob/2", pathname, recursive, root_dir, dir_fd) 42 root_dir = pathname[:0] 43 it = _iglob(pathname, root_dir, dir_fd, recursive, False) 44 if not pathname or recursive and _isrecursive(pathname[:2]): 53 def _iglob(pathname, root_dir, dir_fd, recursive, dironly): argument 54 dirname, basename = os.path.split(pathname) [all …]
|
/third_party/openssl/fuzz/ |
D | test-corpus.c | 37 static void testfile(const char *pathname) in testfile() argument 44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode)) in testfile() 46 printf("# %s\n", pathname); in testfile() 48 f = fopen(pathname, "rb"); in testfile() 69 char *pathname = NULL; in main() local 78 if (pathname == NULL) { in main() 79 pathname = malloc(PATH_MAX); in main() 80 if (pathname == NULL) in main() 82 strcpy(pathname, argv[n]); in main() 84 if (strchr(":<]", pathname[dirname_len - 1]) == NULL) in main() [all …]
|
/third_party/node/lib/ |
D | url.js | 69 this.pathname = null; 255 this.pathname = simplePath[1]; 462 this.pathname = rest; 464 this.pathname = rest.slice(0, firstIdx); 467 this.hostname && !this.pathname) { 468 this.pathname = '/'; 472 if (this.pathname || this.search) { 473 const p = this.pathname || ''; 594 let pathname = this.pathname || ''; 624 for (let i = 0; i < pathname.length; ++i) { [all …]
|
/third_party/ltp/testcases/kernel/syscalls/utimensat/ |
D | utimensat01.c | 47 char *pathname; member 102 static inline int sys_utimensat(int dirfd, const char *pathname, in sys_utimensat() argument 105 return tst_syscall(__NR_utimensat, dirfd, pathname, times, flags); in sys_utimensat() 108 static inline int sys_utimensat_time64(int dirfd, const char *pathname, in sys_utimensat_time64() argument 111 return tst_syscall(__NR_utimensat_time64, dirfd, pathname, times, flags); in sys_utimensat_time64() 201 static void reset_time(char *pathname, int dfd, int flags, int i) in reset_time() argument 207 TEST(tv->utimensat(dfd, pathname, &ts, flags)); in reset_time() 210 i, dfd, pathname, flags); in reset_time() 213 TEST(stat(pathname, &sb)); in reset_time() 228 char *pathname = NULL; in run() local [all …]
|
/third_party/selinux/libselinux/src/ |
D | selinux_restorecon.c | 606 static int restorecon_sb(const char *pathname, const struct stat *sb, in restorecon_sb() argument 614 const char *lookup_path = pathname; in restorecon_sb() 616 if (!strncmp(pathname, DATA_APP_EL1, sizeof(DATA_APP_EL1) - 1) || in restorecon_sb() 617 !strncmp(pathname, DATA_APP_EL2, sizeof(DATA_APP_EL2) - 1) || in restorecon_sb() 618 !strncmp(pathname, DATA_APP_EL3, sizeof(DATA_APP_EL3) - 1) || in restorecon_sb() 619 !strncmp(pathname, DATA_APP_EL4, sizeof(DATA_APP_EL4) - 1) || in restorecon_sb() 620 !strncmp(pathname, DATA_ACCOUNTS_ACCOUNT_0, sizeof(DATA_ACCOUNTS_ACCOUNT_0) - 1)) { in restorecon_sb() 666 rc = filespec_add(sb->st_ino, newcon, pathname, flags); in restorecon_sb() 670 "filespec_add error: %s\n", pathname); in restorecon_sb() 684 pathname, newcon); in restorecon_sb() [all …]
|
/third_party/NuttX/fs/vfs/ |
D | fs_unlink.c | 72 int do_unlink(int dirfd, const char *pathname) in do_unlink() argument 87 ret = vfs_normalize_path((const char *)relativepath, pathname, &fullpath); in do_unlink() 163 int unlink(const char *pathname) in unlink() argument 165 return do_unlink(AT_FDCWD, pathname); in unlink() 174 extern int do_rmdir(int dirfd, const char *pathname); 176 int unlinkat(int dirfd, const char *pathname, int flag) in unlinkat() argument 180 if (pathname == NULL) in unlinkat() 194 return do_rmdir(dirfd, pathname); in unlinkat() 196 return do_unlink(dirfd, pathname); in unlinkat()
|
D | fs_rmdir.c | 91 int do_rmdir(int dirfd, const char *pathname) in do_rmdir() argument 99 if (pathname == NULL) in do_rmdir() 114 ret = vfs_normalize_path((const char *)relativepath, pathname, &fullpath); in do_rmdir() 127 name = strrchr(pathname, '/'); in do_rmdir() 131 name = (char *)pathname; in do_rmdir() 137 ret = VnodeLookup(pathname, &vnode, 0); in do_rmdir() 195 int rmdir(const char *pathname) in rmdir() argument 197 return do_rmdir(AT_FDCWD, pathname); in rmdir()
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | namei.c | 26 const char *pathname, size_t pathlen, int follow, 33 char *pathname; in follow_link() local 54 pathname = (char *)&(ei.i_block[0]); in follow_link() 66 pathname = buffer; in follow_link() 81 pathname = buffer; in follow_link() 84 retval = open_namei(fs, root, dir, pathname, ei.i_size, 1, in follow_link() 98 const char *pathname, int pathlen, in dir_namei() argument 109 if ((c = *pathname) == '/') { in dir_namei() 111 pathname++; in dir_namei() 115 thisname = pathname; in dir_namei() [all …]
|
/third_party/ltp/lib/ |
D | safe_file_ops.c | 346 const char *pathname, in safe_touch() argument 354 ret = open(pathname, O_CREAT | O_WRONLY, defmode); in safe_touch() 358 "Failed to open file '%s'", pathname); in safe_touch() 362 "Invalid open(%s) return value %d", pathname, ret); in safe_touch() 370 "Failed to close file '%s'", pathname); in safe_touch() 374 "Invalid close('%s') return value %d", pathname, ret); in safe_touch() 379 ret = chmod(pathname, mode); in safe_touch() 383 "Failed to chmod file '%s'", pathname); in safe_touch() 388 pathname, ret); in safe_touch() 395 ret = utimensat(AT_FDCWD, pathname, times, 0); in safe_touch() [all …]
|
/third_party/gettext/gettext-runtime/intl/ |
D | relocatable.c | 472 relocate (const char *pathname) in relocate() argument 513 && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) in relocate() 515 if (pathname[orig_prefix_len] == '\0') in relocate() 528 else if (ISSLASH (pathname[orig_prefix_len])) in relocate() 531 const char *pathname_tail = &pathname[orig_prefix_len]; in relocate() 550 if (strncmp (pathname, "/@unixroot", 10) == 0 in relocate() 551 && (pathname[10] == '\0' || ISSLASH (pathname[10]))) in relocate() 554 return pathname; in relocate() 558 if (ISSLASH (pathname[0])) in relocate() 564 char *result = (char *) xmalloc (2 + strlen (pathname) + 1); in relocate() [all …]
|
D | relocatable.h | 53 extern const char * relocate (const char *pathname); 60 extern const char * relocate2 (const char *pathname, char **allocatedp); 91 #define relocate(pathname) (pathname) 92 #define relocate2(pathname,allocatedp) (*(allocatedp) = NULL, (pathname))
|
/third_party/node/deps/npm/node_modules/registry-auth-token/ |
D | index.js | 30 var pathname 32 while (pathname !== '/' && parsed.pathname !== pathname) { 33 pathname = parsed.pathname || '/' 35 var regUrl = '//' + parsed.host + pathname.replace(/\/$/, '') 48 parsed.pathname = url.resolve(normalizePath(pathname), '..') || '/'
|
/third_party/curl/packages/vms/ |
D | build_gnv_curl_pcsi_desc.com | 169 $ pathname = f$element(0, " ", line_in) 177 $ old_start = f$locate("[gnv.usr", pathname) 178 $ if old_start .lt. f$length(pathname) 180 $ pathname = "[gnv.beta" + pathname - "[gnv.usr" 184 $ nlink = "pcsi$destination:" + pathname 287 $ pathname = f$element(0, " ", line_in) 290 $ if pathname .eqs. "[gnv]usr.dir" 292 $ pathname = "[gnv]beta.dir" 294 $ old_start = f$locate("[gnv.usr", pathname) 295 $ if old_start .lt. f$length(pathname) [all …]
|
/third_party/freetype/builds/mac/ |
D | ftmac.c | 477 FT_FSPathMakeSpec( const UInt8* pathname, in FT_FSPathMakeSpec() argument 489 p = q = (const char *)pathname; in FT_FSPathMakeSpec() 506 if ( 255 < ft_strlen( (char *)pathname ) ) in FT_FSPathMakeSpec() 574 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 584 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 602 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in FT_FSPathMakeRes() 618 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 627 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 642 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in get_file_type_from_path() 924 const UInt8* pathname ) in count_faces() argument [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/builds/mac/ |
D | ftmac.c | 478 FT_FSPathMakeSpec( const UInt8* pathname, in FT_FSPathMakeSpec() argument 490 p = q = (const char *)pathname; in FT_FSPathMakeSpec() 507 if ( 255 < ft_strlen( (char *)pathname ) ) in FT_FSPathMakeSpec() 575 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 585 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 603 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in FT_FSPathMakeRes() 619 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 628 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 643 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in get_file_type_from_path() 925 const UInt8* pathname ) in count_faces() argument [all …]
|
/third_party/skia/third_party/externals/freetype/builds/mac/ |
D | ftmac.c | 477 FT_FSPathMakeSpec( const UInt8* pathname, in FT_FSPathMakeSpec() argument 489 p = q = (const char *)pathname; in FT_FSPathMakeSpec() 506 if ( 255 < ft_strlen( (char *)pathname ) ) in FT_FSPathMakeSpec() 574 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 584 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 602 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in FT_FSPathMakeRes() 618 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 627 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 642 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in get_file_type_from_path() 924 const UInt8* pathname ) in count_faces() argument [all …]
|
/third_party/ltp/testcases/kernel/syscalls/stat/ |
D | stat01.c | 30 char *pathname; member 43 TEST(stat(tc->pathname, &stat_buf)); in verify_stat() 46 tst_res(TFAIL | TTERRNO, "stat(%s) failed", tc->pathname); in verify_stat() 81 tst_res(TPASS, "stat(%s)", tc->pathname); in verify_stat() 92 if (tst_fill_file(TC[i].pathname, 'a', 256, 4)) in setup() 94 TC[i].pathname); in setup() 95 SAFE_CHMOD(TC[i].pathname, TC[i].mode); in setup()
|
/third_party/flutter/skia/third_party/externals/freetype/src/base/ |
D | ftmac.c | 280 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 287 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 305 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 311 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 547 const UInt8* pathname ) in count_faces() argument 563 err = lookup_lwfn_by_fond( pathname, lwfn_file_name, in count_faces() 702 const UInt8* pathname, in FT_New_Face_From_LWFN() argument 712 if ( noErr != FT_FSPathMakeRes( pathname, &res ) ) in FT_New_Face_From_LWFN() 806 const UInt8* pathname, in FT_New_Face_From_Suitcase() argument 817 if ( noErr != FT_FSPathMakeRes( pathname, &res_ref ) ) in FT_New_Face_From_Suitcase() [all …]
|
/third_party/freetype/src/base/ |
D | ftmac.c | 279 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 286 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 304 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 310 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 546 const UInt8* pathname ) in count_faces() argument 562 err = lookup_lwfn_by_fond( pathname, lwfn_file_name, in count_faces() 701 const UInt8* pathname, in FT_New_Face_From_LWFN() argument 711 if ( noErr != FT_FSPathMakeRes( pathname, &res ) ) in FT_New_Face_From_LWFN() 805 const UInt8* pathname, in FT_New_Face_From_Suitcase() argument 816 if ( noErr != FT_FSPathMakeRes( pathname, &res_ref ) ) in FT_New_Face_From_Suitcase() [all …]
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | ftmac.c | 279 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 286 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 304 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 310 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 546 const UInt8* pathname ) in count_faces() argument 562 err = lookup_lwfn_by_fond( pathname, lwfn_file_name, in count_faces() 701 const UInt8* pathname, in FT_New_Face_From_LWFN() argument 711 if ( noErr != FT_FSPathMakeRes( pathname, &res ) ) in FT_New_Face_From_LWFN() 805 const UInt8* pathname, in FT_New_Face_From_Suitcase() argument 816 if ( noErr != FT_FSPathMakeRes( pathname, &res_ref ) ) in FT_New_Face_From_Suitcase() [all …]
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
D | toolutil.cpp | 107 getLongPathname(const char *pathname) { in getLongPathname() argument 111 HANDLE file=FindFirstFileA(pathname, &info); in getLongPathname() 115 const char *basename=findBasename(pathname); in getLongPathname() 116 if(basename!=pathname) { in getLongPathname() 118 … uprv_memmove(info.cFileName+(basename-pathname), info.cFileName, uprv_strlen(info.cFileName)+1); in getLongPathname() 119 uprv_memcpy(info.cFileName, pathname, basename-pathname); in getLongPathname() 121 pathname=info.cFileName; in getLongPathname() 126 return pathname; in getLongPathname() 185 uprv_mkdir(const char *pathname, UErrorCode *status) { in uprv_mkdir() argument 189 retVal = _mkdir(pathname); in uprv_mkdir() [all …]
|
/third_party/icu/icu4c/source/tools/toolutil/ |
D | toolutil.cpp | 107 getLongPathname(const char *pathname) { in getLongPathname() argument 111 HANDLE file=FindFirstFileA(pathname, &info); in getLongPathname() 115 const char *basename=findBasename(pathname); in getLongPathname() 116 if(basename!=pathname) { in getLongPathname() 118 … uprv_memmove(info.cFileName+(basename-pathname), info.cFileName, uprv_strlen(info.cFileName)+1); in getLongPathname() 119 uprv_memcpy(info.cFileName, pathname, basename-pathname); in getLongPathname() 121 pathname=info.cFileName; in getLongPathname() 126 return pathname; in getLongPathname() 185 uprv_mkdir(const char *pathname, UErrorCode *status) { in uprv_mkdir() argument 189 retVal = _mkdir(pathname); in uprv_mkdir() [all …]
|