Searched refs:malloc (Results 326 - 350 of 2509) sorted by relevance
<<11121314151617181920>>
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | mallint.h | 32 * 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 D | memalign.c | 60 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 D | ether_addr.c | 87 s = (char *)malloc(18);
|
H A D | ruserpass.c | 34 #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 D | scanf.c | 38 #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 D | read.c | 58 if ((nbuf = (void *)malloc(size)) == NULL) { 59 (void) fprintf(stderr, "read: malloc failed\n");
|
H A D | readv.c | 62 if ((nbuf = (void *)malloc(size)) == NULL) { 63 fprintf(stderr, "readv: malloc failed\n");
|
H A D | writev.c | 64 if ((nbuf = (void *)malloc(nsize)) == NULL) { 65 fprintf(stderr, "writev: malloc failed\n");
|
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | read.c | 58 if ((nbuf = (void *)malloc(size)) == NULL) { 59 (void) fprintf(stderr, "read: malloc failed\n");
|
H A D | writev.c | 61 if ((nbuf = (void *)malloc(nsize)) == NULL) { 62 fprintf(stderr, "writev: malloc failed\n");
|
/illumos-gate/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 8 * 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 D | getdevicerange.c | 40 * 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 D | wsprintf.c | 68 p2 = malloc(len);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strxfrm.c | 63 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 D | wordexp.c | 129 * 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 D | getline.c | 35 #include <malloc.h>
|
H A D | setbuf.c | 68 if ((buf = (Uchar *)malloc(_SMBFSZ * sizeof (Uchar))) != 0) { 78 return; /* malloc() failed */
|
/illumos-gate/usr/src/lib/libipd/common/ |
H A D | libipd.c | 146 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 D | io.c | 86 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 D | kmfber_int.h | 52 #include <malloc.h>
|
/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | exhaust.c | 93 if ((p = malloc(rand())) == NULL) { 96 perror("malloc");
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | val_lgrp.c | 64 grplist = malloc((ngroups_max + 1) * sizeof (gid_t));
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | priplugin.h | 46 #include <malloc.h>
|
/illumos-gate/usr/src/cmd/mkmsgs/ |
H A D | mkmsgs.c | 129 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 D | sun_msgfmt.h | 42 #include <malloc.h>
|
Completed in 100 milliseconds
<<11121314151617181920>>