Home
last modified time | relevance | path

Searched refs:emalloc (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/plan9/sys/src/cmd/hoc/
H A Dsymbol.c24 sp = emalloc(sizeof(Symbol)); in install()
25 sp->name = emalloc(strlen(s)+1); /* +1 for '\0' */ in install()
35 emalloc(unsigned n) /* check return from malloc */ in emalloc() function
50 f = emalloc(sizeof(Formal)); in formallist()
/plan9/acme/news/src/
H A Dutil.c8 emalloc(uint n) in emalloc() function
24 t = emalloc(strlen(s)+1); in estrdup()
34 u = emalloc(strlen(s)+strlen(t)+1); in estrstrdup()
45 u = emalloc(strlen(r)+strlen(s)+strlen(t)+1); in estrstrstrdup()
60 u = emalloc(strlen(s)+strlen(sep)+strlen(t)+1); in eappend()
/plan9/acme/bin/source/win/
H A Dutil.c8 emalloc(uint n) in emalloc() function
24 t = emalloc(strlen(s)+1); in estrdup()
34 u = emalloc(strlen(s)+strlen(t)+1); in estrstrdup()
47 u = emalloc(strlen(s)+strlen(sep)+strlen(t)+1); in eappend()
/plan9/acme/bin/source/acd/
H A Dutil.c4 emalloc(uint n) in emalloc() function
20 t = emalloc(strlen(s)+1); in estrdup()
30 u = emalloc(strlen(s)+strlen(t)+1); in estrstrdup()
44 u = emalloc(strlen(s)+strlen(sep)+strlen(t)+1); in eappend()
/plan9/acme/wiki/src/
H A Dutil.c4 emalloc(uint n) in emalloc() function
20 t = emalloc(strlen(s)+1); in estrdup()
30 u = emalloc(strlen(s)+strlen(t)+1); in estrstrdup()
44 u = emalloc(strlen(s)+strlen(sep)+strlen(t)+1); in eappend()
H A Dwiki.c41 p = emalloc(strlen(dir)+1+strlen(name)+1+1); in wikiname()
124 p = emalloc(strlen(w->arg)+8+1); in wikiget()
143 bin = emalloc(sizeof(*bin)); in wikiget()
210 p = emalloc(strlen(w->arg)+1+strlen(arg)+1); in wikiload()
376 t = emalloc(strlen(s)+1+na+1); in acmeevent()
399 buf = emalloc((eq->q1-eq->q0)*UTFmax+1); in acmeevent()
496 p = emalloc(strlen(arg)+2); in wikiopen()
519 w = emalloc(sizeof *w); in wikiopen()
536 w = emalloc(sizeof *w); in wikinew()
581 p = emalloc(strlen(w->arg)+10); in wikidiff()
[all …]
/plan9/sys/src/libsunrpc/
H A Dudp.c38 buf = emalloc(UdpMaxRead); in sunUdpRead()
42 msg = emalloc(sizeof(SunMsgUdp)); in sunUdpRead()
44 msg->msg.data = emalloc(n); in sunUdpRead()
64 buf = emalloc(UdpMaxRead); in sunUdpWrite()
99 arg = emalloc(sizeof(Arg)); in sunSrvUdp()
/plan9/acme/mail/src/
H A Dutil.c9 emalloc(uint n) in emalloc() function
36 t = emalloc(strlen(s)+1); in estrdup()
46 u = emalloc(strlen(s)+strlen(t)+1); in estrstrdup()
60 u = emalloc(strlen(s)+strlen(sep)+strlen(t)+1); in eappend()
/plan9/sys/src/cmd/
H A Dcalendar.c23 void *emalloc(unsigned int);
173 nd = emalloc(sizeof(Date)); in dates()
188 nd = emalloc(sizeof(Date)); in dates()
196 nd = emalloc(sizeof(Date)); in dates()
204 nd = emalloc(sizeof(Date)); in dates()
225 emalloc(unsigned int n) in emalloc() function
/plan9/sys/src/libsec/port/
H A Dthumb.c11 emalloc(int n) in emalloc() function
74 entry = (Thumbprint*)emalloc(sizeof(*entry)); in loadThumbprints()
89 crltab = emalloc(ThumbTab * sizeof(*table)); in initThumbprints()
92 table = emalloc(ThumbTab * sizeof(*table)); in initThumbprints()
/plan9/sys/src/cmd/unix/drawterm/libsec/
H A Dthumb.c11 emalloc(int n) in emalloc() function
74 entry = (Thumbprint*)emalloc(sizeof(*entry)); in loadThumbprints()
89 crltab = emalloc(ThumbTab * sizeof(*table)); in initThumbprints()
92 table = emalloc(ThumbTab * sizeof(*table)); in initThumbprints()
/plan9/sys/src/cmd/aux/
H A D8prefix.c48 void *emalloc(ulong);
91 obj = emalloc(nobj*sizeof obj[0]); in main()
191 emalloc(ulong n) in emalloc() function
221 s = emalloc(sizeof *s); in lookup()
222 s->name = emalloc(l + 1); in lookup()
239 obj = emalloc(sizeof *obj); in openobj()
246 obj->bp = emalloc(d->length); in openobj()
/plan9/sys/src/cmd/spin/
H A Dps_msc.c206 R = (int *) emalloc(TotSteps * sizeof(int)); in putprelude()
207 D = (int *) emalloc(TotSteps * sizeof(int)); in putprelude()
208 M = (short *) emalloc(TotSteps * sizeof(short)); in putprelude()
209 T = (short *) emalloc(TotSteps * sizeof(short)); in putprelude()
210 L = (char **) emalloc(TotSteps * sizeof(char *)); in putprelude()
211 I = (char **) emalloc(TotSteps * sizeof(char *)); in putprelude()
212 ProcLine = (char *) emalloc(1024 * sizeof(char)); in putprelude()
326 I[a] = emalloc((int) strlen(s)+1); in spitbox()
409 { char *tmp = emalloc((int) strlen(s)+1); in pstext()
H A Dpangen7.c176 s = (State_Stack *) emalloc(sizeof(State_Stack)); in push_dsts()
177 s->n = (int *) emalloc(nclaims * sizeof(int)); in push_dsts()
263 { g = (Guard *) emalloc(sizeof(Guard)); in state_body()
350 l = (Label *) emalloc(sizeof(Label)); in mk_accepting()
351 l->s = (Symbol *) emalloc(sizeof(Symbol)); in mk_accepting()
353 l->c = (Symbol *) emalloc(sizeof(Symbol)); in mk_accepting()
593 Ist = (int *) emalloc(sizeof(int) * nclaims); in sync_product()
594 Nacc = (int *) emalloc(sizeof(int) * nclaims); in sync_product()
595 Nst = (int *) emalloc(sizeof(int) * nclaims); in sync_product()
596 reached = (int **) emalloc(sizeof(int *) * nclaims); in sync_product()
[all …]
/plan9/sys/src/cmd/webfs/
H A Dutil.c23 emalloc(uint n) in emalloc() function
49 t = emalloc(e-s+1); in estredup()
69 t = emalloc(len); in estrmanydup()
/plan9/sys/src/cmd/sam/
H A Dstring.c10 p->s = emalloc(MINSIZE*RUNESIZE); in Strinit()
18 p->s = emalloc(MINSIZE*RUNESIZE); in Strinit0()
142 c = emalloc(s->n*UTFmax + 1); /* worst case UTFmax bytes per rune, plus NUL */ in Strtoc()
178 p = emalloc(sizeof(String)); in tmpcstr()
179 r = emalloc(n*RUNESIZE); in tmpcstr()
/plan9/sys/src/cmd/diff/
H A Ddiff.h9 #define MALLOC(t, n) ((t *)emalloc((n)*sizeof(t)))
16 void *emalloc(unsigned);
/plan9/sys/src/cmd/htmlroff/
H A Dutil.c4 emalloc(uint n) in emalloc() function
30 t = emalloc(sizeof(Rune)*(runestrlen(s)+1)); in erunestrdup()
113 l = emalloc(sizeof *l+(utflen(s)+1)*sizeof(Rune)); in L()
/plan9/sys/src/cmd/plumb/
H A Drules.c99 in = emalloc(sizeof(Input)); in pushinput()
106 in->fd = emalloc(sizeof(Biobuf)); in pushinput()
212 var->name = emalloc(n+1); in setvariable()
243 buf = emalloc(strlen(e->msg->wdir)+1+strlen(e->msg->data)+1); in filename()
465 rp = emalloc(sizeof(Rule)); in readrule()
538 rs = emalloc(sizeof(Ruleset)); in readruleset()
539 rs->pat = emalloc(sizeof(Rule*)); in readruleset()
540 rs->act = emalloc(sizeof(Rule*)); in readruleset()
621 rules = emalloc(sizeof(Ruleset*)); in readrules()
651 s = emalloc(strlen(objects[r->obj])+1+strlen(verbs[r->verb])+1+strlen(r->arg)+1+1); in printpat()
[all …]
/plan9/sys/src/cmd/5i/
H A D5i.c63 s->table = emalloc(((s->end-s->base)/BY2PG)*sizeof(uchar*)); in initmap()
65 iprof = emalloc(((s->end-s->base)/PROFGRAN)*sizeof(long)); in initmap()
75 s->table = emalloc(((s->end-s->base)/BY2PG)*sizeof(uchar*)); in initmap()
81 s->table = emalloc(((s->end-s->base)/BY2PG)*sizeof(uchar*)); in initmap()
87 s->table = emalloc(((s->end-s->base)/BY2PG)*sizeof(uchar*)); in initmap()
254 emalloc(ulong size) in emalloc() function
/plan9/sys/src/cmd/ssh1/
H A Dutil.c41 emalloc(long n) in emalloc() function
165 t = emalloc(strlen(s)+1); in trim()
171 f = emalloc((n+1)*sizeof(f[0])); in trim()
228 net = emalloc(p-name+1); in setaliases()
235 c->host = emalloc(strlen(name)+1); in setaliases()
/plan9/sys/src/cmd/snap/
H A Dread.c125 d = emalloc(sizeof(*d) + len); in readdata()
145 s = emalloc(sizeof *s); in readseg()
156 pp = emalloc(sizeof(*pp)*npg); in readseg()
218 p = emalloc(sizeof(*p)); in readsnap()
237 p->seg = emalloc(n*sizeof(*p->seg)); in readsnap()
/plan9/sys/src/cmd/jpg/
H A Dtoico.c60 void* emalloc(int);
153 icon = emalloc(sizeof(Icon)); in readicon()
193 emalloc(int len) in emalloc() function
234 data = emalloc(ndata); in mkxorand()
287 icon->xor = emalloc(xorrl * icon->h); in mkxorand()
288 icon->and = emalloc(andrl * icon->h); in mkxorand()
/plan9/sys/src/cmd/ip/snoopy/
H A Ddns.c306 emalloc(int n) in emalloc() function
332 dn = emalloc(sizeof *dn); in dnlookup()
418 rp = emalloc(sizeof(*rp)); in rralloc()
425 rp->soa = emalloc(sizeof(*rp->soa)); in rralloc()
430 rp->srv = emalloc(sizeof(*rp->srv)); in rralloc()
434 rp->key = emalloc(sizeof(*rp->key)); in rralloc()
438 rp->cert = emalloc(sizeof(*rp->cert)); in rralloc()
442 rp->sig = emalloc(sizeof(*rp->sig)); in rralloc()
446 rp->null = emalloc(sizeof(*rp->null)); in rralloc()
/plan9/sys/src/cmd/wikifs/
H A Dutil.c20 emalloc(ulong n) in emalloc() function
41 t = emalloc(l); in estrdup()
56 t = emalloc(l+1); in estrdupn()

12345678910>>...14