Searched refs:malloc (Results 501 - 525 of 2509) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dshowdb.c28 aData = malloc(pagesize);
H A Dshowjournal.c28 aData = malloc(pagesize);
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_alloc.c35 void *p = malloc(n);
92 * Duplicate a block of memory. Combines malloc with memcpy, much as
93 * strdup combines malloc, strlen, and strcpy.
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dxdr_array.c94 *addrp = target = malloc(nodesize);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgerr.c60 newerr = (PKG_ERR *)malloc(sizeof (PKG_ERR));
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dgetgraent.c34 #include <malloc.h>
389 ls = (struct list *)malloc(sizeof(struct list));
390 buf = (char *)malloc(strlen(name) + 1);
417 g->sv->gra_passwd = (char *)malloc(strlen(gra->gra_passwd) + 1);
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dwrite.c61 if ((nbuf = (void *)malloc(nsize)) == NULL) {
62 (void) fprintf(stderr, "write: malloc failed\n");
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dfdlist.c76 if ((fdnew = (struct fd_lst *)malloc(sizeof(struct fd_lst))) == NULL) {
77 fprintf(stderr,"fd_add: malloc failed\n");
H A Dgetdents.c76 if ((nbuf = (char *)malloc(nbytes)) == NULL) {
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dwrite.c57 if ((nbuf = (void *)malloc(nsize)) == NULL) {
58 (void) fprintf(stderr, "write: malloc failed\n");
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetusershell.c136 * The +1 in the malloc() below is needed to handle the final
148 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) {
H A Diconv.c92 if ((cd = malloc(sizeof (struct _iconv_info))) == NULL)
98 ipath = malloc(MAXPATHLEN);
136 cd->_conv = malloc(sizeof (struct _iconv_fields));
342 if ((cdpath = malloc(sizeof (struct _iconv_fields))) == NULL)
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dtempnam.c69 if ((p = malloc(max(max(x, y), z)+16)) == NULL)
/illumos-gate/usr/src/lib/libgss/
H A Dg_dsp_name.c123 malloc(union_name->external_name->length + 1)) == NULL) {
H A Dg_dup_name.c93 dest_union = (gss_union_name_t)malloc(sizeof (gss_union_name_desc));
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c89 (pm = (prmap_t*)malloc(statbuf.st_size)) == NULL)
134 if ((ph = (Elf_Phdr*)malloc(size)) == NULL)
150 if ((sh = (Elf_Shdr*)malloc(size)) == NULL)
182 if ((stbuf = (char*)malloc(size)) == NULL)
/illumos-gate/usr/src/cmd/ypcmd/
H A Dgetlist.c59 it = (listofnames *) malloc(sizeof (listofnames));
103 "file %s bad malloc %s\n", filename, name);
/illumos-gate/usr/src/cmd/powertop/common/
H A Dutil.c99 if ((g_cpu_table = malloc(cpus_conf * sizeof (processorid_t))) == NULL)
/illumos-gate/usr/src/cmd/rctladm/
H A Drctladm.c117 if ((gblk = malloc(rctlblk_size())) == NULL)
211 if ((gblk = malloc(rctlblk_size())) == NULL)
267 if ((gblk = malloc(rctlblk_size())) == NULL)
411 if ((gblk = malloc(rctlblk_size())) == NULL)
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddefs.h96 #define ALLOC(x) (struct x *)malloc(sizeof (struct x))
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Ddefs.h71 #include <malloc.h>
/illumos-gate/usr/src/cmd/mail/
H A Dmkdead.c60 if((hmdead = malloc(strlen(home) + strlen(dead) + 1)) == NULL) {
61 fprintf(stderr, "%s: Can't malloc\n",program);
62 Dout(pn, 0, "Cannot malloc.\n");
H A Dpushlist.c58 if ((p = malloc(sizeof(struct hdrs))) == (char *)NULL) {
59 errmsg(E_MEM,"malloc failed in pushlist()");
/illumos-gate/usr/src/cmd/mailx/
H A Dmyfopen.c67 if ((newnode = (NODE *)malloc(sizeof(NODE))) == (NODE *)NULL) {
/illumos-gate/usr/src/cmd/mktemp/
H A Dmktemp.c119 tmp = malloc(len);
121 perror("malloc");

Completed in 128 milliseconds

<<21222324252627282930>>