Searched refs:malloc (Results 376 - 400 of 2509) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/cmd/lp/filter/postscript/download/
H A Ddownload.c283 if ( (path = malloc(strlen(hostfontdir) + strlen(mapname) +
292 if ( (stringspace = malloc(sbuf.st_size + 2)) == NULL )
487 if ( (path = malloc(strlen(hostfontdir)+strlen(map[n].file)+2)) == NULL )
560 * Allocates space for num Map elements. Calls malloc() if ptr is NULL and
566 ptr = (Map *)malloc(num * sizeof(Map));
/illumos-gate/usr/src/uts/common/rpc/
H A Dtypes.h86 #define mem_alloc(bsize) malloc(bsize)
/illumos-gate/usr/src/cmd/mandoc/
H A Dmandoc_aux.c65 ptr = malloc(size);
/illumos-gate/usr/src/cmd/eeprom/i386/
H A Dbenv.c84 list = (eplist_t *)malloc(sizeof (eplist_t));
99 entry = (eplist_t *)malloc(sizeof (eplist_t));
129 bd = (benv_des_t *)malloc(sizeof (benv_des_t));
145 bent = (benv_ent_t *)malloc(sizeof (benv_ent_t));
/illumos-gate/usr/src/boot/lib/libstand/
H A Dsplitfs.c120 confname = malloc(strlen(fname) + 7);
141 sf = malloc(sizeof(struct split_file));
143 buf = malloc(CONF_BUF);
267 tmp = malloc(SEEK_BUF);
H A Duuid_to_string.c83 w = *s = malloc(37);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dinterp_parse.c101 buf = (char *)malloc(PARSE_BUFSIZE);
187 *argv = (char **)malloc((sizeof(char *) * ac + 1));
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmemcluster.c155 freelists = malloc(max_size * sizeof (memcluster_element *));
156 stats = malloc((max_size+1) * sizeof (struct stats));
165 activelists = malloc((max_size + 1) * sizeof (memcluster_element *));
216 e = malloc(new_size);
237 return (malloc(size));
254 new = malloc(NUM_BASIC_BLOCKS * mem_target);
282 new = malloc(total_size);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dheap.c64 ** The behaviour of malloc with size==0 is platform dependent (it
78 ** SM_MALLOC_X -- wrapper around malloc(), raises an exception on error.
102 ptr = malloc(MALLOC_SIZE(size));
112 ** SM_MALLOC -- wrapper around malloc()
128 ptr = malloc(MALLOC_SIZE(size));
348 ** SM_MALLOC_TAGGED -- wrapper around malloc(), debugging version.
372 ptr = malloc(MALLOC_SIZE(size));
383 ptr = malloc(MALLOC_SIZE(size));
399 ** SM_MALLOC_TAGGED_X -- wrapper around malloc(), debugging version.
426 ptr = malloc(MALLOC_SIZ
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dexpand.c64 dst = malloc(dst_len + 1);
92 buf = malloc(buflen + 1);
391 sname = malloc(sname_len + 1);
424 iname = malloc(iname_len + 1);
452 fmri = malloc(fmri_len + 1);
522 buf = malloc(len + 1);
570 expanded = malloc(exp_sz);
/illumos-gate/usr/src/lib/libadm/common/
H A Dputdgrp.c109 * file for writing. It puts a pointer to the malloc()ed space
407 * structure are each in space allocated using the malloc() function
429 if (ent = malloc(sizeof (struct dgrptabent))) {
439 if (ent->name = malloc(strlen(dgroup)+1)) {
447 if (member = malloc(sizeof (struct member))) {
449 if (member->name = malloc(strlen(*pp)+1)) {
463 } else noerr = FALSE; /* malloc() failed */
476 } else noerr = FALSE; /* if (malloc(dgrptabent space)) */
534 if (buf = malloc((size_t) size+1)) {
559 count = EOF; /* malloc() faile
[all...]
H A Dputdev.c146 * file for writing. It puts a pointer to the malloc()ed space
416 * are each in space allocated using the malloc() function and should
446 if (devtabent = malloc(sizeof (struct devtabent))) {
449 if (devtabent->alias = malloc(strlen(alias)+1)) {
469 if (val = malloc(strlen(peq))) {
473 if (name = malloc((size_t)(len + 1))) {
565 malloc(sizeof (struct attrval))) {
581 /* malloc() for attrval failed */
589 } else { /* malloc() for attribute name failed */
608 } else { /* malloc() faile
[all...]
/illumos-gate/usr/src/common/ficl/
H A Dfileaccess.c31 char *filename = (char *)malloc(length + 1);
60 ficlFile *ff = (ficlFile *)malloc(sizeof (ficlFile));
111 char *filename = (char *)malloc(length + 1);
130 to = (char *)malloc(length + 1);
137 from = (char *)malloc(length + 1);
157 char *filename = (char *)malloc(length + 1);
206 char *buffer = (char *)malloc(size);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc_memory.c253 lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache));
431 d = malloc(sizeof(krb5_mcc_data));
441 d->name = malloc(strlen(name) + 1);
453 n = malloc(sizeof(krb5_mcc_list_node));
495 lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache));
548 bytes = malloc (bytecount);
663 new_node = malloc(sizeof(krb5_mcc_link));
695 n = malloc(sizeof(*n));
699 cdata = malloc(sizeof(struct krb5_mcc_ptcursor_data));
735 *ccache = malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c361 buf = malloc(bufsize);
386 buf = malloc(bufsize);
457 nai = malloc(sizeof (struct addrinfo));
462 nai->ai_addr = malloc(addrlen);
495 nai = malloc(sizeof (struct addrinfo));
500 nai->ai_addr = malloc(addrlen);
658 nai = malloc(sizeof (struct addrinfo));
663 nai->ai_addr = malloc(addrlen);
702 nai = malloc(sizeof (struct addrinfo));
707 nai->ai_addr = malloc(addrle
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_srvtab.c133 if ((*id = (krb5_keytab) malloc(sizeof(**id))) == NULL)
137 data = (krb5_ktsrvtab_data *)malloc(sizeof(krb5_ktsrvtab_data));
143 data->name = (char *)malloc(strlen(name) + 1);
297 if (!(fileoff = (long *)malloc(sizeof(*fileoff)))) {
483 ret_entry->key.contents = malloc(sizeof(key));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dmk_cred.c21 #include <stdlib.h> /* malloc */
92 credenc.ticket_info = (krb5_cred_info **) malloc(size);
102 credenc.ticket_info[i] = malloc(sizeof(krb5_cred_info));
180 if ((pcred = (krb5_cred *)malloc(sizeof(krb5_cred))) == NULL)
185 = (krb5_ticket **)malloc(sizeof(krb5_ticket *) * (ncred + 1))) == NULL) {
301 if ((ppcreds = (krb5_creds **)malloc(sizeof(*ppcreds) * 2)) == NULL) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhst_realm.c140 *realm = malloc((size_t)len + 1);
256 realm = malloc(strlen(temp_realm) + 1);
266 if (!(cp = (char *)malloc(strlen(KRB5_REFERRAL_REALM)+1)))
496 if (!(fqdn = malloc(strlen(domain) + 1))) {
517 if (!(*realm = malloc(strlen(cp) + 1))) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_get.c37 list->list = malloc(list->max * sizeof(char *));
83 newstr = malloc(strlen(str)+1);
215 *ret_string = malloc(strlen(value)+1);
429 *ret_name = malloc(strlen(name)+1);
438 *ret_value = malloc(strlen(value)+1);
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dutil.c27 ** If malloc() ever fails, this global variable gets set to 1.
33 ** If MEMORY_DEBUG is defined, then use versions of malloc() and
76 pi = malloc( (N_GUARD*2+1+k)*sizeof(int));
88 fprintf(stderr,"%06d malloc %d bytes at 0x%x from %s:%d\n",
179 pi = malloc( (k+N_GUARD*2+1)*sizeof(int) );
202 ** Make a duplicate of a string into memory obtained from malloc()
212 zNew = malloc( strlen(*pz) + 1 );
246 ** The following versions of malloc() and free() are for use in a
257 if( (p = malloc(n))==0 ){
271 if( (p = malloc(
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Dhmac_link.c106 ctx = (MD5_CTX *) malloc(sizeof(*ctx));
174 ctx = (MD5_CTX *) malloc(sizeof(*ctx));
237 if ((hkey = (HMAC_Key *) malloc(sizeof(HMAC_Key))) == NULL)
369 tmp = malloc(len + 2);
466 dst_t_func[KEY_HMAC_MD5] = malloc(sizeof(struct dst_func));
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c300 if (!(grp = malloc(sizeof (struct ng_old_struct)))) {
322 malloc(len + 1))) {
378 if (!(lp = malloc(sizeof (*lp)))) {
383 if (!(lp->l_groupname = malloc(len + 1))) {
406 if (!(linep = malloc(olen + len + 1))){
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dhsearch.c50 #include <malloc.h>
169 new = (ENTRY *) malloc(sizeof(ENTRY));
175 new->key = malloc((unsigned) strlen(line) + 1);
181 new->data = malloc(sizeof(int));
420 NODE *p = (NODE *) malloc(sizeof(NODE));
/illumos-gate/usr/src/cmd/fs.d/
H A Dfslib.c88 new = (struct extmnttab *)malloc(sizeof (*new));
97 new->mnt_mountp = (char *)malloc(strlen(mnt->mnt_mountp) + 2);
182 mp = (mntlist_t *)malloc(sizeof (*mp));
447 ids = malloc(numzones * sizeof (*ids));
449 perror("malloc failed");
455 summaries = malloc((numzones + 1) * sizeof (*summaries));
458 perror("malloc failed");
H A Dpreenlib.c123 if ((rdp = (struct rawdev *)malloc(sizeof (struct rawdev))) == NULL) {
333 malloc(sizeof (struct driver) * DRIVER_ALLOC);
360 devp = (struct onedev *)malloc(sizeof (struct onedev));
383 (uint_t *)malloc(newsize * sizeof (uint_t));
423 (uint_t *)malloc(newsize * sizeof (uint_t));

Completed in 171 milliseconds

<<11121314151617181920>>