Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 504) sorted by relevance

12345678910>>...21

/plan9/sys/src/cmd/mk/
H A Dbufblock.c16 p->start = Malloc(QUANTA*sizeof(*p->start)); in newbuf()
17 p->end = p->start+QUANTA; in newbuf()
19 p->current = p->start; in newbuf()
20 *p->start = 0; in newbuf()
39 n = p->end-p->start+QUANTA; in growbuf()
42 if (f->end-f->start >= n) { in growbuf()
43 memcpy(f->start, p->start, p->end-p->start); in growbuf()
44 cp = f->start; in growbuf()
45 f->start = p->start; in growbuf()
46 p->start = cp; in growbuf()
[all …]
H A Dlex.c15 buf->current=buf->start; in assline()
22 if (buf->current != buf->start) { in assline()
49 if (buf->current != buf->start) { in assline()
61 return *buf->start != 0; in assline()
71 int start; in bquote() local
83 start = buf->current-buf->start; in bquote()
88 buf->current = buf->start+start; in bquote()
/plan9/sys/src/libc/fmt/
H A Dvsmprint.c11 if(f->start == nil) in fmtStrFlush()
15 s = f->start; in fmtStrFlush()
16 f->start = realloc(s, n); in fmtStrFlush()
17 if(f->start == nil){ in fmtStrFlush()
25 f->to = (char*)f->start + ((char*)f->to - s); in fmtStrFlush()
26 f->stop = (char*)f->start + n - 1; in fmtStrFlush()
38 f->start = malloc(n); in fmtstrinit()
39 if(f->start == nil) in fmtstrinit()
41 setmalloctag(f->start, getcallerpc(&f)); in fmtstrinit()
42 f->to = f->start; in fmtstrinit()
[all …]
H A Drunevsmprint.c11 if(f->start == nil) in runeFmtStrFlush()
15 s = f->start; in runeFmtStrFlush()
16 f->start = realloc(s, sizeof(Rune)*n); in runeFmtStrFlush()
17 if(f->start == nil){ in runeFmtStrFlush()
25 f->to = (Rune*)f->start + ((Rune*)f->to - s); in runeFmtStrFlush()
26 f->stop = (Rune*)f->start + n - 1; in runeFmtStrFlush()
38 f->start = malloc(sizeof(Rune)*n); in runefmtstrinit()
39 if(f->start == nil) in runefmtstrinit()
41 setmalloctag(f->start, getcallerpc(&f)); in runefmtstrinit()
42 f->to = f->start; in runefmtstrinit()
[all …]
/plan9/sys/src/ape/lib/fmt/
H A Dfmtstr.c30 s = (char*)f->start; in fmtStrFlush()
31 f->start = realloc(s, n); in fmtStrFlush()
32 if(f->start == nil){ in fmtStrFlush()
33 f->start = s; in fmtStrFlush()
36 f->to = (char*)f->start + ((char*)f->to - s); in fmtStrFlush()
37 f->stop = (char*)f->start + n - 1; in fmtStrFlush()
48 f->start = malloc(n); in fmtstrinit()
49 if(f->start == nil) in fmtstrinit()
51 f->to = f->start; in fmtstrinit()
52 f->stop = (char*)f->start + n - 1; in fmtstrinit()
[all …]
H A Drunefmtstr.c30 s = (Rune*)f->start; in runeFmtStrFlush()
31 f->start = realloc(s, sizeof(Rune)*n); in runeFmtStrFlush()
32 if(f->start == nil){ in runeFmtStrFlush()
33 f->start = s; in runeFmtStrFlush()
36 f->to = (Rune*)f->start + ((Rune*)f->to - s); in runeFmtStrFlush()
37 f->stop = (Rune*)f->start + n - 1; in runeFmtStrFlush()
48 f->start = malloc(sizeof(Rune)*n); in runefmtstrinit()
49 if(f->start == nil) in runefmtstrinit()
51 f->to = f->start; in runefmtstrinit()
52 f->stop = (Rune*)f->start + n - 1; in runefmtstrinit()
[all …]
/plan9/sys/src/cmd/unix/drawterm/libc/
H A Drunevsmprint.c11 if(f->start == nil) in runeFmtStrFlush()
15 s = (Rune*)f->start; in runeFmtStrFlush()
16 f->start = realloc(s, sizeof(Rune)*n); in runeFmtStrFlush()
17 if(f->start == nil){ in runeFmtStrFlush()
25 f->to = (Rune*)f->start + ((Rune*)f->to - s); in runeFmtStrFlush()
26 f->stop = (Rune*)f->start + n - 1; in runeFmtStrFlush()
38 f->start = malloc(sizeof(Rune)*n); in runefmtstrinit()
39 if(f->start == nil) in runefmtstrinit()
41 f->to = f->start; in runefmtstrinit()
42 f->stop = (Rune*)f->start + n - 1; in runefmtstrinit()
[all …]
H A Dvsmprint.c11 if(f->start == nil) in fmtStrFlush()
15 s = (char*)f->start; in fmtStrFlush()
16 f->start = realloc(s, n); in fmtStrFlush()
17 if(f->start == nil){ in fmtStrFlush()
25 f->to = (char*)f->start + ((char*)f->to - s); in fmtStrFlush()
26 f->stop = (char*)f->start + n - 1; in fmtStrFlush()
38 f->start = malloc(n); in fmtstrinit()
39 if(f->start == nil) in fmtstrinit()
41 f->to = f->start; in fmtstrinit()
42 f->stop = (char*)f->start + n - 1; in fmtstrinit()
[all …]
/plan9/sys/src/cmd/cfs/
H A Dfile.c17 fmerge(Dptr *p, char *to, char *from, int start, int len) in fmerge() argument
21 end = start + len; in fmerge()
22 memmove(to+start, from, end-start); in fmerge()
27 if(start>p->end || p->start>end){ in fmerge()
31 p->start = start; in fmerge()
37 if(start < p->start) in fmerge()
38 p->start = start; in fmerge()
137 p->start = p->end = 0; in fbwrite()
208 if(doff>=p->start && doff<p->end) in fpget()
233 if(p->fbno==fbno && p->bno!=Notabno && p->start<p->end) in fpget()
[all …]
/plan9/sys/src/cmd/postscript/tr2post/
H A Dps_include.c11 typedef struct {long start, end;} Section; member
16 if (s->end <= s->start) in copy()
18 Bseek(fin, s->start, 0); in copy()
85 prolog.start = prolog.end = 0; in ps_include()
86 page.start = page.end = 0; in ps_include()
87 trailer.start = 0; in ps_include()
96 page.start = Bseek(fin, 0L, 1); in ps_include()
100 else if (foundpage && page.end <= page.start) in ps_include()
109 page.start = Bseek(fin, 0L, 1); in ps_include()
121 prolog.end = page.start = Bseek(fin, 0L, 1); in ps_include()
[all …]
/plan9/sys/src/cmd/gs/src/
H A Dgxfillts.h70 le.start.x = flp->start.x - fo->adjust_left; in TEMPLATE_slant_into_trapezoids()
72 re.start.x = alp->start.x + fo->adjust_right; in TEMPLATE_slant_into_trapezoids()
78 if (le.end.x <= le.start.x) { in TEMPLATE_slant_into_trapezoids()
79 if (re.end.x >= re.start.x) { /* Top wider than bottom. */ in TEMPLATE_slant_into_trapezoids()
80 le.start.y = flp->start.y - fo->adjust_below; in TEMPLATE_slant_into_trapezoids()
82 re.start.y = alp->start.y - fo->adjust_below; in TEMPLATE_slant_into_trapezoids()
99 if (re.end.x <= re.start.x) { /* Bottom wider than top. */ in TEMPLATE_slant_into_trapezoids()
111 le.start.y = flp->start.y + fo->adjust_above; in TEMPLATE_slant_into_trapezoids()
113 re.start.y = alp->start.y + fo->adjust_above; in TEMPLATE_slant_into_trapezoids()
H A Dgsdsrc.c53 data_source_access_string(const gs_data_source_t * psrc, ulong start, in data_source_access_string() argument
56 const byte *p = psrc->data.str.data + start; in data_source_access_string()
67 data_source_access_bytes(const gs_data_source_t * psrc, ulong start, in data_source_access_bytes() argument
70 const byte *p = psrc->data.str.data + start; in data_source_access_bytes()
82 data_source_access_stream(const gs_data_source_t * psrc, ulong start, in data_source_access_stream() argument
88 if (start >= s->position && in data_source_access_stream()
89 (p = start - s->position + s->cbuf) + length <= in data_source_access_stream()
98 int code = sseek(s, start); in data_source_access_stream()
H A Dgsdsrc.h51 int proc(const gs_data_source_t *psrc, ulong start, uint length,\
73 #define data_source_access_only(psrc, start, length, buf, ptr)\ argument
74 (*(psrc)->access)(psrc, (ulong)(start), length, buf, ptr)
75 #define data_source_access(psrc, start, length, buf, ptr)\ argument
77 int code_ = data_source_access_only(psrc, start, length, buf, ptr);\
80 #define data_source_copy_only(psrc, start, length, buf)\ argument
81 data_source_access_only(psrc, start, length, buf, (const byte **)0)
82 #define data_source_copy(psrc, start, length, buf)\ argument
83 data_source_access(psrc, start, length, buf, (const byte **)0)
/plan9/sys/src/cmd/upas/bayes/
H A Ddump.c17 pp->start[0]-pp->inst, in dump()
18 pp->start[1]-pp->inst, in dump()
19 pp->start[2]-pp->inst, in dump()
20 pp->start[3]-pp->inst); in dump()
28 if(l->c[j].start > 1) in dump()
29 print("<bad start %d>\n", l->c[j].start); in dump()
31 print("%C%s", l->c[j].start&0xFFFF, (l->c[j].start&0x10000) ? "$" : ""); in dump()
34 print("%C%s", (l->c[j+1].start&0xFFFF)-1, (l->c[j+1].start&0x10000) ? "$" : ""); in dump()
/plan9/sys/src/ape/lib/ap/gen/
H A Dstrftime.c132 strval(char *start, char *end, char **array, int index, int alen) in strval() argument
137 *start = '?'; in strval()
138 return start+1; in strval()
141 if(n > end-start) in strval()
142 n = end-start; in strval()
143 memcpy(start, array[index], n); in strval()
144 return start+n; in strval()
148 dval(char *start, char *end, int val, int width) in dval() argument
152 if(val<0 || end-start<width){ in dval()
153 *start = '?'; in dval()
[all …]
/plan9/sys/src/cmd/
H A Dstrings.c55 long posn, start; in stringit() local
66 start = 0; in stringit()
70 if(start == 0) in stringit()
71 start = posn; in stringit()
75 Bprint(&fout, "%8ld: %S ...\n", start, buf); in stringit()
76 start = 0; in stringit()
82 Bprint(&fout, "%8ld: %S\n", start, buf); in stringit()
84 start = 0; in stringit()
92 Bprint(&fout, "%8ld: %S\n", start, buf); in stringit()
/plan9/sys/src/9/boot/
H A Dparts.c38 uvlong start; member
59 sdaddpart(SDunit* unit, char* name, uvlong start, uvlong end) in sdaddpart() argument
65 print("add %d %s %s %lld %lld\n", unit->npart, unit->name, name, start, end); in sdaddpart()
80 if(pp->start == start && pp->end == end){ in sdaddpart()
99 if(partno == -1 || start > end || end > unit->sectors){ in sdaddpart()
101 unit->name, name, start, end, unit->sectors, in sdaddpart()
106 pp->start = start; in sdaddpart()
113 if (fprint(unit->ctl, "part %s %lld %lld\n", name, start, end) < 0) in sdaddpart()
116 dprint("part %s %lld %lld\n", name, start, end); in sdaddpart()
131 bno = off/secsize + pp->start; in sdread()
[all …]
/plan9/sys/src/cmd/aux/
H A Dconswdir.c80 int start, state; in process() local
82 start = 0; in process()
88 start = p-buf; in process()
112 memmove(path, buf+start+3, p - (buf+start+3)); in process()
113 path[p-(buf+start+3)] = 0; in process()
115 memmove(buf+start, p, n-(p-buf)); in process()
116 n -= p-(buf+start); in process()
117 p = buf+start; in process()
119 start = 0; in process()
126 if(state == None || p-(buf+start) >= 2048) in process()
[all …]
/plan9/sys/src/cmd/disk/prep/
H A Dedit.c79 if(p->start < edit->part[i]->end && edit->part[i]->start < p->end) { in addpart()
81 p->name, p->start, p->end, in addpart()
82 edit->part[i]->name, edit->part[i]->start, edit->part[i]->end); in addpart()
91 for(; i > 0 && p->start < edit->part[i-1]->start; i--) { in addpart()
144 vlong start, end, maxend; in editadd() local
160 if(err = parseexpr(q, edit->dot, edit->end, edit->end, &start)) in editadd()
163 if(start < 0 || start >= edit->end) in editadd()
167 if(edit->part[i]->start <= start && start < edit->part[i]->end) { in editadd()
175 if(start < edit->part[i]->start && edit->part[i]->start < maxend) in editadd()
176 maxend = edit->part[i]->start; in editadd()
[all …]
/plan9/sys/src/9/pcboot/
H A Dparts.c46 psdaddpart(PSDunit* unit, char* name, uvlong start, uvlong end) in psdaddpart() argument
50 sdaddpart(unit, name, start, end); in psdaddpart()
53 len = snprint(buf, sizeof buf, "part %s %lld %lld\n", name, start, end); in psdaddpart()
59 print("part %s %lld %lld\n", name, start, end); in psdaddpart()
74 bno = off/secsize + pp->start; in psdread()
75 nb = (off+len+secsize-1)/secsize + pp->start - bno; in psdread()
97 unit->secsize, (vlong)part->start*unit->secsize+off); in sdreadblk()
105 (vlong)part->start*unit->secsize+off); in sdreadblk()
121 uvlong start, end; in oldp9part() local
132 pp->start = unit->sectors - 2; in oldp9part()
[all …]
/plan9/sys/src/libhttpd/
H A Dhio.c18 h->start = h->buf + 16; /* leave space for chunk length */ in hinit()
19 h->stop = h->pos = h->start; in hinit()
24 h->stop = h->start + Hsize; in hinit()
45 if(p < h->start) in hgetc()
46 p = h->start; in hgetc()
59 if(h->pos < h->start || h->state != Hread){ in hungetc()
82 if(save && (save < h->start || save > h->stop) in hreadbuf()
95 memmove(h->start, save, cpy); in hreadbuf()
97 h->seek += h->stop - h->start - cpy; in hreadbuf()
98 h->pos = h->start + dpos; in hreadbuf()
[all …]
/plan9/sys/src/9/mtx/
H A Ddevarch.c14 ulong start; member
125 i = m->start - port; in ioalloc()
143 if(m->start >= port+size) in ioalloc()
157 m->start = port; in ioalloc()
166 return m->start; in ioalloc()
176 if((*l)->start == port){ in iofree()
183 if((*l)->start > port) in iofree()
191 iounused(int start, int end) in iounused() argument
196 if(start >= m->start && start < m->end in iounused()
197 || start <= m->start && end > m->start) in iounused()
[all …]
/plan9/sys/src/lib9p/
H A Ddirread.c11 int start; in dirread9p() local
17 start = 0; in dirread9p()
19 start = r->fid->dirindex; in dirread9p()
26 if((*gen)(start, &d, aux) < 0) in dirread9p()
36 start++; in dirread9p()
38 r->fid->dirindex = start; in dirread9p()
/plan9/sys/src/cmd/ip/imap4d/
H A Dfetch.c204 ulong n, start, stop, pos; in fetchBody() local
234 start = p.start; in fetchBody()
235 if(start < m->head.size){ in fetchBody()
239 Bwrite(&bout, &m->head.buf[start], stop - start); in fetchBody()
240 start = 0; in fetchBody()
247 start -= m->head.size; in fetchBody()
258 start = p.start; in fetchBody()
288 if(pos < start){ in fetchBody()
289 if(pos + n <= start){ in fetchBody()
293 s += start - pos; in fetchBody()
[all …]
/plan9/sys/src/cmd/ip/
H A Dhogports.c19 int start, end; in hogrange() local
32 start = atoi(sr); in hogrange()
34 if(end < start) in hogrange()
37 for(; start <= end; start++) in hogrange()
38 hogport(str, start); in hogrange()

12345678910>>...21