/third_party/fsverity-utils/lib/ |
D | utils.c | 18 static void *xmalloc(size_t size) in xmalloc() function 30 void *p = xmalloc(size); in libfsverity_zalloc() 39 void *p = xmalloc(size); in libfsverity_memdup()
|
/third_party/popt/src/ |
D | system.h | 21 void * xmalloc (size_t size); 45 #define xmalloc(_size) (malloc(_size) ? : vmefail()) macro 50 #define xmalloc(_size) malloc(_size) macro
|
/third_party/toybox/scripts/ |
D | config2help.c | 30 void *xmalloc(size_t size) in xmalloc() function 57 ret = xmalloc(len); in xmprintf() 102 struct double_list *new = xmalloc(sizeof(struct double_list)); in dlist_add() 223 list = xmalloc(sizeof(char *)*count); in grab_dashlines() 251 memset(new = xmalloc(sizeof(struct symbol)), 0, sizeof(struct symbol)); in parse() 383 char **new = xmalloc(sizeof(char *)*(clen+tlen)); in main() 485 strcpy(s = xmalloc(strlen(sym->name)+1), sym->name); in main()
|
/third_party/elfutils/libcpu/ |
D | i386_parse.y | 49 #define obstack_chunk_alloc xmalloc 267 struct synonym *newp = xmalloc (sizeof (*newp)); 343 struct suffix *ns = xmalloc (sizeof (*ns)); 420 $$ = xmalloc (sizeof (struct bitvalue)); 427 $$ = xmalloc (sizeof (struct bitvalue)); 434 $$ = xmalloc (sizeof (struct bitvalue)); 465 runp->next = xmalloc (sizeof (struct argument)); 472 $$ = xmalloc (sizeof (struct argument)); 491 $$ = xmalloc (sizeof (struct argname)); 523 $$ = xmalloc (sizeof (struct argname)); [all …]
|
/third_party/toybox/toys/pending/ |
D | last.c | 46 struct arg_list *new = xmalloc(sizeof(struct arg_list)); in llist_add_node() 181 llist_add_node(&TT.list, memcpy(xmalloc(sizeof(ut)), &ut, sizeof(ut))); in last_main() 183 llist_add_node(&TT.list, memcpy(xmalloc(sizeof(ut)), &ut, sizeof(ut))); in last_main()
|
D | getfattr.c | 48 keys = xmalloc(keys_len); 58 sorted_keys = xmalloc(key_count * sizeof(char *));
|
/third_party/musl/porting/uniproton/kernel/src/regex/ |
D | tre-mem.c | 121 l = xmalloc(sizeof(*l)); in tre_mem_alloc_impl() 127 l->data = xmalloc(block_size); in tre_mem_alloc_impl()
|
D | regcomp.c | 306 s = xmalloc(sizeof(*s)); in tre_stack_new() 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 626 ls.a = xmalloc(ls.cap * sizeof *ls.a); in parse_bracket() 1229 regset = xmalloc(sizeof(*regset) * ((tnfa->num_submatches + 1) * 2)); in tre_add_tags() 1235 parents = xmalloc(sizeof(*parents) * (tnfa->num_submatches + 1)); in tre_add_tags() 1243 saved_states = xmalloc(sizeof(*saved_states) * (tnfa->num_submatches + 1)); in tre_add_tags() 1305 int *p = xmalloc(sizeof(*p) * (i + 1)); in tre_add_tags() 2393 tags = xmalloc(sizeof(*tags) * (num_tags + 1)); in tre_compute_nfl() 2430 tags = xmalloc(sizeof(int) * (num_tags + 1)); in tre_compute_nfl() 2541 xmalloc(sizeof(*trans->neg_classes) * (i + 1)); in tre_make_trans() [all …]
|
/third_party/musl/porting/liteos_m_iccarm/kernel/src/regex/ |
D | tre-mem.c | 121 l = xmalloc(sizeof(*l)); in tre_mem_alloc_impl() 127 l->data = xmalloc(block_size); in tre_mem_alloc_impl()
|
D | regcomp.c | 306 s = xmalloc(sizeof(*s)); in tre_stack_new() 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 626 ls.a = xmalloc(ls.cap * sizeof *ls.a); in parse_bracket() 1230 regset = xmalloc(sizeof(*regset) * ((tnfa->num_submatches + 1) * 2)); in tre_add_tags() 1236 parents = xmalloc(sizeof(*parents) * (tnfa->num_submatches + 1)); in tre_add_tags() 1244 saved_states = xmalloc(sizeof(*saved_states) * (tnfa->num_submatches + 1)); in tre_add_tags() 1306 int *p = xmalloc(sizeof(*p) * (i + 1)); in tre_add_tags() 2394 tags = xmalloc(sizeof(*tags) * (num_tags + 1)); in tre_compute_nfl() 2431 tags = xmalloc(sizeof(int) * (num_tags + 1)); in tre_compute_nfl() 2542 xmalloc(sizeof(*trans->neg_classes) * (i + 1)); in tre_make_trans() [all …]
|
/third_party/musl/src/regex/ |
D | tre-mem.c | 121 l = xmalloc(sizeof(*l)); in tre_mem_alloc_impl() 127 l->data = xmalloc(block_size); in tre_mem_alloc_impl()
|
D | regcomp.c | 306 s = xmalloc(sizeof(*s)); in tre_stack_new() 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 626 ls.a = xmalloc(ls.cap * sizeof *ls.a); in parse_bracket() 1229 regset = xmalloc(sizeof(*regset) * ((tnfa->num_submatches + 1) * 2)); in tre_add_tags() 1235 parents = xmalloc(sizeof(*parents) * (tnfa->num_submatches + 1)); in tre_add_tags() 1243 saved_states = xmalloc(sizeof(*saved_states) * (tnfa->num_submatches + 1)); in tre_add_tags() 1305 int *p = xmalloc(sizeof(*p) * (i + 1)); in tre_add_tags() 2393 tags = xmalloc(sizeof(*tags) * (num_tags + 1)); in tre_compute_nfl() 2430 tags = xmalloc(sizeof(int) * (num_tags + 1)); in tre_compute_nfl() 2541 xmalloc(sizeof(*trans->neg_classes) * (i + 1)); in tre_make_trans() [all …]
|
/third_party/musl/porting/liteos_m/kernel/src/regex/ |
D | tre-mem.c | 121 l = xmalloc(sizeof(*l)); in tre_mem_alloc_impl() 127 l->data = xmalloc(block_size); in tre_mem_alloc_impl()
|
D | regcomp.c | 306 s = xmalloc(sizeof(*s)); in tre_stack_new() 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 626 ls.a = xmalloc(ls.cap * sizeof *ls.a); in parse_bracket() 1229 regset = xmalloc(sizeof(*regset) * ((tnfa->num_submatches + 1) * 2)); in tre_add_tags() 1235 parents = xmalloc(sizeof(*parents) * (tnfa->num_submatches + 1)); in tre_add_tags() 1243 saved_states = xmalloc(sizeof(*saved_states) * (tnfa->num_submatches + 1)); in tre_add_tags() 1305 int *p = xmalloc(sizeof(*p) * (i + 1)); in tre_add_tags() 2393 tags = xmalloc(sizeof(*tags) * (num_tags + 1)); in tre_compute_nfl() 2430 tags = xmalloc(sizeof(int) * (num_tags + 1)); in tre_compute_nfl() 2541 xmalloc(sizeof(*trans->neg_classes) * (i + 1)); in tre_make_trans() [all …]
|
/third_party/fsverity-utils/programs/ |
D | utils.c | 27 void *xmalloc(size_t size) in xmalloc() function 38 return memset(xmalloc(size), 0, size); in xzalloc() 43 return memcpy(xmalloc(size), mem, size); in xmemdup()
|
/third_party/toybox/toys/lsb/ |
D | killall.c | 52 struct int_list *new = xmalloc(sizeof(*TT.pids)); 98 TT.err = xmalloc(2*toys.optc); in killall_main()
|
/third_party/toybox/openharmony/ |
D | su.c | 44 static void *xmalloc(size_t size) in xmalloc() function 156 args = argu = xmalloc(sizeof(char *) * (argc - optind + 4 + 1)); in main()
|
/third_party/toybox/lib/ |
D | portability.c | 200 not->paths = xmalloc(max * sizeof(char *)); in xnotify_init() 201 not->fds = xmalloc(max * sizeof(int)); in xnotify_init() 247 not->paths = xmalloc(max * sizeof(char *)); in xnotify_init() 248 not->fds = xmalloc(max * 2 * sizeof(int)); in xnotify_init()
|
D | dirtree.c | 50 dt = xmalloc((len = sizeof(struct dirtree)+len+1)+linklen); in dirtree_add_node() 85 path = xmalloc(*plen); in dirtree_path()
|
D | xwrap.c | 69 void *xmalloc(size_t size) in xmalloc() function 80 void *ret = xmalloc(size); in xzalloc() 113 void *ret = xmalloc(len); in xmemdup() 135 ret = xmalloc(len); in xmprintf() 632 ret = xmalloc(try); in xabspath()
|
/third_party/toybox/porting/liteos_a/lib/ |
D | dirtree.c | 58 dt = xmalloc((len = sizeof(struct dirtree)+len+1)+linklen); in dirtree_add_node() 93 path = xmalloc(*plen); in dirtree_path()
|
/third_party/pulseaudio/src/pulse/ |
D | meson.build | 34 'xmalloc.c', 66 'xmalloc.h',
|
/third_party/elfutils/lib/ |
D | xstrdup.c | 41 return strcpy (xmalloc (strlen (string) + 1), string); in xstrdup()
|
D | xstrndup.c | 44 *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0'; in xstrndup()
|
/third_party/toybox/toys/other/ |
D | count.c | 22 char *buf = xmalloc(65536); in count_main()
|