Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 40) sorted by relevance

12

/components/libc/posix/libdl/
A Ddlopen.c32 void* dlopen(const char *filename, int flags) in dlopen() argument
39 RT_ASSERT(filename != RT_NULL); in dlopen()
41 if (filename[0] != '/') /* it's a relative path, prefix with MODULE_ROOT_DIR */ in dlopen()
43 fullpath = rt_malloc(strlen(def_path) + strlen(filename) + 2); in dlopen()
46 rt_snprintf(fullpath, strlen(def_path) + strlen(filename) + 2, in dlopen()
47 "%s/%s", def_path, filename); in dlopen()
51 fullpath = (char*)filename; /* absolute path, use it directly */ in dlopen()
70 if(fullpath != filename) in dlopen()
A Ddlmodule.h64 rt_uint8_t *(*load)(const char* filename); /* load dlmodule file data */
77 struct rt_dlmodule* dlmodule_load_custom(const char* filename, struct rt_dlmodule_ops* ops);
A Ddlmodule.c448 struct rt_dlmodule* dlmodule_load(const char* filename) in dlmodule_load() argument
458 fd = open(filename, O_RDONLY, 0); in dlmodule_load()
503 _dlmodule_set_name(module, filename); in dlmodule_load()
606 struct rt_dlmodule* dlmodule_load_custom(const char* filename, struct rt_dlmodule_ops* ops) in dlmodule_load_custom() argument
619 module_ptr = ops->load(filename); in dlmodule_load_custom()
624 fd = open(filename, O_RDONLY, 0); in dlmodule_load_custom()
670 _dlmodule_set_name(module, filename); in dlmodule_load_custom()
A Ddlfcn.h23 void *dlopen (const char *filename, int flag);
/components/lwp/
A Dlwp_elf.c187 static int elf_file_open(const char *filename) in elf_file_open() argument
191 fd = open(filename, O_BINARY | O_RDONLY, 0); in elf_file_open()
217 ret = stat(filename, &s); in elf_file_length()
351 ret = elf_file_open(elf_info->filename); in elf_load_ehdr()
913 if (load_info->exec_info.filename != RT_NULL) in elf_load_deinit()
915 rt_free(load_info->exec_info.filename); in elf_load_deinit()
1025 if (filename == RT_NULL) in lwp_load()
1032 len = rt_strlen(filename); in lwp_load()
1041 if (!load_info.exec_info.filename) in lwp_load()
1049 rt_strncpy(load_info.exec_info.filename, filename, len); in lwp_load()
[all …]
A Dlwp.c347 pid_t lwp_execve(char *filename, int debug, int argc, char **argv, char **envp) in lwp_execve() argument
355 if (filename == RT_NULL) in lwp_execve()
360 if (access(filename, X_OK) != 0) in lwp_execve()
395 result = lwp_load(filename, lwp, RT_NULL, 0, aux); in lwp_execve()
404 thread_name = strrchr(filename, '/'); in lwp_execve()
405 thread_name = thread_name ? thread_name + 1 : filename; in lwp_execve()
502 pid_t exec(char *filename, int debug, int argc, char **argv) in exec() argument
505 return lwp_execve(filename, debug, argc, argv, __environ); in exec()
A Dlwp.h244 int lwp_execve(char *filename, int debug, int argc, char **argv, char **envp);
245 int lwp_load(const char *filename, struct rt_lwp *lwp, uint8_t *load_addr, size_t addr_size, struct…
261 pid_t exec(char *filename, int debug, int argc, char **argv);
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Dauth.c1568 char *filename;
1688 char *filename;
1738 char *filename;
1779 char *filename;
1823 char *filename;
1871 char *filename;
1926 char *filename; in get_secret()
1996 char *filename;
2293 char *filename;
2301 filename);
[all …]
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Dauth.c1568 char *filename;
1688 char *filename;
1738 char *filename;
1779 char *filename;
1823 char *filename;
1871 char *filename;
1926 char *filename; in get_secret()
1996 char *filename;
2293 char *filename;
2301 filename);
[all …]
/components/net/lwip/lwip-2.1.2/src/apps/http/makefsdata/
A Dmakefsdata.c125 static int file_to_exclude(const char* filename);
540 inFile = fopen(filename, "rb"); in get_file_data()
834 static int is_ssi_file(const char *filename) in is_ssi_file() argument
845 strncat(curSubdir, filename, freelen - 1); in is_ssi_file()
879 size_t filename_size = strlen(filename); in ext_in_list()
948 is_ssi = is_ssi_file(filename); in process_file()
1045 if (strstr(filename, "404") == filename) { in file_write_http_header()
1050 } else if (strstr(filename, "400") == filename) { in file_write_http_header()
1055 } else if (strstr(filename, "501") == filename) { in file_write_http_header()
1081 file_ext = filename; in file_write_http_header()
[all …]
/components/net/lwip/lwip-2.0.3/test/fuzz/
A Dfuzz.c120 const char* filename; in main() local
123 filename = argv[1]; in main()
124 LWIP_ASSERT("invalid filename", filename != NULL); in main()
125 f = fopen(filename, "rb"); in main()
129 printf("testing file: \"%s\"...\r\n", filename); in main()
/components/net/lwip/lwip-2.1.2/test/fuzz/
A Dfuzz.c173 const char* filename; in main() local
176 filename = argv[1]; in main()
177 LWIP_ASSERT("invalid filename", filename != NULL); in main()
178 f = fopen(filename, "rb"); in main()
182 printf("testing file: \"%s\"...\r\n", filename); in main()
/components/net/lwip/lwip-2.0.3/src/apps/httpd/makefsdata/
A Dmakefsdata.c488 inFile = fopen(filename, "rb"); in get_file_data()
490 printf("Failed to open file \"%s\"\n", filename); in get_file_data()
701 int is_ssi_file(const char* filename) in is_ssi_file() argument
705 if (strstr(filename, g_pcSSIExtensions[loop])) { in is_ssi_file()
728 sprintf(qualifiedName,"%s/%s", curSubdir, filename); in process_file()
753 has_content_len = !is_ssi_file(filename); in process_file()
827 if (strstr(filename, "404") == filename) { in file_write_http_header()
832 } else if (strstr(filename, "400") == filename) { in file_write_http_header()
837 } else if (strstr(filename, "501") == filename) { in file_write_http_header()
863 file_ext = filename; in file_write_http_header()
[all …]
/components/libc/compilers/dlib/
A Dsyscall_remove.c26 int remove(const char *filename) in remove() argument
29 return unlink(filename); in remove()
A Dsyscall_open.c26 int __open(const char *filename, int mode) in __open() argument
73 handle = open(filename, open_mode, 0); in __open()
/components/dfs/dfs_v1/src/
A Ddfs.c724 const char *dfs_subdir(const char *directory, const char *filename) in dfs_subdir() argument
728 if (strlen(directory) == strlen(filename)) /* it's a same path */ in dfs_subdir()
731 dir = filename + strlen(directory); in dfs_subdir()
732 if ((*dir != '/') && (dir != filename)) in dfs_subdir()
750 char *dfs_normalize_path(const char *directory, const char *filename) in dfs_normalize_path() argument
756 RT_ASSERT(filename != NULL); in dfs_normalize_path()
768 if ((directory == NULL) && (filename[0] != '/')) in dfs_normalize_path()
776 if (filename[0] != '/') /* it's a absolute path, use it directly */ in dfs_normalize_path()
784 rt_snprintf(fullpath, strlen(directory) + strlen(filename) + 2, in dfs_normalize_path()
785 "%s/%s", directory, filename); in dfs_normalize_path()
[all …]
/components/dfs/dfs_v2/src/
A Ddfs.c913 const char *dfs_subdir(const char *directory, const char *filename) in dfs_subdir() argument
917 if (strlen(directory) == strlen(filename)) /* it's a same path */ in dfs_subdir()
920 dir = filename + strlen(directory); in dfs_subdir()
921 if ((*dir != '/') && (dir != filename)) in dfs_subdir()
947 char *dfs_normalize_path(const char *directory, const char *filename) in dfs_normalize_path() argument
953 RT_ASSERT(filename != NULL); in dfs_normalize_path()
965 if ((directory == NULL) && (filename[0] != '/')) in dfs_normalize_path()
973 if (filename[0] != '/') in dfs_normalize_path()
977 path_len = strlen(directory) + strlen(filename) + 2; in dfs_normalize_path()
991 "%s/%s", directory, filename); in dfs_normalize_path()
[all …]
/components/dfs/dfs_v2/filesystems/procfs/
A Dproc_pid.c64 char *filename = RT_NULL; in stat_single_show() local
77 filename = strrchr(argv[0], '/'); in stat_single_show()
80 if (filename != NULL) in stat_single_show()
82 filename++; in stat_single_show()
86 filename = argv[0]; in stat_single_show()
94 if (filename != NULL) in stat_single_show()
96 dfs_seq_printf(seq,"(%s) ", filename); in stat_single_show()
/components/drivers/usb/cherryusb/port/xhci/phytium/rt-thread/
A Dusb_glue_phytium.c51 void usb_assert(const char *filename, int linenum) in usb_assert() argument
53 rt_assert_handler("", filename, linenum); in usb_assert()
/components/drivers/usb/cherryusb/port/pusb2/rt-thread/
A Dusb_dc_glue_phytium.c20 void usb_assert(const char *filename, int linenum) in usb_assert() argument
22 rt_assert_handler("", filename, linenum); in usb_assert()
A Dusb_hc_glue_phytium.c24 void usb_assert(const char *filename, int linenum) in usb_assert() argument
26 rt_assert_handler("", filename, linenum); in usb_assert()
/components/dfs/dfs_v1/include/
A Ddfs.h81 char *dfs_normalize_path(const char *directory, const char *filename);
82 const char *dfs_subdir(const char *directory, const char *filename);
/components/net/lwip/lwip-2.0.3/src/apps/tftp/
A Dtftp_server.c229 char filename[TFTP_MAX_FILENAME_LEN + 1] = { 0 }; in recv() local
243 if((u16_t)(filename_end_offset-2) > sizeof(filename)) { in recv()
247 pbuf_copy_partial(p, filename, filename_end_offset-2, 2); in recv()
257 tftp_state.handle = tftp_state.ctx->open(filename, mode, opcode == PP_HTONS(TFTP_WRQ)); in recv()
267 LWIP_DEBUGF(TFTP_DEBUG | LWIP_DBG_STATE, (" for '%s' mode '%s'\n", filename, mode)); in recv()
/components/net/lwip/lwip-2.1.2/src/apps/tftp/
A Dtftp_server.c228 char filename[TFTP_MAX_FILENAME_LEN + 1]; in recv() local
242 if ((u16_t)(filename_end_offset - 1) > sizeof(filename)) { in recv()
246 pbuf_copy_partial(p, filename, filename_end_offset - 1, 2); in recv()
256 tftp_state.handle = tftp_state.ctx->open(filename, mode, opcode == PP_HTONS(TFTP_WRQ)); in recv()
266 LWIP_DEBUGF(TFTP_DEBUG | LWIP_DBG_STATE, (" for '%s' mode '%s'\n", filename, mode)); in recv()
/components/dfs/dfs_v2/include/
A Ddfs.h115 char *dfs_normalize_path(const char *directory, const char *filename);
116 const char *dfs_subdir(const char *directory, const char *filename);

Completed in 35 milliseconds

12