Searched refs:malloc (Results 1326 - 1350 of 2509) sorted by relevance

<<51525354555657585960>>

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_door.c117 if ((cl = malloc(sizeof (CLIENT))) == NULL ||
118 (cu = malloc(sizeof (*cu))) == NULL) {
H A Dsvc_generic.c49 #include <malloc.h>
530 if ((xprt->xp_rtaddr.buf = malloc(xprt->xp_rtaddr.maxlen)) == NULL) {
/illumos-gate/usr/src/lib/libproject/common/
H A Dsetproject.c228 (rctlblk_t *)malloc(rctlblk_size() * count)) == NULL)) {
360 if ((rnext = (rctlblk_t *)malloc(rctlblk_size())) == NULL) {
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/
H A Dmontoya.c502 pval = malloc(pinfo.size);
530 pval = malloc(pinfo.size);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/
H A Dmonza.c547 pval = malloc(pinfo.size);
575 pval = malloc(pinfo.size);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dhuron.c402 pval = malloc(pinfo.size);
430 pval = malloc(pinfo.size);
H A Dpelton.c412 pval = malloc(pinfo.size);
440 pval = malloc(pinfo.size);
/illumos-gate/usr/src/lib/librdc/common/
H A Dnetaddrs.c121 buf = (char *)malloc(numifs * sizeof (struct ifreq));
124 fprintf(stderr, "getmyaddrs(): malloc failed\n");
157 ifc = malloc(sizeof (struct ifconf));
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c1081 hohaddrlist = malloc(hoaddrsize);
1096 alist[t] = malloc(hoaddrtype == AF_INET ? 4 : 16);
1450 ne->n_addr = malloc(sizeof nnet);
1688 aptr = arr = malloc(count * sizeof (char *));
1705 arr = malloc(sizeof (char *));
1851 char *p = malloc(len + 1);
2070 buff = malloc(size);
2102 buff = malloc(size);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A D_open.c378 fullPath = (char *)malloc(strlen(PRINTER_DIR) + strlen(printerName) +
390 (str = (char *)malloc(buf.st_size + 2)) == NULL) {
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c554 if ((str = malloc(sz)) == NULL)
585 if ((new_env = malloc(sizeof (char *) * size)) == NULL)
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c510 * return malloc'd, zero-terminated LDIF line
520 if (( buf = (char *)malloc( LDIF_SIZE_NEEDED( tlen, vlen ) + 1 )) !=
544 * by fp. return a pointer to a malloc'd, null-terminated buffer. also
590 buf = (char *) malloc( max );
/illumos-gate/usr/src/cmd/users/
H A Dusers.c66 * malloc Allocate memory from main memory
257 * malloc()
313 if ((rtnval = malloc(ALLOCBLKSZ)) == NULL) {
348 if ((nextblkaddr = malloc(ALLOCBLKSZ)) == NULL) {
/illumos-gate/usr/src/common/net/wanboot/
H A Dboot_http.c303 if ((c_id = malloc(sizeof (*c_id))) == NULL) {
934 if ((lresp = malloc(sizeof (http_respinfo_t))) == NULL) {
998 c_id->resp.statusmsg = malloc(strlen(ptr) + 1);
1190 if ((*resp = malloc(sizeof (http_respinfo_t))) == NULL) {
1420 info = malloc(sizeof (*info));
1596 if ((request = malloc(requestlen)) == NULL) {
1664 if ((authstr = malloc(authlen + 1)) == NULL) {
1673 if ((authencstr = malloc((authlen + 2) / 3 * 4 + 1)) == NULL) {
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Dgetopt.c278 that we can compare them later. But we must not use malloc(3). */
332 char *new_str = malloc (top + 1);
444 (char *) malloc (nonoption_flags_max_len);
/illumos-gate/usr/src/cmd/pools/poold/
H A Dpoold.c528 vm_opts[nopts].optionString = malloc(len = strlen(classpath) +
535 vm_opts[nopts].optionString = malloc(len = strlen(libpath) +
/illumos-gate/usr/src/cmd/ptools/ptree/
H A Dptree.c224 if ((p = malloc(sizeof (ps_t))) == NULL) {
225 perror("malloc()");
532 if ((p0 = malloc(sizeof (ps_t))) == NULL) {
533 perror("malloc()");
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/p12split/
H A Dp12split.c181 nkeystr = malloc(nkeystrlen);
182 k_matchval = malloc(k_len);
/illumos-gate/usr/src/cmd/devfsadm/
H A Dusb_link.c267 l_path = (char *)malloc(PATH_MAX);
270 devfsadm_print(debug_mid, "usb_process: malloc() failed\n");
274 p_path = (char *)malloc(PATH_MAX);
276 devfsadm_print(debug_mid, "usb_process: malloc() failed\n");
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c165 temp = (mib_item_t *)malloc(sizeof (mib_item_t));
167 perror("mibget malloc failed");
179 last_item->valp = (char *)malloc(req->len);
/illumos-gate/usr/src/cmd/sgs/lex/common/
H A Dncform93 yytext = (char *) malloc(yytextsz);
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/
H A Dbucket.c30 #include <malloc.h>
180 uncle = malloc(sizeof (struct bucketlist));
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Daudiotest.c179 if ((sample_buf = malloc(2000000)) == NULL) {
180 perror("malloc");
199 ccfg->data = malloc(ccfg->len);
201 perror("malloc");
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Ddemand.c84 frame = malloc(framemax);
286 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid_test.c345 if ((mapargp = malloc(MAPID_ARG_LEN(u8s->utf8string_len))) == NULL) {
346 (void) fprintf(stderr, "Unable to malloc %d bytes\n",
519 if ((mapargp = malloc(MAPID_ARG_LEN(u8s->utf8string_len))) == NULL) {
520 (void) fprintf(stderr, "Unable to malloc %d bytes\n",

Completed in 264 milliseconds

<<51525354555657585960>>