Searched refs:malloc (Results 226 - 250 of 2509) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libgss/
H A Doid_ops.c110 p = (gss_OID) malloc(sizeof (gss_OID_desc));
115 p->elements = malloc(p->length);
137 if ((*oid_set = (gss_OID_set) malloc(sizeof (gss_OID_set_desc)))) {
166 if (((*oid_set)->elements = (gss_OID) malloc(((*oid_set)->count+1) *
176 (void *) malloc(member_oid->length))) {
290 if ((bp = (char *)malloc(string_length))) {
405 if ((*oid = (gss_OID) malloc(sizeof (gss_OID_desc)))) {
406 if (((*oid)->elements = (void *) malloc(nbytes))) {
519 if ((out->elements = (void *) malloc(in->length)) == NULL) {
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dsched.c186 n = (el_notice_t *)malloc(sizeof (el_notice_t));
197 k = (el_key_t *)malloc(sizeof (el_key_t));
210 il = (el_key_t **)malloc((DU + 1) * sizeof (el_key_t *));
219 n = (el_notice_t *)malloc(sizeof (el_notice_t));
230 k = (el_key_t *)malloc(sizeof (el_key_t));
247 n = (el_notice_t *)malloc(sizeof (el_notice_t));
259 k = (el_key_t *)malloc(sizeof (el_key_t));
366 y = (el_key_t *)malloc(sizeof (el_key_t));
394 x = (el_notice_t *)malloc(sizeof (el_notice_t));
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevreserv.c127 * A pointer to the filename in malloc()ed memory or (char *) NULL if
143 if (lockname = malloc(strlen(p)+1))
147 if (lockname = malloc(strlen(DVLK_PATH)+1))
334 * locklist Sets this to the malloc()ed space containing the
356 if (alloc = malloc(bufsiz)) {
358 /* Read the locks into the malloc()ed buffer */
362 /* If the read failed, free malloc()ed buffer */
365 } else noerror = FALSE; /* malloc() failed */
891 * A pointer to malloc()ed space containing pointers to the aliases
892 * of the reserved devices. The aliases are in malloc()e
[all...]
H A Dgetdev.c395 * in the malloc heap. We're allocating space for a local structure,
439 if (new = malloc(sizeof (struct deviceent))) {
442 if (str = malloc(strlen(deventry)+1)) {
496 char *str; /* Ptr to malloc()ed string space */
515 if (rtnbuf = malloc(n*sizeof (struct srch))) {
526 if (str = malloc(strlen(*pp)+1)) {
559 /* Unable to malloc() string space. Clean up */
630 if (list = malloc((devicelist.count+1)*sizeof (char *))) {
665 * and aliases will be allocated using the malloc() function.
689 if (aliases = malloc(
[all...]
/illumos-gate/usr/src/lib/libdevid/
H A Ddeviceid.c68 if ((mydevid = (ddi_devid_t)malloc(len)) == NULL)
109 if ((myminor_name = (char *)malloc(len)) == NULL)
150 if ((nl = malloc(sizeof (*nl))) == NULL)
258 if ((paths = (char *)malloc(lens)) == NULL)
304 cp = malloc(strlen("/devices") + strlen(path) + 1);
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c43 * argument to umem_alloc(), not the argument to malloc().
56 #pragma weak malloc = umem_malloc macro
133 retval = malloc(size);
165 * if malloc provides the required alignment, use it.
169 return (malloc(size_arg));
397 return (malloc(newsize));
415 buf = malloc(newsize);
/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c133 if ((dir = (char *)malloc(len)) == NULL)
137 if ((name = (char *)malloc(len)) == NULL)
156 if ((homedir = (char *)malloc(len)) == NULL)
160 if ((logname = (char *)malloc(len)) == NULL)
176 if ((shell = (char *)malloc(len)) == NULL)
/illumos-gate/usr/src/cmd/praudit/
H A Dprintaudit.c206 if ((context = (pr_context_t *)malloc(sizeof (pr_context_t))) == NULL) {
226 context->audit_adr = (adr_t *)malloc(sizeof (adr_t));
281 if ((context = (pr_context_t *)malloc(sizeof (pr_context_t))) == NULL) {
289 context->audit_adr = malloc(sizeof (adr_t));
290 context->audit_adrf = malloc(sizeof (adrf_t));
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Dovload.c50 hist->key_data = (krb5_key_data *) malloc(hist->n_key_data *
81 (krb5_octet *) malloc(key_data->key_data_length[0]+1))) {
143 if((rec = (osa_princ_ent_t) malloc(sizeof(osa_princ_ent_rec))) == NULL)
155 if((rec->policy = (char *) malloc(strlen(cp)+1)) == NULL) {
190 malloc(sizeof(osa_pw_hist_ent) * rec->old_key_len))) {
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dhash.c39 ptr = malloc(sizeof (*ptr));
41 ptr->table = malloc((size_t)(sizeof (hash_entry *) * size));
53 ptr = malloc(sizeof (*ptr));
55 ptr->table = malloc(sizeof (hash_entry *) * size);
94 new = malloc(sizeof (*new));
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c33 * Simplified version of malloc(), calloc() and free(), to be linked with
126 * for later malloc activity.
154 * Replace both malloc() and lmalloc() (libc's private memory allocator).
157 #pragma weak lmalloc = malloc
159 malloc(size_t size) function
224 if ((mp = malloc(total)) == NULL)
238 return (malloc(size));
263 if ((newptr = malloc(size)) == NULL)
/illumos-gate/usr/src/ucblib/libcurses/
H A Dnewwin.c30 #include <malloc.h>
32 #define SMALLOC (short *)malloc
75 if ((win->_y[i] = malloc(nc * sizeof (win->_y[0]))) == NULL) {
168 if ((win = (WINDOW *) malloc(sizeof (*win))) == NULL)
173 if ((win->_y = (char **)malloc(nl * sizeof (win->_y[0]))) == NULL) {
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dmalloc.c32 #define malloc ______malloc macro
50 #include <malloc.h>
59 #undef malloc macro
60 #define malloc _ast_malloc macro
82 * define _AST_std_malloc=1 to force the standard malloc
84 * will simply call malloc etc.
91 /* malloc compatibility functions
151 #undef malloc macro
236 /* if getenv() calls malloc(), the options may not affect the eventual region */
260 extern Void_t* malloc(re function
579 #undef malloc macro
580 #define malloc macro
680 #undef malloc macro
731 #define malloc macro
[all...]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_da_cache.c124 if (!(reply = malloc((*ans)->reply_len))) {
161 if (!(ce = malloc(sizeof (*ce)))) {
172 if (!(ce->reply = malloc(len))) {
H A Dslp_queue.c99 if ((q = malloc(sizeof (*q))) == NULL) {
122 if ((qe = malloc(sizeof (*qe))) == NULL) {
151 if ((qe = malloc(sizeof (*qe))) == NULL) {
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dutf_str.c112 obuf = malloc(obsize);
186 obuf = malloc(obsize);
212 * upper-case version of some string. Returns memory from malloc.
233 if ((res = malloc(outlen)) == NULL)
/illumos-gate/usr/src/lib/libcpc/common/
H A Dsubr.c63 if ((reqlist = (nvlist_t **)malloc(set->cs_nreqs * sizeof (*reqlist)))
152 if ((p = malloc(sizeof (cpc_strhash_t))) == NULL)
193 if ((p = malloc(sizeof (*p))) == NULL)
/illumos-gate/usr/src/lib/libsmedia/plugins/blkdev/common/
H A Db_generic.c151 vendor_name = (char *)malloc(1);
157 product_name = (char *)malloc(1);
165 fw_version = (char *)malloc(1);
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dtable.c80 z = malloc( strlen(colv[i])+1 );
104 z = malloc( strlen(argv[i])+1 );
120 ** malloc() for space to hold the result and return the entire results
124 ** from malloc(). But the caller cannot free this memory directly.
149 res.azResult = malloc( sizeof(char*)*res.nAlloc );
/illumos-gate/usr/src/lib/libtecla/common/
H A Dfreelist.c79 * malloc, which returns memory suitably aligned for any object, will
93 fl = (FreeList *) malloc(sizeof(FreeList));
341 block = (FreeListBlock *) malloc(sizeof(FreeListBlock));
354 block->nodes = (char *) malloc(fl->node_size * fl->blocking_factor);
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetnetgrent_r.c105 *buf = p = malloc(sizeof(struct private));
170 *buf = malloc(len);
177 p->buf = malloc(len);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dexportent.c94 line = (char *)malloc(LINESIZE + 1);
134 fname = (char *) malloc(strlen(TMPFILE) + 1);
219 tokenbuf = (char *)malloc(LINESIZE);
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dmount.c125 (struct netbuf *)malloc(sizeof (struct netbuf))) == NULL)
128 (struct netbuf *)malloc(sizeof (struct netbuf))) == NULL) {
133 (struct knetconfig *)malloc(sizeof (struct knetconfig))) == NULL) {
/illumos-gate/usr/src/lib/libmp/common/
H A Dutil.c55 i = malloc(sizeof (short) * ((unsigned)nint + 2)); /* ??? 2 ??? */
119 a = malloc(sizeof (MINT));
229 hex = malloc((size_t) ((size * BASEBITS + 3)) / 4 + (size ? 1 : 2));
/illumos-gate/usr/src/common/iscsi/
H A Dutils.c220 if ((dp = dp1 = malloc(strlen(domain) + 1)) == NULL)
269 if ((temp = malloc(strlen(uts_info.nodename) +
293 if ((pmet = malloc(len)) == NULL) {

Completed in 89 milliseconds

1234567891011>>