Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/plan9/sys/src/libndb/
H A Dndbparse.c30 Ndbtuple *first, *last; in ndbparse() local
33 first = last = 0; in ndbparse()
40 if(first && !ISWHITE(*line) && *line != '#'){ in ndbparse()
48 if(first) in ndbparse()
51 first = t; in ndbparse()
56 ndbsetmalloctag(first, getcallerpc(&db)); in ndbparse()
57 return first; in ndbparse()
H A Dndbgetipaddr.c12 Ndbtuple *it, *first, *last, *next; in ndbgetipaddr() local
30 first = last = nil; in ndbgetipaddr()
34 if(first == nil) in ndbgetipaddr()
35 first = it; in ndbgetipaddr()
39 it->line = first; in ndbgetipaddr()
47 ndbsetmalloctag(first, getcallerpc(&db)); in ndbgetipaddr()
48 return first; in ndbgetipaddr()
H A Dndbaux.c73 Ndbtuple *first, *last; in _ndbparseline() local
75 first = last = 0; in _ndbparseline()
81 if(first){ in _ndbparseline()
85 first = t; in _ndbparseline()
91 if(first) in _ndbparseline()
92 last->line = first; in _ndbparseline()
93 ndbsetmalloctag(first, getcallerpc(&cp)); in _ndbparseline()
94 return first; in _ndbparseline()
H A Dcsgetval.c16 Ndbtuple *t, *first, *last; in csgetvalue() local
42 first = last = 0; in csgetvalue()
54 if(first) in csgetvalue()
57 first = t; in csgetvalue()
76 ndbfree(first); in csgetvalue()
81 setmalloctag(first, getcallerpc(&netroot)); in csgetvalue()
82 *pp = first; in csgetvalue()
84 ndbfree(first); in csgetvalue()
H A Dcsipinfo.c16 Ndbtuple *t, *first, *last; in csipinfo() local
44 first = last = 0; in csipinfo()
55 if(first) in csipinfo()
58 first = t; in csipinfo()
66 ndbsetmalloctag(first, getcallerpc(&netroot)); in csipinfo()
67 return first; in csipinfo()
H A Dndbopen.c21 Ndb *db, *first, *last; in ndbopen() local
30 first = last = db; in ndbopen()
40 if(first->next == 0) in ndbopen()
42 if(strcmp(first->file, file) == 0){ in ndbopen()
43 db = first; in ndbopen()
44 first = first->next; in ndbopen()
58 return first; in ndbopen()
H A Ddnsquery.c121 Ndbtuple *t, *first, *last; in doquery() local
130 first = last = nil; in doquery()
148 if(first) in doquery()
151 first = t; in doquery()
159 ndbsetmalloctag(first, getcallerpc(&fd)); in doquery()
160 return first; in doquery()
/plan9/sys/src/cmd/gs/src/
H A Dgsnotify.c32 nlist->first = 0; in gs_notify_init()
49 nreg->next = nlist->first; in gs_notify_register()
50 nlist->first = nreg; in gs_notify_register()
68 gs_notify_registration_t **prev = &nlist->first; in gs_notify_unregister_calling()
102 for (next = nlist->first; (cur = next) != 0;) { in gs_notify_all()
119 while (nlist->first) { in gs_notify_release()
120 gs_notify_registration_t *next = nlist->first->next; in gs_notify_release()
122 gs_free_object(mem, nlist->first, "gs_notify_release"); in gs_notify_release()
123 nlist->first = next; in gs_notify_release()
H A Dsmtf.c92 byte first; in s_MTFD_process() local
106 *++q = first = *bp; in s_MTFD_process()
133 *++q = first = ss->prev.b[7]; in s_MTFD_process()
137 *++q = first = ss->prev.b[6]; in s_MTFD_process()
141 *++q = first = ss->prev.b[5]; in s_MTFD_process()
145 *++q = first = ss->prev.b[4]; in s_MTFD_process()
150 *++q = first = v3; in s_MTFD_process()
151 m3: v3 = v2, v2 = v1, v1 = v0, v0 = first; in s_MTFD_process()
154 *++q = first = v2; in s_MTFD_process()
155 v2 = v1, v1 = v0, v0 = first; in s_MTFD_process()
[all …]
/plan9/sys/src/cmd/unix/drawterm/kern/
H A Dqlock.c7 queue(Proc **first, Proc **last) in queue() argument
13 *first = up; in queue()
21 dequeue(Proc **first, Proc **last) in dequeue() argument
25 t = *first; in dequeue()
28 *first = t->qnext; in dequeue()
29 if(*first == 0) in dequeue()
50 queue((Proc**)&q->first, (Proc**)&q->last); in qlock()
78 p = dequeue((Proc**)&q->first, (Proc**)&q->last); in qunlock()
/plan9/sys/src/ape/lib/ap/plan9/
H A Dprofile.c183 _cycles((uvlong*)&_tos->prof.first->time); in _profdump()
184 _tos->prof.first->time = _tos->prof.first->time + _tos->pcycles; in _profdump()
187 _cycles((uvlong*)&_tos->prof.first->time); in _profdump()
188 _tos->prof.first->time = _tos->prof.first->time - _tos->kcycles; in _profdump()
191 _cycles((uvlong*)&_tos->prof.first->time); in _profdump()
194 _tos->prof.first->time = _tos->clock; in _profdump()
197 vp = (char*)_tos->prof.first; in _profdump()
199 for(p = _tos->prof.first; p <= _tos->prof.next; p++) { in _profdump()
206 n = p->down - _tos->prof.first; in _profdump()
215 n = p->link - _tos->prof.first; in _profdump()
[all …]
/plan9/sys/src/libc/port/
H A Dprofile.c140 cycles((uvlong*)&_tos->prof.first->time); in _profdump()
141 _tos->prof.first->time = _tos->prof.first->time + _tos->pcycles; in _profdump()
144 cycles((uvlong*)&_tos->prof.first->time); in _profdump()
145 _tos->prof.first->time = _tos->prof.first->time - _tos->kcycles; in _profdump()
148 cycles((uvlong*)&_tos->prof.first->time); in _profdump()
151 _tos->prof.first->time = _tos->clock; in _profdump()
154 vp = (char*)_tos->prof.first; in _profdump()
156 for(p = _tos->prof.first; p <= _tos->prof.next; p++) { in _profdump()
163 n = p->down - _tos->prof.first; in _profdump()
172 n = p->link - _tos->prof.first; in _profdump()
[all …]
/plan9/sys/src/cmd/ip/
H A Dglob.c50 gl->first = globnew(); in globlistnew()
51 gl->first->glob = s_copy(x); in globlistnew()
52 gl->l = &gl->first->next; in globlistnew()
61 globfree(gl->first); in globlistfree()
130 inlist = gl->first; in globnext()
131 gl->first = nil; in globnext()
132 gl->l = &gl->first; in globnext()
182 if(gl->first != nil) in globnext()
192 if(gl->first == nil) in globiter()
194 g = gl->first; in globiter()
[all …]
/plan9/sys/src/games/mp3enc/
H A Dportableio.c126 int first, second, result; in Read16BitsLowHigh() local
128 first = 0xff & getc(fp); in Read16BitsLowHigh()
131 result = (second << 8) + first; in Read16BitsLowHigh()
155 int first, second, result; in Read16BitsHighLow() local
161 first = 0xff & getc(fp); in Read16BitsHighLow()
169 result = (first << 8) + second; in Read16BitsHighLow()
227 int first, second, third; in Read24BitsHighLow() local
230 first = 0xff & getc(fp); in Read24BitsHighLow()
234 result = (first << 16) + (second << 8) + third; in Read24BitsHighLow()
260 int first, second, result; in Read32Bits() local
[all …]
/plan9/sys/src/liboventi/
H A Dpacket.c55 p->first = nil; in packetAlloc()
72 for(f=p->first; f!=nil; f=ff) { in packetFree()
76 p->first = nil; in packetFree()
104 for(f=p->first; offset >= FRAGSIZE(f); f=f->next) in packetDup()
110 pp->first = ff; in packetDup()
150 for(f=p->first; n > 0 && n >= FRAGSIZE(f); f=f->next) { in packetSplit()
167 pp->first = p->first; in packetSplit()
169 p->first = f; in packetSplit()
202 for(f=p->first; f != nil; f=ff) { in packetTrim()
206 p->first = p->last = nil; in packetTrim()
[all …]
/plan9/sys/src/libventi/
H A Dpacket.c59 Frag *first; member
124 p->first = nil; in packetalloc()
144 for(f=p->first; f!=nil; f=ff) { in packetfree()
148 p->first = (void*)0xDeadBeef; in packetfree()
180 for(f=p->first; offset >= FRAGSIZE(f); f=f->next) in packetdup()
186 pp->first = ff; in packetdup()
231 for(f=p->first; n > 0 && n >= FRAGSIZE(f); f=f->next) { in packetsplit()
249 pp->first = p->first; in packetsplit()
252 p->first = f; in packetsplit()
289 for(f=p->first; f != nil; f=ff) { in packettrim()
[all …]
/plan9/sys/src/cmd/upas/filterkit/
H A Dreadaddrs.c73 Addr *first; in readaddrs() local
76 first = a; in readaddrs()
77 for(l = &first; *l != nil; l = &(*l)->next) in readaddrs()
83 return first; in readaddrs()
87 return first; in readaddrs()
96 return first; in readaddrs()
/plan9/sys/src/cmd/map/libmap/
H A Dhoming.c7 int first; variable
60 first = 1; in mecca()
80 first = 1; in homing()
90 if(first) { in hlimb()
93 first = 0; in hlimb()
109 int ret = !first; in mlimb()
112 if(first) { in mlimb()
114 first = 0; in mlimb()
H A Dorthographic.c23 static first = 1; in olimb()
24 if(first) { in olimb()
27 first = 0; in olimb()
33 first = 1; in olimb()
/plan9/sys/src/cmd/auth/
H A Duniq.c26 Who *first, *last, *w, *nw, **l; in main() local
33 last = first = 0; in main()
48 for(nw = first; nw; nw = nw->next){ in main()
67 if(first == 0) in main()
68 first = w; in main()
77 for(i = 0, nw = first; nw; nw = nw->next, i++) in main()
/plan9/sys/src/cmd/cwfs/
H A Dmworm.c12 for(x=d->cat.first; x; x=x->link) { in mcatinit()
19 for(x=d->cat.first; x; x=x->link) { in mcatinit()
32 for(x=d->cat.first; x; x=x->link) { in mcatsize()
50 for(x=d->cat.first; x; x=x->link) { in mcatread()
72 for(x=d->cat.first; x; x=x->link) { in mcatwrite()
96 for(x=d->cat.first; x; x=x->link) in mlevinit()
109 for(x=d->cat.first; x; x=x->link) { in mlevsize()
210 for(x=d->cat.first; x; x=x->link) in mirrinit()
223 for(x=d->cat.first; x; x=x->link) { in mirrsize()
241 if (d->cat.first == nil) { in mirrread()
[all …]
/plan9/sys/src/cmd/faces/
H A Dmain.c63 int first, last; /* first and last visible face; last is first invisible */ variable
256 if(i<first || i>=last) in drawface()
258 r = facerect(i-first); in drawface()
293 last = first+nacross*ndown; in setlast()
310 draw(screen, leftr, first>0? blue : bgrnd, left, leftright.min); in drawarrows()
324 if(first != 0){ in addface()
325 first = 0; in addface()
398 if(j < first) in delface()
399 first--; in delface()
403 x = (j-first)%nx; in delface()
[all …]
/plan9/sys/src/libregexp/
H A Dregcomp.c15 Reinst* first; member
134 andp->first = f; in pushand()
188 inst1->next = op1->first; in evaluntil()
198 inst1->right = op1->first; in evaluntil()
199 inst1->left = op2->first; in evaluntil()
205 op1->last->next = op2->first; in evaluntil()
206 pushand(op1->first, op2->last); in evaluntil()
212 inst1->right = op2->first; in evaluntil()
219 inst1->right = op2->first; in evaluntil()
220 pushand(op2->first, inst1); in evaluntil()
[all …]
/plan9/sys/src/cmd/upas/bayes/
H A Dregcomp.c18 Reinst* first; member
131 andp->first = f; in pushand()
185 inst1->next = op1->first; in evaluntil()
195 inst1->right = op1->first; in evaluntil()
196 inst1->left = op2->first; in evaluntil()
202 op1->last->next = op2->first; in evaluntil()
203 pushand(op1->first, op2->last); in evaluntil()
209 inst1->right = op2->first; in evaluntil()
216 inst1->right = op2->first; in evaluntil()
217 pushand(op2->first, inst1); in evaluntil()
[all …]
/plan9/sys/src/ape/lib/regexp/
H A Dregcomp.c17 Reinst* first; member
130 andp->first = f; in pushand()
184 inst1->l.next = op1->first; in evaluntil()
194 inst1->r.right = op1->first; in evaluntil()
195 inst1->l.left = op2->first; in evaluntil()
201 op1->last->l.next = op2->first; in evaluntil()
202 pushand(op1->first, op2->last); in evaluntil()
208 inst1->r.right = op2->first; in evaluntil()
215 inst1->r.right = op2->first; in evaluntil()
216 pushand(op2->first, inst1); in evaluntil()
[all …]

12345678910>>...14