Home
last modified time | relevance | path

Searched refs:bptr (Results 1 – 25 of 44) sorted by relevance

12

/titanic_41/usr/src/cmd/vi/port/
H A Dprintf.c80 unsigned char *bptr; in viprintf() local
182 ptr = bptr = &buf[0]; in viprintf()
187 bptr = va_arg(ap,unsigned char *); in viprintf()
188 if (bptr==0) in viprintf()
189 bptr = (unsigned char *)"(null pointer)"; in viprintf()
192 for (n=0; *bptr++ && n < prec; n++) ; in viprintf()
193 ptr = --bptr; in viprintf()
194 bptr -= n; in viprintf()
218 bptr = buf + MAXOCT + 3; in viprintf()
222 *--bptr = ((int) num & mask1) + 060; in viprintf()
[all …]
/titanic_41/usr/src/lib/libnsl/dial/
H A Dconn.c424 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 …]
/titanic_41/usr/src/cmd/bnu/
H A Dconn.c626 char *bptr, *sptr; local
629 bptr = buf;
635 *bptr++ = '\0';
642 bptr = buf;
645 *bptr++ = '\\';
648 *bptr++ = '\\';
649 *bptr++ = *sptr;
653 *bptr++ = *sptr;
655 *bptr = '\0';
773 if ((bptr - buf) > 0)\
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_parse.c234 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 …]
/titanic_41/usr/src/lib/libmp/common/
H A Dmdiv.c66 short *aptr, *bptr; in m_dsb() local
73 bptr = b; in m_dsb()
77 *bptr, *aptr); in m_dsb()
79 borrow -= (*aptr++) * qx - *bptr; in m_dsb()
82 *bptr, *aptr); in m_dsb()
84 *bptr++ = (short)(borrow & 077777); in m_dsb()
87 *bptr, *aptr); in m_dsb()
93 *bptr, *aptr); in m_dsb()
96 borrow += *bptr; in m_dsb()
97 *bptr = (short)(borrow & 077777); in m_dsb()
[all …]
H A Dmult.c76 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()
/titanic_41/usr/src/cmd/awk_xpg4/
H A Dawk2.c692 wchar_t *bptr = (wchar_t *)NULL; in xprintf() local
717 bptr = *cp = emalloc(sizeof (wchar_t) * (cplen + wcslen(fmt))); in xprintf()
722 if (bptr == (wchar_t *)NULL) in xprintf()
725 *bptr++ = c; in xprintf()
734 if (bptr == (wchar_t *)NULL) in xprintf()
737 *bptr++ = c; in xprintf()
750 if (bptr == (wchar_t *)NULL) in xprintf()
757 adjust_buf(cp, &cplen, &bptr, fmtbuf, 0); in xprintf()
764 (void) wsprintf(bptr, (const char *) fmtbuf, c); in xprintf()
765 bptr += (slen = wcslen(bptr)); in xprintf()
[all …]
/titanic_41/usr/src/cmd/lp/filter/postscript/postreverse/
H A Dpostreverse.c111 nstrlen(const char *s, char *bptr) in nstrlen() argument
115 while (s < bptr && *s != '\0') in nstrlen()
131 nstrstr(const char *as1, const char *as2, char *bptr) in nstrstr() argument
144 while (s1 < bptr && *s1) in nstrstr()
147 while ((s1 < bptr) && in nstrstr()
165 strrstr(caddr_t s1, caddr_t s2, char *bptr) in strrstr() argument
171 t1 = s1 + nstrlen(s1, bptr) - 1; in strrstr()
172 t2 = s2 + nstrlen(s2, bptr) - 1; in strrstr()
183 t2 = s2 + nstrlen(s2, bptr) - 1; in strrstr()
355 WritePage(int fd, PAGE * p, int global, char *bptr) in WritePage() argument
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dannounce.c191 char *bptr, *lptr; in print_mesg() local
268 bptr = big_buf; in print_mesg()
269 *(bptr++) = '\a'; /* send something to wake them up */ in print_mesg()
270 *(bptr++) = '\r'; /* add a \r in case of raw mode */ in print_mesg()
271 *(bptr++) = '\n'; in print_mesg()
276 *(bptr++) = *(lptr++); in print_mesg()
281 *(bptr++) = ' '; in print_mesg()
284 *(bptr++) = '\r'; /* add a \r in case of raw mode */ in print_mesg()
285 *(bptr++) = '\n'; in print_mesg()
287 *bptr = '\0'; in print_mesg()
/titanic_41/usr/src/cmd/mdb/common/modules/emlxs/
H A Demlxs.c353 uint8_t *bptr; in emlxs_dump() local
460 bptr = (uint8_t *)mdb_zalloc(size, UM_SLEEP|UM_GC); in emlxs_dump()
462 if (bptr == 0) { in emlxs_dump()
468 if (mdb_vread(bptr, size, (uintptr_t)dump_txtfile.buffer) in emlxs_dump()
477 mdb_printf("%s", bptr); in emlxs_dump()
507 bptr = (uint8_t *)mdb_zalloc(size, UM_SLEEP|UM_GC); in emlxs_dump()
509 if (bptr == 0) { in emlxs_dump()
515 if (mdb_vread(bptr, size, (uintptr_t)dump_dmpfile.buffer) in emlxs_dump()
542 if ((*bptr >= 32) && (*bptr <= 126)) { in emlxs_dump()
543 *cptr++ = *bptr; in emlxs_dump()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c879 char **cv, *bptr; in nss_upack_key2arg() local
890 bptr = (char *)buffer + off; in nss_upack_key2arg()
891 uptr = (nssuint_t *)((void *)bptr); in nss_upack_key2arg()
898 arg->key.name = (const char *)bptr; in nss_upack_key2arg()
923 arg->key.serv.serv.name = (const char *)bptr; in nss_upack_key2arg()
925 bptr += len; in nss_upack_key2arg()
926 if (*(const char *)bptr == '\0') in nss_upack_key2arg()
929 arg->key.serv.proto = (const char *)bptr; in nss_upack_key2arg()
936 bptr += sizeof (nssuint_t); in nss_upack_key2arg()
937 arg->key.serv.proto = (const char *)bptr; in nss_upack_key2arg()
[all …]
H A Dnss_common.c1592 char *bptr; in nss_pack_dbd() local
1595 bptr = (char *)buffer + off; in nss_pack_dbd()
1625 pdbd = (nss_dbd_t *)((void *)bptr); in nss_pack_dbd()
1626 bptr += len; in nss_pack_dbd()
1629 (void) strlcpy(bptr, p->name, n); in nss_pack_dbd()
1631 bptr += n; in nss_pack_dbd()
1636 (void) strlcpy(bptr, p->config_name, nc); in nss_pack_dbd()
1637 bptr += nc; in nss_pack_dbd()
1641 (void) strlcpy(bptr, p->default_config, dc); in nss_pack_dbd()
1665 char *bptr; in nss_pack() local
[all …]
/titanic_41/usr/src/tools/ctf/stabs/common/
H A Dctfstabs.c128 static char *buf, *bptr; in readline() local
136 bptr = buf; in readline()
140 if (fgets(bptr, buflen - (size_t)(bptr - buf), fp) == NULL) in readline()
143 len = strlen(bptr); in readline()
145 if (bptr[len - 1] == '\n') in readline()
148 off = (size_t)((bptr + len) - buf); in readline()
151 bptr = buf + off; in readline()
/titanic_41/usr/src/cmd/audio/utilities/
H A DAudio.cc331 caddr_t bptr; in AsyncCopy() local
353 bptr = (caddr_t)tob->GetAddress(topos); in AsyncCopy()
354 bufsiz = bptr - (caddr_t)tob->GetAddress(); in AsyncCopy()
355 if ((bptr == NULL) || (tob->GetByteCount() <= bufsiz)) { in AsyncCopy()
369 err = ReadData((void*) bptr, bufsiz, frompos); in AsyncCopy()
387 if ((bptr = new char[bufsiz]) == NULL) in AsyncCopy()
391 err = ReadData((void*)bptr, bufsiz, frompos); in AsyncCopy()
401 err = to->WriteData(bptr, bufsiz, topos); in AsyncCopy()
417 delete bptr; in AsyncCopy()
H A DAudioBuffer.cc468 caddr_t bptr; in AsyncCopy() local
499 bptr = (caddr_t)GetAddress(frompos); in AsyncCopy()
500 if (bptr == 0) { in AsyncCopy()
514 if ((bptr + cnt) > (caddr_t)svcnt) { in AsyncCopy()
516 cnt = (size_t)((caddr_t)svcnt - bptr); in AsyncCopy()
528 err = to->WriteData(bptr, cnt, topos); in AsyncCopy()
/titanic_41/usr/src/lib/libeti/form/common/
H A Dform.c334 char *bptr = buf; in data_ahead() local
347 bptr = malloc(cols + 1); in data_ahead()
356 (void) winnstr(w, bptr, chunk); in data_ahead()
358 if (bptr != _data_ahead(bptr, pad, chunk)) { in data_ahead()
371 (void) winnstr(w, bptr, cols); in data_ahead()
373 if (bptr != _data_ahead(bptr, pad, cols)) { in data_ahead()
381 (void) free(bptr); in data_ahead()
/titanic_41/usr/src/lib/libxcurses/src/tic/
H A Dticparse.c61 struct use_item *fptr, *bptr; member
143 ptr, ptr->offset, ptr->bptr, ptr->fptr, line);
196 item->bptr = use_list.tail;
204 item->fptr = item->bptr = NULL;
220 use_list.tail = ptr->bptr;
222 (ptr->fptr)->bptr = ptr->bptr;
224 if (ptr->bptr == NULL)
227 (ptr->bptr)->fptr = ptr->fptr;
666 for (ptr = use_list.tail; ptr != NULL; ptr = ptr->bptr) in compile()
/titanic_41/usr/src/cmd/tic/
H A Dtic_parse.c115 struct use_item *fptr, *bptr; member
190 ptr = ptr->bptr) { in compile()
245 ptr, ptr->offset, ptr->bptr, ptr->fptr, line); in dump_list()
436 item->bptr = use_list.tail; in enqueue()
442 item->fptr = item->bptr = NULL; in enqueue()
459 use_list.tail = ptr->bptr; in dequeue()
461 (ptr->fptr)->bptr = ptr->bptr; in dequeue()
463 if (ptr->bptr == NULL) in dequeue()
466 (ptr->bptr)->fptr = ptr->fptr; in dequeue()
H A Dtic_read.c119 read_entry(filename, bptr, nptr, sptr) in read_entry() argument
121 struct _bool_struct *bptr;
171 UB = &(bptr->_auto_left_margin);
/titanic_41/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c402 char *bptr; in _nss_dns_gethost_withttl() local
447 bptr = (char *)buffer + pbuf->data_off; in _nss_dns_gethost_withttl()
731 (void) strlcpy(bptr, np, bsize - blen); in _nss_dns_gethost_withttl()
733 bptr += iplen; in _nss_dns_gethost_withttl()
734 *bptr++ = ' '; in _nss_dns_gethost_withttl()
736 (void) strlcpy(bptr, host, bsize - blen); in _nss_dns_gethost_withttl()
738 bptr += hlen; in _nss_dns_gethost_withttl()
740 *bptr++ = ' '; in _nss_dns_gethost_withttl()
742 (void) strlcpy(bptr, ap, bsize - blen); in _nss_dns_gethost_withttl()
744 bptr += alen; in _nss_dns_gethost_withttl()
[all …]
/titanic_41/usr/src/cmd/diff/
H A Ddiffh.c291 char b[PATH_MAX], *bptr, *eptr; in dopen() local
307 for (bptr = b; *bptr = *f1++; bptr++) in dopen()
309 *bptr++ = '/'; in dopen()
313 while (*bptr++ = *f2++) in dopen()
/titanic_41/usr/src/lib/libbc/libc/stdio/common/
H A Dscanf.c167 unsigned char *aptr, *bptr, *cptr; in format_arg() local
240 bptr = args[i++].a_end; in format_arg()
246 for (; bptr != cptr; *aptr++ = *bptr++); in format_arg()
/titanic_41/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c239 register char *bptr; in GetPW() local
270 bptr = buffer; in GetPW()
272 for (ostr = data[0]; *(ostr++) = *(bptr++); /* nothing */) in GetPW()
280 ostr = nstr + *(bptr++); in GetPW()
281 while (*(ostr++) = *(bptr++)) in GetPW()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c632 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()
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_download.c858 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 …]

12