/src/usr.bin/grep/ |
file.c | 67 static unsigned char *bufpos; variable in typeref:typename:unsigned char * 81 bufpos = buffer; 146 memcpy(lnbuf + off, bufpos, len); 165 return ((char *)bufpos); 169 if ((p = memchr(bufpos, line_sep, bufrem)) != NULL) { 171 len = p - bufpos; 176 bufpos = p; 191 if ((p = memchr(bufpos, line_sep, bufrem)) == NULL) 195 diff = p - bufpos; 200 bufpos = p [all...] |
/src/games/hack/ |
hack.objnam.c | 105 size_t bufpos; local in function:typename 130 bufpos = strlen(buf); 131 Snprintf(buf+bufpos, sizeof(buf)-bufpos, 135 bufpos = strlen(buf); 136 Snprintf(buf+bufpos, sizeof(buf)-bufpos, 145 bufpos = strlen(buf); 146 Snprintf(buf+bufpos, sizeof(buf)-bufpos, [all...] |
/src/sys/arch/amiga/dev/ |
msc.c | 579 unsigned char bufpos; /* was int */ local in function:mscmint 594 bufpos = msc->board->Common.CDTail; 595 if (newhead != bufpos) { /* CD events in queue */ 599 while (newhead != bufpos) { /* read all events */ 600 ncd = msc->board->CDBuf[bufpos++]; /* get one event */ 648 msc->board->Common.CDTail = bufpos; /* remove events */ 671 if (newhead != (bufpos = ms->InTail)) { 679 while (bufpos != newhead) { 681 switch (cbuf[bufpos]) { 684 switch (ibuf[bufpos++]) [all...] |
/src/sys/arch/evbmips/loongson/ |
machdep.c | 781 static char *bufpos = buf; local in function:pmoncngetc 784 if (*bufpos == '\0') { 785 bufpos = buf; 795 c = (int)*bufpos++; 796 if (bufpos - buf > PMON_MAXLN) { 797 bufpos = buf; 798 *bufpos = '\0';
|
/src/dist/pf/sbin/pflogd/ |
pflogd.c | 103 static char *bufpos = NULL; /* position in buffer */ variable in typeref:typename:char * 523 int len = bufpos - buffer; 545 bufpos = buffer; 558 bufpos = buffer; 602 memcpy(bufpos, h, sizeof(*h)); 603 memcpy(bufpos + sizeof(*h), sp, h->caplen); 610 memcpy(bufpos, &sf_hdr, sizeof(sf_hdr)); 611 memcpy(bufpos + sizeof(sf_hdr), sp, h->caplen); 614 bufpos += len; 729 bufpos = buffer [all...] |
/src/usr.bin/ftp/ |
ssl.c | 75 size_t bufpos; /* position of buffer */ member in struct:fetch_connect 514 if (conn->buflen - conn->bufpos > 0) 518 conn->bufpos = 0; 546 tmpsize = MIN(size - 1, (int)(conn->buflen - conn->bufpos)); 547 memcpy(str, conn->buf + conn->bufpos, tmpsize); 549 conn->bufpos += tmpsize;
|
/src/lib/libterminfo/ |
term_private.h | 163 size_t bufpos; member in struct:__anon386157850308 264 le16enc(tbuf->buf + tbuf->bufpos, (uint16_t)num); 265 tbuf->bufpos += sizeof(uint16_t); 272 le32enc(tbuf->buf + tbuf->bufpos, (uint32_t)num); 273 tbuf->bufpos += sizeof(uint32_t); 280 memcpy(tbuf->buf + tbuf->bufpos, buf, len); 281 tbuf->bufpos += len;
|
/src/sbin/routed/rtquery/ |
rtquery.c | 555 size_t bufpos; local in function:qstring 559 for (bufpos = 0; len != 0 && bufpos < sizeof(buf) - 1; len--) { 571 buf[bufpos++] = c; 574 if (bufpos >= sizeof(buf) - 2) { 578 buf[bufpos++] = '\\'; 581 buf[bufpos++] = '\\'; 584 buf[bufpos++] = 'n'; 587 buf[bufpos++] = 'r'; 590 buf[bufpos++] = 't' [all...] |
/src/share/examples/refuse/ian/libfetch/ |
http.c | 124 int bufpos; /* current read offset in buffer */ member in struct:httpio 213 io->bufpos = 0; 246 io->bufpos = 0; 267 if (!io->buf || io->bufpos == io->buflen) 270 l = io->buflen - io->bufpos; 273 bcopy(io->buf + io->bufpos, buf + pos, (unsigned) l); 274 io->bufpos += l;
|