Lines Matching refs:cp
463 register char *cp;
496 cp = strrchr(device, '/');
497 if (cp == NULL)
500 strlcpy(dname, cp + 1, sizeof(dname));
506 cp = split_dname(dname, &ppa, ebuf);
507 if (cp == NULL)
509 *cp = '\0';
522 cp = "/dev/dlpi";
523 if ((p->fd = open(cp, O_RDWR)) < 0) {
525 "%s: %s", cp, pcap_strerror(errno));
541 p->send_fd = open(cp, O_RDWR);
568 cp = split_dname(dname, &ppa, ebuf);
569 if (cp == NULL)
577 *cp = '\0';
977 char *cp;
984 cp = device + strlen(device) - 1;
985 if (*cp < '0' || *cp > '9') {
992 while (cp-1 >= device && *(cp-1) >= '0' && *(cp-1) <= '9')
993 cp--;
996 unit = strtol(cp, &eos, 10);
1012 return (cp);
1549 char *cp;
1557 cp = buf;
1558 if (!isdigit((unsigned char)*cp))
1560 *majorp = strtol(cp, &cp, 10);
1561 if (*cp++ != '.')
1563 *minorp = strtol(cp, &cp, 10);
1564 if (*cp++ != '.')
1566 *microp = strtol(cp, &cp, 10);
1802 register const char *cp;
1808 cp = strrchr(ifname, '/');
1809 if (cp != NULL)
1810 ifname = cp + 1;