Home
last modified time | relevance | path

Searched refs:bufend (Results 1 – 25 of 39) sorted by relevance

12

/titanic_44/usr/src/uts/common/io/usb/usba/
H A Dparser.c198 uchar_t *bufend = buf + buflen; in usb_nth_descr() local
205 while (buf + 2 <= bufend) { in usb_nth_descr()
272 uchar_t *bufend = buf + buflen; in usba_parse_cfg_pwr_descr() local
278 while (buf + 2 <= bufend) { in usba_parse_cfg_pwr_descr()
307 uchar_t *bufend = buf + buflen; in usb_parse_ia_descr() local
314 while (buf + USB_IA_DESCR_SIZE <= bufend) { in usb_parse_ia_descr()
319 buf, _PTRDIFF(bufend, buf), in usb_parse_ia_descr()
342 uchar_t *bufend = buf + buflen; in usb_parse_if_descr() local
349 while (buf + 4 <= bufend) { in usb_parse_if_descr()
355 buf, _PTRDIFF(bufend, buf), in usb_parse_if_descr()
[all …]
/titanic_44/usr/src/lib/libc/port/locale/
H A Dstrfmon.c89 *--bufend = *(avalue+avalue_size+padded); \
94 bufend -= thousands_len; \
95 (void) memcpy(bufend, thousands_sep, thousands_len); \
535 char *bufend; in format_grouped_double() local
598 bufend = rslt + bufsize - 1; /* reserve space for trailing '\0' */ in format_grouped_double()
608 bufend -= right_prec; in format_grouped_double()
609 (void) memcpy(bufend, avalue + avalue_size+padded-right_prec, in format_grouped_double()
611 bufend -= decimal_len; in format_grouped_double()
612 (void) memcpy(bufend, decimal_point, decimal_len); in format_grouped_double()
643 bufend -= avalue_size; in format_grouped_double()
[all …]
/titanic_44/usr/src/lib/libc/port/stdio/
H A Dgets.c51 Uchar *bufend; in gets() local
65 if ((bufend = _findbuf(stdin)) == 0) { in gets()
71 bufend = _bufend(stdin); in gets()
93 if (_needsync(stdin, bufend)) in gets()
94 _bufsync(stdin, bufend); in gets()
H A Dputs.c48 unsigned char *cptr, *bufend; in puts() local
63 bufend = _bufend(stdout); in puts()
67 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */ in puts()
88 if (_needsync(stdout, bufend)) in puts()
89 _bufsync(stdout, bufend); in puts()
H A Dfgets.c50 Uchar *bufend; in fgets() local
65 if ((bufend = _findbuf(iop)) == NULL) { in fgets()
71 bufend = _bufend(iop); in fgets()
93 if (_needsync(iop, bufend)) in fgets()
94 _bufsync(iop, bufend); in fgets()
H A Dfputs.c54 unsigned char *cptr, *bufend; in fputs() local
68 bufend = _bufend(iop); in fputs()
73 while ((n = bufend - (cptr = iop->_ptr)) <= 0) { in fputs()
94 if (_needsync(iop, bufend)) in fputs()
95 _bufsync(iop, bufend); in fputs()
H A Dflush.c512 _bufsync(FILE *iop, Uchar *bufend) in _bufsync() argument
516 spaceleft = bufend - iop->_ptr; in _bufsync()
517 if (bufend < iop->_ptr) { in _bufsync()
518 iop->_ptr = bufend; in _bufsync()
530 Uchar *bufend; in _xflsbuf() local
538 bufend = _bufend(iop); in _xflsbuf()
542 iop->_cnt = bufend - base; in _xflsbuf()
544 if (_needsync(iop, bufend)) /* recover from interrupts */ in _xflsbuf()
545 _bufsync(iop, bufend); in _xflsbuf()
H A Dfwrite.c69 unsigned char *bufend; in _fwrite_unlocked() local
85 bufend = _bufend(iop); in _fwrite_unlocked()
88 ssize_t buflen = bufend - iop->_base; in _fwrite_unlocked()
/titanic_44/usr/src/lib/libfakekernel/common/
H A Dprintf.c79 char *msgp, *bufend; in fakekernel_cprintf() local
90 bufend = bufp + bufsize; in fakekernel_cprintf()
92 msgp += snprintf(msgp, bufend - msgp, "[fake_kernel] "); in fakekernel_cprintf()
93 msgp += snprintf(msgp, bufend - msgp, prefix); in fakekernel_cprintf()
94 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in fakekernel_cprintf()
95 msgp += snprintf(msgp, bufend - msgp, suffix); in fakekernel_cprintf()
/titanic_44/usr/src/lib/libbc/libc/stdio/common/
H A Dfputs.c50 unsigned char *cptr, *bufend; in fputs() local
61 bufend = iop->_base + iop->_bufsiz; in fputs()
66 while ((n = bufend - (cptr = iop->_ptr)) <= 0) in fputs()
103 while ((n = bufend - (cptr = iop->_ptr)) <= 0) in fputs()
H A Dputs.c49 register unsigned char *cptr, *bufend; local
54 bufend = stdout->_base + stdout->_bufsiz;
57 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */
H A Dfwrite.c56 register unsigned char *cptr, *bufend; local
62 bufend = iop->_base + iop->_bufsiz;
82 while ((n = bufend - (cptr = iop->_ptr)) <= 0) /* full buf */
/titanic_44/usr/src/ucblib/libucb/inc/
H A Dstdiom.h92 extern void _bufsync(FILE *iop, Uchar *bufend);
114 #define _needsync(p, bufend) ((bufend - (p)->_ptr) < \ argument
/titanic_44/usr/src/uts/common/os/
H A Dprintf.c81 char *body, *msgp, *bufend; in cprintf() local
110 bufend = bufp + bufsize; in cprintf()
112 body = msgp += snprintf(msgp, bufend - msgp, in cprintf()
115 msgp += snprintf(msgp, bufend - msgp, prefix); in cprintf()
117 msgp += snprintf(msgp, bufend - msgp, "%s%d: ", in cprintf()
119 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in cprintf()
120 msgp += snprintf(msgp, bufend - msgp, suffix); in cprintf()
/titanic_44/usr/src/uts/common/io/vioblk/
H A Dvioblk.c563 char *bufend = buf + sizeof (buf); in vioblk_show_features() local
566 bufp += snprintf(bufp, bufend - bufp, prefix); in vioblk_show_features()
569 bufp += virtio_show_features(features, bufp, bufend - bufp); in vioblk_show_features()
573 bufp += snprintf(bufp, bufend - bufp, "Vioblk ( "); in vioblk_show_features()
577 bufp += snprintf(bufp, bufend - bufp, "BARRIER "); in vioblk_show_features()
580 bufp += snprintf(bufp, bufend - bufp, "SIZE_MAX "); in vioblk_show_features()
583 bufp += snprintf(bufp, bufend - bufp, "SEG_MAX "); in vioblk_show_features()
586 bufp += snprintf(bufp, bufend - bufp, "GEOMETRY "); in vioblk_show_features()
589 bufp += snprintf(bufp, bufend - bufp, "RO "); in vioblk_show_features()
592 bufp += snprintf(bufp, bufend - bufp, "BLK_SIZE "); in vioblk_show_features()
[all …]
/titanic_44/usr/src/uts/common/io/
H A Dbscv.c3576 char *buf, char *bufend) in bscv_build_eventstring() argument
3604 buf += snprintf(buf, bufend-buf, "+P%dd%02dh%02dm%02ds", in bscv_build_eventstring()
3610 buf += bscv_event_snprintgmttime(buf, bufend-buf, in bscv_build_eventstring()
3614 buf += snprintf(buf, bufend-buf, " "); in bscv_build_eventstring()
3619 buf += snprintf(buf, bufend - buf, "%s", in bscv_build_eventstring()
3622 buf += snprintf(buf, bufend - buf, in bscv_build_eventstring()
3635 buf += snprintf(buf, bufend - buf, "%d ", event->ev_resource); in bscv_build_eventstring()
3638 buf += snprintf(buf, bufend - buf, "%s ", bscv_get_label( in bscv_build_eventstring()
3648 buf += snprintf(buf, bufend - buf, "FATAL FAULT: "); in bscv_build_eventstring()
3650 buf += snprintf(buf, bufend - buf, "FAULT: "); in bscv_build_eventstring()
[all …]
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c156 uint32_t *bufend = (uint32_t *)((char *)buf_arg + size); in mdb_umem_copy_pattern() local
159 while (buf < bufend - 3) { in mdb_umem_copy_pattern()
164 while (buf < bufend) in mdb_umem_copy_pattern()
/titanic_44/usr/src/lib/libbc/libc/stdio/4.2/
H A Dflsbuf.c280 unsigned char *bufend = iop->_base + iop->_bufsiz; in _bufsync() local
282 if ((spaceleft = bufend - iop->_ptr) < 0) in _bufsync()
283 iop->_ptr = bufend; in _bufsync()
/titanic_44/usr/src/lib/libbc/libc/stdio/sys5/
H A Dflsbuf.c285 unsigned char *bufend = iop->_base + iop->_bufsiz; in _bufsync() local
287 if ((spaceleft = bufend - iop->_ptr) < 0) in _bufsync()
288 iop->_ptr = bufend; in _bufsync()
/titanic_44/usr/src/lib/libc/inc/
H A Dstdiom.h163 extern void _bufsync(FILE *iop, Uchar *bufend);
244 #define _needsync(p, bufend) ((bufend - (p)->_ptr) < \ argument
/titanic_44/usr/src/cmd/mailx/
H A Daux.c432 char *bufend, *nbufp; in phrase() local
445 bufend = nbufp; in phrase()
446 for (cp = name, cp2 = bufend; (c = *cp++) != 0;) { in phrase()
522 bufend = cp2; in phrase()
528 cp2 = bufend; in phrase()
/titanic_44/usr/src/tools/cscope-fast/
H A Dcgrep.c215 static uchar_t *bufend; variable
1676 if (current.prntbuf < bufend) { in execute()
1688 current.newline = bufend - 1; in execute()
1690 current.newline = bufend; in execute()
1697 current.newline = bufend; in execute()
1702 current.newline = bufend; in execute()
1707 current.newline = bufend; in execute()
1709 if (current.newline >= bufend) { in execute()
1761 bufend = buffer; in init_file()
1794 save_current = (int)(bufend - begin); in fgetfile()
[all …]
/titanic_44/usr/src/lib/print/libhttp-core/common/
H A Dhttp.c1283 *bufend; /* Pointer to end of buffer */ in httpGets() local
1305 bufend = http->buffer + http->used; in httpGets()
1307 while (bufptr < bufend) in httpGets()
1313 if (bufptr >= bufend && http->used < HTTP_MAX_BUFFER) in httpGets()
1324 bytes = http_read_ssl(http, bufend, HTTP_MAX_BUFFER - http->used); in httpGets()
1327 bytes = recv(http->fd, bufend, HTTP_MAX_BUFFER - http->used, 0); in httpGets()
1331 httpDumpData(stdout, "httpGets:", bufend, bytes); in httpGets()
1374 bufend += bytes; in httpGets()
1375 bufptr = bufend; in httpGets()
1378 while (bufptr >= bufend && http->used < HTTP_MAX_BUFFER); in httpGets()
[all …]
/titanic_44/usr/src/cmd/xargs/
H A Dxargs.c748 char *bufend; in insert() local
755 bufend = &buffer[MAXSBUF]; in insert()
759 if (pbuf + len >= bufend) { in insert()
768 if (pbuf >= bufend) in insert()
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dglob.c167 Char *bufnext, *bufend, patbuf[MAXPATHLEN]; local
183 bufend = bufnext + MAXPATHLEN - 1;
185 while (bufnext < bufend && (c = *patnext++) != EOS)
189 while (bufnext < bufend && (c = *patnext++) != EOS)

12