Home
last modified time | relevance | path

Searched refs:curoff (Results 1 – 18 of 18) sorted by relevance

/netbsd-src/lib/libc/stdio/
H A Dfseeko.c66 off_t target, curoff; in __weak_alias() local
102 curoff = fp->_offset; in __weak_alias()
104 curoff = (*seekfn)(fp->_cookie, (off_t)0, SEEK_CUR); in __weak_alias()
105 if (curoff == POS_ERR) { in __weak_alias()
111 curoff -= fp->_r; in __weak_alias()
113 curoff -= fp->_ur; in __weak_alias()
115 curoff += fp->_p - fp->_bf._base; in __weak_alias()
117 offset += curoff; in __weak_alias()
135 curoff = 0; /* XXX just to keep gcc quiet */ in __weak_alias()
182 curoff = fp->_offset; in __weak_alias()
[all …]
/netbsd-src/external/bsd/nvi/dist/vi/
H A Dvs_relative.c107 size_t chlen, cno, curoff, last = 0, len, scno; in vs_columns() local
142 curoff = 0; in vs_columns()
156 curoff += chlen; \ in vs_columns()
157 if (!leftright && curoff >= sp->cols) { \ in vs_columns()
159 curoff = 0; \ in vs_columns()
162 curoff -= sp->cols; \ in vs_columns()
171 chlen = CHLEN(curoff); in vs_columns()
191 curoff += chlen; in vs_columns()
192 if (!leftright && curoff >= sp->cols) { in vs_columns()
193 if (curoff == sp->cols) in vs_columns()
[all …]
/netbsd-src/lib/libpuffs/
H A Drequests.c64 size_t howmuch, winlen, curoff; in puffs__fsframe_read() local
70 curoff = puffs_framebuf_telloff(pb); in puffs__fsframe_read()
71 if (curoff < sizeof(struct putter_hdr)) { in puffs__fsframe_read()
72 howmuch = sizeof(struct putter_hdr) - curoff; in puffs__fsframe_read()
77 howmuch = phdr.pth_framelen - curoff; in puffs__fsframe_read()
87 curoff = puffs_framebuf_telloff(pb); in puffs__fsframe_read()
88 if (puffs_framebuf_getwindow(pb, curoff, &win, &winlen) == -1) in puffs__fsframe_read()
100 puffs_framebuf_seekset(pb, curoff + n); in puffs__fsframe_read()
123 size_t winlen, howmuch, curoff; in puffs__fsframe_write() local
158 curoff = puffs_framebuf_telloff(pb); in puffs__fsframe_write()
[all …]
/netbsd-src/sys/fs/hfs/
H A Dhfs_subr.c293 uint64_t curoff; /* relative to 'start' variable */ in hfs_pread() local
303 curoff = 0; in hfs_pread()
313 while (start + curoff < off + len) in hfs_pread()
320 error = bread(vp, (start + curoff) / DEV_BSIZE,/* no rounding involved*/ in hfs_pread()
321 RBSZ(min(len - curoff + (off - start), MAXBSIZE), secsz), in hfs_pread()
325 memcpy((uint8_t*)buf + curoff, (uint8_t*)bp->b_data + in hfs_pread()
326 (off - start), min(len - curoff, MAXBSIZE - (off - start))); in hfs_pread()
333 curoff += MAXBSIZE; in hfs_pread()
/netbsd-src/usr.sbin/puffs/mount_9p/
H A Dsubr.c125 off_t curoff = 0; in getdfwithoffset() local
129 off_t advance = wantoff - curoff; in getdfwithoffset()
135 p9pbuf_put_8(pb, curoff); in getdfwithoffset()
156 curoff += count; in getdfwithoffset()
165 dfp->seekoff = curoff; in getdfwithoffset()
H A Dnineproto.c330 int startoff, curoff; in proto_make_stat() local
385 curoff = puffs_framebuf_telloff(pb); in proto_make_stat()
387 p9pbuf_put_2(pb, curoff-(startoff+2)); /* stat[n] size */ in proto_make_stat()
388 p9pbuf_put_2(pb, curoff-(startoff+4)); /* size[2] stat */ in proto_make_stat()
390 puffs_framebuf_seekset(pb, curoff); in proto_make_stat()
/netbsd-src/sys/uvm/
H A Duvm_km.c458 voff_t curoff, nextoff; in uvm_km_pgremove()
468 for (curoff = start; curoff < end; curoff = nextoff) { in uvm_km_pgremove()
469 nextoff = curoff + PAGE_SIZE; in uvm_km_pgremove()
470 pg = uvm_pagelookup(uobj, curoff); in uvm_km_pgremove()
474 nextoff = curoff; in uvm_km_pgremove()
483 uao_find_swslot(uobj, curoff >> PAGE_SHIFT) > 0) { in uvm_km_pgremove()
486 uao_dropswap(uobj, curoff >> PAGE_SHIFT); in uvm_km_pgremove()
451 voff_t curoff, nextoff; uvm_km_pgremove() local
H A Duvm_aobj.c675 voff_t curoff; in uao_put() local
715 curoff = start; in uao_put()
716 while ((pg = uvm_page_array_fill_and_peek(&a, curoff, 0)) != NULL) { in uao_put()
732 curoff = pg->offset + PAGE_SIZE; in uao_put()
/netbsd-src/libexec/mail.local/
H A Dmail.local.c202 off_t curoff; in deliver() local
269 if ((curoff = lseek(mbfd, 0, SEEK_END)) == (off_t)-1) { in deliver()
275 (long long)curoff); in deliver()
291 trunc: (void)ftruncate(mbfd, curoff); in deliver()
/netbsd-src/sys/arch/powerpc/pci/
H A Dpci_machdep_ofw.c166 int i, curoff; in genofw_fixup_picnode_offsets() local
168 curoff=0; in genofw_fixup_picnode_offsets()
174 curoff = picnodes[i].intrs; in genofw_fixup_picnode_offsets()
184 picnodes[i].offset = curoff; in genofw_fixup_picnode_offsets()
185 curoff += picnodes[i].intrs; in genofw_fixup_picnode_offsets()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgengtype-state.cc347 long curoff = 0; in read_a_state_token() local
359 state_bol = curoff = ftell (state_file); in read_a_state_token()
375 state_bol = curoff = ftell (state_file); in read_a_state_token()
384 curoff = ftell (state_file); in read_a_state_token()
390 tk->stok_col = curoff - state_bol; in read_a_state_token()
400 curoff = ftell (state_file); in read_a_state_token()
404 tk->stok_col = curoff - state_bol; in read_a_state_token()
413 curoff = ftell (state_file); in read_a_state_token()
417 tk->stok_col = curoff - state_bol; in read_a_state_token()
430 curoff = ftell (state_file); in read_a_state_token()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgengtype-state.c345 long curoff = 0; in read_a_state_token() local
357 state_bol = curoff = ftell (state_file); in read_a_state_token()
373 state_bol = curoff = ftell (state_file); in read_a_state_token()
382 curoff = ftell (state_file); in read_a_state_token()
388 tk->stok_col = curoff - state_bol; in read_a_state_token()
398 curoff = ftell (state_file); in read_a_state_token()
402 tk->stok_col = curoff - state_bol; in read_a_state_token()
411 curoff = ftell (state_file); in read_a_state_token()
415 tk->stok_col = curoff - state_bol; in read_a_state_token()
428 curoff = ftell (state_file); in read_a_state_token()
[all …]
/netbsd-src/sys/nfs/
H A Dnfs_bio.c92 off_t curoff = 0; in nfs_bioread() local
358 curoff = NFS_GETCOOKIE(pdp); in nfs_bioread()
359 nndp = nfs_enterdircache(vp, curoff, ndp->dc_blkcookie, in nfs_bioread()
363 curoff = nndp->dc_cookie32; in nfs_bioread()
367 curoff = bp->b_dcookie; in nfs_bioread()
375 if (curoff == bp->b_dcookie) { in nfs_bioread()
377 curoff = nndp->dc_cookie32; in nfs_bioread()
423 uio->uio_offset = curoff; in nfs_bioread()
/netbsd-src/usr.bin/menuc/
H A Dmenu_sys.def425 int curoff = 0;
452 if (lineoff < curoff) {
454 curoff = 0;
456 while (*help && curoff < lineoff) {
458 curoff++;
/netbsd-src/sys/ufs/lfs/
H A Dulfs_lookup.c1217 const off_t curoff = lbn << bshift; in ulfs_blkatoff() local
1218 const int size = MIN(eof - curoff, bsize); in ulfs_blkatoff()
1223 KASSERT(curoff < eof); in ulfs_blkatoff()
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpf_bpf_comp.c351 const size_t curoff = bp->bf_len; in npfctl_bpf_group_exit()
393 fixup_jumps(ctx, ctx->goff, curoff, true); in fetch_l3()
332 const size_t curoff = bp->bf_len; npfctl_bpf_group_exit() local
/netbsd-src/sys/ufs/ufs/
H A Dufs_lookup.c1380 const off_t curoff = lbn << bshift; in ufs_blkatoff() local
1381 const int size = MIN(eof - curoff, bsize); in ufs_blkatoff()
1386 KASSERT(curoff < eof); in ufs_blkatoff()
/netbsd-src/share/man/tools/
H A Dnewsp.errs1938 curoff