/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...] |
/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...] |
H A D | dbexec.c | 144 status = acpi_evaluate_object(NULL, info->pathname, in acpi_db_execute_method() 165 info->pathname)); in acpi_db_execute_method() 201 info->pathname[0] = 0; in acpi_db_execute_setup() 203 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup() 210 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup() 216 acpi_db_prep_namestring(info->pathname); in acpi_db_execute_setup() 219 acpi_os_printf("Evaluating %s\n", info->pathname); in acpi_db_execute_setup() 428 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, in acpi_db_execute() [all...] |
H A D | utstring.c | 187 * PARAMETERS: pathname - File pathname string to be converted 192 * the entire input file pathname string. 196 void ut_convert_backslashes(char *pathname) in ut_convert_backslashes() argument 199 if (!pathname) { in ut_convert_backslashes() 203 while (*pathname) { in ut_convert_backslashes() 204 if (*pathname == '\\') { in ut_convert_backslashes() 205 *pathname = '/'; in ut_convert_backslashes() 208 pathname++; in ut_convert_backslashes()
|
/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...] |
H A D | dbexec.c | 144 status = acpi_evaluate_object(NULL, info->pathname, in acpi_db_execute_method() 165 info->pathname)); in acpi_db_execute_method() 201 info->pathname[0] = 0; in acpi_db_execute_setup() 203 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup() 210 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup() 216 acpi_db_prep_namestring(info->pathname); in acpi_db_execute_setup() 219 acpi_os_printf("Evaluating %s\n", info->pathname); in acpi_db_execute_setup() 428 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, in acpi_db_execute() [all...] |
H A D | utstring.c | 187 * PARAMETERS: pathname - File pathname string to be converted 192 * the entire input file pathname string. 196 void ut_convert_backslashes(char *pathname) in ut_convert_backslashes() argument 199 if (!pathname) { in ut_convert_backslashes() 203 while (*pathname) { in ut_convert_backslashes() 204 if (*pathname == '\\') { in ut_convert_backslashes() 205 *pathname = '/'; in ut_convert_backslashes() 208 pathname++; in ut_convert_backslashes()
|
/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...] |
/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()
|
H A D | It_stdio_fputws_001.cpp | 41 char pathname[50]; // 50, path name buffer size in Testcase() local 45 ret = strncpy_s(pathname, 50, g_ioTestPath, 50); // 50, path name buffer size in Testcase() 48 ret = strcat_s(pathname, 50, filename); // 50, path name buffer size in Testcase() 51 testFile = fopen(pathname, "a"); in Testcase() 65 testFile = fopen(pathname, "r"); in Testcase() 74 remove(pathname); in Testcase() 79 remove(pathname); in Testcase()
|
H A D | It_stdio_fwprintf_001.cpp | 41 char pathname[50]; // 50, path name buffer size in Testcase() local 42 (void)strncpy_s(pathname, 50, g_ioTestPath, 50); // 50, path name buffer size in Testcase() 47 ret = strcat_s(pathname, 50, filename); // 50, path name buffer size in Testcase() 51 testFile = fopen(pathname, "w+"); in Testcase() 64 testFile = fopen(pathname, "r"); in Testcase() 74 remove(pathname); in Testcase() 79 remove(pathname); in Testcase()
|
H A D | It_stdio_readv_001.cpp | 37 char pathname[50]; // 50, path name size in Testcase() local 51 (void)strncpy_s(pathname, 50, g_ioTestPath, 50); // 50, path name size in Testcase() 52 ret = strcat_s(pathname, 50, filename); // 50, path name buffer size in Testcase() 54 fd = open(pathname, O_CREAT | O_RDWR | O_TRUNC, 0666); // 0666, file authority in Testcase() 62 fd = open(pathname, O_RDWR); in Testcase() 74 remove(pathname); in Testcase() 78 remove(pathname); in Testcase()
|
H A D | It_stdio_putwc_001.cpp | 41 char pathname[50]; // 50, pathname size in Testcase() local 45 ret = strncpy_s(pathname, 50, g_ioTestPath, 50); // 50, pathname size in Testcase() 48 ret = strcat_s(pathname, 50, filename); // 50, path name buffer size in Testcase() 52 putwcFile = fopen(pathname, "w+"); in Testcase() 61 putwcFile = fopen(pathname, "r"); in Testcase() 74 remove(pathname); in Testcase() 79 remove(pathname); in Testcase()
|
/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/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()
|
/kernel/linux/linux-5.10/security/loadpin/ |
H A D | loadpin.c | 24 char *cmdline, *pathname; in report_load() local 26 pathname = kstrdup_quotable_file(file, GFP_KERNEL); in report_load() 31 (pathname && pathname[0] != '<') ? "\"" : "", in report_load() 32 pathname, in report_load() 33 (pathname && pathname[0] != '<') ? "\"" : "", in report_load() 38 kfree(pathname); in report_load()
|
/kernel/linux/linux-5.10/drivers/block/rnbd/ |
H A D | rnbd-clt-sysfs.c | 58 char *pathname; member 143 strlcpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options() 238 return scnprintf(page, PAGE_SIZE, "%s\n", dev->pathname); in mapping_path_show() 479 char pathname[NAME_MAX], *s; in rnbd_clt_get_path_name() local 481 strlcpy(pathname, dev->pathname, sizeof(pathname)); in rnbd_clt_get_path_name() 482 while ((s = strchr(pathname, '/'))) in rnbd_clt_get_path_name() 485 ret = snprintf(buf, len, "%s", pathname); in rnbd_clt_get_path_name() 497 len = strlen(dev->pathname) in rnbd_clt_add_dev_symlink() 535 char pathname[NAME_MAX]; rnbd_clt_map_device_store() local [all...] |