Lines Matching refs:length
65 static int _rt_module_split_arg(char *cmd, rt_size_t length, char *argv[]) in _rt_module_split_arg() argument
70 while ((ptr - cmd) < length) in _rt_module_split_arg()
73 while ((*ptr == ' ' || *ptr == '\t') && (ptr - cmd) < length) in _rt_module_split_arg()
76 if ((ptr - cmd) >= length) break; in _rt_module_split_arg()
84 while (*ptr != '"' && (ptr - cmd) < length) in _rt_module_split_arg()
86 if ((ptr - cmd) >= length) break; in _rt_module_split_arg()
94 while ((*ptr != ' ' && *ptr != '\t') && (ptr - cmd) < length) in _rt_module_split_arg()
451 int fd = -1, length = 0; in dlmodule_load() local
461 length = lseek(fd, 0, SEEK_END); in dlmodule_load()
464 if (length == 0) goto __exit; in dlmodule_load()
466 module_ptr = (uint8_t*) rt_malloc (length); in dlmodule_load()
469 if (read(fd, module_ptr, length) != length) in dlmodule_load()
609 int fd = -1, length = 0; in dlmodule_load_custom() local
627 length = lseek(fd, 0, SEEK_END); in dlmodule_load_custom()
630 if (length == 0) goto __exit; in dlmodule_load_custom()
632 module_ptr = (uint8_t*) rt_malloc (length); in dlmodule_load_custom()
635 if (read(fd, module_ptr, length) != length) in dlmodule_load_custom()