/illumos-gate/usr/src/cmd/vi/port/ |
H A D | printf.c | 74 unsigned char *bptr; in viprintf() local 176 ptr = bptr = &buf[0]; in viprintf() 181 bptr = va_arg(ap,unsigned char *); in viprintf() 182 if (bptr==0) in viprintf() 183 bptr = (unsigned char *)"(null pointer)"; in viprintf() 186 for (n=0; *bptr++ && n < prec; n++) ; in viprintf() 187 ptr = --bptr; in viprintf() 188 bptr -= n; in viprintf() 212 bptr = buf + MAXOCT + 3; in viprintf() 216 *--bptr = ((int) num & mask1) + 060; in viprintf() [all …]
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | conn.c | 424 char *bptr, *sptr; in expect() local 427 bptr = buf; in expect() 433 *bptr++ = '\0'; in expect() 440 bptr = buf; in expect() 443 *bptr++ = '\\'; in expect() 446 *bptr++ = '\\'; in expect() 447 *bptr++ = *sptr; in expect() 451 *bptr++ = *sptr; in expect() 453 *bptr = '\0'; in expect() 570 if ((bptr - buf) > 0) \ [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | conn.c | 618 char *bptr, *sptr; local 621 bptr = buf; 627 *bptr++ = '\0'; 634 bptr = buf; 637 *bptr++ = '\\'; 640 *bptr++ = '\\'; 641 *bptr++ = *sptr; 645 *bptr++ = *sptr; 647 *bptr = '\0'; 765 if ((bptr - buf) > 0)\ [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_parse.c | 234 char *bptr; in profile_parse_file() local 238 bptr = malloc (BUF_SIZE); in profile_parse_file() 239 if (!bptr) in profile_parse_file() 244 free (bptr); in profile_parse_file() 248 if (fgets(bptr, BUF_SIZE, f) == NULL) in profile_parse_file() 251 retval = parse_line(bptr, &state); in profile_parse_file() 254 if (strstr(bptr, "___")) in profile_parse_file() 256 free (bptr); in profile_parse_file() 263 if (strlen(bptr) >= BUF_SIZE - 1) { in profile_parse_file() 269 char *c = bptr + strlen (bptr); in profile_parse_file() [all …]
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk2.c | 690 wchar_t *bptr = (wchar_t *)NULL; in xprintf() local 715 bptr = *cp = emalloc(sizeof (wchar_t) * (cplen + wcslen(fmt))); in xprintf() 720 if (bptr == (wchar_t *)NULL) in xprintf() 723 *bptr++ = c; in xprintf() 732 if (bptr == (wchar_t *)NULL) in xprintf() 735 *bptr++ = c; in xprintf() 748 if (bptr == (wchar_t *)NULL) in xprintf() 755 adjust_buf(cp, &cplen, &bptr, fmtbuf, 0); in xprintf() 762 (void) wsprintf(bptr, (const char *) fmtbuf, c); in xprintf() 763 bptr += (slen = wcslen(bptr)); in xprintf() [all …]
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | mdiv.c | 68 short *aptr, *bptr; in m_dsb() local 75 bptr = b; in m_dsb() 79 *bptr, *aptr); in m_dsb() 81 borrow -= (*aptr++) * qx - *bptr; in m_dsb() 84 *bptr, *aptr); in m_dsb() 86 *bptr++ = (short)(borrow & 077777); in m_dsb() 89 *bptr, *aptr); in m_dsb() 95 *bptr, *aptr); in m_dsb() 98 borrow += *bptr; in m_dsb() 99 *bptr = (short)(borrow & 077777); in m_dsb() [all …]
|
H A D | mult.c | 76 short *bptr; in m_mult() local 93 bptr = b->val; in m_mult() 97 bcache = *bptr++; in m_mult() 113 bcache = *bptr++; in m_mult()
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postreverse/ |
H A D | postreverse.c | 109 nstrlen(const char *s, char *bptr) in nstrlen() argument 113 while (s < bptr && *s != '\0') in nstrlen() 129 nstrstr(const char *as1, const char *as2, char *bptr) in nstrstr() argument 142 while (s1 < bptr && *s1) in nstrstr() 145 while ((s1 < bptr) && in nstrstr() 163 strrstr(caddr_t s1, caddr_t s2, char *bptr) in strrstr() argument 169 t1 = s1 + nstrlen(s1, bptr) - 1; in strrstr() 170 t2 = s2 + nstrlen(s2, bptr) - 1; in strrstr() 181 t2 = s2 + nstrlen(s2, bptr) - 1; in strrstr() 353 WritePage(int fd, PAGE * p, int global, char *bptr) in WritePage() argument [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nss_dbdefs.c | 876 char **cv, *bptr; in nss_upack_key2arg() local 887 bptr = (char *)buffer + off; in nss_upack_key2arg() 888 uptr = (nssuint_t *)((void *)bptr); in nss_upack_key2arg() 895 arg->key.name = (const char *)bptr; in nss_upack_key2arg() 920 arg->key.serv.serv.name = (const char *)bptr; in nss_upack_key2arg() 922 bptr += len; in nss_upack_key2arg() 923 if (*(const char *)bptr == '\0') in nss_upack_key2arg() 926 arg->key.serv.proto = (const char *)bptr; in nss_upack_key2arg() 933 bptr += sizeof (nssuint_t); in nss_upack_key2arg() 934 arg->key.serv.proto = (const char *)bptr; in nss_upack_key2arg() [all …]
|
H A D | nss_common.c | 1581 char *bptr; in nss_pack_dbd() local 1584 bptr = (char *)buffer + off; in nss_pack_dbd() 1614 pdbd = (nss_dbd_t *)((void *)bptr); in nss_pack_dbd() 1615 bptr += len; in nss_pack_dbd() 1618 (void) strlcpy(bptr, p->name, n); in nss_pack_dbd() 1620 bptr += n; in nss_pack_dbd() 1625 (void) strlcpy(bptr, p->config_name, nc); in nss_pack_dbd() 1626 bptr += nc; in nss_pack_dbd() 1630 (void) strlcpy(bptr, p->default_config, dc); in nss_pack_dbd() 1653 char *bptr; in nss_pack() local [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/emlxs/ |
H A D | emlxs.c | 353 uint8_t *bptr; in emlxs_dump() local 461 bptr = (uint8_t *)mdb_zalloc(size, UM_SLEEP|UM_GC); in emlxs_dump() 463 if (bptr == 0) { in emlxs_dump() 469 if (mdb_vread(bptr, size, (uintptr_t)dump_txtfile.buffer) in emlxs_dump() 478 mdb_printf("%s", bptr); in emlxs_dump() 508 bptr = (uint8_t *)mdb_zalloc(size, UM_SLEEP|UM_GC); in emlxs_dump() 510 if (bptr == 0) { in emlxs_dump() 516 if (mdb_vread(bptr, size, (uintptr_t)dump_dmpfile.buffer) in emlxs_dump() 543 if ((*bptr >= 32) && (*bptr <= 126)) { in emlxs_dump() 544 *cptr++ = *bptr; in emlxs_dump() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | announce.c | 188 char *bptr, *lptr; in print_mesg() local 265 bptr = big_buf; in print_mesg() 266 *(bptr++) = '\a'; /* send something to wake them up */ in print_mesg() 267 *(bptr++) = '\r'; /* add a \r in case of raw mode */ in print_mesg() 268 *(bptr++) = '\n'; in print_mesg() 273 *(bptr++) = *(lptr++); in print_mesg() 278 *(bptr++) = ' '; in print_mesg() 281 *(bptr++) = '\r'; /* add a \r in case of raw mode */ in print_mesg() 282 *(bptr++) = '\n'; in print_mesg() 284 *bptr = '\0'; in print_mesg()
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | ctfstabs.c | 126 static char *buf, *bptr; in readline() local 134 bptr = buf; in readline() 138 if (fgets(bptr, buflen - (size_t)(bptr - buf), fp) == NULL) in readline() 141 len = strlen(bptr); in readline() 143 if (bptr[len - 1] == '\n') in readline() 146 off = (size_t)((bptr + len) - buf); in readline() 149 bptr = buf + off; in readline()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | Audio.cc | 329 caddr_t bptr; in AsyncCopy() local 352 bptr = (caddr_t)tob->GetAddress(topos); in AsyncCopy() 353 bufsiz = bptr - (caddr_t)tob->GetAddress(); in AsyncCopy() 354 if ((bptr == NULL) || (tob->GetByteCount() <= bufsiz)) { in AsyncCopy() 368 err = ReadData((void*) bptr, bufsiz, frompos); in AsyncCopy() 386 if ((bptr = new char[bufsiz]) == NULL) in AsyncCopy() 390 err = ReadData((void*)bptr, bufsiz, frompos); in AsyncCopy() 400 err = to->WriteData(bptr, bufsiz, topos); in AsyncCopy() 416 delete[] bptr; in AsyncCopy()
|
H A D | AudioBuffer.cc | 467 caddr_t bptr; in AsyncCopy() local 498 bptr = (caddr_t)GetAddress(frompos); in AsyncCopy() 499 if (bptr == 0) { in AsyncCopy() 513 if ((bptr + cnt) > (caddr_t)svcnt) { in AsyncCopy() 515 cnt = (size_t)((caddr_t)svcnt - bptr); in AsyncCopy() 527 err = to->WriteData(bptr, cnt, topos); in AsyncCopy()
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | form.c | 332 char *bptr = buf; in data_ahead() local 345 bptr = malloc(cols + 1); in data_ahead() 354 (void) winnstr(w, bptr, chunk); in data_ahead() 356 if (bptr != _data_ahead(bptr, pad, chunk)) { in data_ahead() 369 (void) winnstr(w, bptr, cols); in data_ahead() 371 if (bptr != _data_ahead(bptr, pad, cols)) { in data_ahead() 379 (void) free(bptr); in data_ahead()
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 395 char *bptr; in _nss_dns_gethost_withttl() local 440 bptr = (char *)buffer + pbuf->data_off; in _nss_dns_gethost_withttl() 724 (void) strlcpy(bptr, np, bsize - blen); in _nss_dns_gethost_withttl() 726 bptr += iplen; in _nss_dns_gethost_withttl() 727 *bptr++ = ' '; in _nss_dns_gethost_withttl() 729 (void) strlcpy(bptr, host, bsize - blen); in _nss_dns_gethost_withttl() 731 bptr += hlen; in _nss_dns_gethost_withttl() 733 *bptr++ = ' '; in _nss_dns_gethost_withttl() 735 (void) strlcpy(bptr, ap, bsize - blen); in _nss_dns_gethost_withttl() 737 bptr += alen; in _nss_dns_gethost_withttl() [all …]
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_parse.c | 115 struct use_item *fptr, *bptr; member 206 ptr = ptr->bptr) { in compile() 261 ptr, ptr->offset, ptr->bptr, ptr->fptr, line); in dump_list() 451 item->bptr = use_list.tail; in enqueue() 457 item->fptr = item->bptr = NULL; in enqueue() 474 use_list.tail = ptr->bptr; in dequeue() 476 (ptr->fptr)->bptr = ptr->bptr; in dequeue() 478 if (ptr->bptr == NULL) in dequeue() 481 (ptr->bptr)->fptr = ptr->fptr; in dequeue()
|
H A D | tic_read.c | 128 read_entry(char *filename, struct _bool_struct *bptr, struct _num_struct *nptr, in read_entry() argument 177 UB = &(bptr->_auto_left_margin); in read_entry()
|
/illumos-gate/usr/src/cmd/diff/ |
H A D | diffh.c | 289 char b[PATH_MAX], *bptr, *eptr; in dopen() local 305 for (bptr = b; *bptr = *f1++; bptr++) in dopen() 307 *bptr++ = '/'; in dopen() 311 while (*bptr++ = *f2++) in dopen()
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 243 register char *bptr; in GetPW() local 274 bptr = buffer; in GetPW() 276 for (ostr = data[0]; *(ostr++) = *(bptr++); /* nothing */) in GetPW() 284 ostr = nstr + *(bptr++); in GetPW() 285 while (*(ostr++) = *(bptr++)) in GetPW()
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 632 char *bptr = nptr - 1; in expand() local 644 ((bptr > _name) && (*bptr == '/') && in expand() 658 char *bptr = nptr - 1; in expand() local 674 ((bptr > _name) && (*bptr == '/') && in expand()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_download.c | 858 uint8_t *bptr; in emlxs_be2_validate_image() local 933 bptr = (uint8_t *)buffer; in emlxs_be2_validate_image() 935 for (i = 0; i < len; i++, bptr++) { in emlxs_be2_validate_image() 936 if (strncmp((char *)bptr, BE_DIR_SIGNATURE, in emlxs_be2_validate_image() 938 flash_dir = (emlxs_be2_flash_dir_t *)bptr; in emlxs_be2_validate_image() 1167 bptr = (uint8_t *)buffer + file->image_offset + 0x30; in emlxs_be2_validate_image() 1168 (void) strncpy(fw_image->fcoe_label, (char *)bptr, in emlxs_be2_validate_image() 1183 bptr = (uint8_t *)buffer + file->image_offset + 0x30; in emlxs_be2_validate_image() 1184 (void) strncpy(fw_image->iscsi_label, (char *)bptr, in emlxs_be2_validate_image() 1233 uint8_t *bptr; in emlxs_be3_validate_image() local [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | enum-typecheck.c | 24 enum bad *bptr = &g; variable
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | bindings.c | 175 unsigned int bptr; in save_str() local 187 bptr = bhp->bh_strcur; in save_str() 193 return (bptr); in save_str()
|