Lines Matching defs:cp2
408 register char *cp, *cp2;
454 cp2 = cp;
462 if (strcasecmp(cp2, "directory") == 0) {
464 cp2 = cp;
468 if (chdir(cp2) < 0) {
471 prog, cp2, strerror(errno));
474 cwd = savestr(cp2);
477 if (strcasecmp(cp2, "primary") == 0) {
479 for (cp2 = name; !isspace(*cp) && *cp != '\0'; ++cp)
481 *cp2++ = tolower(*cp);
483 *cp2++ = *cp;
485 if (cp2 > name && cp2[-1] != '.')
486 *cp2++ = '.';
487 *cp2 = '\0';
494 cp2 = cp;
502 process(cp2, name, name);
505 if (strcasecmp(cp2, "network") == 0) {
514 if (strcasecmp(cp2, "include") == 0) {
516 cp2 = cp;
520 errors += doboot(cp2, 1);
534 register char *cp, *cp2, *buf;
724 GETQUOTEDNAME(cp2, i)
725 cp2[i] = '\0';
726 if (chdir(cp2) < 0) {
730 prog, file, n, cp2,
734 cwd = savestr(cp2);
847 for (cp2 = zone; *cp2 != '\0'; ++cp2)
848 if (isupper(*cp2))
849 *cp2 = tolower(*cp2);
851 if (cp2 > zone && cp2[-1] != '.') {
852 *cp2++ = '.';
853 *cp2 = '\0';
879 GETQUOTEDNAME(cp2, i)
882 cp2[i] = '\0';
883 if (!parsenetwork(cp2, &errstr)) {
1031 register char ch, *cp, *cp2, *cp3, *rtype;
1122 for (cp2 = name; !isspace(*cp) && *cp != '\0'; ++cp)
1124 *cp2++ = tolower(*cp);
1126 *cp2++ = *cp;
1127 *cp2 = '\0';
1141 cp2 = name;
1143 *cp2++ = *cp++;
1144 *cp2 = '\0';
1152 cp2 = cp;
1158 process(name, cp2, cp2);
1166 for (cp2 = odomain; !isspace(*cp) && *cp != '\0'; ++cp)
1168 *cp2++ = tolower(*cp);
1170 *cp2++ = *cp;
1171 *cp2 = '\0';
1192 cp2 = cp;
1206 prog, cwd, file, n, cp2);
1299 cp2 = name + strlen(name) - 1;
1300 if (cp2 >= name && *cp2 == '.' && strchr(name, '.') != NULL) {
1301 cp2 = name + strlen(name) - strlen(zone);
1302 if (cp2 >= name && strcasecmp(cp2, zone) != 0) {
1325 cp2 = cp + strlen(cp) - 1;
1326 if (cp2 >= cp && *cp2 == '\n')
1327 *cp2 = '\0';
1379 cp2 = cp;
1380 while (!isspace(*cp2) && *cp2 != '\0')
1381 ++cp2;
1382 *cp2 = '\0';
1411 cp2 = cp;
1417 prog, cwd, file, n, cp2);
1424 prog, cwd, file, n, cp2);
1434 prog, cwd, file, n, cp2);
1442 prog, cwd, file, n, cp2);
1449 prog, cwd, file, n, cp2);
1510 cp2 = cp;
1536 cp2 = cp;
1542 prog, cwd, file, n, cp2);
1551 prog, cwd, file, n, cp2);
1570 cp2 = cp;
1580 prog, cwd, file, n, cp2);
1594 prog, cwd, file, n, cp2);
1609 cp2 = cp + strlen(cp) - 1;
1610 if (cp2 >= cp && *cp2 == '\n')
1611 *cp2 = '\0';
2299 register const char *cp, *cp2;
2303 cp2 = name + strlen(name) - 1;
2304 if (cp2 >= name && *cp2 == '.')