Searched refs:malloc (Results 176 - 200 of 1321) sorted by relevance

1234567891011>>

/osnet-11/usr/src/lib/libpkg/common/
H A Dncgrpw.c54 #define ERR_MALLOC "%s: malloc(%d) failed for %s.\n"
87 if ((itemp = (Item *) malloc(sizeof (*itemp))) ==
92 } else if ((itemp->key = (char *)malloc(len)) == NULL) {
96 } else if ((itemp->data = malloc(struct_size)) == NULL) {
452 memp = malloc(sizeof (char **)* (nent+1));
600 if ((buf = (char *)malloc(strlen(instroot) +
639 if ((buf = (char *)malloc(strlen(instroot) +
678 if ((buf = (char *)malloc(strlen(instroot) +
717 if ((buf = (char *)malloc(strlen(instroot) +
H A Dprogerr.c129 * Alloc 'size' bytes from heap using malloc()
131 * size - number of bytes to malloc
133 * NULL - malloc() failure
143 if ((tmp = (void *) malloc(size)) == NULL) {
/osnet-11/usr/src/lib/libilb/common/
H A Dilb_nat.c107 if ((req = malloc(reqsz)) == NULL)
124 if ((rbuf = malloc(rbufsz)) == NULL) {
/osnet-11/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))))
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/unicode/
H A Ducstr.c135 newdata = malloc(sizeof(*newdata));
148 out = malloc(outsize);
169 newdata->data = malloc(newdata->length + 1);
180 out = malloc(outsize);
190 out = malloc(outsize);
199 p = ucs = malloc(len * sizeof(*ucs));
397 ucs = malloc(((norm1 || l1 > l2) ? l1 : l2) * sizeof(*ucs));
418 ucs = malloc(l2 * sizeof(*ucs));
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c94 p = (gss_OID) malloc(sizeof(gss_OID_desc));
100 p->elements = malloc(p->length);
117 if ((*oid_set = (gss_OID_set) malloc(sizeof(gss_OID_set_desc)))) {
144 if (((*oid_set)->elements = (gss_OID) malloc(((*oid_set)->count+1) *
155 (void *) malloc((size_t) member_oid->length))) {
348 if ((*oid = (gss_OID) malloc(sizeof(gss_OID_desc)))) {
349 if (((*oid)->elements = (void *) malloc(nbytes))) {
544 if ((out->elements = (void *) malloc(in->length)) == NULL) {
/osnet-11/usr/src/lib/krb5/kadm5/srv/
H A Dserver_dict.c136 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL)
151 if ((word_list = (char **) malloc(word_count * sizeof(char *))) == NULL)
/osnet-11/usr/src/lib/libc/port/gen/
H A Dparse.c103 if ((tmp = malloc(nescs + len_s + 1)) == NULL)
127 if ((tmp = malloc(len_s + 1)) == NULL)
/osnet-11/usr/src/lib/libkmf/ber_der/common/
H A Ddecode.c283 if ((*buf = (char *)malloc((size_t)datalen + 1)) == NULL)
306 if ((oid->bv_val = (char *)malloc((size_t)len + 1)) == NULL) {
324 if ((*bv = (struct berval *)malloc(sizeof (struct berval)))
335 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1))
372 if ((*bv = (struct berval *)malloc(sizeof (struct berval)))
381 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1))
407 if ((*buf = (char *)malloc((size_t)datalen - 1)) == NULL)
606 *sss = (char **)malloc(16 * sizeof (char *));
636 *bv = (struct berval **)malloc(
778 if ((new = (struct berval *)malloc(sizeo
[all...]
H A Dio.c86 if ((ber->ber_buf = (char *)malloc((size_t)total))
93 /* transition to malloc'd buffer */
94 if ((ber->ber_buf = (char *)malloc(
100 /* copy existing data into new malloc'd buffer */
170 /* we pre-allocate a buffer to save the extra malloc later */
310 new = (struct berval *)malloc((size_t)(sizeof (struct berval)));
325 new->bv_val = (char *)malloc((size_t)(len + 1));
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dmtctxres.c77 if ((mt = malloc(sizeof (mtctxres_t))) == 0) {
/osnet-11/usr/src/lib/libsip/common/
H A Dsip_gids.c143 guid = (char *)malloc(SIP_RANDOM_LEN + 1);
167 r = (uint8_t *)malloc(guidlen);
204 if ((branchid = (char *)malloc(SIP_BRANCHID_LEN + 1)) == NULL)
236 if ((branchid = malloc(len)) == NULL)
H A Dsip_reass.c140 msgbuf = (char *)malloc(*msglen + 1);
194 newmsg = malloc(newlen + 1);
228 msg = (char *)malloc(value + 1);
229 splitbuf = (char *)malloc(splitlen + 1);
/osnet-11/usr/src/lib/libsocket/inet/
H A Dgetifaddrs.c165 curr->ifa_addr = malloc(sizeof (struct sockaddr_storage));
174 curr->ifa_netmask = malloc(sizeof (struct sockaddr_storage));
184 curr->ifa_dstaddr = malloc(
193 curr->ifa_broadaddr = malloc(
H A Dsourcefilter.c50 gf = (struct group_filter *)malloc(mallocsize);
110 gf = (struct group_filter *)malloc(mallocsize);
166 imsf = (struct ip_msfilter *)malloc(mallocsize);
205 imsf = (struct ip_msfilter *)malloc(mallocsize);
/osnet-11/usr/src/lib/libkmf/ber_der/inc/
H A Dkmfber_int.h52 #include <malloc.h>
/osnet-11/usr/src/lib/libldap4/common/
H A Dsortctrl.c324 new_key = (LDAPsortkey*)malloc(sizeof (LDAPsortkey));
330 new_key->sk_attrtype = (char *)malloc(attrdesc_size + 1);
332 new_key->sk_matchruleoid = (char *)malloc(matchrule_size + 1);
376 pointer_array = (LDAPsortkey**)malloc(sizeof (LDAPsortkey*)
/osnet-11/usr/src/lib/libmtmalloc/tests/
H A Dexhaust.c93 if ((p = malloc(rand())) == NULL) {
96 perror("malloc");
/osnet-11/usr/src/lib/libnisdb/
H A Dnisdb_mt.cc67 if ((tsd = (nisdb_tsd_t *)malloc(sizeof (*tsd))) != 0) {
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dxdr_refer.c76 *pp = loc = malloc(size);
/osnet-11/usr/src/lib/libnsl/yp/
H A Dyp_enum.c179 if ((*key = malloc((size_t)resp.keydat.dsize + 2)) != NULL) {
181 if ((*val = malloc(
351 if ((*outkey = malloc((size_t)
354 if ((*val = malloc((size_t)
/osnet-11/usr/src/lib/libparted/common/lib/
H A Dxmalloc.c1 /* xmalloc.c -- malloc with out of memory checking
45 void *p = malloc (n);
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Dtohexstr.c57 * returns a malloc'ed byte array with the length of that new byte array.
58 * The caller needs to provide a pointer to where this new malloc'ed byte array
62 * The caller is responsible for freeing the malloc'ed array when done
86 b = malloc(*blen);
/osnet-11/usr/src/lib/libdevalloc/common/
H A Dgetdevicerange.c37 * Returns malloc'ed blrange pointer, or NULL on any error.
49 if ((range = malloc(sizeof (blrange_t))) == NULL)
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c43 if ((ptr = malloc(sp->str_bufsz)) == NULL)
64 dt_strtab_t *sp = malloc(sizeof (dt_strtab_t));
73 sp->str_hash = malloc(nbuckets * sizeof (dt_strhash_t *));
243 if ((hp = malloc(sizeof (dt_strhash_t))) == NULL)

Completed in 141 milliseconds

1234567891011>>