Searched refs:malloc (Results 326 - 350 of 2509) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmallint.h32 * Definitions for malloc.c and friends (realloc.c, memalign.c)
52 #include <malloc.h>
103 * is a null pointer. Note that malloc() and free() should be
H A Dmemalign.c60 uint reqsize; /* Num of bytes to get from malloc() */
61 register char *p; /* Ptr returned from malloc() */
79 * aligned correctly. The worst case is when malloc returns
85 p = malloc(reqsize);
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Dether_addr.c87 s = (char *)malloc(18);
H A Druserpass.c34 #include <malloc.h>
107 *aname = malloc(16);
162 *aname = malloc(strlen(d->tokval) + 1);
177 *apass = malloc(strlen(d->tokval) + 1);
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dscanf.c38 #include <malloc.h>
61 nf = malloc(strlen(fmt)+1);
96 nf = malloc(strlen(fmt)+1);
129 nf = malloc(strlen(fmt)+1);
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dread.c58 if ((nbuf = (void *)malloc(size)) == NULL) {
59 (void) fprintf(stderr, "read: malloc failed\n");
H A Dreadv.c62 if ((nbuf = (void *)malloc(size)) == NULL) {
63 fprintf(stderr, "readv: malloc failed\n");
H A Dwritev.c64 if ((nbuf = (void *)malloc(nsize)) == NULL) {
65 fprintf(stderr, "writev: malloc failed\n");
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dread.c58 if ((nbuf = (void *)malloc(size)) == NULL) {
59 (void) fprintf(stderr, "read: malloc failed\n");
H A Dwritev.c61 if ((nbuf = (void *)malloc(nsize)) == NULL) {
62 fprintf(stderr, "writev: malloc failed\n");
/illumos-gate/usr/src/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c8 * wizard:/space/4.3reno/usr/src/lib/libc/stdlib/malloc.c
28 * malloc.c (Caltech) 2/21/82
97 malloc(size_t nbytes) function
105 * First time malloc is called, setup page size and
252 * old malloc man page, it realloc's an already freed block. Usually
273 return (malloc(nbytes));
287 * If all lookups fail, then just malloc() the
292 if ((res = malloc(nbytes)) != NULL)
317 if ((res = malloc(nbytes)) == NULL)
/illumos-gate/usr/src/lib/libbsm/common/
H A Dgetdevicerange.c40 * Returns malloc'ed blrange pointer, or NULL on any error.
52 if ((range = malloc(sizeof (blrange_t))) == NULL)
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwsprintf.c68 p2 = malloc(len);
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrxfrm.c63 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL)
84 /* errno should be set to ENOMEM if malloc failed */
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dwordexp.c129 * want to be able to actually avoid excessive malloc calls.
161 wptmp.we_wordv = malloc(sizeof (char *) * wptmp.we_wordn);
191 if ((env = malloc((n + 2) * sizeof (char *))) == NULL ||
192 (wd = malloc(PATH_MAX + 4)) == NULL)
313 cp = line = malloc(BUFSZ);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dgetline.c35 #include <malloc.h>
H A Dsetbuf.c68 if ((buf = (Uchar *)malloc(_SMBFSZ * sizeof (Uchar))) != 0) {
78 return; /* malloc() failed */
/illumos-gate/usr/src/lib/libipd/common/
H A Dlibipd.c146 malloc(sizeof (ipd_ioc_info_t) * ipil.ipil_nzones);
163 if ((isp = malloc(sizeof (struct ipd_stat))) == NULL) {
177 isp->is_zoneids = malloc(sizeof (zoneid_t) * ipil.ipil_nzones);
183 isp->is_configs = malloc(sizeof (struct ipd_config) * ipil.ipil_nzones);
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
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));
/illumos-gate/usr/src/lib/libkmf/ber_der/inc/
H A Dkmfber_int.h52 #include <malloc.h>
/illumos-gate/usr/src/lib/libmtmalloc/tests/
H A Dexhaust.c93 if ((p = malloc(rand())) == NULL) {
96 perror("malloc");
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dval_lgrp.c64 grplist = malloc((ngroups_max + 1) * sizeof (gid_t));
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/
H A Dpriplugin.h46 #include <malloc.h>
/illumos-gate/usr/src/cmd/mkmsgs/
H A Dmkmsgs.c129 unsigned size; /* used for argument to malloc */
189 if ((pathoutp = malloc(2 * (size + 1))) == NULL) {
190 (void)fprintf(stderr, "%s: malloc error (size = %d)\n",
231 if ((bufinp = malloc(2 * LINESZ)) == NULL) {
232 (void)fprintf(stderr, "%s: malloc error (size = %d)\n",
303 if ( (bufoutp = (int *)malloc((uint)size)) == NULL ) {
304 (void)fprintf(stderr, "%s: malloc error (size = %d)\n",
388 if ((path = malloc(strlen(localdir)+1)) == NULL)
/illumos-gate/usr/src/cmd/msgfmt/
H A Dsun_msgfmt.h42 #include <malloc.h>

Completed in 100 milliseconds

<<11121314151617181920>>