/openbsd-current/usr.sbin/lpd/ |
H A D | iobuf.c | 89 if ((q->wpos - q->rpos) > left) { 90 q->rpos += left; 93 left -= q->wpos - q->rpos; 134 return io->size - (io->wpos - io->rpos); 140 return io->wpos - io->rpos; 146 return io->buf + io->rpos; 153 io->rpos = io->wpos = 0; 157 io->rpos += n; 192 if (io->rpos == 0) 195 if (io->rpos [all...] |
H A D | iobuf.h | 24 size_t rpos; member in struct:ioqbuf 32 size_t rpos; member in struct:iobuf
|
/openbsd-current/usr.sbin/smtpd/ |
H A D | iobuf.c | 84 if ((q->wpos - q->rpos) > left) { 85 q->rpos += left; 88 left -= q->wpos - q->rpos; 129 return io->size - (io->wpos - io->rpos); 135 return io->wpos - io->rpos; 141 return io->buf + io->rpos; 148 io->rpos = io->wpos = 0; 152 io->rpos += n; 186 if (io->rpos == 0) 189 if (io->rpos [all...] |
H A D | iobuf.h | 23 size_t rpos; member in struct:ioqbuf 31 size_t rpos; member in struct:iobuf
|
/openbsd-current/usr.sbin/iscsid/ |
H A D | pdu.c | 238 if (c->prbuf.wpos < c->prbuf.rpos) 239 iov[0].iov_len = c->prbuf.rpos - c->prbuf.wpos; 242 if (c->prbuf.rpos > 0) { 245 iov[1].iov_len = c->prbuf.rpos - 1; 409 if (rb->rpos == rb->wpos) { 411 } else if (rb->rpos < rb->wpos) { 412 l = PDU_MIN(rb->wpos - rb->rpos, len); 413 memcpy(ptr, rb->buf + rb->rpos, l); 414 rb->rpos += l; 417 l = PDU_MIN(rb->size - rb->rpos, le [all...] |
H A D | iscsid.h | 143 size_t rpos; member in struct:pdu_readbuf
|
/openbsd-current/gnu/llvm/llvm/utils/ |
H A D | wciia.py | 92 rpos = -1 94 rpos = path.find(fpath) 95 if rpos == 0:
|
/openbsd-current/gnu/usr.bin/perl/cpan/Encode/lib/Encode/CN/ |
H A D | HZ.pm | 70 my ( $rdst, $rsrc, $rpos ) = \@_[ 1 .. 3 ]; 125 $$rpos = $ini_pos + $pos + $ini_len - bytes::length($src); 132 $$rpos = $ini_pos + $pos + $ini_len - bytes::length($src);
|
/openbsd-current/gnu/usr.bin/perl/cpan/Encode/lib/Encode/JP/ |
H A D | JIS7.pm | 72 my ( $rdst, $rsrc, $rpos ) = \@_[ 1, 2, 3 ]; 95 $$rpos += length($esc) + $npos + length($trm); 100 $$rpos = pos($$rsrc); 102 $$rpos = pos($$rsrc);
|
/openbsd-current/gnu/llvm/lldb/source/Target/ |
H A D | SectionLoadHistory.cpp | 47 StopIDToSectionLoadList::reverse_iterator rpos = local 49 return rpos->second.get(); 80 StopIDToSectionLoadList::reverse_iterator rpos = local 83 new SectionLoadList(*rpos->second));
|
H A D | SectionLoadList.cpp | 242 addr_to_sect_collection::const_reverse_iterator rpos = local 244 if (load_addr >= rpos->first) { 245 addr_t offset = load_addr - rpos->first; 247 rpos->second->GetByteSize() + (allow_section_end ? 1 : 0)) { 250 return rpos->second->ResolveContainedAddress(offset, so_addr,
|
/openbsd-current/usr.bin/audioctl/ |
H A D | audioctl.c | 36 struct audio_pos rpos; variable in typeref:struct:audio_pos 58 {"play.bytes", &rpos.play_pos, NULL, NUM}, 59 {"play.errors", &rpos.play_xrun, NULL, NUM}, 61 {"record.bytes", &rpos.rec_pos, NULL, NUM}, 62 {"record.errors", &rpos.rec_xrun, NULL, NUM}, 236 if (ioctl(fd, AUDIO_GETPOS, &rpos) == -1)
|
/openbsd-current/lib/libsndio/ |
H A D | sio.c | 460 long long rpos, rdiff; local 471 rpos = (hdl->mode & SIO_REC) ? 482 rdiff = rpos % rround; 483 rpos = rpos / rround; 485 rpos++; 497 cpos, cdiff, wpos, wdiff, rpos, rdiff);
|
H A D | sioctl_aucat.c | 63 size_t rpos; local 82 rpos = 0; 83 while (rpos < hdl->buf_wpos) { 96 rpos += sizeof(struct amsg_ctl_desc);
|
/openbsd-current/games/backgammon/common_source/ |
H A D | fancy.c | 112 * bsect (b,rpos,cpos,cnext) 114 * position, "rpos" is the row to start printing, "cpos" is the column to 121 bsect(int b, int rpos, int cpos, int cnext) argument 133 move(rpos, cpos + 1); 135 move(rpos, cpos); 168 getyx(stdscr, rpos, cpos); 169 move(rpos + cnext, cpos - bct);
|
/openbsd-current/lib/libutil/ |
H A D | imsg-buffer.c | 242 /* only allow seeking between rpos and wpos */ 249 return (buf->buf + buf->rpos + pos); 345 return (buf->buf + buf->rpos); 351 return (buf->wpos - buf->rpos); 366 buf->wpos = buf->rpos + len; 380 buf->rpos = 0; 413 buf->rpos += len; 426 buf->rpos += len; 492 buf->rpos += len; 591 buf->rpos [all...] |
H A D | imsg.h | 37 size_t rpos; member in struct:ibuf
|
/openbsd-current/sys/dev/hid/ |
H A D | hid.c | 584 uint32_t rpos; local 597 rpos = (hpos / 8); 599 rpos += n; 601 rpos--; 602 if (rpos < len) 603 data |= buf[rpos] << (8 * n);
|
/openbsd-current/usr.sbin/rpki-client/ |
H A D | io.c | 214 b->rpos += sizeof(sz); 300 b->rpos += sizeof(sz);
|
/openbsd-current/sys/dev/fdt/ |
H A D | simplefb.c | 40 int rpos, rnum; member in struct:simplefb_format 226 ri->ri_rpos = fmt->rpos;
|
/openbsd-current/sys/kern/ |
H A D | subr_log.c | 245 size_t l, rpos; local 292 rpos = mbp->msg_bufr; 295 error = uiomove(&mbp->msg_bufc[rpos], l, uio);
|
/openbsd-current/usr.sbin/bgpd/ |
H A D | session.c | 1981 ssize_t rpos, av, left; local 1986 rpos = 0; 1997 if (rpos + MSGSIZE_HEADER > av) 1999 if (parse_header(p, p->rbuf->buf + rpos, &msglen, 2002 if (rpos + msglen > av) 2004 p->rbuf->rptr = p->rbuf->buf + rpos; 2046 rpos += msglen; 2055 if (rpos < av) { 2056 left = av - rpos; 2057 memmove(&p->rbuf->buf, p->rbuf->buf + rpos, lef [all...] |
/openbsd-current/gnu/usr.bin/perl/cpan/Encode/ |
H A D | Encode.pm | 228 my ( $rdst, $rsrc, $rpos ) = \@_[ 1, 2, 3 ]; 233 $$rpos = $npos + length($trm); 237 $$rpos = length($$rsrc);
|
/openbsd-current/gnu/usr.bin/perl/ |
H A D | regexec.c | 5758 U8 * rpos = (U8 *) curpos; local 5771 later = advance_one_SB(&rpos, strend, utf8_target);
|