/picolibc-3.7.0-3.6.0/newlib/libc/argz/ |
D | argz_insert.c | 16 argz_insert (char **argz, in argz_insert() argument 25 return argz_add(argz, argz_len, entry); in argz_insert() 27 if (before < *argz || before >= *argz + *argz_len) in argz_insert() 30 while (before != *argz && before[-1]) in argz_insert() 34 delta = before - *argz; in argz_insert() 38 if(!(*argz = (char *)realloc(*argz, *argz_len + len))) in argz_insert() 41 memmove(*argz + delta + len, *argz + delta, *argz_len - delta); in argz_insert() 42 memcpy(*argz + delta, entry, len); in argz_insert()
|
D | argz_replace.c | 16 argz_replace (char **argz, in argz_replace() argument 26 char *buf_iter = *argz; in argz_replace() 51 buf_iter = *argz; in argz_replace() 71 memcpy(new_argz_iter, last_iter, *argz + *argz_len - last_iter); in argz_replace() 74 if(!(argz_realloc = (char *)realloc(*argz, new_argz_len))) in argz_replace() 79 *argz = argz_realloc; in argz_replace() 81 memcpy(*argz, new_argz, new_argz_len); in argz_replace() 86 free(*argz); in argz_replace() 87 *argz = NULL; in argz_replace()
|
D | argz_delete.c | 14 argz_delete (char **argz, in argz_delete() argument 26 memmove(moveto, entry, *argz + *argz_len - entry); in argz_delete() 30 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_delete() 35 free(*argz); in argz_delete() 36 *argz = NULL; in argz_delete()
|
D | argz_extract.c | 12 argz_extract (char *argz, in argz_extract() argument 18 const size_t count = argz_count(argz, argz_len); in argz_extract() 23 if (argz[i] == '\0') in argz_extract() 26 argv[count - j] = &argz[i + 1]; in argz_extract() 29 argv[0] = &argz[0]; in argz_extract()
|
D | argz_append.c | 14 argz_append (char **argz, in argz_append() argument 25 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_append() 28 memcpy(*argz + last, buf, buf_len); in argz_append()
|
D | argz_add.c | 14 argz_add (char **argz, in argz_add() argument 27 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_add() 30 memcpy(*argz + last, str, len_to_add); in argz_add()
|
D | argz_add_sep.c | 14 argz_add_sep (char **argz, in argz_add_sep() argument 29 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_add_sep() 32 memcpy(*argz + last, str_argz, str_argz_len); in argz_add_sep()
|
D | argz_create.c | 15 char **argz, in argz_create() argument 27 *argz = NULL; in argz_create() 38 if(!(*argz = (char *)malloc(*argz_len))) in argz_create() 41 iter = *argz; in argz_create()
|
D | argz_stringify.c | 13 argz_stringify (char *argz, in argz_stringify() argument 23 if (argz[i] == '\0') in argz_stringify() 24 argz[i] = (char) sep; in argz_stringify()
|
D | argz_next.c | 14 argz_next (char *argz, in argz_next() argument 24 if (entry >= argz + argz_len) in argz_next() 32 return (char *) argz; in argz_next()
|
D | argz_create_sep.c | 17 char **argz, in argz_create_sep() argument 33 *argz= NULL; in argz_create_sep() 52 if(!(*argz = (char *)malloc(*argz_len))) in argz_create_sep() 58 iter = *argz; in argz_create_sep()
|
D | argz_count.c | 13 argz_count (const char *argz, in argz_count() argument 21 if (argz[i] == '\0') in argz_count()
|
D | meson.build | 64 message('libc/argz/' + file + ': machine overrides generic') 66 message('libc/argz/' + s_file + ': machine overrides generic')
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/ |
D | argz.h | 18 error_t argz_create (char *const argv[], char **argz, size_t *argz_len); 19 error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len); 20 size_t argz_count (const char *argz, size_t argz_len); 21 void argz_extract (char *argz, size_t argz_len, char **argv); 22 void argz_stringify (char *argz, size_t argz_len, int sep); 23 error_t argz_add (char **argz, size_t *argz_len, const char *str); 24 error_t argz_add_sep (char **argz, size_t *argz_len, const char *str, int sep); 25 error_t argz_append (char **argz, size_t *argz_len, const char *buf, size_t buf_len); 26 error_t argz_delete (char **argz, size_t *argz_len, char *entry); 27 error_t argz_insert (char **argz, size_t *argz_len, char *before, const char *entry); [all …]
|
D | CMakeLists.txt | 44 argz.h
|
D | meson.build | 44 'argz.h',
|
/picolibc-3.7.0-3.6.0/newlib/libc/ |
D | CMakeLists.txt | 40 add_subdirectory(argz)
|
D | meson.build | 36 libdirs = ['argz', 'ctype', 'errno', 'iconv', 'misc',
|
/picolibc-3.7.0-3.6.0/ |
D | COPYING.picolibc | 492 newlib/libc/argz/CMakeLists.txt 926 newlib/libc/argz/meson.build 3320 Files: newlib/libc/argz/argz_add.c 3321 newlib/libc/argz/argz_add_sep.c 3322 newlib/libc/argz/argz_append.c 3323 newlib/libc/argz/argz_count.c 3324 newlib/libc/argz/argz_create.c 3325 newlib/libc/argz/argz_create_sep.c 3326 newlib/libc/argz/argz_delete.c 3327 newlib/libc/argz/argz_extract.c [all …]
|
/picolibc-3.7.0-3.6.0/newlib/ |
D | ChangeLog-2015 | 372 * libc/argz/Makefile.am: ... from here ... 751 * libc/argz/argz_replace.c (argz_replace): Correct behaviour when memory 760 * libc/argz/argz_replace.c: Fix potential memory leak. 1759 * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity 4924 * libc/argz/Makefile.in: Regenerate. 5059 * libc/argz/Makefile.in: Regenerate. 7496 * libc/argz/argz_add.c: Added #include <argz.h> to get function 7498 * libc/argz/argz_append.c: Ditto. 7499 * libc/argz/argz_count.c: Ditto. 7500 * libc/argz/argz_create.c: Ditto. [all …]
|