Searched refs:bufend (Results 1 - 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfgets.c50 Uchar *bufend; local
65 if ((bufend = _findbuf(iop)) == NULL) {
71 bufend = _bufend(iop);
93 if (_needsync(iop, bufend))
94 _bufsync(iop, bufend);
H A Dgets.c51 Uchar *bufend; local
65 if ((bufend = _findbuf(stdin)) == 0) {
71 bufend = _bufend(stdin);
93 if (_needsync(stdin, bufend))
94 _bufsync(stdin, bufend);
H A Dputs.c48 unsigned char *cptr, *bufend; local
63 bufend = _bufend(stdout);
67 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */
88 if (_needsync(stdout, bufend))
89 _bufsync(stdout, bufend);
H A Dfputs.c54 unsigned char *cptr, *bufend; local
68 bufend = _bufend(iop);
73 while ((n = bufend - (cptr = iop->_ptr)) <= 0) {
94 if (_needsync(iop, bufend))
95 _bufsync(iop, bufend);
H A Dfwrite.c69 unsigned char *bufend; local
85 bufend = _bufend(iop);
88 ssize_t buflen = bufend - iop->_base;
H A Dflush.c512 _bufsync(FILE *iop, Uchar *bufend) argument
516 spaceleft = bufend - iop->_ptr;
517 if (bufend < iop->_ptr) {
518 iop->_ptr = bufend;
530 Uchar *bufend; local
538 bufend = _bufend(iop);
542 iop->_cnt = bufend - base;
544 if (_needsync(iop, bufend)) /* recover from interrupts */
545 _bufsync(iop, bufend);
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
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 Dfputs.c50 unsigned char *cptr, *bufend; local
61 bufend = iop->_base + iop->_bufsiz;
66 while ((n = bufend - (cptr = iop->_ptr)) <= 0)
103 while ((n = bufend - (cptr = iop->_ptr)) <= 0)
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 */
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dparser.c198 uchar_t *bufend = buf + buflen; local
205 while (buf + 2 <= bufend) {
272 uchar_t *bufend = buf + buflen; local
278 while (buf + 2 <= bufend) {
307 uchar_t *bufend = buf + buflen; local
314 while (buf + USB_IA_DESCR_SIZE <= bufend) {
319 buf, _PTRDIFF(bufend, buf),
342 uchar_t *bufend = buf + buflen; local
349 while (buf + 4 <= bufend) {
355 buf, _PTRDIFF(bufend, bu
377 uchar_t *bufend = buf + buflen; local
433 uchar_t *bufend = buf + buflen; local
483 uchar_t *bufend = buf + buflen; local
512 uchar_t *bufend = buf + buflen; local
538 uchar_t *bufend = buf + buflen; local
584 uchar_t *bufend = buf + buflen; local
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dprintf.c79 char *msgp, *bufend; local
90 bufend = bufp + bufsize;
92 msgp += snprintf(msgp, bufend - msgp, "[fake_kernel] ");
93 msgp += snprintf(msgp, bufend - msgp, prefix);
94 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx);
95 msgp += snprintf(msgp, bufend - msgp, suffix);
/illumos-gate/usr/src/ucblib/libucb/inc/
H A Dstdiom.h92 extern void _bufsync(FILE *iop, Uchar *bufend);
114 #define _needsync(p, bufend) ((bufend - (p)->_ptr) < \
/illumos-gate/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; local
598 bufend = rslt + bufsize - 1; /* reserve space for trailing '\0' */
608 bufend -= right_prec;
609 (void) memcpy(bufend, avalue + avalue_size+padded-right_prec,
611 bufend -= decimal_len;
612 (void) memcpy(bufend, decimal_point, decimal_len);
643 bufend
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dprintf.c81 char *body, *msgp, *bufend; local
110 bufend = bufp + bufsize;
112 body = msgp += snprintf(msgp, bufend - msgp,
115 msgp += snprintf(msgp, bufend - msgp, prefix);
117 msgp += snprintf(msgp, bufend - msgp, "%s%d: ",
119 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx);
120 msgp += snprintf(msgp, bufend - msgp, suffix);
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dflsbuf.c280 unsigned char *bufend = iop->_base + iop->_bufsiz; local
282 if ((spaceleft = bufend - iop->_ptr) < 0)
283 iop->_ptr = bufend;
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c153 /* LINTED - alignment of bufend */
154 uint32_t *bufend = (uint32_t *)((char *)buf_arg + size); local
157 while (buf < bufend - 3) {
162 while (buf < bufend)
/illumos-gate/usr/src/uts/common/io/vioblk/
H A Dvioblk.c563 char *bufend = buf + sizeof (buf); local
566 bufp += snprintf(bufp, bufend - bufp, prefix);
569 bufp += virtio_show_features(features, bufp, bufend - bufp);
573 bufp += snprintf(bufp, bufend - bufp, "Vioblk ( ");
577 bufp += snprintf(bufp, bufend - bufp, "BARRIER ");
580 bufp += snprintf(bufp, bufend - bufp, "SIZE_MAX ");
583 bufp += snprintf(bufp, bufend - bufp, "SEG_MAX ");
586 bufp += snprintf(bufp, bufend - bufp, "GEOMETRY ");
589 bufp += snprintf(bufp, bufend - bufp, "RO ");
592 bufp += snprintf(bufp, bufend
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dbscv.c3576 char *buf, char *bufend)
3604 buf += snprintf(buf, bufend-buf, "+P%dd%02dh%02dm%02ds",
3610 buf += bscv_event_snprintgmttime(buf, bufend-buf,
3614 buf += snprintf(buf, bufend-buf, " ");
3619 buf += snprintf(buf, bufend - buf, "%s",
3622 buf += snprintf(buf, bufend - buf,
3635 buf += snprintf(buf, bufend - buf, "%d ", event->ev_resource);
3638 buf += snprintf(buf, bufend - buf, "%s ", bscv_get_label(
3648 buf += snprintf(buf, bufend - buf, "FATAL FAULT: ");
3650 buf += snprintf(buf, bufend
3575 bscv_build_eventstring(bscv_soft_state_t *ssp, lom_event_t *event, char *buf, char *bufend) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dflsbuf.c285 unsigned char *bufend = iop->_base + iop->_bufsiz; local
287 if ((spaceleft = bufend - iop->_ptr) < 0)
288 iop->_ptr = bufend;
/illumos-gate/usr/src/lib/libc/inc/
H A Dstdiom.h163 extern void _bufsync(FILE *iop, Uchar *bufend);
244 #define _needsync(p, bufend) ((bufend - (p)->_ptr) < \
/illumos-gate/usr/src/cmd/mailx/
H A Daux.c432 char *bufend, *nbufp; local
445 bufend = nbufp;
446 for (cp = name, cp2 = bufend; (c = *cp++) != 0;) {
522 bufend = cp2;
528 cp2 = bufend;
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcgrep.c215 static uchar_t *bufend; variable
1676 if (current.prntbuf < bufend) {
1688 current.newline = bufend - 1;
1690 current.newline = bufend;
1697 current.newline = bufend;
1702 current.newline = bufend;
1707 current.newline = bufend;
1709 if (current.newline >= bufend) {
1761 bufend = buffer;
1794 save_current = (int)(bufend
[all...]
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp.c1283 *bufend; /* Pointer to end of buffer */ local
1305 bufend = http->buffer + http->used;
1307 while (bufptr < bufend)
1313 if (bufptr >= bufend && http->used < HTTP_MAX_BUFFER)
1324 bytes = http_read_ssl(http, bufend, HTTP_MAX_BUFFER - http->used);
1327 bytes = recv(http->fd, bufend, HTTP_MAX_BUFFER - http->used, 0);
1331 httpDumpData(stdout, "httpGets:", bufend, bytes);
1374 bufend += bytes;
1375 bufptr = bufend;
1378 while (bufptr >= bufend
[all...]
/illumos-gate/usr/src/cmd/xargs/
H A Dxargs.c748 char *bufend; local
755 bufend = &buffer[MAXSBUF];
759 if (pbuf + len >= bufend) {
768 if (pbuf >= bufend)
/illumos-gate/usr/src/uts/common/io/virtio/
H A Dvirtio.c125 char *bufend = buf + len; local
128 buf += snprintf(buf, bufend - buf, "Generic ( ");
131 buf += snprintf(buf, bufend - buf, "INDIRECT_DESC ");
134 buf += snprintf(buf, bufend - buf, ") ");

Completed in 109 milliseconds

12