Searched refs:cp1 (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-current/crypto/heimdal/appl/ftp/ftp/
H A Ddomacro.c41 char *cp1, *cp2, line2[200]; local
61 cp1 = macros[i].mac_start;
62 while (cp1 != macros[i].mac_end) {
63 while (isspace((unsigned char)*cp1)) {
64 cp1++;
67 while (*cp1 != '\0') {
69 switch(*cp1) {
73 *cp2++ = *++cp1;
76 if (isdigit((unsigned char)*(cp1+1))) {
78 while (isdigit((unsigned char)*++cp1)) {
[all...]
H A Dcmds.c1719 char *cp1, *cp2 = new; local
1724 for (cp1 = name; *cp1; cp1++) {
1727 if (*cp1 == *(ntin + i)) {
1736 *cp2++ = *cp1;
1784 char *cp1 = name, *cp2 = mapin; local
1791 while (match && *cp1 && *cp2) {
1794 if (*++cp2 != *cp1) {
1800 if (*cp1 !
[all...]
/freebsd-current/contrib/tnftp/src/
H A Ddomacro.c58 char *cp1, *cp2, line2[FTPBUFLEN]; local
79 cp1 = macros[i].mac_start;
80 while (cp1 != macros[i].mac_end) {
81 while (isspace((unsigned char)*cp1))
82 cp1++;
84 while (*cp1 != '\0') {
85 switch(*cp1) {
87 *cp2++ = *++cp1;
90 if (isdigit((unsigned char)*(cp1+1))) {
92 while (isdigit((unsigned char)*++cp1))
[all...]
H A Dcmds.c1967 const char *cp1; local
1973 for (cp1 = src; *cp1; cp1++) {
1976 if (*cp1 == *(ntin + i)) {
1987 *cp2++ = *cp1;
2031 const char *cp1 = src; local
2039 while (match && *cp1 && *cp2) {
2042 if (*++cp2 != *cp1) {
2048 if (*cp1 !
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddir_rd_update.c50 const char *cp1 = ""; local
65 cp1 = argv[1];
66 if (strlen(cp1) >= (sizeof (dirpath) - strlen("/TMP_DIR"))) {
71 (void) snprintf(dirpath, sizeof (dirpath), "%s/TMP_DIR", cp1);
/freebsd-current/tests/sys/cddl/zfs/bin/
H A Ddir_rd_update.c51 char *cp1 = ""; local
66 cp1 = argv[1];
67 (void) strcpy(&dirpath[0], (const char *)cp1);
/freebsd-current/lib/libfigpar/
H A Dstring_m.c268 char *cp1; local
272 cp1 = cp2 = source;
274 *cp1 = *cp2;
280 *(--cp1) = (backslash & 1) == 1 ? '\n' : 'n';
283 cp1++;
286 *cp1 = *cp2;
/freebsd-current/lib/libc/resolv/
H A Dres_query.c447 char *file, *cp1, *cp2; local
459 for (cp1 = buf; *cp1 && !isspace((unsigned char)*cp1); ++cp1)
461 if (!*cp1)
463 *cp1 = '\0';
465 while (isspace((unsigned char)*++cp1))
467 if (!*cp1)
469 for (cp2 = cp1
[all...]
/freebsd-current/usr.bin/systat/
H A Dvmstat.c194 char *cp, *cp1, *cp2, *intrnamebuf, *nextcp; local
227 for (cp1 = nextcp - 1; cp1 > cp && *(cp1 - 1) == ' '; )
228 *--cp1 = '\0';
232 cp1 = cp + 3;
233 while (isdigit((u_char)*cp1))
234 cp1++;
235 if (cp1 != cp && *cp1
[all...]
/freebsd-current/contrib/mandoc/
H A Ddba.c315 const char *cp1, *cp2; local
318 cp1 = *(const char * const *)vp1;
320 return (diff = *cp2 - *cp1) ? diff :
321 strcasecmp(cp1 + 1, cp2 + 1);
327 const char *cp1, *cp2; local
329 cp1 = *(const char * const *)vp1;
331 return strcmp(cp1, cp2);
H A Dmansearch.c408 const char *cp1, *cp2; local
427 cp1 = strchr(mp1->names + sz1, '/');
429 return cp1 != NULL && cp2 != NULL ? strcasecmp(cp1, cp2) :
430 cp1 != NULL ? -1 : cp2 != NULL ? 1 : 0;
H A Dmandocdb.c2206 char tfn[33], *cp1, *cp2; local
2247 cp1 = cp2 = MAP_FAILED;
2272 if ((cp1 = mmap(NULL, sb1.st_size, PROT_READ, MAP_PRIVATE,
2283 if (cp1[i] != cp2[i])
2292 if (cp1 != MAP_FAILED)
2293 munmap(cp1, sb1.st_size);
/freebsd-current/usr.sbin/lpr/lpc/
H A Dcmds.c250 char *cp1, *cend; local
257 cp1 = buf;
261 while ((cp1 < cend) && (*cp1++ = *cp2++))
263 cp1[-1] = ' ';
265 cp1[-1] = '\n';
266 *cp1 = '\0';
648 char *cp, *cp1, *lp; local
719 cp1 = queue[i + 1]->d_name;
720 if (*cp1 !
[all...]
/freebsd-current/sys/geom/shsec/
H A Dg_shsec.c194 struct g_consumer *cp1, *cp2, *tmp; local
210 LIST_FOREACH_SAFE(cp1, &gp->consumer, consumer, tmp) {
211 error = g_access(cp1, dr, dw, de);
214 if (cp1->acr == 0 && cp1->acw == 0 && cp1->ace == 0 &&
215 cp1->flags & G_CF_ORPHAN) {
216 g_detach(cp1);
217 g_destroy_consumer(cp1);
230 if (cp1
[all...]
/freebsd-current/sys/geom/stripe/
H A Dg_stripe.c202 struct g_consumer *cp1, *cp2, *tmp; local
219 LIST_FOREACH_SAFE(cp1, &gp->consumer, consumer, tmp) {
220 error = g_access(cp1, dr, dw, de);
223 if (cp1->acr == 0 && cp1->acw == 0 && cp1->ace == 0 &&
224 cp1->private != NULL) {
225 g_stripe_remove_disk(cp1); /* May destroy geom. */
232 if (cp1 == cp2)
899 struct g_consumer *cp, *cp1; local
[all...]
/freebsd-current/stand/ficl/
H A Dvm.c772 int strincmp(char *cp1, char *cp2, FICL_UNS count) argument
776 for (; 0 < count; ++cp1, ++cp2, --count)
778 i = tolower(*cp1) - tolower(*cp2);
781 else if (*cp1 == '\0')
/freebsd-current/sys/geom/concat/
H A Dg_concat.c173 struct g_consumer *cp1, *cp2, *tmp; local
191 LIST_FOREACH_SAFE(cp1, &gp->consumer, consumer, tmp) {
192 error = g_access(cp1, dr, dw, de);
195 disk = cp1->private;
196 if (cp1->acr == 0 && cp1->acw == 0 && cp1->ace == 0 &&
207 if (cp1 == cp2)
680 struct g_consumer *cp, *cp1; local
703 LIST_FOREACH_SAFE(cp, &gp->consumer, consumer, cp1) {
[all...]
/freebsd-current/sys/net/
H A Droute.c585 const u_char *cp1 = (const u_char *)src; local
589 u_char *cplim2 = cp2 + *cp1;
591 *cp2++ = *cp1++; *cp2++ = *cp1++; /* copies sa_len & sa_family */
596 *cp2++ = *cp1++ & *cp3++;
/freebsd-current/usr.sbin/syslogd/
H A Dsyslogd.c3296 char *cp1, *cp2; local
3314 if (*s != '[' || (cp1 = strchr(s + 1, ']')) == NULL)
3316 cp1 = s;
3317 if ((cp1 = strrchr(cp1, ':'))) {
3319 *cp1++ = '\0';
3320 if (strlen(cp1) == 1 && *cp1 == '*')
3323 else if ((se = getservbyname(cp1, "udp"))) {
3326 ap->port = strtol(cp1,
[all...]
/freebsd-current/sys/geom/
H A Dgeom_ccd.c191 struct g_consumer *cp1, *cp2; local
199 LIST_FOREACH(cp1, &gp->consumer, consumer) {
200 error = g_access(cp1, dr, dw, de);
203 if (cp1 == cp2)
/freebsd-current/sys/geom/multipath/
H A Dg_multipath.c269 struct g_consumer *cp1; local
290 LIST_FOREACH(cp1, &gp->consumer, consumer) {
291 pp = cp1->provider;
668 struct g_consumer *cp, *cp1; local
683 LIST_FOREACH_SAFE(cp, &gp->consumer, consumer, cp1) {
689 if (cp1 == NULL)
1275 struct g_consumer *cp, *cp1; local
1300 LIST_FOREACH_SAFE(cp, &gp->consumer, consumer, cp1) {
1316 if (cp1 == NULL)
/freebsd-current/crypto/openssl/test/
H A Dparams_api_test.c668 OSSL_PARAM *cp1 = NULL, *cp2 = NULL, *p; local
676 && TEST_ptr(cp1 = OSSL_PARAM_merge(NULL, param))
677 && TEST_ptr(p = OSSL_PARAM_locate(cp1, "a"))
680 && TEST_ptr(p = OSSL_PARAM_locate(cp1, "b"))
692 OSSL_PARAM_free(cp1);
/freebsd-current/sys/compat/linprocfs/
H A Dlinprocfs.c835 char *cp1, *cp2;
839 cp1 = strstr(osbuild, "\n");
841 if (cp1 && cp2) {
842 *cp1 = *cp2 = '\0';
843 cp1 = strstr(osbuild, "#");
845 cp1 = NULL;
846 if (cp1)
847 sbuf_printf(sb, "%s%s", cp1, cp2 + 1);
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_oncore.c938 u_char *cp, *cp1, *buf, *shmem_old; local
1041 for (cp=buf+4, cp1=shmem_old+4; (n = 256*(*(cp-3)) + *(cp-2)); cp+=(n+3), cp1+=(n+3)) {
1042 n1 = 256*(*(cp1-3)) + *(cp1-2);
1043 if (n == 0 || n1 != n || strncmp((char *) cp, (char *) cp1, 4))
1046 memcpy(cp, cp1, (size_t) n);
2901 const char *cp, *cp1; local
2926 cp1 = cp;
2928 for (; !isspace((unsigned char)*cp) && cp-cp1 < 2
[all...]
/freebsd-current/contrib/ofed/opensm/opensm/
H A Dosm_mesh.c1381 const comp_t *cp1 = p1, *cp2 = p2; local
1382 const sort_ctx_t *ctx = &cp1->ctx;
1383 switch_t *s1 = ctx->p_lash->switches[cp1->index];

Completed in 262 milliseconds

12