/titanic_41/usr/src/cmd/adbgen/common/ |
H A D | adbgen4.c | 52 char *cur, *last, *cp1, *cp2, *ep, *t; in main() local 74 cp2 = scanpastnum(cp1); in main() 76 cp2 = cp1; in main() 78 if (*cp2 == 't' || *cp2 == 'n' || in main() 79 *cp2 == ' ') { in main() 81 cp1 = cp2 + 1; in main() 92 cp2 = scanpastnum(cp1); in main() 93 if (*cp2 == '+' || *cp2 == '-') { in main() 98 cp2++; in main() 100 len = cp2 - cp1; in main() [all …]
|
/titanic_41/usr/src/cmd/mailx/ |
H A D | aux.c | 63 register char *cp, *cp2, *top; in savestr() local 70 for (cp = str, cp2 = top; *cp; cp++) in savestr() 71 *cp2++ = *cp; in savestr() 72 *cp2 = 0; in savestr() 176 register char *cp, *cp2; in gethfield() local 207 cp2 = line2; in gethfield() 208 for (cp2 = line2; *cp2 != 0 && isspace(*cp2); cp2++) in gethfield() 210 if (strlen(linebuf) + strlen(cp2) >= in gethfield() 218 for (cp2 = line2; *cp2 != 0 && isspace(*cp2); cp2++) in gethfield() 220 nstrcpy(cp, LINESIZE - (cp - linebuf), cp2); in gethfield() [all …]
|
H A D | tty.c | 179 register char *cp2; in readtty() local 196 cp2 = src==NOSTR ? "" : src; in readtty() 197 for (cp=canonb; *cp2; cp++, cp2++) in readtty() 198 *cp = *cp2; in readtty() 567 register char *cp, *cp2; in readtty() local 595 cp2 = cp; in readtty() 596 while (cp2 < canonb + LINESIZE) in readtty() 597 *cp2++ = 0; in readtty() 598 cp2 = cp; in readtty() 605 while (cp2 < canonb + LINESIZE) { in readtty() [all …]
|
H A D | list.c | 441 register char **ap, *cp, *cp2; in getrawlist() local 451 cp2 = linebuf; in getrawlist() 459 *cp2++ = *cp++; in getrawlist() 463 *cp2++ = *++cp; in getrawlist() 476 *cp2++ = *cp++; in getrawlist() 479 *cp2 = '\0'; in getrawlist() 480 if (cp2 == linebuf) in getrawlist() 518 register char *cp, *cp2; in scan() local 529 cp2 = lexstring; in scan() 559 *cp2++ = c; in scan() [all …]
|
H A D | optim.c | 232 register char *cp, *cp2; in netlook() local 238 for (cp = machine, cp2 = nbuf; in netlook() 239 *cp && cp2 < &nbuf[BUFSIZ-1]; in netlook() 240 *cp2++ = tolower(*cp++)) in netlook() 242 *cp2 = 0; in netlook() 552 register char *cp, *cp2; in optim() local 562 cp2 = netcomp; in optim() 564 *cp2++ = *cp++; in optim() 565 *cp2 = 0; in optim() 603 if ((cp2 = netname(*cp++)) == NOSTR) { in optim() [all …]
|
/titanic_41/usr/src/cmd/newtask/ |
H A D | utils.c | 144 char *cp2, *strip_ptr = NULL; in getdefault() local 148 cp2 = tmp_cp = cp + varlen; in getdefault() 153 while ((*cp2 != '\0') && in getdefault() 154 (*cp2 != ' ') && (*cp2 != '\t') && in getdefault() 155 !((*cp2 == ';') && (inquotes == 0))) { in getdefault() 156 if (*cp2 == '\"' || *cp2 == '\'') { in getdefault() 157 if (*cp2 == '\"') { in getdefault() 162 strip_ptr = cp2; in getdefault() 166 *strip_ptr++ = *cp2; in getdefault() 169 cp2++; in getdefault() [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | url.c | 577 char *cp2; in ldap_dns_to_url() local 619 cp2 = url2; in ldap_dns_to_url() 623 *cp2++ = *cp++; in ldap_dns_to_url() 629 *cp2++ = *cp++; /* copy first '?' */ in ldap_dns_to_url() 636 *cp2++ = *attrs++; in ldap_dns_to_url() 646 *cp2++ = *cp++; in ldap_dns_to_url() 651 *cp2++ = ','; in ldap_dns_to_url() 653 *cp2++ = *attrs++; in ldap_dns_to_url() 661 *cp2++ = '?'; in ldap_dns_to_url() 663 *cp2++ = *attrs++; in ldap_dns_to_url() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | domacro.c | 56 register char *cp1, *cp2; in domacro() local 94 cp2 = line; in domacro() 101 memcpy(cp2, cp1, len); in domacro() 102 cp2 += len; in domacro() 112 (void) strcpy(cp2, argv[j+1]); in domacro() 113 cp2 += strlen(argv[j+1]); in domacro() 121 (void) strcpy(cp2, argv[count]); in domacro() 122 cp2 += strlen(argv[count]); in domacro() 130 memcpy(cp2, cp1, len); in domacro() 131 cp2 += len; in domacro() [all …]
|
H A D | cmds.c | 1812 char *cp1, *cp2 = new; in dotrans() local 1823 *cp2++ = *(ntout + i); in dotrans() 1829 *cp2++ = *cp1; in dotrans() 1832 *cp2 = '\0'; in dotrans() 1881 char *cp1 = name, *cp2 = mapin; in domap() local 1890 while (match && *cp1 && *cp2) { in domap() 1896 if ((len2 = mbtowc(&wc2, cp2, MB_CUR_MAX)) <= 0) { in domap() 1897 wc2 = (unsigned char)*cp2; in domap() 1900 cp2 += len2; in domap() 1904 if ((len2 = mbtowc(&wc2, cp2, MB_CUR_MAX)) <= 0) { in domap() [all …]
|
/titanic_41/usr/src/cmd/fmt/ |
H A D | fmt.c | 168 wchar_t *cp, *cp2; in fmt() local 209 cp2 = canonb; in fmt() 213 if (cp2-canonb < BUFSIZ-1) in fmt() 214 *cp2++ = c; in fmt() 218 if (cp2-canonb < BUFSIZ-1) in fmt() 219 *cp2++ = L' '; in fmt() 228 for (cp2--; cp2 >= canonb && *cp2 == L' '; cp2--) { in fmt() 230 *++cp2 = '\0'; in fmt() 388 wchar_t *cp, *cp2; in csplit() local 394 cp2 = word; in csplit() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_sign.c | 159 u_char buf[NS_MAXCDNAME], *cp2; in ns_sign2() local 183 cp2 = buf; in ns_sign2() 184 PUTSHORT(ns_c_any, cp2); in ns_sign2() 185 PUTLONG(0, cp2); in ns_sign2() 186 dst_sign_data(SIG_MODE_UPDATE, key, &ctx, buf, cp2-buf, in ns_sign2() 195 cp2 = buf; in ns_sign2() 196 PUTSHORT(0, cp2); /*%< Top 16 bits of time */ in ns_sign2() 198 PUTLONG(timesigned, cp2); in ns_sign2() 200 PUTLONG(in_timesigned, cp2); in ns_sign2() 201 PUTSHORT(NS_TSIG_FUDGE, cp2); in ns_sign2() [all …]
|
/titanic_41/usr/src/lib/krb5/kadm5/clnt/ |
H A D | logger.c | 550 char *cp, *cp2; in krb5_klog_init() local 607 for (cp2 = &logging_specs[i][strlen(logging_specs[i])-1]; in krb5_klog_init() 608 isspace((int) *cp2); cp2--); in krb5_klog_init() 609 cp2++; in krb5_klog_init() 610 *cp2 = '\0'; in krb5_klog_init() 699 cp2 = strchr(&cp[7], ':'); in krb5_klog_init() 700 if (cp2) { in krb5_klog_init() 701 savec = *cp2; in krb5_klog_init() 702 *cp2 = '\0'; in krb5_klog_init() 703 cp2++; in krb5_klog_init() [all …]
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | comm.c | 68 register char *cp1, *cp2; in comm() local 72 if(cp2 = sfgetr(in2,'\n',0)) in comm() 74 while(cp1 && cp2) in comm() 77 if((comp=memcmp(cp1,cp2,n-1))==0 && (comp=n1-n2)==0) in comm() 92 if(cp2 = sfgetr(in2,'\n',0)) in comm() 101 if(sfwrite(out,cp2,n2) < 0) in comm() 104 if(cp2 = sfgetr(in2,'\n',0)) in comm() 116 if(cp2) in comm() 118 cp1 = cp2; in comm()
|
H A D | join.c | 636 … lo, hi, jp->file[0].fieldlen, cp1, jp->file[0].hit, jp->file[1].fieldlen, cp2, jp->file[1].hit), … 643 register unsigned char* cp2; in join() local 653 if ((cp1 = getrec(jp, 0, 0)) && (cp2 = getrec(jp, 1, 0)) || (cp2 = 0)) in join() 662 … n && !(cmp = (int)*cp1 - (int)*cp2) && !(cmp = jp->ignorecase ? strncasecmp((char*)cp1, (char*)cp… in join() 664 sfprintf(sfstdout, "[C#%d:%d(%c-%c),%d,%lld,%lld%s]", __LINE__, cmp, *cp1, *cp2, same, lo, hi, (jp-… in join() 667 … n && !(cmp = (int)*cp1 - (int)*cp2) && !(cmp = jp->ignorecase ? strncasecmp((char*)cp1, (char*)cp… in join() 697 if (cp2 = getrec(jp, 1, lo < 0)) in join() 721 memcpy(jp->same, cp2, o2 = n2); in join() 722 if (!(cp2 = getrec(jp, 1, 0))) in join() 725 if (n2 == o2 && *cp2 == *jp->same && !memcmp(cp2, jp->same, n2)) in join() [all …]
|
/titanic_41/usr/src/lib/krb5/kadm5/srv/ |
H A D | logger.c | 551 char *cp, *cp2; in krb5_klog_init() local 608 for (cp2 = &logging_specs[i][strlen(logging_specs[i])-1]; in krb5_klog_init() 609 isspace((int) *cp2); cp2--); in krb5_klog_init() 610 cp2++; in krb5_klog_init() 611 *cp2 = '\0'; in krb5_klog_init() 700 cp2 = strchr(&cp[7], ':'); in krb5_klog_init() 701 if (cp2) { in krb5_klog_init() 702 savec = *cp2; in krb5_klog_init() 703 *cp2 = '\0'; in krb5_klog_init() 704 cp2++; in krb5_klog_init() [all …]
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | hostfile.c | 208 char *cp, *cp2, *hashed_host; in check_host_in_hostfile_by_key_or_type() local 237 for (cp2 = cp; *cp2 && *cp2 != ' ' && *cp2 != '\t'; cp2++) in check_host_in_hostfile_by_key_or_type() 241 if (match_hostname(host, cp, (u_int) (cp2 - cp)) != 1) { in check_host_in_hostfile_by_key_or_type() 244 hashed_host = host_hash(host, cp, (u_int) (cp2 - cp)); in check_host_in_hostfile_by_key_or_type() 250 if (strncmp(hashed_host, cp, (u_int) (cp2 - cp)) != 0) in check_host_in_hostfile_by_key_or_type() 255 cp = cp2; in check_host_in_hostfile_by_key_or_type()
|
/titanic_41/usr/src/lib/libsldap/common/ |
H A D | ns_config.c | 1640 char *cp, *cp2, *end; in __ns_ldap_setParamValue() local 1671 end = cp2 = cp + strlen(cp) - 1; in __ns_ldap_setParamValue() 1672 for (; cp2 > cp && (*cp2 == SPACETOK || *cp2 == QUOTETOK); cp2--) in __ns_ldap_setParamValue() 1675 if (cp2 != end) { in __ns_ldap_setParamValue() 1676 tcp = (char *)calloc((int)(cp2 - cp + 2), sizeof (char)); in __ns_ldap_setParamValue() 1679 end = cp2; in __ns_ldap_setParamValue() 1680 cp2 = tcp; in __ns_ldap_setParamValue() 1682 *cp2++ = *cp++; in __ns_ldap_setParamValue() 1684 *cp2 = '\0'; in __ns_ldap_setParamValue() 1713 cp2 = cp; in __ns_ldap_setParamValue() [all …]
|
/titanic_41/usr/src/ucblib/libucb/port/gen/ |
H A D | scandir.c | 78 char *cp1, *cp2; in scandir64() local 111 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ) in scandir64() 145 char *cp1, *cp2; in scandir() local 181 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ) in scandir()
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | expand.c | 101 register char *sp, *cp, *cp2; in path_expand() local 166 cp2 = strtok(cp, ":"); in path_expand() 167 if(!cp2) in path_expand() 168 cp2=cp; in path_expand() 172 stakputs(cp2); in path_expand() 173 if(cp2 = strtok(NULL, ":")) in path_expand() 175 *(cp2-1)=':'; in path_expand() 178 } while(cp2); in path_expand()
|
/titanic_41/usr/src/cmd/svc/startd/ |
H A D | env.c | 64 char *tokp, *cp1, *cp2; in init_env() local 132 for (cp2 = cp1; cp2 < &tokp[length]; cp2++) in init_env() 133 *cp2 = *(cp2 + 1); in init_env()
|
/titanic_41/usr/src/cmd/backup/dump/ |
H A D | unctime.c | 77 char *cp, *cp2; local 79 for (cp = months, cp2 = str; *cp != 0; cp += 3) 80 if (strncmp(cp, cp2, 3) == 0)
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | statfs.c | 118 char *cp, *cp2; in cstatfs() local 141 cp2 = sfs.f_fname; in cstatfs() 145 *cp2++ = *cp++; in cstatfs() 147 *cp2++ = '\0'; in cstatfs()
|
/titanic_41/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 152 char *cp, *cp2; in zonecfg_get_scratch() local 168 if ((cp2 = strchr(cp, ' ')) == NULL) in zonecfg_get_scratch() 169 cp2 = cp + strlen(cp); in zonecfg_get_scratch() 171 *cp2++ = '\0'; in zonecfg_get_scratch() 175 if (altroot != NULL && strlcpy(altroot, cp2, altlen) >= altlen) in zonecfg_get_scratch()
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | scandir.c | 43 char *cp1, *cp2; in scandir() local 75 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ); in scandir()
|
/titanic_41/usr/src/cmd/audio/audioconvert/ |
H A D | parse.cc | 149 char *cp2; in parse_format() local 175 if (cp2 = strchr(cp, '=')) { in parse_format() 176 *cp2++ = NULL; in parse_format() 178 val = cp2; in parse_format()
|