/third_party/node/test/parallel/ |
H A D | test-url-parse-format.js | 17 pathname: '//some_path', 26 pathname: '/foo.html', 37 pathname: '/foo.html', 50 pathname: '/foo.html', 62 pathname: '/foo.html', 73 pathname: '/', 83 pathname: '/', 93 pathname: '/', 104 pathname: '/', 115 pathname [all...] |
H A D | test-fs-mkdir.js | 38 const pathname = path.join(tmpdir.path, nextdir()); 40 fs.mkdir(pathname, common.mustCall(function(err) { 42 assert.strictEqual(fs.existsSync(pathname), true); 48 const pathname = path.join(tmpdir.path, nextdir()); 50 fs.mkdir(pathname, 0o777, common.mustCall(function(err) { 52 assert.strictEqual(fs.existsSync(pathname), true); 58 const pathname = path.join(tmpdir.path, nextdir()); 60 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ mode: 0o777 }), common.mustCall(function(err) { 62 assert.strictEqual(fs.existsSync(pathname), true); 68 const pathname [all...] |
H A D | test-url-format.js | 20 pathname: '/' 30 pathname: '/' 40 pathname: '/' 50 pathname: '/' 60 pathname: '/' 68 pathname: '/' 74 pathname: '/%22%20onload=%22alert(42)/' 80 pathname: 'a/b/c', 96 pathname: '/' 103 pathname [all...] |
/third_party/node/deps/openssl/openssl/fuzz/ |
H A 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_le in main() [all...] |
/third_party/openssl/fuzz/ |
H A 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_le in main() [all...] |
/third_party/python/Lib/ |
H A D | glob.py | 13 def glob(pathname, *, root_dir=None, dir_fd=None, recursive=False, 15 """Return a list of paths matching a pathname pattern. 28 return list(iglob(pathname, root_dir=root_dir, dir_fd=dir_fd, recursive=recursive, 31 def iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False, 33 """Return an iterator which yields the paths matching a pathname pattern. 43 sys.audit("glob.glob", pathname, recursive) 44 sys.audit("glob.glob/2", pathname, recursive, root_dir, dir_fd) 48 root_dir = pathname[:0] 49 it = _iglob(pathname, root_dir, dir_fd, recursive, False, 51 if not pathname o [all...] |
/third_party/ltp/testcases/kernel/syscalls/utimensat/ |
H A 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 in run() local [all...] |
/third_party/node/lib/ |
H A D | url.js | 80 this.pathname = null; 255 this.pathname = simplePath[1]; 414 // the pathname as we've done in getHostname, throw an exception to 480 this.pathname = rest; 482 this.pathname = rest.slice(0, firstIdx); 485 this.hostname && !this.pathname) { 486 this.pathname = '/'; 490 if (this.pathname || this.search) { 491 const p = this.pathname || ''; 631 let pathname [all...] |
/third_party/NuttX/fs/vfs/ |
H A 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()
|
H A 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/ltp/lib/ |
H A D | safe_file_ops.c | 346 const char *pathname, in safe_touch() 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, time in safe_touch() 344 safe_touch(const char *file, const int lineno, void (*cleanup_fn)(void), const char *pathname, mode_t mode, const struct timespec times[2]) safe_touch() argument [all...] |
/third_party/skia/third_party/externals/freetype/builds/mac/ |
H A D | ftmac.c | 39 resource fork. So we just grab the stream->pathname field. 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() 616 /* Return the file type for given pathname */ 618 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() 627 if ( noErr != FSPathMakeRef( pathname, in get_file_type_from_path() 1080 FT_New_Face_From_LWFN( FT_Library library, const UInt8* pathname, FT_Long face_index, FT_Face* aface ) FT_New_Face_From_LWFN() argument 1181 FT_New_Face_From_Suitcase( FT_Library library, const UInt8* pathname, FT_Long face_index, FT_Face* aface ) FT_New_Face_From_Suitcase() argument 1347 FT_New_Face_From_Resource( FT_Library library, const UInt8* pathname, FT_Long face_index, FT_Face* aface ) FT_New_Face_From_Resource() argument [all...] |
/third_party/selinux/libselinux/src/ |
H A D | selinux_restorecon.c | 425 char *file; /* full pathname */ 656 static bool check_path_allow_restorecon(const char *pathname) in check_path_allow_restorecon() argument 658 if ((!strncmp(pathname, DATA_APP_EL1, sizeof(DATA_APP_EL1) - 1) && (!is_hnp_path(pathname))) || in check_path_allow_restorecon() 659 !strncmp(pathname, DATA_APP_EL2, sizeof(DATA_APP_EL2) - 1) || in check_path_allow_restorecon() 660 !strncmp(pathname, DATA_APP_EL3, sizeof(DATA_APP_EL3) - 1) || in check_path_allow_restorecon() 661 !strncmp(pathname, DATA_APP_EL4, sizeof(DATA_APP_EL4) - 1) || in check_path_allow_restorecon() 662 !strncmp(pathname, DATA_ACCOUNTS_ACCOUNT_0, sizeof(DATA_ACCOUNTS_ACCOUNT_0) - 1)) { in check_path_allow_restorecon() 669 static int restorecon_sb(const char *pathname, const struct stat *sb, in restorecon_sb() argument 676 const char *lookup_path = pathname; in restorecon_sb() 833 check_context_match_for_dir(const char *pathname, struct dir_hash_node **new_node, int error) check_context_match_for_dir() argument 1146 char *pathname = NULL, *pathdnamer = NULL, *pathdname, *pathbname; selinux_restorecon_common() local 1546 selinux_restorecon_xattr(const char *pathname, unsigned int xattr_flags, struct dir_xattr ***xattr_list) selinux_restorecon_xattr() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftmac.c | 42 resource fork. So we just grab the stream->pathname field. 279 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 286 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 302 /* Return the file type for given pathname */ 304 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() 310 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 546 const UInt8* pathname ) in count_faces() 562 err = lookup_lwfn_by_fond( pathname, lwfn_file_name, in count_faces() 701 const UInt8* pathname, in FT_New_Face_From_LWFN() 711 if ( noErr != FT_FSPathMakeRes( pathname, in FT_New_Face_From_LWFN() 700 FT_New_Face_From_LWFN( FT_Library library, const UInt8* pathname, FT_Long face_index, FT_Face* aface ) FT_New_Face_From_LWFN() argument 804 FT_New_Face_From_Suitcase( FT_Library library, const UInt8* pathname, FT_Long face_index, FT_Face* aface ) FT_New_Face_From_Suitcase() argument 926 FT_New_Face_From_Resource( FT_Library library, const UInt8* pathname, FT_Long face_index, FT_Face* aface ) FT_New_Face_From_Resource() argument 1019 UInt8 pathname[PATH_MAX]; FT_EXPORT_DEF() local [all...] |
/third_party/NuttX/fs/driver/ |
H A D | fs_openblockdriver.c | 40 * Return the vnode of the block driver specified by 'pathname' 43 * pathname - the full path to the block driver to be opened 51 * EINVAL - pathname or pvnode is NULL 53 * ENOTBLK - The vnode associated with the pathname is not a block driver 60 extern int find_blockdriver(const char *pathname, int mountflags, struct Vnode **vpp); 62 int open_blockdriver(const char *pathname, int mountflags, in open_blockdriver() argument 84 ret = find_blockdriver(pathname, mountflags, &vnode_ptr); in open_blockdriver() 87 PRINT_DEBUG("Failed to file %s block driver\n", pathname); in open_blockdriver() 122 PRINT_DEBUG("%s driver open failed\n", pathname); in open_blockdriver() 143 PRINT_DEBUG("%s driver open failed\n", pathname); in open_blockdriver() [all...] |
/third_party/python/Python/ |
H A D | dynload_hpux.c | 20 const char *pathname, FILE *fp) in _PyImport_FindSharedFuncptr() 27 printf("shl_load %s\n",pathname); in _PyImport_FindSharedFuncptr() 30 shl_t lib = shl_load(pathname, flags, 0); in _PyImport_FindSharedFuncptr() 34 perror(pathname); in _PyImport_FindSharedFuncptr() 38 pathname); in _PyImport_FindSharedFuncptr() 47 PyObject *pathname_ob = PyUnicode_DecodeFSDefault(pathname); in _PyImport_FindSharedFuncptr() 18 _PyImport_FindSharedFuncptr(const char *prefix, const char *shortname, const char *pathname, FILE *fp) _PyImport_FindSharedFuncptr() argument
|
H A D | dynload_shlib.c | 55 const char *pathname, FILE *fp) in _PyImport_FindSharedFuncptr() 63 if (strchr(pathname, '/') == NULL) { in _PyImport_FindSharedFuncptr() 65 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_FindSharedFuncptr() 66 pathname = pathbuf; in _PyImport_FindSharedFuncptr() 80 handle = dlopen(pathname, dlopenflags); in _PyImport_FindSharedFuncptr() 97 path = PyUnicode_DecodeFSDefault(pathname); in _PyImport_FindSharedFuncptr() 53 _PyImport_FindSharedFuncptr(const char *prefix, const char *shortname, const char *pathname, FILE *fp) _PyImport_FindSharedFuncptr() argument
|
/third_party/NuttX/drivers/pipes/ |
H A D | fifo.c | 66 * mkfifo() makes a FIFO device driver file with name 'pathname.' Unlike 85 * pathname - The full path to the FIFO instance to attach to or to create 96 int mkfifo(const char *pathname, mode_t mode) in mkfifo() argument 107 if (pathname == NULL) in mkfifo() 112 if (strlen(pathname) > PATH_MAX) in mkfifo() 119 dev = pipecommon_allocdev(bufsize, pathname); in mkfifo() 125 ret = register_driver(pathname, &fifo_fops, mode, (void *)dev); in mkfifo()
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
H A D | toolutil.cpp | 100 getLongPathname(const char *pathname) { in getLongPathname() argument 104 HANDLE file=FindFirstFileA(pathname, &info); in getLongPathname() 108 const char *basename=findBasename(pathname); in getLongPathname() 109 if(basename!=pathname) { in getLongPathname() 111 uprv_memmove(info.cFileName+(basename-pathname), info.cFileName, uprv_strlen(info.cFileName)+1); in getLongPathname() 112 uprv_memcpy(info.cFileName, pathname, basename-pathname); in getLongPathname() 114 pathname=info.cFileName; in getLongPathname() 119 return pathname; in getLongPathname() 162 //be lenient about pathname separator in findBasename() 178 uprv_mkdir(const char *pathname, UErrorCode *status) uprv_mkdir() argument [all...] |
/third_party/icu/icu4c/source/tools/toolutil/ |
H A D | toolutil.cpp | 100 getLongPathname(const char *pathname) { in getLongPathname() argument 104 HANDLE file=FindFirstFileA(pathname, &info); in getLongPathname() 108 const char *basename=findBasename(pathname); in getLongPathname() 109 if(basename!=pathname) { in getLongPathname() 111 uprv_memmove(info.cFileName+(basename-pathname), info.cFileName, uprv_strlen(info.cFileName)+1); in getLongPathname() 112 uprv_memcpy(info.cFileName, pathname, basename-pathname); in getLongPathname() 114 pathname=info.cFileName; in getLongPathname() 119 return pathname; in getLongPathname() 162 //be lenient about pathname separator in findBasename() 178 uprv_mkdir(const char *pathname, UErrorCode *status) uprv_mkdir() argument [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A 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() 169 //be lenient about pathname separator in findBasename() 185 uprv_mkdir(const char *pathname, UErrorCode *status) uprv_mkdir() argument [all...] |
/third_party/libsnd/regtest/ |
H A D | database.c | 50 /* Filename and pathname for file. */ 52 char pathname [512] ; member 189 sndfile = sf_open (db->pathname, SFM_READ, &info) ; in db_add_file() 205 db->filename, db->pathname, info.samplerate, (long) info.frames, info.channels, info.format, checksum, db->logbuf) ; in db_add_file() 331 snprintf (db->pathname, sizeof (db->pathname), "%s", result [3]) ; in get_filename_pathname_by_ekey() 349 sndfile = sf_open (db->pathname, SFM_READ, &info) ; in check_file_by_ekey() 355 { printf ("\n\nError : Could not open '%s' : %s\n", db->pathname, sf_strerror (NULL)) ; in check_file_by_ekey() 436 { memset (db->pathname, 0, sizeof (db->pathname)) ; in get_filename_pathname() [all...] |
/third_party/node/lib/internal/modules/esm/ |
H A D | get_format.js | 47 parsed.pathname, 64 const { pathname } = url; 65 for (let i = pathname.length - 1; i > 0; i--) { 66 switch (StringPrototypeCharCodeAt(pathname, i)) { 71 return StringPrototypeCharCodeAt(pathname, i - 1) === SLASH_CODE ? '' : StringPrototypeSlice(pathname, i); 86 return StringPrototypeIncludes(url.pathname, '/node_modules/');
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | rm.c | 25 static int toybox_cmd_do_rmdir(const char *pathname) in toybox_cmd_do_rmdir() argument 34 if (stat(pathname, &stat_info) != 0) return -1; in toybox_cmd_do_rmdir() 37 return remove(pathname); in toybox_cmd_do_rmdir() 40 dir = opendir(pathname); in toybox_cmd_do_rmdir() 47 size_t fullpath_buf_size = strlen(pathname) + strlen(dirent->d_name) + 2; in toybox_cmd_do_rmdir() 57 ret = snprintf(fullpath, fullpath_buf_size, "%s/%s", pathname, dirent->d_name); in toybox_cmd_do_rmdir() 68 return rmdir(pathname); in toybox_cmd_do_rmdir() 116 // Delete the last '/' of pathname. in do_rm()
|
/third_party/libsnd/programs/ |
H A D | sndfile-deinterleave.c | 70 char pathname [512], ext [32], *cptr ; in main() local 107 if (snprintf (pathname, sizeof (pathname), "%s", argv [1]) > (int) sizeof (pathname)) in main() 108 { printf ("\nError : Length of provided filename '%s' exceeds MAX_PATH (%d).\n", argv [1], (int) sizeof (pathname)) ; in main() 112 if ((cptr = strrchr (pathname, '.')) == NULL) in main() 119 printf ("Input file : %s\n", pathname) ; in main() 126 count = snprintf (filename, sizeof (filename), "%s_%02d%s", pathname, ch, ext) ; in main()
|