Searched refs:malloc (Results 451 - 475 of 2509) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmntent.c33 #include <malloc.h>
96 line = (char *)malloc(BUFSIZ+1);
H A Dsetlocale.c40 #include <malloc.h>
387 if ((str = (char*)malloc((unsigned)buf.st_size + 2)) == NULL)
437 if ((str = (char*)malloc((unsigned)buf.st_size + 2)) == NULL)
713 my_info = malloc(code_header.code_info_size);
760 /* We malloc both the space for the dtconv struct and the
767 _dtconv = (struct dtconv*)malloc(sizeof (struct dtconv));
770 if ((realmonths = malloc(strlen(rawmonths)+1)) == NULL)
773 if ((realdays = malloc(strlen(rawdays)+1)) == NULL)
776 if ((realfmts = malloc(strlen(rawfmts)+1)) == NULL)
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dflsbuf.c37 #include <malloc.h>
62 * If buffers had been obtained via malloc(), the space will
222 * or allocates a buffer using malloc. If a buffer is obtained from malloc,
250 if ((iop->_base = (unsigned char *) malloc(size+8)) != NULL) {
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dwritefile.c65 srcbuf = malloc(src_size);
85 targbuf = malloc(targ_size);
/illumos-gate/usr/src/lib/libkmf/mappers/kmf_mapper_cn/common/
H A Dmapper_cn.c57 if ((opts = malloc(sizeof (cooked_opts))) == NULL)
117 if ((cn = malloc(data->Length + 1)) == NULL) {
/illumos-gate/usr/src/cmd/ndmpstat/
H A Dndmpstat_main.c126 if ((nstat = malloc(sizeof (ndmp_stat_t))) == NULL) {
143 if ((nstat = malloc(sizeof (ndmp_stat_t))) == NULL) {
/illumos-gate/usr/src/cmd/rexd/
H A Dsharetab.c69 line = (char *)malloc(BUFSIZ+1);
74 sh = (share_t *)malloc(sizeof (*sh));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dtable.c56 #include <malloc.h>
200 ptr = (TABLE_ENTRY *) malloc(sizeof (TABLE_ENTRY));
203 print_error("malloc in insert_table");
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/kssl/ksslcfg/
H A Dksslcfg.c194 if ((instance_name = malloc(len)) == NULL) {
203 if ((*inaddr_any_name = malloc(len)) == NULL) {
/illumos-gate/usr/src/cmd/eeprom/i386/
H A Dbenv_kvm.c37 static char *mfail = "malloc";
205 npp = (ddi_prop_t *)malloc(sizeof (ddi_prop_t));
211 npp->prop_val = (char *)malloc(npp->prop_len);
/illumos-gate/usr/src/cmd/filesync/
H A Dignore.c179 lp = malloc(sizeof (*lp));
275 lp = malloc(sizeof (*lp));
/illumos-gate/usr/src/cmd/saf/
H A Dutil.c219 if ((sp->sc_cmd = malloc((unsigned) (strlen(p) + 1))) == NULL) {
224 error("malloc failed");
233 if ((sp->sc_comment = malloc((unsigned) (strlen(Comment) + 1))) == NULL) {
238 error("malloc failed");
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Ddfn.c66 dfn_stack = (dfntype *) malloc(dfn_sz * sizeof (dfntype));
69 "fatal: can't malloc %d objects\n", dfn_sz);
114 dfn_stack = (dfntype *) malloc(dfn_sz * sizeof (dfntype));
116 (void) printf("fatal: can't malloc %d objects\n",
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c436 adpcm_state = (struct audio_g72x_state *)malloc
448 adpcm_state = (struct audio_g72x_state *)malloc
527 buf = (unsigned char *) malloc(cnt);
919 char *buf; /* malloc off the tmp buff */
945 buf = malloc(strlen(path) + 1);
1025 in_ch_data = malloc(sizeof (unsigned char *) * File_hdr.channels);
1035 in_ch_data[c] = malloc(sizeof (unsigned char) * in_ch_size);
1045 out_ch_data = malloc(sizeof (unsigned char *) * File_hdr.channels);
1055 out_ch_data[c] = malloc(sizeof (unsigned char) * out_ch_size);
/illumos-gate/usr/src/cmd/calendar/
H A Dcalprog.c54 extern char *getenv(), *malloc();
63 /* 1 */ "could not malloc enough memory",
146 if ((start = (char *)malloc(512)) == NULL)
/illumos-gate/usr/src/cmd/cdrw/
H A Dutil.c59 ret = malloc(size);
65 ret = malloc(size);
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dvar.c120 p1 = malloc(len + 1);
167 v = (variable_t *)malloc(sizeof(*v));
/illumos-gate/usr/src/cmd/tail/
H A Dread.c65 if ((sp = p = malloc(off)) == NULL)
66 err(1, "malloc");
139 if ((llines = malloc(off * sizeof (*llines))) == NULL)
140 err(1, "malloc");
/illumos-gate/usr/src/cmd/tcopy/
H A Dtcopy.c92 if ((buff = malloc(buf_size)) == NULL) {
109 if ((buff = malloc(buf_size)) == NULL) {
/illumos-gate/usr/src/cmd/tcpd/
H A Dscaffold.c28 extern char *malloc();
59 if ((hb = (struct hostent_block *) malloc(sizeof(struct hostent_block)
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_harmless.c162 /* Assign transfers 'ownership' of the malloc areas
190 dhp->dh_errors = (char **)malloc(sizeof( char *) *dhp->dh_maxcount);
198 (char *)malloc(DW_HARMLESS_ERROR_MSG_STRING_SIZE);
/illumos-gate/usr/src/tools/protocmp/
H A Ddepend.c67 tmp = malloc(sizeof (pkg_list));
80 pkg = malloc(sizeof (pkg_list));
/illumos-gate/usr/src/uts/common/zmod/
H A Dzutil.c198 /* Turbo C malloc() does not allow dynamic allocation of 64K bytes
301 extern voidp malloc OF((uInt size));
312 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_iters.c108 p = (char *) malloc(strlen(glob)*2+ 3 + (append_realm ? 2 : 0));
244 data.names = malloc(sizeof(char *) * data.sz_names);
/illumos-gate/usr/src/lib/libast/common/cdt/
H A Ddtstat.c102 if(!(Count = (int*)malloc((ds->dt_max+1)*sizeof(int))) )
116 if(!(Count = (int*)malloc((ds->dt_n+1)*sizeof(int))) )

Completed in 143 milliseconds

<<11121314151617181920>>