/freebsd/usr.bin/mail/ |
H A D | util.c | 159 char *cp, *cp2; in gethfield() local 190 for (cp2 = line2; *cp2 == ' ' || *cp2 == '\t'; cp2++) in gethfield() 192 c -= cp2 - line2; in gethfield() 196 bcopy(cp2, cp, c); in gethfield() 336 char *cp, *cp2; in nameof() local 341 cp2 = strrchr(cp, '!'); in nameof() 342 cp2--; in nameof() 343 while (cp2 > cp && *cp2 != '!') in nameof() 344 cp2--; in nameof() 345 if (*cp2 == '!') in nameof() [all …]
|
H A D | tty.c | 174 char *cp, *cp2; in readtty() local 203 cp2 = cp; in readtty() 204 while (cp2 < canonb + BUFSIZ) in readtty() 205 *cp2++ = '\0'; in readtty() 206 cp2 = cp; in readtty() 213 while (cp2 < canonb + BUFSIZ) { in readtty() 217 *cp2++ = c; in readtty() 219 *cp2 = '\0'; in readtty() 232 cp2 = cp; in readtty() 238 if (cp2 == canonb) in readtty() [all …]
|
H A D | list.c | 377 char c, *cp, *cp2, quotec; in getrawlist() local 397 cp2 = linebuf; in getrawlist() 401 if (cp2 - linebuf == linebufsize - 1) { in getrawlist() 405 cp2 = linebuf + linebufsize - BUFSIZ - 1; in getrawlist() 414 *cp2++ = '\\'; in getrawlist() 424 *cp2++ = c; in getrawlist() 427 *cp2++ = '\b'; in getrawlist() 430 *cp2++ = '\f'; in getrawlist() 433 *cp2++ = '\n'; in getrawlist() 436 *cp2++ = '\r'; in getrawlist() [all …]
|
H A D | cmd3.c | 91 char *cp, *cp2; in bangexp() local 95 cp2 = bangbuf; in bangexp() 105 if (strlcpy(cp2, lastbang, sizeof(bangbuf) - (cp2 - bangbuf)) in bangexp() 106 >= sizeof(bangbuf) - (cp2 - bangbuf)) in bangexp() 108 cp2 += strlen(lastbang); in bangexp() 116 *cp2++ = '!'; in bangexp() 122 *cp2++ = *cp++; in bangexp() 124 *cp2 = 0; in bangexp() 357 char *cp, *cp2; in set() local 378 cp2 = varbuf; in set() [all …]
|
H A D | names.c | 157 char *cp, *cp2; in yankword() local 184 for (cp2 = wbuf; *cp && (*cp2++ = *cp++) != '>';) in yankword() 187 for (cp2 = wbuf; *cp != '\0' && strchr(" \t,(", *cp) == NULL; in yankword() 188 *cp2++ = *cp++) in yankword() 190 *cp2 = '\0'; in yankword() 202 char *cp, *cp2, *cp_temp; in yanklogin() local 256 cp2 = wbuf; in yanklogin() 258 *cp2++=*cp++; in yanklogin() 262 *cp2 = '\0'; in yanklogin()
|
H A D | send.c | 54 char *cp, *cp2, line[LINESIZE]; in sendmessage() local 62 cp2 = 0; in sendmessage() 65 cp2 = cp; in sendmessage() 66 prefixlen = cp2 == NULL ? 0 : cp2 - prefix + 1; in sendmessage() 115 cp2 = --cp; in sendmessage() 138 *cp2 = '\0'; /* temporarily null terminate */ in sendmessage() 154 *cp2 = c; /* restore */ in sendmessage()
|
/freebsd/crypto/heimdal/appl/ftp/ftp/ |
H A D | domacro.c | 41 char *cp1, *cp2, line2[200]; in domacro() local 66 cp2 = line; in domacro() 71 if (line + sizeof(line) - 2 < cp2) in domacro() 73 *cp2++ = *++cp1; in domacro() 83 len = sizeof(line) - (cp2 - line) - 1; in domacro() 84 if (strlcpy(cp2, argv[j+1], len) >= len) in domacro() 86 cp2 += strlen(argv[j+1]); in domacro() 94 len = sizeof(line) - (cp2 - line) - 1; in domacro() 95 if (strlcpy(cp2, argv[count], len) >= len) in domacro() 97 cp2 += strlen(argv[count]); in domacro() [all …]
|
H A D | cmds.c | 1719 char *cp1, *cp2 = new; in dotrans() local 1730 *cp2++ = *(ntout + i); in dotrans() 1736 *cp2++ = *cp1; in dotrans() 1739 *cp2 = '\0'; in dotrans() 1784 char *cp1 = name, *cp2 = mapin; in domap() local 1791 while (match && *cp1 && *cp2) { in domap() 1792 switch (*cp2) { in domap() 1794 if (*++cp2 != *cp1) { in domap() 1799 if (*(cp2+1) >= '1' && (*cp2+1) <= '9') { in domap() 1800 if (*cp1 != *(++cp2+1)) { in domap() [all …]
|
/freebsd/contrib/tnftp/src/ |
H A D | domacro.c | 58 char *cp1, *cp2, line2[FTPBUFLEN]; in domacro() local 83 cp2 = line; in domacro() 87 *cp2++ = *++cp1; in domacro() 96 (void)strlcpy(cp2, argv[j+1], in domacro() 97 sizeof(line) - (cp2 - line)); in domacro() 98 cp2 += strlen(argv[j+1]); in domacro() 106 (void)strlcpy(cp2, argv[count], in domacro() 107 sizeof(line) - (cp2 - line)); in domacro() 108 cp2 += strlen(argv[count]); in domacro() 114 *cp2++ = *cp1; in domacro() [all …]
|
H A D | cmds.c | 1968 char *cp2 = dst; in dotrans() local 1979 *cp2++ = *(ntout + i); in dotrans() 1980 if (cp2 - dst >= (ptrdiff_t)(dlen - 1)) in dotrans() 1987 *cp2++ = *cp1; in dotrans() 1991 *cp2 = '\0'; in dotrans() 2032 char *cp2 = mapin; in domap() local 2039 while (match && *cp1 && *cp2) { in domap() 2040 switch (*cp2) { in domap() 2042 if (*++cp2 != *cp1) { in domap() 2047 if (*(cp2+1) >= '1' && (*cp2+1) <= '9') { in domap() [all …]
|
/freebsd/usr.bin/whereis/ |
H A D | whereis.c | 380 char *bin, buf[BUFSIZ], *cp, *cp2, *man, *name, *src; in main() local 500 if ((cp2 = strchr(buf, '\n')) != NULL) in main() 501 *cp2 = '\0'; in main() 511 cp2 = malloc(rlen + 1); in main() 512 if (cp2 == NULL) in main() 514 memcpy(cp2, in main() 517 cp2[rlen] = '\0'; in main() 523 cp2 = strdup(buf); in main() 524 if (cp2 == NULL) in main() 529 man = strdup(cp2); in main() [all …]
|
/freebsd/lib/libfigpar/ |
H A D | string_m.c | 267 char *cp2; in strexpandnl() local 270 cp1 = cp2 = source; in strexpandnl() 271 while (*cp2 != '\0') { in strexpandnl() 272 *cp1 = *cp2; in strexpandnl() 273 if (*cp2 == '\\') in strexpandnl() 275 else if (*cp2 != 'n') in strexpandnl() 282 cp2++; in strexpandnl() 284 *cp1 = *cp2; in strexpandnl()
|
/freebsd/sys/contrib/device-tree/src/arm64/marvell/ |
H A D | cn9132-sr-cex7.dtsi | 35 #define CP11X_NAME cp2 579 com_10g_int2_pins: cp2-10g-int-pins { 584 cp2_rsvd0_pins: cp2-rsvd0-pins { 589 cp2_rsvd1_pins: cp2-rsvd1-pins { 594 cp2_rsvd2_pins: cp2-rsvd2-pins { 599 cp2_rsvd3_pins: cp2-rsvd3-pins { 604 cp2_rsvd4_pins: cp2-rsvd4-pins { 609 cp2_rsvd5_pins: cp2-rsvd5-pins { 614 cp2_rsvd7_pins: cp2-rsvd7-pins { 619 cp2_rsvd8_pins: cp2-rsvd8-pins { [all …]
|
H A D | cn9132-db.dtsi | 22 regulator-name = "cp2-xhci0-vbus"; 36 regulator-name = "cp2-xhci1-vbus"; 77 #define CP11X_NAME cp2 195 cp2_i2c0_pins: cp2-i2c-pins-0 { 199 cp2_sdhci_pins: cp2-sdhi-pins-0 {
|
/freebsd/crypto/openssh/ |
H A D | hostfile.c | 765 char *cp, *cp2; in hostkeys_foreach_file() local 811 for (cp2 = cp; *cp2 && *cp2 != ' ' && *cp2 != '\t'; cp2++) in hostkeys_foreach_file() 814 *cp2++ = '\0'; in hostkeys_foreach_file() 854 for (; *cp2 == ' ' || *cp2 == '\t'; cp2++) in hostkeys_foreach_file() 856 if (*cp2 == '\0' || *cp2 == '#') { in hostkeys_foreach_file() 861 lineinfo.rawkey = cp = cp2; in hostkeys_foreach_file() 902 cp2 += l; /* Skip past key type */ in hostkeys_foreach_file() 903 for (; *cp2 == ' ' || *cp2 == '\t'; cp2++) in hostkeys_foreach_file() 905 if (*cp2 == '\0' || *cp2 == '#') { in hostkeys_foreach_file()
|
H A D | compat.c | 144 char *cp = NULL, *cp2 = NULL; in compat_kex_proposal() local 154 if ((cp2 = match_filter_denylist(cp ? cp : p, in compat_kex_proposal() 159 cp = cp2; in compat_kex_proposal()
|
/freebsd/sys/geom/part/ |
H A D | g_part_ldm.c | 439 struct g_consumer *cp2; in ldm_privhdr_check() local 453 cp2 = LIST_FIRST(&pp->geom->consumer); in ldm_privhdr_check() 455 cp2->provider->mediasize / cp2->provider->sectorsize - 1; in ldm_privhdr_check() 544 struct g_consumer *cp2; in ldm_gpt_check() local 547 cp2 = LIST_NEXT(cp, consumer); in ldm_gpt_check() 557 } else if (cp2->provider == e->gpe_pp) { in ldm_gpt_check() 1219 struct g_consumer *cp2; in ldm_gpt_probe() local 1239 cp2 = g_new_consumer(cp->geom); in ldm_gpt_probe() 1240 error = g_attach(cp2, entry->gpe_pp); in ldm_gpt_probe() 1242 g_destroy_consumer(cp2); in ldm_gpt_probe() [all …]
|
/freebsd/usr.sbin/gssd/ |
H A D | gssd.c | 344 char ccname[PATH_MAX + 5 + 1], *cp, *cp2; in gssd_init_sec_context_1_svc() local 374 cp2 = strchr(cp, ':'); in gssd_init_sec_context_1_svc() 375 if (cp2 != NULL) in gssd_init_sec_context_1_svc() 376 *cp2 = '\0'; in gssd_init_sec_context_1_svc() 380 if (cp2 != NULL) in gssd_init_sec_context_1_svc() 381 *cp2++ = ':'; in gssd_init_sec_context_1_svc() 382 cp = cp2; in gssd_init_sec_context_1_svc() 759 char ccname[PATH_MAX + 5 + 1], *cp, *cp2; in gssd_acquire_cred_1_svc() local 822 cp2 = strchr(cp, ':'); in gssd_acquire_cred_1_svc() 823 if (cp2 != NULL) in gssd_acquire_cred_1_svc() [all …]
|
/freebsd/usr.sbin/lpr/pac/ |
H A D | pac.c | 203 register char *cp, *cp2; in account() local 216 for (cp2 = cp; !any(*cp2, " \t\n"); cp2++) in account() 218 ic = atoi(cp2); in account() 219 *cp2 = '\0'; in account()
|
/freebsd/sys/net/ |
H A D | route.c | 590 u_char *cp2 = (u_char *)dst; in rt_maskedcopy() local 592 u_char *cplim = cp2 + *cp3; in rt_maskedcopy() 593 u_char *cplim2 = cp2 + *cp1; in rt_maskedcopy() 595 *cp2++ = *cp1++; *cp2++ = *cp1++; /* copies sa_len & sa_family */ in rt_maskedcopy() 599 while (cp2 < cplim) in rt_maskedcopy() 600 *cp2++ = *cp1++ & *cp3++; in rt_maskedcopy() 601 if (cp2 < cplim2) in rt_maskedcopy() 602 bzero((caddr_t)cp2, (unsigned)(cplim2 - cp2)); in rt_maskedcopy()
|
/freebsd/lib/libc/resolv/ |
H A D | res_query.c | 447 char *file, *cp1, *cp2; in res_hostalias() local 469 for (cp2 = cp1 + 1; *cp2 && in res_hostalias() 470 !isspace((unsigned char)*cp2); ++cp2) in res_hostalias() 472 *cp2 = '\0'; in res_hostalias()
|
/freebsd/sbin/routed/ |
H A D | radix.c | 178 char *cp = trial, *cp2 = leaf->rn_key, *cp3 = leaf->rn_mask; in rn_satisfies_leaf() local 180 int length = min(*(u_char *)cp, *(u_char *)cp2); in rn_satisfies_leaf() 186 cplim = cp + length; cp3 += skip; cp2 += skip; in rn_satisfies_leaf() 187 for (cp += skip; cp < cplim; cp++, cp2++, cp3++) in rn_satisfies_leaf() 188 if ((*cp ^ *cp2) & *cp3) in rn_satisfies_leaf() 199 caddr_t cp = v, cp2; in rn_match() local 228 cp += off; cp2 = t->rn_key + off; cplim = v + vlen; in rn_match() 229 for (; cp < cplim; cp++, cp2++) in rn_match() 230 if (*cp != *cp2) in rn_match() 255 test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */ in rn_match() [all …]
|
/freebsd/usr.sbin/rpc.tlsservd/ |
H A D | rpc.tlscommon.c | 169 char *cp, *cp2, nullstr[1]; in rpctls_checkcrl() local 203 cp2 = X509_NAME_oneline( in rpctls_checkcrl() 216 cp, cp2); in rpctls_checkcrl() 224 cp, cp2); in rpctls_checkcrl()
|
/freebsd/contrib/mandoc/ |
H A D | dba.c | 315 const char *cp1, *cp2; in compare_names() local 319 cp2 = *(const char * const *)vp2; in compare_names() 320 return (diff = *cp2 - *cp1) ? diff : in compare_names() 321 strcasecmp(cp1 + 1, cp2 + 1); in compare_names() 327 const char *cp1, *cp2; in compare_strings() local 330 cp2 = *(const char * const *)vp2; in compare_strings() 331 return strcmp(cp1, cp2); in compare_strings()
|
/freebsd/crypto/heimdal/appl/telnet/telnet/ |
H A D | commands.c | 63 char *cp, *cp2, c; in makeargv() local 83 for (cp2 = cp; c != '\0'; c = *++cp) { in makeargv() 102 *cp2++ = c; in makeargv() 104 *cp2 = '\0'; in makeargv() 1563 char *cp2 = strchr((char *)ep->value, ':'); in env_init() local 1590 error = asprintf (&cp, "%s%s", hbuf, cp2); in env_init() 2515 char *cp, *cp2, *lsrp = NULL, *lsrep = NULL; in sourceroute() local 2584 cp2 = 0; in sourceroute() 2585 else for (cp2 = cp; (c = *cp2) != '\0'; cp2++) { in sourceroute() 2587 *cp2++ = '\0'; in sourceroute() [all …]
|