Home
last modified time | relevance | path

Searched refs:cp2 (Results 1 – 25 of 106) sorted by relevance

12345

/netbsd-src/usr.bin/mail/
H A Dsupport.c208 char *cp, *cp2; in gethfield() local
240 cp2 = skip_WSP(line2); in gethfield()
241 c -= (int)(cp2 - line2); in gethfield()
245 (void)memmove(cp, cp2, (size_t)c); in gethfield()
456 char *cp, *cp2; in skin() local
471 for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; /*EMPTY*/) { in skin()
488 *cp2++ = c; in skin()
490 *cp2++ = c; in skin()
499 cp += 3, *cp2++ = '@'; in skin()
502 cp += 2, *cp2++ = '@'; in skin()
[all …]
H A Dtty.c93 char *cp, *cp2; in readtty() local
128 cp2 = cp; in readtty()
129 while (cp2 < canonb + sizeof(canonb) - 1) { in readtty()
139 *cp2++ = c; in readtty()
141 *cp2 = '\0'; in readtty()
157 cp2 = cp; in readtty()
161 if (cp2 == canonb) in readtty()
163 if (cp2[-1] == '\\') { in readtty()
164 cp2[-1] = c; in readtty()
167 cp2--; in readtty()
[all …]
H A Dlist.c97 char c, *cp2, quotec; in getrawlist() local
113 cp2 = linebuf; in getrawlist()
123 *cp2++ = '\\'; in getrawlist()
133 *cp2++ = c; in getrawlist()
136 *cp2++ = '\b'; in getrawlist()
139 *cp2++ = '\f'; in getrawlist()
142 *cp2++ = '\n'; in getrawlist()
145 *cp2++ = '\r'; in getrawlist()
148 *cp2++ = '\t'; in getrawlist()
151 *cp2++ = '\v'; in getrawlist()
[all …]
H A Dmime_decode.c149 char *cp2; in get_param() local
152 cp2 = dst; in get_param()
162 *cp2++ = *cp; in get_param()
164 lastq = cp2-1; in get_param()
178 *cp2++ = *cp; in get_param()
183 while (cp2 > lastq && is_WSP(cp2[-1])) in get_param()
184 cp2--; in get_param()
185 *cp2 = '\0'; in get_param()
216 char *cp2; in cparam() local
217 cp2 = dst + len + 1; in cparam()
[all …]
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dmodules.c331 char *cp2; in my_module() local
339 if ((cp2 = strchr (value, '#')) != NULL) in my_module()
340 *cp2 = '\0'; in my_module()
342 cp2 = value + val.dsize; in my_module()
345 while (cp2 > value && isspace ((unsigned char) *--cp2)) in my_module()
346 *cp2 = '\0'; in my_module()
816 char *cp, *cp2; in save_d() local
832 s_rec->rest = cp2 = xmalloc (ds + 1); in save_d()
843 *cp2++ = ' '; in save_d()
848 *cp2++ = *cp++; in save_d()
[all …]
/netbsd-src/usr.sbin/lpr/lpc/
H A Dcmds.c93 char *cp1, *cp2; in doabort() local
104 cp2 = bp; in doabort()
105 while ((c = *cp2++) && c != '|' && c != ':' && in doabort()
216 char *cp1, *cp2; in clean() local
227 cp2 = bp; in clean()
228 while ((c = *cp2++) && c != '|' && c != ':' && in clean()
353 char *cp1, *cp2; in enable() local
364 cp2 = bp; in enable()
365 while ((c = *cp2++) && c != '|' && c != ':' && in enable()
424 char *cp1, *cp2; in disable() local
[all …]
/netbsd-src/usr.bin/ftp/
H A Ddomacro.c51 char *cp1, *cp2, line2[FTPBUFLEN]; in domacro() local
76 cp2 = line; in domacro()
80 *cp2++ = *++cp1; in domacro()
89 (void)strlcpy(cp2, argv[j+1], in domacro()
90 sizeof(line) - (cp2 - line)); in domacro()
91 cp2 += strlen(argv[j+1]); in domacro()
99 (void)strlcpy(cp2, argv[count], in domacro()
100 sizeof(line) - (cp2 - line)); in domacro()
101 cp2 += strlen(argv[count]); in domacro()
107 *cp2++ = *cp1; in domacro()
[all …]
H A Dcmds.c1977 *cp2++ = x; \ in dotrans()
1978 if (cp2 - dst >= (ptrdiff_t)(dlen - 1)) \ in dotrans()
1986 char *cp2 = dst; in dotrans()
2007 *cp2 = '\0';
2048 char *cp2 = mapin; in domap()
2055 while (match && *cp1 && *cp2) { in domap()
2056 switch (*cp2) { in domap()
2058 if (*++cp2 != *cp1) { in domap()
2063 if (*(cp2+1) >= '1' && (*cp2 in domap()
1980 char *cp2 = dst; dotrans() local
2044 char *cp2 = mapin; domap() local
[all...]
/netbsd-src/lib/libresolv/
H A Dns_sign.c164 u_char buf[NS_MAXCDNAME], *cp2; in ns_sign2() local
188 cp2 = buf; in ns_sign2()
189 PUTSHORT(ns_c_any, cp2); in ns_sign2()
190 PUTLONG(0, cp2); in ns_sign2()
191 dst_sign_data(SIG_MODE_UPDATE, key, &ctx, buf, (int)(cp2 - buf), in ns_sign2()
200 cp2 = buf; in ns_sign2()
201 PUTSHORT(0, cp2); /*%< Top 16 bits of time */ in ns_sign2()
203 PUTLONG(timesigned, cp2); in ns_sign2()
205 PUTLONG(in_timesigned, cp2); in ns_sign2()
206 PUTSHORT(NS_TSIG_FUDGE, cp2); in ns_sign2()
[all …]
/netbsd-src/external/bsd/libbind/dist/nameser/
H A Dns_sign.c161 u_char buf[NS_MAXCDNAME], *cp2; in ns_sign2() local
185 cp2 = buf; in ns_sign2()
186 PUTSHORT(ns_c_any, cp2); in ns_sign2()
187 PUTLONG(0, cp2); in ns_sign2()
188 dst_sign_data(SIG_MODE_UPDATE, key, &ctx, buf, cp2-buf, in ns_sign2()
197 cp2 = buf; in ns_sign2()
198 PUTSHORT(0, cp2); /*%< Top 16 bits of time */ in ns_sign2()
200 PUTLONG(timesigned, cp2); in ns_sign2()
202 PUTLONG(in_timesigned, cp2); in ns_sign2()
203 PUTSHORT(NS_TSIG_FUDGE, cp2); in ns_sign2()
[all …]
/netbsd-src/external/bsd/am-utils/dist/amd/
H A Dclock.c125 callout *cp, *cp2; in timeout() local
143 for (cp = &callouts; (cp2 = cp->c_next); cp = cp2) in timeout()
144 if (cp2->c_time >= t) in timeout()
151 cpnew->c_next = cp2; in timeout()
166 callout *cp, *cp2; in untimeout() local
167 for (cp = &callouts; (cp2 = cp->c_next); cp = cp2) { in untimeout()
168 if (cp2->c_id == id) { in untimeout()
169 cp->c_next = cp2->c_next; in untimeout()
170 free_callout(cp2); in untimeout()
/netbsd-src/sbin/fsck_msdos/
H A Dfat.c255 clustdiffer(cl_t cl, cl_t *cp1, cl_t *cp2, u_int fatnum) in clustdiffer() argument
258 if (*cp2 == CLUST_FREE || *cp2 >= CLUST_RSRVD) { in clustdiffer()
260 && *cp2 != CLUST_FREE && *cp2 < CLUST_BAD) in clustdiffer()
261 || (*cp1 > CLUST_BAD && *cp2 > CLUST_BAD)) { in clustdiffer()
265 *cp2 = *cp1; in clustdiffer()
271 cl, rsrvdcltype(*cp1), rsrvdcltype(*cp2), fatnum); in clustdiffer()
273 *cp2 = *cp1; in clustdiffer()
277 *cp1 = *cp2; in clustdiffer()
283 cl, rsrvdcltype(*cp1), *cp2, fatnum); in clustdiffer()
285 *cp1 = *cp2; in clustdiffer()
[all …]
/netbsd-src/lib/libutil/
H A Dpty.c67 const char *cp1, *cp2, *cp, *linep; in openpty() local
103 for (cp = cp2 = TTY_OLD_SUFFIX TTY_NEW_SUFFIX; *cp2; cp2++) { in openpty()
105 line[9] = *cp2; in openpty()
109 if ((size_t)(cp2 - cp + 1) < sizeof(TTY_OLD_SUFFIX)) in openpty()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dhostfile.c761 char *cp, *cp2; in hostkeys_foreach_file() local
807 for (cp2 = cp; *cp2 && *cp2 != ' ' && *cp2 != '\t'; cp2++) in hostkeys_foreach_file()
810 *cp2++ = '\0'; in hostkeys_foreach_file()
850 for (; *cp2 == ' ' || *cp2 == '\t'; cp2++) in hostkeys_foreach_file()
852 if (*cp2 == '\0' || *cp2 == '#') { in hostkeys_foreach_file()
857 lineinfo.rawkey = cp = cp2; in hostkeys_foreach_file()
898 cp2 += l; /* Skip past key type */ in hostkeys_foreach_file()
899 for (; *cp2 == ' ' || *cp2 == '\t'; cp2++) in hostkeys_foreach_file()
901 if (*cp2 == '\0' || *cp2 == '#') { in hostkeys_foreach_file()
H A Dcompat.c145 char *cp = NULL, *cp2 = NULL; in compat_kex_proposal() local
155 if ((cp2 = match_filter_denylist(cp ? cp : p, in compat_kex_proposal()
160 cp = cp2; in compat_kex_proposal()
/netbsd-src/external/bsd/am-utils/dist/libamu/
H A Dstrcasecmp.c55 const unsigned char *cp2 = (const unsigned char *)s2; in strcasecmp() local
57 while (tolower(*cp1) == tolower(*cp2++)) in strcasecmp()
60 return (tolower(*cp1) - tolower(*--cp2)); in strcasecmp()
/netbsd-src/sys/arch/amiga/dev/
H A Dgayle_pcmcia.c479 volatile u_int8_t *cp2; in pcmio_bsrr1() local
484 cp2 = (volatile u_int8_t *) h + o; in pcmio_bsrr1()
487 cp2 = (volatile u_int8_t *) h + o + 0x10000 + 2; in pcmio_bsrr1()
497 cp1 = cp2; in pcmio_bsrr1()
498 cp2 = temp; in pcmio_bsrr1()
507 volatile u_int8_t *cp2; in pcmio_bswr1() local
512 cp2 = (volatile u_int8_t *) h + o; in pcmio_bswr1()
515 cp2 = (volatile u_int8_t *) h + o + 0x10000 + 2; in pcmio_bswr1()
525 cp1 = cp2; in pcmio_bswr1()
526 cp2 = temp; in pcmio_bswr1()
/netbsd-src/lib/libc/resolv/
H A Dres_query.c432 char *file, *cp1, *cp2;
459 for (cp2 = cp1 + 1; *cp2 && in res_hostalias()
460 !isspace((unsigned char)*cp2); ++cp2) in res_hostalias()
462 *cp2 = '\0'; in res_hostalias()
434 char *file, *cp1, *cp2; res_hostalias() local
/netbsd-src/external/bsd/libbind/dist/resolv/
H A Dres_query.c406 char *file, *cp1, *cp2; in res_hostalias() local
428 for (cp2 = cp1 + 1; *cp2 && in res_hostalias()
429 !isspace((unsigned char)*cp2); ++cp2) in res_hostalias()
431 *cp2 = '\0'; in res_hostalias()
/netbsd-src/sbin/routed/
H A Dradix.c189 char *cp = trial, *cp2 = leaf->rn_key, *cp3 = leaf->rn_mask; in rn_satisfies_leaf() local
191 int length = min(*(u_char *)cp, *(u_char *)cp2); in rn_satisfies_leaf()
197 cplim = cp + length; cp3 += skip; cp2 += skip; in rn_satisfies_leaf()
198 for (cp += skip; cp < cplim; cp++, cp2++, cp3++) in rn_satisfies_leaf()
199 if ((*cp ^ *cp2) & *cp3) in rn_satisfies_leaf()
210 caddr_t cp = v, cp2; in rn_match() local
239 cp += off; cp2 = t->rn_key + off; cplim = v + vlen; in rn_match()
240 for (; cp < cplim; cp++, cp2++) in rn_match()
241 if (*cp != *cp2) in rn_match()
266 test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */ in rn_match()
[all …]
/netbsd-src/lib/libc/compat/net/
H A Dcompat_ns_ntoa.c56 char *cp2; in ns_ntoa() local
63 cp2 = cp + 1; in ns_ntoa()
77 cp = spectHex(cp2); in ns_ntoa()
/netbsd-src/usr.bin/fmt/
H A Dfmt.c214 wchar_t *cp, *cp2; in fmt() local
306 for (cp2 = cbuf.ptr - 1; cp2 >= cbuf.bptr && *cp2 == ' '; cp2--) in fmt()
308 cbuf.ptr = cp2 + 1; in fmt()
/netbsd-src/sbin/ccdconfig/
H A Dccdconfig.c166 char *ccd, *cp, *cp2, **disks; in do_single() local
221 ileave = (int)strtol(cp, &cp2, 10); in do_single()
222 if ((errno == ERANGE) || (ileave < 0) || (*cp2 != '\0')) { in do_single()
273 if ((cp2 = strrchr(disks[ui], '/')) != NULL) in do_single()
274 ++cp2; in do_single()
276 cp2 = disks[ui]; in do_single()
278 ui == 0 ? '(' : ' ', cp2, in do_single()
/netbsd-src/external/bsd/mdocml/dist/
H A Ddba.c315 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()
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/marvell/
H A Dcn9132-db.dtsi22 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 {

12345