Home
last modified time | relevance | path

Searched refs:optr (Results 1 – 25 of 31) sorted by relevance

12

/titanic_44/usr/src/cmd/bnu/
H A Duuencode.c184 unsigned char *iptr, *optr; in encode() local
193 optr = out_buf; in encode()
198 *(optr++) = ENC(n); in encode()
201 *(optr++) = ENC(*iptr >> 2); in encode()
202 *(optr++) = ENC((*iptr << 4) & 060 | in encode()
204 *(optr++) = ENC((*(iptr + 1) << 2) & 074 | in encode()
206 *(optr++) = ENC(*(iptr + 2) & 077); in encode()
210 *(optr++) = '\n'; in encode()
213 (void) fwrite(out_buf, 1, (size_t)(optr - out_buf), in encode()
227 optr = out_buf; in encode()
[all …]
H A Duudecode.c291 unsigned char outbuf[BUFSIZE], *obp, *optr; in decode() local
355 optr = outbuf; in decode()
372 if (optr - outbuf > BUFSIZE - 3) { in decode()
375 (size_t)(optr - outbuf), in decode()
381 optr = outbuf; in decode()
383 octets = outdec64(optr, chr, 4); in decode()
384 optr += octets; in decode()
392 octets = outdec64(optr, chr, numbase64chars); in decode()
393 optr += octets; in decode()
401 if (optr != outbuf) { in decode()
[all …]
/titanic_44/usr/src/common/iscsi/
H A Dbase64.c183 ((optr + (bytes_needed)) <= base64_str_buf + base64_buf_len)
190 char *optr; in iscsi_binary_to_base64_str() local
195 optr = base64_str_buf; in iscsi_binary_to_base64_str()
208 *(optr++) = ENC(*iptr >> 2); in iscsi_binary_to_base64_str()
209 *(optr++) = ENC((*iptr << 4) & 060 | in iscsi_binary_to_base64_str()
211 *(optr++) = ENC((*(iptr + 1) << 2) in iscsi_binary_to_base64_str()
213 *(optr++) = ENC(*(iptr + 2) & 077); in iscsi_binary_to_base64_str()
226 *(optr++) = '\0'; in iscsi_binary_to_base64_str()
232 *(optr++) = ENC((*iptr & 0xFC) >> 2); in iscsi_binary_to_base64_str()
233 *(optr++) = ENC((*iptr & 0x03) << 4); in iscsi_binary_to_base64_str()
[all …]
/titanic_44/usr/src/cmd/mail/
H A Dckdlivopts.c118 static void getopts(s, optr) in getopts() argument
120 register struct dlvopts *optr;
126 optr->deliv = 1;
127 optr->nodeliv = 0;
129 if (optr->deliv == 0) {
130 optr->nodeliv = 1;
133 optr->ign = 0;
134 if (optr->rtrn == 0) {
135 optr->rept = 1;
138 optr->rtrn = 1;
[all …]
/titanic_44/usr/src/common/net/wanboot/
H A DparseURL.c54 char *optr; in url_parse_hostport() local
66 optr = ptr; in url_parse_hostport()
67 ptr = strstr(optr, ":"); in url_parse_hostport()
77 hlen = strlcpy(hport->hostname, optr, sizeof (hport->hostname)); in url_parse_hostport()
119 char *optr; in url_parse() local
146 optr = ptr; in url_parse()
147 ptr = strstr(optr, "/"); in url_parse()
155 ret = url_parse_hostport(optr, &url->hport, url->https ? in url_parse()
/titanic_44/usr/src/cmd/sgs/libconv/common/
H A Dtokens.c44 char info[SYS_NMLN], * list, * ptr, * optr; in conv_isalist() local
84 for (optr = ptr = list; *ptr; ptr++) { in conv_isalist()
88 opt->isa_name = optr; in conv_isalist()
89 opt->isa_namesz = ptr - optr; in conv_isalist()
93 optr = ptr + 1; in conv_isalist()
95 opt->isa_name = optr; in conv_isalist()
96 opt->isa_namesz = ptr - optr; in conv_isalist()
/titanic_44/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c347 char *token = NULL, *oname, *ename, *optr, *_optr, *nptr, *_list; in expand() local
353 optr = _optr = oname = ename = *name; in expand()
360 if ((*optr != '$') || ((olen - *len) == 1)) { in expand()
368 (orig & LA_SER_MASK) && (*optr == '/') && in expand()
369 (optr != oname) && (*(optr - 1) == '.')) in expand()
372 olen++, optr++; in expand()
380 if ((_len = (optr - _optr)) != 0) { in expand()
396 olen++, optr++; in expand()
400 if (strncmp(optr, MSG_ORIG(MSG_TKN_ORIGIN), in expand()
419 optr += MSG_TKN_ORIGIN_SIZE; in expand()
[all …]
/titanic_44/usr/src/cmd/ttymon/
H A Dtmparse.c42 register char *optr,c; local
58 for (optr= word,*optr='\0';
73 if (optr < &word[BUFSIZ] ) *optr++ = c;
83 *optr++ = '\0';
/titanic_44/usr/src/lib/libsmbfs/smb/
H A Dutf_str.c95 char *obuf, *optr; in convert_ucs2xx_to_utf8() local
115 optr = obuf; in convert_ucs2xx_to_utf8()
117 ret = iconv(cd, &iptr, &ileft, &optr, &oleft); in convert_ucs2xx_to_utf8()
118 *optr = '\0'; in convert_ucs2xx_to_utf8()
170 uint16_t *obuf, *optr; in convert_utf8_to_ucs2xx() local
189 optr = obuf; in convert_utf8_to_ucs2xx()
191 ret = iconv(cd, &iptr, &ileft, (char **)&optr, &oleft); in convert_utf8_to_ucs2xx()
192 *optr = '\0'; in convert_utf8_to_ucs2xx()
/titanic_44/usr/src/cmd/mailx/
H A Dstralloc.c121 srealloc(void *optr, unsigned size) in srealloc() argument
126 if (optr == lastptr) { in srealloc()
140 delta = s - (sp->s_nextFree - (char *)optr); in srealloc()
144 return (optr); in srealloc()
149 memcpy(nptr, optr, size); /* XXX - copying too much */ in srealloc()
/titanic_44/usr/src/lib/libtecla/common/
H A Dkeytab.c550 char *optr = binary; /* Pointer into binary[] */ in _kt_parse_keybinding_string() local
580 *optr++ = MAKE_CTRL(c); in _kt_parse_keybinding_string()
582 *optr++ = *iptr++; in _kt_parse_keybinding_string()
592 *optr++ = _kt_backslash_escape(iptr+1, &iptr); in _kt_parse_keybinding_string()
599 *optr++ = GL_ESC_CHAR; in _kt_parse_keybinding_string()
602 *optr++ = *iptr++; in _kt_parse_keybinding_string()
610 *optr++ = MAKE_CTRL(iptr[2]); in _kt_parse_keybinding_string()
613 *optr++ = *iptr++; in _kt_parse_keybinding_string()
623 *optr++ = GL_ESC_CHAR; in _kt_parse_keybinding_string()
624 *optr++ = META_TO_CHAR(*iptr); in _kt_parse_keybinding_string()
[all …]
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/
H A Ddoupdate.c235 cchar_t *optr, *nptr; local
276 optr = &curscr->_line[row][col];
281 for (count = 0; __m_cc_compare(optr, nptr, 1); ++count) {
283 ++optr;
310 && (optr->_at != nptr->_at || optr->_co != nptr->_co))
314 optr -= count;
321 && (!__m_cc_compare(optr, nptr, 1) || 0 < count--)) {
354 cookie = optr->_at & WA_COOKIE;
364 || optr->_at != nattr || optr->_co != npair) {
378 *optr++ = *nptr++;
[all …]
/titanic_44/usr/src/cmd/fs.d/autofs/
H A Dautomount.c385 char *ostart, *optr, *valp; local
411 for (ostart = optr = s; *optr != '\0'; ostart = optr) {
412 if (getsubopt(&optr, ignore_opts, &valp) == -1) {
437 for (ostart = optr = s; *optr != '\0'; ostart = optr) {
438 if (getsubopt(&optr, ignore_opts, &valp) == -1) {
/titanic_44/usr/src/uts/common/inet/ip/
H A Dtn_ipopt.c646 uchar_t *optr; in tsol_prepend_option() local
660 optr = (uchar_t *)(ipha + 1); in tsol_prepend_option()
662 oval = optr[IPOPT_OPTVAL]; in tsol_prepend_option()
670 optr++; in tsol_prepend_option()
681 olen = optr[IPOPT_OLEN]; in tsol_prepend_option()
686 optr += olen; in tsol_prepend_option()
730 optr = (uchar_t *)(ipha + 1); in tsol_prepend_option()
732 oval = optr[IPOPT_OPTVAL]; in tsol_prepend_option()
744 optr++; in tsol_prepend_option()
751 olen = optr[IPOPT_OLEN]; in tsol_prepend_option()
[all …]
/titanic_44/usr/src/cmd/sgs/tools/common/
H A Dsgsmsg.c364 char *optr; in init_defs() local
377 optr = guard; in init_defs()
378 for (*optr++ = '_'; iptr && (*iptr != '\0'); iptr++, optr++) { in init_defs()
380 *optr++ = '_'; in init_defs()
381 *optr++ = 'D'; in init_defs()
382 *optr++ = 'O'; in init_defs()
383 *optr++ = 'T'; in init_defs()
384 *optr = '_'; in init_defs()
386 *optr = toupper(*iptr); in init_defs()
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Ddoupdate.c266 cchar_t *optr = &curscr->_line[row][region.col]; in _writeRegion() local
269 for (i = 0; i < region.size; i++, nptr++, optr++) { in _writeRegion()
276 if ((ATTR_STATE != nattr) || (optr->_at != nattr) || in _writeRegion()
289 *optr = *nptr; in _writeRegion()
301 cchar_t *optr = &curscr->_line[row][region.col]; in _deleteRegion() local
314 *optr = *(optr + region.size); in _deleteRegion()
315 optr++; in _deleteRegion()
416 cchar_t *optr = &curscr->_line[row][0]; in _findRegions() local
432 if (!__m_cc_compare(&optr[col], &nptr[col], 1)) in _findRegions()
441 if (__m_cc_compare(&optr[col + deleteCount], in _findRegions()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil.c523 char *optr; /* ptr to the open quote */ in get_string_token() local
532 optr = line; in get_string_token()
533 while ((*optr == ' ') || (*optr == '\t') || (*optr == '\n')) in get_string_token()
534 optr++; in get_string_token()
537 if (*optr == '\0') in get_string_token()
541 if (*optr != '"') in get_string_token()
554 if (cptr == optr) in get_string_token()
560 optr++; in get_string_token()
562 tmpbuf = malloc(strlen(optr) + 1); in get_string_token()
566 for (ptr = tmpbuf; *optr != '\0'; ptr++, optr++) { in get_string_token()
[all …]
/titanic_44/usr/src/uts/sparc/os/
H A Dbootdev.c217 char *rptr, *optr, *offline; in i_devname_to_promname() local
280 optr = offline; in i_devname_to_promname()
359 (void) snprintf(optr, olen, "%s", prom_path); in i_devname_to_promname()
360 olen -= strlen(optr) + 1; in i_devname_to_promname()
362 optr += strlen(optr) + 1; in i_devname_to_promname()
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dg11n.c772 char *ostr, *optr; in do_iconv() local
782 ostr = optr = xrealloc(ostr, olen); in do_iconv()
787 if (iconv(cd, &istr, &ileft, &optr, &oleft) != (size_t)-1) { in do_iconv()
790 &optr, &oleft) == (size_t)-1 && errno == E2BIG) { in do_iconv()
804 olen = optr - ostr; in do_iconv()
805 optr = xmalloc(olen + 1); in do_iconv()
806 (void) memcpy(optr, ostr, olen); in do_iconv()
809 optr[olen] = '\0'; in do_iconv()
812 return (optr); in do_iconv()
/titanic_44/usr/src/uts/common/inet/
H A Doptcom.c863 uchar_t *optr; in do_options_second_pass() local
867 optr = (uchar_t *)ack_mp->b_rptr + in do_options_second_pass()
920 bcopy(opt, optr, opt->len); in do_options_second_pass()
921 optr += _TPI_ALIGN_TOPT(opt->len); in do_options_second_pass()
941 if (do_opt_default(q, opt, &optr, worst_statusp, in do_options_second_pass()
944 bcopy(opt, optr, opt->len); in do_options_second_pass()
945 optr += _TPI_ALIGN_TOPT(opt->len); in do_options_second_pass()
953 do_opt_current(q, opt, &optr, worst_statusp, cr, in do_options_second_pass()
964 &optr, worst_statusp, cr, dbobjp); in do_options_second_pass()
971 ack_mp->b_wptr = optr; in do_options_second_pass()
[all …]
/titanic_44/usr/src/cmd/awk/
H A Dlib.c754 init_buf(uchar **optr, size_t *sizep, size_t amt) in init_buf() argument
764 *optr = nptr; in init_buf()
768 r_expand_buf(uchar **optr, size_t *sizep, size_t req) in r_expand_buf() argument
778 if ((nptr = realloc(*optr, size + amt)) == NULL) in r_expand_buf()
784 *optr = nptr; in r_expand_buf()
788 adjust_buf(uchar **optr, size_t size) in adjust_buf() argument
792 if ((nptr = realloc(*optr, size)) == NULL) in adjust_buf()
794 *optr = nptr; in adjust_buf()
/titanic_44/usr/src/cmd/sgs/libld/common/
H A Dfiles.c1830 const char *optr; in expand() local
1834 optr = name; in expand()
1837 while (*optr) { in expand()
1841 if (*optr != '$') { in expand()
1842 *nptr++ = *optr++, nrem--; in expand()
1848 if (strncmp(optr, MSG_ORIG(MSG_STR_ORIGIN), in expand()
1872 optr += MSG_STR_ORIGIN_SIZE; in expand()
1875 } else if (strncmp(optr, MSG_ORIG(MSG_STR_MACHINE), in expand()
1900 optr += MSG_STR_MACHINE_SIZE; in expand()
1904 } else if (strncmp(optr, MSG_ORIG(MSG_STR_PLATFORM), in expand()
[all …]
/titanic_44/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c491 uint32_t *ptr, *optr; in do_conv() local
524 optr = realloc(ptr, in do_conv()
526 if (optr == NULL) { in do_conv()
530 ptr = optr; in do_conv()
531 to = (char *)(optr + 1); in do_conv()
550 optr = realloc(ptr, tolen + sizeof (uint32_t)); in do_conv()
551 if (optr == NULL) { in do_conv()
555 ptr = optr; in do_conv()
/titanic_44/usr/src/uts/common/os/
H A Dmsg.c1486 struct msgq_wakeup *ptr, *optr; in msg_wakeup_senders() local
1506 optr = ptr; in msg_wakeup_senders()
1522 if (optr->msgw_snd_size <= avail) { in msg_wakeup_senders()
1523 list_remove(&qp->msg_wait_rcv, optr); in msg_wakeup_senders()
1524 avail -= optr->msgw_snd_size; in msg_wakeup_senders()
1525 cv_signal(&optr->msgw_wake_cv); in msg_wakeup_senders()
1531 if (smallest > optr->msgw_snd_size) in msg_wakeup_senders()
1532 smallest = optr->msgw_snd_size; in msg_wakeup_senders()
1534 optr = ptr; in msg_wakeup_senders()
/titanic_44/usr/src/cmd/nl/
H A Dnl.c120 FILE *optr = stdout; local
582 (void) fprintf(optr, "\n");
644 (void) fprintf(optr, "%s", line);

12