| /plan9/sys/src/libdraw/ |
| H A D | mkfont.c | 14 font = malloc(sizeof(Font)); in mkfont() 22 font->cache = malloc(font->ncache * sizeof(font->cache[0])); in mkfont() 23 font->subf = malloc(font->nsubf * sizeof(font->subf[0])); in mkfont() 38 font->sub = malloc(sizeof(Cachefont*)); in mkfont() 41 c = malloc(sizeof(Cachefont)); in mkfont()
|
| H A D | buildfont.c | 24 fnt = malloc(sizeof(Font)); in buildfont() 32 fnt->cache = malloc(fnt->ncache * sizeof(fnt->cache[0])); in buildfont() 33 fnt->subf = malloc(fnt->nsubf * sizeof(fnt->subf[0])); in buildfont() 91 c = malloc(sizeof(Cachefont)); in buildfont()
|
| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | jmemnobs.c | 24 extern void * malloc JPP((size_t size)); 37 return (void *) malloc(sizeofobject); in jpeg_get_small() 57 return (void FAR *) malloc(sizeofobject); in jpeg_get_large()
|
| H A D | jmemansi.c | 21 extern void * malloc JPP((size_t size)); 38 return (void *) malloc(sizeofobject); in jpeg_get_small() 58 return (void FAR *) malloc(sizeofobject); in jpeg_get_large()
|
| /plan9/sys/src/libplumb/ |
| H A D | mesg.c | 106 if((buf = malloc(4096)) == nil) in plumbpackattr() 112 s = malloc(n); in plumbpackattr() 156 buf = malloc(n+1); /* +1 for '\0' */ in plumbpack() 207 p = malloc((i-starti) + 1); in plumbline() 246 buf = malloc(4096); in plumbunpackattr() 261 a = malloc(sizeof(Plumbattr)); in plumbunpackattr() 264 a->name = malloc(q-p+1); in plumbunpackattr() 298 a->value = malloc(v-buf+1); in plumbunpackattr() 362 m = malloc(sizeof(Plumbmsg)); in plumbunpackpartial() 389 m->data = malloc(n-i+1); /* +1 for '\0' */ in plumbunpackpartial() [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gp_unix_cache.c | 66 prefix = malloc(plen); in gp_cache_prefix() 86 home = malloc(hlen); in gp_cache_prefix() 97 path = malloc(pathlen); in gp_cache_prefix() 125 path = malloc(len); in gp_cache_indexfilename() 131 path = malloc(++len); in gp_cache_indexfilename() 157 char *fn = malloc(gp_file_name_sizeof), *fni; in gp_cache_filename() 183 path = malloc(len); in gp_cache_itempath() 232 filekey = malloc(keylen); in gp_cache_loaditem() 302 item->filename = malloc(strlen(fn) + 1); in gp_cache_read_entry() 334 outfn = malloc(len); in gp_cache_insert() [all …]
|
| H A D | gsiomacres.c | 168 resource_header *header = malloc(sizeof(*header)); in read_resource_header() 198 buf = malloc(sizeof(*buf)*header->map_length); in read_resource_map() 216 types = malloc(sizeof(*types)*n_types); in read_resource_map() 217 number = malloc(sizeof(*number)*n_types); in read_resource_map() 218 ref_offsets = malloc(sizeof(*ref_offsets)*n_types); in read_resource_map() 231 list = malloc(sizeof(resource_list)); in read_resource_map() 232 list->resources = malloc(sizeof(resource)*n_resources); in read_resource_map() 249 list->resources[k].name = malloc(sizeof(char)*(len+1)); in read_resource_map() 281 buf = malloc(len); in load_resource()
|
| H A D | genht.c | 74 cont = malloc(len + 1); in read_file() 144 rname = malloc(strlen(line) + 1); in parse_halftone() 198 malloc(num_levels * sizeof(*phtr->levels)); in parse_halftone() 200 malloc(num_bits * sizeof(ushort)); in parse_halftone() 201 Thresholds = malloc(num_bits); in parse_halftone()
|
| H A D | gdevdjtc.c | 117 bitData=(byte*)malloc(bitSize+16); in djet500c_print_page() 145 plane1=(byte*)malloc(planeSize+8); in djet500c_print_page() 146 plane2=(byte*)malloc(planeSize+8); in djet500c_print_page() 147 plane3=(byte*)malloc(planeSize+8); in djet500c_print_page()
|
| /plan9/sys/src/ape/lib/ap/plan9/ |
| H A D | dirstat.c | 21 d = malloc(sizeof(Dir) + BIT16SZ +nd); in _dirstat() 48 buf = malloc(r); in _dirwstat() 66 d = malloc(sizeof(Dir) + nd); in _dirfstat() 93 buf = malloc(r); in _dirfwstat()
|
| H A D | malloc.c | 37 malloc(size_t size) in malloc() function 122 return malloc(n); in realloc() 135 new = malloc(n); in realloc()
|
| /plan9/sys/src/cmd/auth/ |
| H A D | convbio.c | 40 a->user = malloc(cp - p + 1); in ordbio() 58 a->name = malloc(cp - p + 1); in ordbio() 71 a->dept = malloc(cp - p + 1); in ordbio() 88 a->email[ne] = malloc(cp - p + 1); in ordbio()
|
| /plan9/sys/src/cmd/tcs/font/ |
| H A D | main.c | 60 bits = (uchar *)malloc(nb); in main() 61 chars = (long *)malloc(sizeof(long)*nc); in main() 62 found = (int *)malloc(sizeof(found[0])*nc); in main()
|
| /plan9/sys/src/ape/cmd/diff/ |
| H A D | xmalloc.c | 33 VOID *malloc (); 52 p = malloc (n);
|
| /plan9/sys/src/ape/cmd/expr/ |
| H A D | expr.y | 70 char *malloc(); 139 rv = malloc(16); 195 rv = malloc(8); 207 strcpy(rv=malloc(8), ltoa((long)++i)); 217 strcpy(rv=malloc(8), ltoa((long)ematch(s, p))); in match() 219 rv = malloc(strlen(Mstring[0])+1); in match()
|
| /plan9/sys/src/libcomplete/ |
| H A D | complete.c | 74 name = malloc(n*sizeof(char*)); in complete() 75 mode = malloc(n*sizeof(ulong)); in complete() 76 c = malloc(sizeof(Completion) + len); in complete() 123 c->filename = malloc(nbytes); in complete()
|
| /plan9/sys/src/cmd/6l/ |
| H A D | compat.c | 7 malloc(ulong n) in malloc() function 33 p = malloc(n); in calloc()
|
| /plan9/sys/src/cmd/ql/ |
| H A D | compat.c | 7 malloc(ulong n) in malloc() function 33 p = malloc(n); in calloc()
|
| /plan9/sys/src/cmd/vl/ |
| H A D | compat.c | 7 malloc(ulong n) in malloc() function 33 p = malloc(n); in calloc()
|
| /plan9/sys/src/cmd/8l/ |
| H A D | compat.c | 7 malloc(ulong n) in malloc() function 33 p = malloc(n); in calloc()
|
| /plan9/sys/src/cmd/kl/ |
| H A D | compat.c | 7 malloc(ulong n) in malloc() function 33 p = malloc(n); in calloc()
|
| /plan9/sys/src/cmd/5l/ |
| H A D | compat.c | 7 malloc(ulong n) in malloc() function 33 p = malloc(n); in calloc()
|
| /plan9/sys/src/cmd/ |
| H A D | unlnfs.c | 51 sub = malloc(strlen(d) + 1 + strlen(dir[i].name) + 1); in renamedir() 75 p = malloc(strlen(d) + 1 + strlen(old) + 1); in rename() 105 n = malloc(sizeof(Name)); in readnames()
|
| /plan9/sys/src/cmd/htmlfmt/ |
| H A D | util.c | 13 p = malloc(n); in emalloc() 48 u = malloc(ns+nt+1); in estrstrdup() 70 u = malloc(ns+nsep+nt+1); in eappend()
|
| /plan9/sys/src/cmd/unix/drawterm/libsec/ |
| H A D | md5pickle.c | 11 p = malloc(m); in md5pickle() 26 s = malloc(sizeof(*s)); in md5unpickle()
|