/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | parser.c | 189 const uchar_t *bufend = buf + buflen; in usb_nth_descr() local 196 while (buf + 2 <= bufend) { in usb_nth_descr() 256 const uchar_t *bufend = buf + buflen; in usba_parse_cfg_pwr_descr() local 262 while (buf + 2 <= bufend) { in usba_parse_cfg_pwr_descr() 288 const uchar_t *bufend = buf + buflen; in usb_parse_ia_descr() local 295 while (buf + USB_IA_DESCR_SIZE <= bufend) { in usb_parse_ia_descr() 300 buf, _PTRDIFF(bufend, buf), in usb_parse_ia_descr() 319 const uchar_t *bufend = buf + buflen; in usb_parse_if_descr() local 326 while (buf + 4 <= bufend) { in usb_parse_if_descr() 332 buf, _PTRDIFF(bufend, buf), in usb_parse_if_descr() [all …]
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strfmon.c | 89 *--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 …]
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | gets.c | 49 Uchar *bufend; in gets() local 63 if ((bufend = _findbuf(stdin)) == 0) { in gets() 69 bufend = _bufend(stdin); in gets() 91 if (_needsync(stdin, bufend)) in gets() 92 _bufsync(stdin, bufend); in gets()
|
H A D | puts.c | 46 unsigned char *cptr, *bufend; in puts() local 61 bufend = _bufend(stdout); in puts() 65 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */ in puts() 86 if (_needsync(stdout, bufend)) in puts() 87 _bufsync(stdout, bufend); in puts()
|
H A D | fgets.c | 48 Uchar *bufend; in fgets() local 63 if ((bufend = _findbuf(iop)) == NULL) { in fgets() 69 bufend = _bufend(iop); in fgets() 91 if (_needsync(iop, bufend)) in fgets() 92 _bufsync(iop, bufend); in fgets()
|
H A D | fputs.c | 51 unsigned char *cptr, *bufend; in fputs() local 65 bufend = _bufend(iop); in fputs() 70 while ((n = bufend - (cptr = iop->_ptr)) <= 0) { in fputs() 91 if (_needsync(iop, bufend)) in fputs() 92 _bufsync(iop, bufend); in fputs()
|
H A D | fwrite.c | 67 unsigned char *bufend; in _fwrite_unlocked() local 83 bufend = _bufend(iop); in _fwrite_unlocked() 86 ssize_t buflen = bufend - iop->_base; in _fwrite_unlocked()
|
H A D | flush.c | 524 _bufsync(FILE *iop, Uchar *bufend) in _bufsync() argument 528 spaceleft = bufend - iop->_ptr; in _bufsync() 529 if (bufend < iop->_ptr) { in _bufsync() 530 iop->_ptr = bufend; in _bufsync() 542 Uchar *bufend; in _xflsbuf() local 550 bufend = _bufend(iop); in _xflsbuf() 554 iop->_cnt = bufend - base; in _xflsbuf() 556 if (_needsync(iop, bufend)) /* recover from interrupts */ in _xflsbuf() 557 _bufsync(iop, bufend); in _xflsbuf()
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | printf.c | 82 char *msgp, *bufend; in fakekernel_cprintf() local 93 bufend = bufp + bufsize; in fakekernel_cprintf() 95 msgp += snprintf(msgp, bufend - msgp, "[fake_kernel] "); in fakekernel_cprintf() 96 msgp += snprintf(msgp, bufend - msgp, prefix); in fakekernel_cprintf() 97 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in fakekernel_cprintf() 98 msgp += snprintf(msgp, bufend - msgp, suffix); in fakekernel_cprintf()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | printf.c | 82 char *body, *msgp, *bufend; in cprintf() local 111 bufend = bufp + bufsize; in cprintf() 113 body = msgp += snprintf(msgp, bufend - msgp, in cprintf() 116 msgp += snprintf(msgp, bufend - msgp, prefix); in cprintf() 118 msgp += snprintf(msgp, bufend - msgp, "%s%d: ", in cprintf() 120 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in cprintf() 121 msgp += snprintf(msgp, bufend - msgp, suffix); in cprintf()
|
H A D | kmem.c | 1152 uint64_t *bufend = (uint64_t *)((char *)buf_arg + size); in copy_pattern() local 1155 while (buf < bufend) in copy_pattern() 1162 uint64_t *bufend = (uint64_t *)((char *)buf_arg + size); in verify_pattern() local 1165 for (buf = buf_arg; buf < bufend; buf++) in verify_pattern() 1174 uint64_t *bufend = (uint64_t *)((char *)buf_arg + size); in verify_and_copy_pattern() local 1177 for (buf = buf_arg; buf < bufend; buf++) { in verify_and_copy_pattern() 2347 char *bufend; in kmem_cache_alloc_dump() local 2358 bufend = (char *)KMEM_DUMPCTL(cp, buf) + sizeof (kmem_dumpctl_t); in kmem_cache_alloc_dump() 2363 if (bufend > page) { in kmem_cache_alloc_dump() 2364 bufend += page - (char *)buf; in kmem_cache_alloc_dump() [all …]
|
/illumos-gate/usr/src/ucblib/libucb/inc/ |
H A D | stdiom.h | 90 extern void _bufsync(FILE *iop, Uchar *bufend); 112 #define _needsync(p, bufend) ((bufend - (p)->_ptr) < \ argument
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_umem.c | 154 uint32_t *bufend = (uint32_t *)((char *)buf_arg + size); in mdb_umem_copy_pattern() local 157 while (buf < bufend - 3) { in mdb_umem_copy_pattern() 162 while (buf < bufend) in mdb_umem_copy_pattern()
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | util.c | 430 char *bufend, *nbufp; in phrase() local 443 bufend = nbufp; in phrase() 444 for (cp = name, cp2 = bufend; (c = *cp++) != 0;) { in phrase() 520 bufend = cp2; in phrase() 526 cp2 = bufend; in phrase()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | stdiom.h | 172 extern void _bufsync(FILE *iop, Uchar *bufend); 250 #define _needsync(p, bufend) ((bufend - (p)->_ptr) < \ argument
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | cgrep.c | 212 static uchar_t *bufend; variable 1671 if (current.prntbuf < bufend) { in execute() 1683 current.newline = bufend - 1; in execute() 1685 current.newline = bufend; in execute() 1692 current.newline = bufend; in execute() 1697 current.newline = bufend; in execute() 1702 current.newline = bufend; in execute() 1704 if (current.newline >= bufend) { in execute() 1756 bufend = buffer; in init_file() 1789 save_current = (int)(bufend - begin); in fgetfile() [all …]
|
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http.c | 1281 *bufend; /* Pointer to end of buffer */ in httpGets() local 1303 bufend = http->buffer + http->used; in httpGets() 1305 while (bufptr < bufend) in httpGets() 1311 if (bufptr >= bufend && http->used < HTTP_MAX_BUFFER) in httpGets() 1322 bytes = http_read_ssl(http, bufend, HTTP_MAX_BUFFER - http->used); in httpGets() 1325 bytes = recv(http->fd, bufend, HTTP_MAX_BUFFER - http->used, 0); in httpGets() 1329 httpDumpData(stdout, "httpGets:", bufend, bytes); in httpGets() 1372 bufend += bytes; in httpGets() 1373 bufptr = bufend; in httpGets() 1376 while (bufptr >= bufend && http->used < HTTP_MAX_BUFFER); in httpGets() [all …]
|
/illumos-gate/usr/src/cmd/xargs/ |
H A D | xargs.c | 799 char *bufend; in insert() local 806 bufend = &buffer[MAXSBUF]; in insert() 810 if (pbuf + len >= bufend) { in insert() 819 if (pbuf >= bufend) in insert()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | headers.c | 1281 #define SM_HAVE_ROOM ((bp < buflim) && (buflim <= bufend)) 1324 char *bufend; local 1330 buflim = bufend = &buf[sizeof(buf) - 1]; 1624 if (realqmode && bp < bufend) 1626 while (realcmtlev-- > 0 && bp < bufend) 1628 if (addangle && bp < bufend) 1631 if (bp < bufend)
|
/illumos-gate/usr/src/lib/libmtmalloc/common/ |
H A D | mtmalloc.c | 1444 uint32_t *bufend = (uint32_t *)((char *)buf_arg + size); in copy_pattern() local 1447 while (buf < bufend - 3) { in copy_pattern() 1451 while (buf < bufend) in copy_pattern() 1458 uint32_t *bufend = (uint32_t *)((char *)buf_arg + size); in verify_pattern() local 1461 for (buf = buf_arg; buf < bufend; buf++) in verify_pattern()
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | glob.c | 215 wcat_t *bufnext, *bufend, patbuf[PATH_MAX]; in _glob_ext() local 239 bufend = bufnext + PATH_MAX - 1; in _glob_ext() 242 while (bufnext < bufend) { in _glob_ext() 256 while (bufnext < bufend) { in _glob_ext()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.tftpd.c | 909 char *arch, *s, *bufend; in pnp_check() local 961 bufend = &buf[sizeof (buf) - 1]; in pnp_check() 962 while ((*arch != '\0') && (s < bufend)) in pnp_check()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | umem.c | 891 uint64_t *bufend = (uint64_t *)((char *)buf_arg + size); in copy_pattern() local 894 while (buf < bufend) in copy_pattern() 901 uint64_t *bufend = (uint64_t *)((char *)buf_arg + size); in verify_pattern() local 904 for (buf = buf_arg; buf < bufend; buf++) in verify_pattern() 913 uint64_t *bufend = (uint64_t *)((char *)buf_arg + size); in verify_and_copy_pattern() local 916 for (buf = buf_arg; buf < bufend; buf++) { in verify_and_copy_pattern()
|
/illumos-gate/usr/src/boot/common/ |
H A D | module.c | 1039 uchar_t *cp, *recptr, *bufend, *best; in mod_search_hints() local 1052 bufend = recptr + mdp->d_hintsz; in mod_search_hints() 1055 while (recptr < bufend && !found) { in mod_search_hints()
|
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | lowlevel.c | 7278 char *bufend = outbuf + outmax; in scf_decode32() local 7302 while ((i < inlen) && (out < bufend)) { in scf_decode32() 7335 if ((count >= 2) && (out < bufend)) { in scf_decode32() 7343 if ((count >= 4) && (out < bufend)) { in scf_decode32() 7353 if ((count >= 5) && (out < bufend)) { in scf_decode32() 7361 if ((count >= 7) && (out < bufend)) { in scf_decode32() 7371 if ((count == 8) && (out < bufend)) { in scf_decode32() 7387 if (out < bufend) in scf_decode32()
|