Searched refs:malloc (Results 251 - 275 of 2509) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Dtpcom.c153 _pep = malloc(sizeof (pe_args));
155 _pep->pe_file = malloc(strlen(pep->pe_file) +
242 pep = malloc(sizeof (pe_args));
/illumos-gate/usr/src/cmd/bnu/
H A Dstoa.c35 #include <malloc.h>
89 if ((addr = (struct netbuf *)malloc(sizeof(struct netbuf))) == NULL)
213 if ((dest = malloc(len)) == NULL) {
214 fprintf(stderr, "xfer: malloc failed\n");
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlc_utils.c100 raw_sf = malloc(sfsb.st_size + 1);
109 pri_dirs = malloc(++sf_lines * sizeof (char *));
191 hashtab = malloc(NDEVS * sizeof (struct devhash));
/illumos-gate/usr/src/cmd/tail/
H A Dtail.c160 files = (struct file_info *)malloc(no_files *
163 err(1, "Couldn't malloc space for file descriptors.");
168 errx(1, "Couldn't malloc space for file name.");
256 if ((start = p = malloc(len + 3)) == NULL)
257 err(1, "malloc");
303 if ((start = p = malloc(6)) == NULL)
304 err(1, "malloc");
/illumos-gate/usr/src/cmd/tr/
H A Dcmap.c50 cm = malloc(sizeof (*cm));
72 cmn = malloc(sizeof (*cmn));
90 ncmn = malloc(sizeof (*ncmn));
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dkdb_xdr.c36 #define safe_realloc(p,n) ((p)?(realloc(p,n)):(malloc(n)))
47 /* copy the new data first, so we can fail cleanly if malloc()
50 if ((tmp = (krb5_octet *) malloc(new_tl_data->tl_data_length)) == NULL)
177 if ((nextloc = (krb5_octet *) malloc(unparse_mod_princ_size + 4))
/illumos-gate/usr/src/lib/libadm/common/
H A Dgetdgrp.c289 newnode = malloc(sizeof (struct dgrplist));
293 if (newstr = malloc(strlen(dgrp->name)+1)) {
342 int allocflag; /* TRUE if the mbralias string is malloc()ed */
440 * A pointer to the first element in the malloc()ed list of pointers
441 * to malloc()ed character strings containing device groups which have
453 list = malloc((dgrplistcount+1)*sizeof (char *));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Ddef_realm.c163 context->default_realm = malloc(strlen(realm) + 1);
258 if (!(*lrealm = cp = malloc((unsigned int) strlen(realm) + 1)))
279 context->default_realm = malloc(strlen (lrealm) + 1);
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_digest.c140 pSlotList = malloc(slotcount * sizeof (CK_SLOT_ID));
190 if ((resultbuf = malloc(resultlen)) == NULL) {
218 if ((resultstr = malloc(resultstrlen)) == NULL) {
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dmisc.c51 cp = malloc(hlong);
87 result = malloc(strlenout(str) + 1);
146 buf = malloc(len);
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Dlibefi.c135 args = malloc(img->LoadOptionsSize << 1);
139 args = malloc(img->LoadOptionsSize);
181 argv = malloc((argc + 1) * sizeof(CHAR16*));
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dbiossmap.c82 next = malloc(sizeof(*next));
96 smapbase = malloc(smaplen * sizeof(*smapbase));
103 smapattr = malloc(smaplen * sizeof(*smapattr));
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c131 if ((retp = malloc(sizeof (struct nd_addrlist))) == NULL) {
142 if ((retp->n_addrs = malloc(sizeof (struct netbuf))) == NULL) {
235 if ((retp = malloc(sizeof (struct nd_hostservlist))) == NULL) {
292 if ((retp = malloc(BUFSIZ)) == NULL) {
333 holdp = malloc(strlen(uaddr) + 1);
359 if ((retp = malloc(sizeof (struct netbuf))) == NULL) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dauth.c96 chan.initiator_address.value = malloc(temp_buf.length);
103 chan.acceptor_address.value = malloc(temp_buf.length);
192 out_buf = (uchar_t *)malloc(outlen);
314 in_buffer->value = value = malloc(length);
318 in_buffer->value = value = malloc(length);
324 in_buffer->value = value = malloc(in_buffer->length);
/illumos-gate/usr/src/ucbcmd/expr/
H A Dexpr.y100 #include <malloc.h>
203 rv = malloc(16);
265 (void) strcpy(rv = malloc(8), ltoa(++i));
279 rv = malloc(8);
289 (void) strcpy(rv=malloc(8), ltoa((long)ematch(s, p)));
291 rv = malloc((unsigned) strlen(Mstring[0]) + 1);
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_messages.c1568 buf = (char *)malloc(data_sz);
1758 *buf = (char *)malloc(*buf_size);
1838 *buf = (char *)malloc(*buf_size);
1928 *buf = (char *)malloc(*buf_size);
2057 malloc(sizeof (struct cfga_confirm));
2068 params->msgp = (struct cfga_msg *)malloc(sizeof (struct cfga_msg));
2080 params->errstring = (char **)malloc(sizeof (char *));
2132 *buf = (char *)malloc(*buf_size);
2189 params->errstring = (char **)malloc(sizeof (char *));
2253 *buf = (char *)malloc(*buf_siz
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/
H A Dhash_ef_generic.c81 inbuf = (char *)malloc(inlen);
88 outbuf = (char *)malloc(outlen);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dsrv_rcache.c77 full_name = malloc(strlen(cachetype) + 1 +
104 cachename = malloc(strlen(cachetype) + 5 + len);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/posix/
H A Dsetenv.c93 p = (char **)malloc((size_t)(sizeof(char *) * (cnt + 2)));
104 malloc((size_t)((int)(c - name) + l_value + 2))))
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_map.c124 if ((new_pdesc = malloc(nsize)) == NULL ||
125 (new_edesc = malloc(nsize)) == NULL) {
151 if ((enabled = malloc(sizeof (dtrace_eprobedesc_t))) == NULL)
170 malloc(DTRACE_SIZEOF_EPROBEDESC(enabled))) != NULL)
187 if ((probe = malloc(sizeof (dtrace_probedesc_t))) == NULL) {
325 if ((new_aggdesc = malloc(nsize)) == NULL)
343 if ((agg = malloc(sizeof (dtrace_aggdesc_t))) == NULL)
361 if ((nagg = malloc(DTRACE_SIZEOF_AGGDESC(agg))) != NULL)
H A Ddt_regset.c45 dt_regset_t *drp = malloc(sizeof (dt_regset_t));
50 drp->dr_bitmap = malloc(sizeof (ulong_t) * n);
/illumos-gate/usr/src/lib/libtecla/common/
H A Dstringrp.c100 sg = (StringGroup *) malloc(sizeof(StringGroup));
260 node->block = (char *) malloc(sg->block_size);
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_base64.c70 char *ret = malloc(NDMP_ENC_LEN);
123 char *ret = malloc(NDMP_DEC_LEN);
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dparse.c106 if ((tmp = malloc(nescs + len_s + 1)) == NULL)
130 if ((tmp = malloc(len_s + 1)) == NULL)
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dtsearch.c38 #include <malloc.h>
66 q = (NODE *) malloc(sizeof(NODE)); /* T5: Not found */

Completed in 79 milliseconds

<<11121314151617181920>>