Searched refs:malloc (Results 201 - 225 of 2509) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dgetusershell.c14 #include <malloc.h>
84 if ((strings = malloc((unsigned)statb.st_size + 1)) == NULL) {
H A Dpopen.c23 extern char *malloc();
41 popen_pid = (int *)malloc(nfiles * sizeof *popen_pid);
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dfindiop.c35 #include <malloc.h>
98 if((_smbuf = (unsigned char (*)[_SBFSIZ])malloc(nfiles * sizeof *_smbuf)) == NULL) {
/illumos-gate/usr/src/lib/libbsdmalloc/
H A DMakefile.com30 malloc.bsd43.o
/illumos-gate/usr/src/lib/libc/port/gen/
H A Disaexec.c60 isalist = malloc(isalen);
77 * Then either a malloc or a realloc failed.
88 if ((pathname = malloc(len)) == NULL) {
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dsetvbuf.c69 if ((buf = malloc(_SMBFSZ * sizeof (Uchar))) != NULL) {
89 if ((buf = malloc(sizeof (Uchar) *
/illumos-gate/usr/src/cmd/rmdir/
H A Drmdir.c93 if ((path = (char *)malloc(pathlen + 4)) == NULL ||
94 (remain = (char *)malloc(pathlen + 4)) == NULL) {
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dclass_id.c49 struct openpromio *opp = malloc(sizeof (struct openpromio) + size);
192 class_id = malloc(len);
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dget_myaddress.c41 #include <malloc.h>
73 if ((ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len)) == NULL) {
74 syslog(LOG_ERR, "get_myaddress: malloc: %m");
/illumos-gate/usr/src/lib/krb5/kdb/
H A Ddecrypt_key.c94 if ((plain.data = (char *) malloc(plain.length)) == NULL)
128 if (!(keysalt->data.data=(char *)malloc(keysalt->data.length))){
H A Dencrypt_key.c101 if ((ptr = (krb5_octet *) malloc(2 + len)) == NULL)
132 (krb5_octet *)malloc(keysalt->data.length);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_utils.c79 malloc(sizeof(recno_t)) :
109 malloc(rl->dsize + 1) :
/illumos-gate/usr/src/lib/krb5/ss/
H A Dmk_cmds.c28 extern pointer malloc (unsigned);
52 path = malloc(strlen(argv[1])+4); /* extra space to add ".ct" */
H A Dss_internal.h42 #define LOCAL_ALLOC(x) malloc(x)
112 extern pointer malloc (unsigned);
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dbsd_misc.c59 job = (np_bsdjob_t *)malloc(sizeof (np_bsdjob_t));
83 job->np_request_id = malloc(4);
151 jobdata = malloc(sizeof (np_data_t));
155 jobdata->np_path_file = malloc(strlen(job->np_filename) + 1);
207 dfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1);
229 cfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.c68 *buf = (asn1buf*)malloc(sizeof(asn1buf));
214 *s = (asn1_octet*)malloc(len*sizeof(asn1_octet));
233 *s = (char*)malloc(len*sizeof(char));
264 (*code)->data = (char*)malloc((((*code)->length)+1)*sizeof(char));
285 *s = malloc(sizeof("<NULL>"));
289 *s = malloc(sizeof("<EMPTY>"));
314 *s = malloc(sizeof("<NULL>"));
318 *s = malloc(sizeof("<EMPTY>"));
325 *s = malloc(3*length);
377 buf->base = malloc((asn1buf_siz
[all...]
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_kef_ioctl.c69 pload_soft_conf = malloc(sizeof (crypto_load_soft_config_t) +
114 pload_soft_dis = malloc(sizeof (crypto_load_soft_disabled_t) +
167 pload_dev_dis = malloc(sizeof (crypto_load_dev_disabled_t) +
204 punload_soft = malloc(sizeof (crypto_unload_soft_module_t));
236 psoft_info = malloc(sizeof (crypto_get_soft_info_t) + extra_mech_size);
259 pdevlist = malloc(sizeof (crypto_get_dev_list_t) +
285 pdevlist = malloc(sizeof (crypto_get_dev_list_t) +
337 dev_info = malloc(sizeof (crypto_get_dev_info_t) +
554 psoftlist = malloc(sizeof (crypto_get_soft_list_t) + len);
580 psoftlist = malloc(sizeo
[all...]
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c143 entry = (krb5_keytab_entry *) malloc(sizeof(krb5_keytab_entry));
150 lp = (krb5_kt_list) malloc(sizeof(*lp));
155 lp->next = (krb5_kt_list) malloc(sizeof(*lp));
167 password.data = (char *) malloc(pwsize);
208 lp->entry->key.contents = (krb5_octet *) malloc((strlen(buf) + 1) / 2);
270 entry = (krb5_keytab_entry *)malloc(sizeof (krb5_keytab_entry));
281 lp = (krb5_kt_list)malloc(sizeof (*lp));
287 lp->next = (krb5_kt_list)malloc(sizeof (*lp));
400 entry = (krb5_keytab_entry *)malloc(sizeof (krb5_keytab_entry));
426 entry->key.contents = (krb5_octet *)malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dfulldevnm.c87 * null pointer - malloc problems
138 if ((wa = malloc(len)) == NULL)
205 if ((new_path = malloc(strlen(cp))) == NULL)
223 if ((new_path = malloc(strlen(cp))) == NULL)
258 /* malloc path for new_path to hold raw */
259 if ((new_path = malloc(strlen(cp)+2)) == NULL)
277 /* malloc path for new_path to hold raw */
278 if ((new_path = malloc(strlen(cp)+2)) == NULL)
393 if ((new_path = malloc(strlen(cp))) == NULL) {
471 if ((new_path = malloc(strle
[all...]
/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Dfruraw.c87 node = (raw_list_t *)malloc(sizeof (raw_list_t));
214 segs = malloc(sizeof (*segs) * (num_segment));
230 char *tmp = malloc(sizeof (*tmp) * (sizeof (segs[i].name)+1));
266 sects = malloc(sizeof (*sects) * (num_section));
308 segs = malloc(sizeof (*segs) * (num_seg));
354 sect = malloc(sizeof (*sect) * (num_sect));
444 sects = malloc((num_sect + 1) * sizeof (section_t));
460 segs = malloc((num_segment + 1) * sizeof (segment_t));
473 tmp_list = malloc(sizeof (segment_list_t));
517 sects = malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dobject.c440 o = (OBJECT *)malloc(sizeof (OBJECT));
441 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
442 new_tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
534 buf = (CK_BYTE *)malloc(total_len);
727 new_tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
766 obj = (OBJECT *)malloc(sizeof (OBJECT));
832 o = (OBJECT *)malloc(sizeof (OBJECT));
833 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
834 tmpl2 = (TEMPLATE *)malloc(sizeof (TEMPLATE));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c95 p = (gss_OID) malloc(sizeof(gss_OID_desc));
101 p->elements = malloc(p->length);
119 if ((*oid_set = (gss_OID_set) malloc(sizeof(gss_OID_set_desc)))) {
146 if (((*oid_set)->elements = (gss_OID) malloc(((*oid_set)->count+1) *
157 (void *) malloc((size_t) member_oid->length))) {
275 if ((bp = (char *) malloc(string_length))) {
384 if ((*oid = (gss_OID) malloc(sizeof(gss_OID_desc)))) {
385 if (((*oid)->elements = (void *) malloc(nbytes))) {
584 if ((out->elements = (void *) malloc(in->length)) == NULL) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_init.c37 profile = malloc(sizeof(struct _profile_t));
97 files = malloc ((size+1) * sizeof(*files));
125 filenames = (profile_filespec_t*) malloc((n_entries+1) * sizeof(char*));
134 filenames[i] = (char*) malloc(ent_len + 1);
136 /* if malloc fails, free the ones that worked */
373 flist = (profile_filespec_t *) malloc(sizeof(profile_filespec_t) * (fcount + 1));
380 flist[i] = (char *) malloc((size_t) (tmp+1));
427 if (actual_section = (char **)malloc((max_i + 2) * sizeof(char *))) {
473 if (actual_section = (char **)malloc((max_i + 2) * sizeof(char *))) {
488 *options[i].value = malloc(strle
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dhesiod.c80 ctx = malloc(sizeof(struct hesiod_p));
93 ctx->LHS = malloc(strlen(DEF_LHS) + 1);
94 ctx->RHS = malloc(strlen(DEF_RHS) + 1);
113 ctx->RHS = malloc(RHSlen);
199 if ((bindname = malloc((cp - name) + strlen(type) + strlen(RHS) +
318 *cpp = malloc(strlen(data) + 1);
395 list = malloc((ancount + 1) * sizeof(char *));
426 if (!(list[j] = malloc(rr.dlen)))
468 res = (struct __res_state *)malloc(sizeof *res);
/illumos-gate/usr/src/lib/libgss/
H A Dg_acquire_cred.c50 actual_mechs = (gss_OID_set) malloc(sizeof (gss_OID_set_desc));
55 malloc(sizeof (gss_OID_desc) * count);
65 malloc(mechs_array[i].length);
193 creds = (gss_union_cred_t)malloc(sizeof (gss_union_cred_desc));
365 union_cred = malloc(sizeof (gss_union_cred_desc));
458 malloc(sizeof (gss_OID_desc) * (union_cred->count+1));
461 malloc(sizeof (gss_cred_id_t) * (union_cred->count+1));
485 malloc(mech->mech_type.length)) == NULL)
505 new_union_cred = malloc(sizeof (gss_union_cred_desc));

Completed in 724 milliseconds

1234567891011>>