Searched refs:xmalloc (Results 1 - 25 of 58) sorted by relevance

123

/asus-wl-520gu-7.0.1.45/src/router/udhcpd/
H A Dlibbb_udhcp.h25 #define xmalloc malloc macro
H A Dscript.c160 envp = xmalloc((num_options + 5) * sizeof(char *));
161 envp[0] = xmalloc(sizeof("interface=") + strlen(client_config.interface));
171 envp[3] = xmalloc(sizeof("ip=255.255.255.255"));
175 envp[j] = xmalloc(upper_length(temp[OPT_LEN - 2], &options[i]) + strlen(options[i].name) + 2);
181 envp[j] = xmalloc(sizeof("siaddr=255.255.255.255"));
187 envp[j] = xmalloc(sizeof("boot_file=") + strlen(packet->file));
193 envp[j] = xmalloc(sizeof("sname=") + strlen(packet->sname));
/asus-wl-520gu-7.0.1.45/src/router/busybox/libbb/
H A Dconcat_path_file.c22 outbuf = xmalloc(strlen(path)+strlen(filename)+1+(lc==NULL));
H A Dxregcomp.c39 char *errmsg = xmalloc(errmsgsz);
H A Disdirectory.c43 statBuf = (struct stat *)xmalloc(sizeof(struct stat));
H A Dxgetcwd.c34 cwd = xmalloc (path_max);
H A Dxfuncs.c36 extern void *xmalloc(size_t size) function
92 t = xmalloc(++n);
H A Dinode_hash.c72 bucket = xmalloc(sizeof(ino_dev_hashtable_bucket_t) + s);
/asus-wl-520gu-7.0.1.45/src/router/busybox/
H A Dbusybox.h79 #define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len)
80 #define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len)
H A Dgetopt.c41 * Replaced our_malloc with xmalloc and our_realloc with xrealloc
99 BUFFER=xmalloc(strlen(arg)+1);
109 BUFFER=xmalloc(strlen(arg)*4+3);
231 tmp = xmalloc(strlen(name)+1);
336 optstr=xmalloc(strlen(argv[1])+1);
350 optstr=xmalloc(strlen(optarg)+1);
359 name=xmalloc(strlen(optarg)+1);
384 optstr=xmalloc(strlen(argv[optind])+1);
H A Dtee.c45 files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 1));
H A Dlsmod.c95 module_names = xmalloc(bufsize = 256);
101 deps = xmalloc(depsize = 256);
H A Ddmesg.c76 buf = (char *) xmalloc(bufsize);
H A Dloadkmap.c67 ibuff = (u_short *) xmalloc(ibuffsz);
H A Ddpkg.c422 edge = (edge_t *) xmalloc(sizeof(edge_t));
508 char **field_name = xmalloc(sizeof(char *));
509 char **field_value = xmalloc(sizeof(char *));
628 new_status = (char *) xmalloc(want_len + flag_len + status_len + 3);
647 status_node = xmalloc(sizeof(status_node_t));
930 common_node_t *new_node = (common_node_t *) xmalloc(sizeof(common_node_t));
1026 char **file_list = xmalloc(sizeof(char *));
1103 script_path = xmalloc(strlen(package_name) + strlen(script_type) + 21);
1124 remove_files[i] = xmalloc(strlen(package_name) + strlen(all_extensions[i]) + 21);
1160 remove_files = xmalloc(1
[all...]
H A Dexpr.c104 v = xmalloc (sizeof(VALUE));
116 v = xmalloc (sizeof(VALUE));
152 temp = xmalloc (4 * (sizeof (int) / sizeof (char)));
272 re_buffer.buffer = (unsigned char *) xmalloc (re_buffer.allocated);
378 v = xmalloc (sizeof(VALUE));
380 v->u.s = strncpy ((char *) xmalloc (i2->u.i + 1),
H A Ddpkg_deb.c88 prefix = (char *) xmalloc(strlen(argv[optind + 1]) + 2);
H A Dln.c51 src_name = (char *) xmalloc(strlen(link_srcname)+strlen(link_destname)+1);
H A Dsed.c183 *regex = (regex_t *)xmalloc(sizeof(regex_t));
270 sed_cmd->sub_match = (regex_t *)xmalloc(sizeof(regex_t));
311 sed_cmd->editline = xmalloc(strlen(&editstr[3]) + 2);
382 sed_cmd->filename = xmalloc(filenamelen + 1);
545 regmatch = xmalloc(sizeof(regmatch_t) * (sed_cmd->num_backrefs+1));
H A Ddd.c89 buf = xmalloc(bs);
H A Dinsmod.c746 f = xmalloc(sizeof(*f));
763 return xmalloc(sizeof(struct obj_section));
769 sym = xmalloc(sizeof(*sym));
885 n = (struct mips_hi16 *) xmalloc(sizeof *n);
1562 sec->contents = xmalloc(size);
1588 sec->contents = xmalloc(size);
1677 ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad));
1912 ks = k = xmalloc(nks * sizeof(*ks));
1939 mod[nmod].syms = s = (nms ? xmalloc(nms * sizeof(*s)) : NULL);
1958 ksyms = s = (nms ? xmalloc(nm
[all...]
H A Dmkswap.c92 signature_page = (int *) xmalloc(pagesize);
200 buffer = xmalloc(pagesize);
H A Dtail.c105 fds = (int *)xmalloc(sizeof(int) * (argc - optind + 1));
124 tailbuf = xmalloc(count);
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/intl/
H A Drelocatable.c43 # define xmalloc malloc macro
119 memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1);
203 q = (char *) xmalloc (p - curr_pathname + 1);
263 curr_prefix = (char *) xmalloc (curr_prefix_len + 1);
433 (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
/asus-wl-520gu-7.0.1.45/src/router/library/libiconv-1.8/tests/
H A Duniq-u.c39 xmalloc (size_t n) function
51 If P is NULL, run xmalloc. */
78 linebuffer->buffer = (char *) xmalloc (linebuffer->size);

Completed in 95 milliseconds

123