/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...] |
/kernel/liteos_a/fs/vfs/operation/ |
H A D | fullpath.c | 146 static int vfs_normalize_path_parame_check(const char *filename, char **pathname) in vfs_normalize_path_parame_check() argument 151 if (pathname == NULL) { in vfs_normalize_path_parame_check() 158 *pathname = NULL; in vfs_normalize_path_parame_check() 164 *pathname = NULL; in vfs_normalize_path_parame_check() 167 *pathname = NULL; in vfs_normalize_path_parame_check() 173 *pathname = NULL; in vfs_normalize_path_parame_check() 181 static char *vfs_not_absolute_path(const char *directory, const char *filename, char **pathname, int namelen) in vfs_not_absolute_path() argument 194 *pathname = NULL; in vfs_not_absolute_path() 204 *pathname = NULL; in vfs_not_absolute_path() 213 static char *vfs_normalize_fullpath(const char *directory, const char *filename, char **pathname, in argument 244 vfs_normalize_path(const char *directory, const char *filename, char **pathname) vfs_normalize_path() argument 305 vfs_normalize_pathat(int dirfd, const char *filename, char **pathname) vfs_normalize_pathat() argument [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...] |
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | fullpath.c | 135 STATIC INT32 VfsNormalizePathParameCheck(const CHAR *filename, CHAR **pathname) in VfsNormalizePathParameCheck() argument 140 if (pathname == NULL) { in VfsNormalizePathParameCheck() 147 *pathname = NULL; in VfsNormalizePathParameCheck() 153 *pathname = NULL; in VfsNormalizePathParameCheck() 156 *pathname = NULL; in VfsNormalizePathParameCheck() 162 *pathname = NULL; in VfsNormalizePathParameCheck() 170 STATIC CHAR *VfsNotAbsolutePath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen) in VfsNotAbsolutePath() argument 183 *pathname = NULL; in VfsNotAbsolutePath() 192 *pathname = NULL; in VfsNotAbsolutePath() 201 STATIC CHAR *VfsNormalizeFullpath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT3 argument 232 VfsNormalizePath(const CHAR *directory, const CHAR *filename, CHAR **pathname) VfsNormalizePath() argument [all...] |
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | extrace.c | 122 * pathname - Object path 132 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() 137 if (pathname) { in acpi_ex_trace_point() 141 begin ? "Begin" : "End", aml, pathname)); in acpi_ex_trace_point() 170 char *pathname = NULL; in acpi_ex_start_trace_method() local 176 pathname = acpi_ns_get_normalized_pathname(method_node, TRUE); in acpi_ex_start_trace_method() 179 enabled = acpi_ex_interpreter_trace_enabled(pathname); in acpi_ex_start_trace_method() 199 pathname); in acpi_ex_start_trace_method() 202 if (pathname) { in acpi_ex_start_trace_method() 203 ACPI_FREE(pathname); in acpi_ex_start_trace_method() 131 acpi_ex_trace_point(acpi_trace_event_type type, u8 begin, u8 *aml, char *pathname) acpi_ex_trace_point() argument 227 char *pathname = NULL; acpi_ex_stop_trace_method() local [all...] |
H A D | utxfmutex.c | 18 acpi_string pathname, 26 * pathname - Mutex pathname (optional) 39 acpi_string pathname, in acpi_ut_get_mutex_object() 48 if (!ret_obj || (!handle && !pathname)) { in acpi_ut_get_mutex_object() 55 if (pathname != NULL) { in acpi_ut_get_mutex_object() 57 acpi_get_handle(handle, pathname, in acpi_ut_get_mutex_object() 86 * pathname - Mutex pathname (optional) 100 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u1 argument 38 acpi_ut_get_mutex_object(acpi_handle handle, acpi_string pathname, union acpi_operand_object **ret_obj) acpi_ut_get_mutex_object() argument [all...] |
H A D | nsarguments.c | 81 * PARAMETERS: pathname - Full pathname to the node (for error msgs) 94 acpi_ns_check_acpi_compliance(char *pathname, in acpi_ns_check_acpi_compliance() argument 119 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance() 130 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance() 154 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance() 162 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance() 174 * PARAMETERS: pathname - Full pathname to the node (for error msgs) 187 acpi_ns_check_argument_count(char *pathname, in acpi_ns_check_argument_count() argument [all...] |
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | extrace.c | 122 * pathname - Object path 132 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() 137 if (pathname) { in acpi_ex_trace_point() 141 begin ? "Begin" : "End", aml, pathname)); in acpi_ex_trace_point() 170 char *pathname = NULL; in acpi_ex_start_trace_method() local 176 pathname = acpi_ns_get_normalized_pathname(method_node, TRUE); in acpi_ex_start_trace_method() 179 enabled = acpi_ex_interpreter_trace_enabled(pathname); in acpi_ex_start_trace_method() 199 pathname); in acpi_ex_start_trace_method() 202 if (pathname) { in acpi_ex_start_trace_method() 203 ACPI_FREE(pathname); in acpi_ex_start_trace_method() 131 acpi_ex_trace_point(acpi_trace_event_type type, u8 begin, u8 *aml, char *pathname) acpi_ex_trace_point() argument 227 char *pathname = NULL; acpi_ex_stop_trace_method() local [all...] |
H A D | utxfmutex.c | 18 acpi_string pathname, 26 * pathname - Mutex pathname (optional) 39 acpi_string pathname, in acpi_ut_get_mutex_object() 48 if (!ret_obj || (!handle && !pathname)) { in acpi_ut_get_mutex_object() 55 if (pathname != NULL) { in acpi_ut_get_mutex_object() 57 acpi_get_handle(handle, pathname, in acpi_ut_get_mutex_object() 86 * pathname - Mutex pathname (optional) 100 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u1 argument 38 acpi_ut_get_mutex_object(acpi_handle handle, acpi_string pathname, union acpi_operand_object **ret_obj) acpi_ut_get_mutex_object() argument [all...] |
H A D | nsarguments.c | 81 * PARAMETERS: pathname - Full pathname to the node (for error msgs) 94 acpi_ns_check_acpi_compliance(char *pathname, in acpi_ns_check_acpi_compliance() argument 119 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance() 130 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance() 154 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance() 162 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance() 174 * PARAMETERS: pathname - Full pathname to the node (for error msgs) 187 acpi_ns_check_argument_count(char *pathname, in acpi_ns_check_argument_count() argument [all...] |
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidump/ |
H A D | apfiles.c | 14 static int ap_is_existing_file(char *pathname); 20 * PARAMETERS: pathname - Output filename 28 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument 34 if (!stat(pathname, &stat_info)) { in ap_is_existing_file() 56 * PARAMETERS: pathname - Output filename 65 int ap_open_output_file(char *pathname) in ap_open_output_file() argument 71 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file() 77 file = fopen(pathname, "w"); in ap_open_output_file() 79 fprintf(stderr, "Could not open output file: %s\n", pathname); in ap_open_output_file() 86 gbl_output_filename = pathname; in ap_open_output_file() 179 ap_get_table_from_file(char *pathname, u32 *out_file_size) ap_get_table_from_file() argument [all...] |
/kernel/linux/linux-6.6/tools/power/acpi/tools/acpidump/ |
H A D | apfiles.c | 14 static int ap_is_existing_file(char *pathname); 20 * PARAMETERS: pathname - Output filename 28 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument 34 if (!stat(pathname, &stat_info)) { in ap_is_existing_file() 56 * PARAMETERS: pathname - Output filename 65 int ap_open_output_file(char *pathname) in ap_open_output_file() argument 71 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file() 77 file = fopen(pathname, "w"); in ap_open_output_file() 79 fprintf(stderr, "Could not open output file: %s\n", pathname); in ap_open_output_file() 86 gbl_output_filename = pathname; in ap_open_output_file() 179 ap_get_table_from_file(char *pathname, u32 *out_file_size) ap_get_table_from_file() argument [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...] |
/kernel/linux/linux-5.10/tools/testing/selftests/exec/ |
H A D | non-regular.c | 15 void rm(struct __test_metadata *_metadata, const char *pathname, in rm() argument 21 rc = rmdir(pathname); in rm() 23 rc = unlink(pathname); in rm() 27 TH_LOG("Not ENOENT: %s", pathname); in rm() 31 TH_LOG("Failed to remove: %s", pathname); in rm() 37 char *pathname; in FIXTURE() local 64 ASSERT_EQ(symlink(paths[i], self->pathname), 0); in setup_link() 84 ASSERT_EQ(mkdir(self->pathname, 0755), 0); in setup_dir() 103 rc = mknod(self->pathname, 0755 | variant->mode, dev); in setup_node() 137 ASSERT_EQ(mkfifo(self->pathname, 075 in setup_fifo() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/exec/ |
H A D | non-regular.c | 15 void rm(struct __test_metadata *_metadata, const char *pathname, in rm() argument 21 rc = rmdir(pathname); in rm() 23 rc = unlink(pathname); in rm() 27 TH_LOG("Not ENOENT: %s", pathname); in rm() 31 TH_LOG("Failed to remove: %s", pathname); in rm() 37 char *pathname; in FIXTURE() local 64 ASSERT_EQ(symlink(paths[i], self->pathname), 0); in setup_link() 84 ASSERT_EQ(mkdir(self->pathname, 0755), 0); in setup_dir() 103 rc = mknod(self->pathname, 0755 | variant->mode, dev); in setup_node() 137 ASSERT_EQ(mkfifo(self->pathname, 075 in setup_fifo() [all...] |
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
H A D | It_stdio_getc_unlocked_001.cpp | 39 char pathname[50]; // 50, enough space. in Testcase() local 43 ret = strncpy_s(pathname, sizeof(pathname), g_ioTestPath, sizeof(pathname)); in Testcase() 46 ret = strcat_s(pathname, 50, filename); // 50, path name buffer size in Testcase() 49 testFile = fopen(pathname, "w+"); in Testcase() 55 testFile = fopen(pathname, "r"); in Testcase() 68 remove(pathname); in Testcase() 73 remove(pathname); in Testcase()
|
/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()
|
/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...] |
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
H A D | It_ipc_mkfifo_002.cpp | 41 char pathname[NAME_BUF_SIZE]; in Testcase() local 44 errno_t ret1 = strncpy_s(pathname, NAME_BUF_SIZE, dir, strlen(dir)); in Testcase() 47 ret1 = strcat_s(pathname, NAME_BUF_SIZE, filename); in Testcase() 50 ret = mkfifo(pathname, 0777); // 0777, file athurioty in Testcase() 56 tarFd = open(pathname, O_WRONLY, 0777); // 0777, file athurioty in Testcase() 70 tarFd = open(pathname, O_RDONLY, 0777); // 0777, file athurioty in Testcase() 82 remove(pathname); in Testcase() 88 remove(pathname); in Testcase()
|
H A D | It_ipc_mkfifo_003.cpp | 41 char pathname[NAME_BUF_SIZE]; in Testcase() local 44 errno_t ret1 = strncpy_s(pathname, NAME_BUF_SIZE, dir, strlen(dir)); in Testcase() 47 ret1 = strcat_s(pathname, NAME_BUF_SIZE, filename); in Testcase() 50 ret = mkfifo(pathname, 0777); // 0777, file athurioty in Testcase() 55 tarFd = open(pathname, O_WRONLY, 0777); // 0777, file athurioty in Testcase() 69 tarFd = open(pathname, O_RDONLY, 0777); // 0777, file athurioty in Testcase() 82 remove(pathname); in Testcase() 88 remove(pathname); in Testcase()
|