Searched refs:malloc (Results 1 - 25 of 163) sorted by relevance

1234567

/ast/src/cmd/tests/sfio/
H A Dtlongdouble.c36 if(!(str = malloc(strlen(s)+1)) )
H A Dtmmap2read.c30 On a system such as BSDI, malloc uses mmap() so if mmap()
67 /* test to see if malloc() winds up calling mmap() */
68 if(!(data = (char*)malloc(8*1024)) )
/ast/src/cmd/3d/
H A Dast.c105 #undef malloc macro
111 extern void* malloc(size_t);
117 extern void* _ast_malloc(size_t n) { return malloc(n); }
/ast/src/cmd/dsslib/ip_t/
H A Divlib.h30 extern void* malloc _ARG_((size_t));
/ast/src/cmd/tests/vmalloc/
H A Dtmmopen.c41 if(!malloc(32*1024) )
53 if(!malloc(32*1024) )
/ast/src/cmd/cs/vcs_src/
H A Dvcs_dir.c71 ntp = (tag_t *)malloc(tp->length);
82 ndp = (rdirent_t *)malloc(sizeof(rdirent_t));
83 ntp = (tag_t *)malloc(tp->length);
95 ndp = (rdirent_t *)malloc(sizeof(rdirent_t));
96 ntp = (tag_t *)malloc(tp->length);
H A Dvcs_checkout.c45 vp->tp = tp = (tag_t *)malloc(sizeof(tag_t));
75 if ((sbuf = (char *) malloc(nsrc)) == NULL ||
96 if (((dbuf = (char *) malloc(len)) == NULL) || sfseek(rp->fd, tp->del, 0) != tp->del || sfread(rp->fd, dbuf, len) != len || !(fdel = sfnew(NULL, dbuf, len, -1, SF_STRING|SF_READ)))
112 tbuf = (char *)malloc(ntar);
/ast/src/lib/libodelta/
H A Dmtchstring.c98 if(N_index = (long*) malloc(ALPHA*sizeof(long)))
103 if(!(Index = (char ***) malloc(ALPHA*sizeof(char**))))
119 (char**)malloc(ALPHA*sizeof(char *)) :
H A Dupdate.c148 if(tar = (unsigned char*)malloc(n_tar)) /* assignment = */
153 if(src = (unsigned char*)malloc(n_src)) /* assignment = */
/ast/src/lib/libast/disc/
H A Dmemfatal.c25 * install error message handler for fatal malloc exceptions
69 * initialize the malloc exception handler
77 malloc(0);
H A Dsfdcslow.c69 if(!(disc = (Sfdisc_t*)malloc(sizeof(Sfdisc_t))) )
/ast/src/lib/libast/stdio/
H A Dvfwprintf.c40 if (m = malloc(n + 1))
/ast/src/lib/libast/vmalloc/
H A Dvmexit.c68 if(!(e = (Exit_t*)malloc(sizeof(Exit_t))) )
H A Dmalloc.c32 #define malloc ______malloc macro
50 #include <malloc.h>
59 #undef malloc macro
60 #define malloc _ast_malloc macro
82 * define _AST_std_malloc=1 to force the standard malloc
84 * will simply call malloc etc.
91 /* malloc compatibility functions
153 #undef malloc macro
162 #include <malloc.h>
167 #undef malloc macro
174 #define malloc macro
509 extern Void_t* malloc(reg size_t size) function
907 #undef malloc macro
908 #define malloc macro
1010 #undef malloc macro
1066 #define malloc macro
[all...]
/ast/src/lib/libtk/compat/
H A Dstdlib.h34 extern char * malloc _ANSI_ARGS_((unsigned int numBytes));
/ast/src/lib/libtaso/
H A Dtaso.c48 if (!(spin = (Aso_spin_t*)malloc(sizeof(Aso_spin_t))))
88 if (!(mutex = (Aso_mutex_t*)malloc(sizeof(Aso_mutex_t))))
/ast/src/lib/libast/cdt/
H A Ddtdisc.c48 else return size > 0 ? malloc(size) : NIL(Void_t*);
/ast/src/cmd/mailx/port/
H A Ddtopen.c92 if(!(dt = (Dt_t*) malloc(sizeof(Dt_t))))
H A Ddtstat.c149 if(!(Count = (int*)malloc((ds->dt_max+1)*sizeof(int))) )
163 if(!(Count = (int*)malloc((ds->dt_n+1)*sizeof(int))) )
/ast/src/cmd/tests/cdt/
H A Dtevent.c60 return malloc(size);
/ast/src/lib/libvcodex/Vchuff/
H A Dvchbits.c56 if(!(sort = (ssize_t**)malloc(nsym*sizeof(ssize_t*))) )
/ast/src/lib/libvcodex/
H A Dvchdr.h95 extern Void_t* malloc _ARG_((size_t));
/ast/src/lib/libast/sfio/
H A Dsftmp.c132 if(!(ff = (File_t*)malloc(sizeof(File_t)+strlen(file))) )
174 if(n == 0 || !(dirs = (char**)malloc((n+1)*sizeof(char*))) )
176 if(!(p = (char*)malloc(strlen(path)+1)) )
219 { if(!(Tmppath = (char**)malloc(2*sizeof(char*))) )
223 if(!(Tmppath[0] = (char*)malloc(strlen(file)+1)) )
/ast/src/lib/libast/include/
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
143 extern Vmalloc_t* Vmregion; /* malloc region */
196 extern Void_t* malloc _ARG_(( size_t ));
245 #undef malloc macro
254 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
267 #define malloc(s) (_VMFL_(Vmregion), malloc((size_t)(s)) )
280 #define malloc(s) (_VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/ast/src/lib/libz/
H A Dzutil.c192 /* Turbo C malloc() does not allow dynamic allocation of 64K bytes
296 extern voidp malloc OF((uInt size));
308 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :

Completed in 42 milliseconds

1234567