Home
last modified time | relevance | path

Searched refs:xzalloc (Results 1 – 25 of 42) sorted by relevance

12

/external/toybox/toys/posix/
Dcut.c51 temp1_node = xzalloc(sizeof(struct slist)); in add_to_list()
149 pfield = xzalloc(strlen(buff) + 1); in do_fcut()
195 char *pfield = xzalloc(buffln + 1); in do_bccut()
257 TT.delim = xzalloc(2); in cut_main()
Dxargs.c121 *(toys.optargs = xzalloc(2*sizeof(char *)))="echo"; in xargs_main()
162 out = xzalloc((entries+TT.entries+1)*sizeof(char *)); in xargs_main()
Dstrings.c36 char *string = xzalloc(wlen + 1);
Ddu.c96 new = xzalloc(sizeof(*new)); in seen_inode()
Dfind.c187 bb = xzalloc(sizeof(struct execdir_data)); in execdir()
440 dlist_add_nomalloc(&TT.argdata, (void *)(aa = xzalloc(sizeof(*aa)))); in do_find()
/external/bison/lib/
Dxalloc.h56 void *xzalloc (size_t s)
85 #define XZALLOC(t) ((t *) xzalloc (sizeof (t)))
91 ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t))))
Dxmalloc.c84 xzalloc (size_t s) in xzalloc() function
/external/toybox/toys/pending/
Dfsck.c92 temp->next = xzalloc(sizeof(struct f_sys_info)); in create_db()
94 } else filesys_info = temp = xzalloc(sizeof(struct f_sys_info)); in create_db()
126 TT.arr_flag = xzalloc(n + 1); in fix_tlist()
127 TT.arr_type = xzalloc((n + 1) * sizeof(char *)); in fix_tlist()
202 args = xzalloc((toys.optc + 2 + 1 + 1) * sizeof(char*)); //+1, for NULL, +1 if -C in do_fsck()
234 child = xzalloc(sizeof(struct child_list)); //Parent, add to child list. in do_fsck()
Dsyslogd.c166 file = xzalloc(sizeof(struct logfile)); in parse_config_file()
178 file = xzalloc(sizeof(struct logfile)); in parse_config_file()
210 file = xzalloc(sizeof(struct logfile)); in parse_config_file()
227 file = xzalloc(sizeof(struct logfile)); in parse_config_file()
420 tsd = xzalloc(sizeof(struct unsocks)); in syslogd_main()
428 tsd = xzalloc(sizeof(struct unsocks)); in syslogd_main()
Dtar.c115 new = xzalloc(sizeof(*new)); in seen_inode()
456 *list = xzalloc(sizeof(struct arg_list)); in add_to_list()
482 struct archive_handler *tar_hdl = xzalloc(sizeof(struct archive_handler)); in init_handler()
524 char *value = NULL, *p, *buf = xzalloc(size+1); in process_extended_hdr()
636 file_hdr->name = xzalloc(256);// pathname supported size in unpack_tar()
670 longlink = xzalloc(file_hdr->size +1); in unpack_tar()
676 longname = xzalloc(file_hdr->size +1); in unpack_tar()
Dvi.c44 TT.ls = xzalloc(sizeof(struct linestack)); in vi_main()
Ddhcpd.c672 sltmp = xzalloc(sizeof(struct static_lease_s)); in get_staticlease()
1136 *list = xzalloc(len+1); in get_reqparam()
1368 dls = xzalloc(sizeof(dyn_lease)); in addip_to_lease()
1376 listdls = xzalloc(sizeof(struct arg_list)); in addip_to_lease()
1399 dls6 = xzalloc(sizeof(dyn_lease6)); in addip6_to_lease()
1409 listdls = xzalloc(sizeof(struct arg_list)); in addip6_to_lease()
1550 dls = xzalloc(sizeof(dyn_lease)); in read_leasefile()
1581 dls6 = xzalloc(sizeof(dyn_lease6)); in read_lease6file()
1781 ia_addr = xzalloc(ia_addr_len); in dhcpd_main()
1795 status_code = xzalloc(status_code_len); in dhcpd_main()
[all …]
Ddiff.c120 struct candidate *c = xzalloc(sizeof(struct candidate)); in new_candidate()
266 v[i] = xzalloc(size * sizeof(struct v_vector)); in create_j_vector()
267 TT.offset[i] = xzalloc(size * sizeof(int)); in create_j_vector()
308 p_vector = xzalloc((file[0].len + 2) * sizeof(int)); in create_j_vector()
319 kcand = xzalloc(size * sizeof(struct candidate*)); in create_j_vector()
337 J = xzalloc((file[0].len + 2) * sizeof(int)); in create_j_vector()
526 d = xzalloc(size *sizeof(struct diff)); in do_diff()
Dtftpd.c96 spkt = xzalloc(blksize + 4); in do_action()
97 rpkt = xzalloc(blksize + 4); in do_action()
Dcrond.c88 smsg = xzalloc(++used); in loginfo()
264 j = xzalloc(sizeof(JOB)); in parse_line()
288 v = xzalloc(sizeof(VAR)); in parse_line()
388 cfile = xzalloc(sizeof(CRONFILE)); in scan_cronfiles()
Dmodprobe.c122 *head = xzalloc(sizeof(struct arg_list)); in llist_add_tail()
160 modentry = xzalloc(sizeof(*modentry)); in get_mod()
406 char *opt = xzalloc(1); in add_cmdopt()
Dtftp.c276 packet = (uint8_t*) xzalloc(TFTP_IOBUFSIZE); in file_get()
383 packet = (uint8_t*)xzalloc(TFTP_IOBUFSIZE); in file_put()
Dsh.c258 if (!*cmd) *cmd = xzalloc(sizeof(struct command)+8*sizeof(char *)); in parse_pipeline()
Dtelnetd.c324 tm = xzalloc(sizeof(struct term_session)); in telnetd_main()
372 tm = xzalloc(sizeof(struct term_session)); in telnetd_main()
Dmke2fs.c443 dti = xzalloc(sizeof(struct dirtree)+11); in mke2fs_main()
453 dtb = xzalloc(sizeof(struct dirtree)+1); in mke2fs_main()
Dtr.c130 char *set = xzalloc(size*sizeof(char)); in expand_set()
/external/toybox/lib/
Dargs.c202 *list = xzalloc(sizeof(struct arg_list)); in gotflag()
263 new = xzalloc(sizeof(struct opts)); in parse_optflaglist()
390 toys.optargs = xzalloc(sizeof(char *)*saveflags); in get_optflags()
Dlinestack.c64 ls = xzalloc(sizeof(struct linestack)); in linestack_load()
Ddirtree.c45 dt = xzalloc((len = sizeof(struct dirtree)+len+1)+linklen); in dirtree_add_node()
Dgetmountlist.c170 mt = xzalloc(sizeof(struct mtab_list) + strlen(me->mnt_fsname) + in xgetmountlist()

12