• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/libc/resolv/

Lines Matching refs:cp

197 				const u_char *cp = ns_rr_rdata(rr);
200 GETSHORT(optcode, cp);
201 GETSHORT(optlen, cp);
211 cp[i]);
215 isprint(cp[i])?
216 cp[i] : '.');
228 cp[i]);
232 isprint(cp[i]) ?
233 cp[i] : '.');
346 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) {
350 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0)
356 return (cp + n);
360 p_cdname(const u_char *cp, const u_char *msg, FILE *file) {
361 return (p_cdnname(cp, msg, PACKETSZ, file));
369 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name,
374 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
383 return (cp + n);
389 p_fqname(const u_char *cp, const u_char *msg, FILE *file) {
393 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name);
777 const char *cp;
781 cp = *strptr;
783 while (isdigit((unsigned char)*cp))
784 mval = mval * 10 + (*cp++ - '0');
786 if (*cp == '.') { /*%< centimeters */
787 cp++;
788 if (isdigit((unsigned char)*cp)) {
789 cmval = (*cp++ - '0') * 10;
790 if (isdigit((unsigned char)*cp)) {
791 cmval += (*cp++ - '0');
807 *strptr = cp;
815 const char *cp;
819 cp = *latlonstrptr;
821 while (isdigit((unsigned char)*cp))
822 deg = deg * 10 + (*cp++ - '0');
824 while (isspace((unsigned char)*cp))
825 cp++;
827 if (!(isdigit((unsigned char)*cp)))
830 while (isdigit((unsigned char)*cp))
831 min = min * 10 + (*cp++ - '0');
833 while (isspace((unsigned char)*cp))
834 cp++;
836 if (!(isdigit((unsigned char)*cp)))
839 while (isdigit((unsigned char)*cp))
840 secs = secs * 10 + (*cp++ - '0');
842 if (*cp == '.') { /*%< decimal seconds */
843 cp++;
844 if (isdigit((unsigned char)*cp)) {
845 secsfrac = (*cp++ - '0') * 100;
846 if (isdigit((unsigned char)*cp)) {
847 secsfrac += (*cp++ - '0') * 10;
848 if (isdigit((unsigned char)*cp)) {
849 secsfrac += (*cp++ - '0');
855 while (!isspace((unsigned char)*cp)) /*%< if any trailing garbage */
856 cp++;
858 while (isspace((unsigned char)*cp))
859 cp++;
862 switch (*cp) {
880 switch (*cp) {
894 cp++; /*%< skip the hemisphere */
895 while (!isspace((unsigned char)*cp)) /*%< if any trailing garbage */
896 cp++;
898 while (isspace((unsigned char)*cp)) /*%< move to next field */
899 cp++;
901 *latlonstrptr = cp;
912 const char *cp, *maxcp;
923 cp = ascii;
924 maxcp = cp + strlen(ascii);
926 lltemp1 = latlon2ul(&cp, &which1);
928 lltemp2 = latlon2ul(&cp, &which2);
947 if (*cp == '-') {
949 cp++;
952 if (*cp == '+')
953 cp++;
955 while (isdigit((unsigned char)*cp))
956 altmeters = altmeters * 10 + (*cp++ - '0');
958 if (*cp == '.') { /*%< decimal meters */
959 cp++;
960 if (isdigit((unsigned char)*cp)) {
961 altfrac = (*cp++ - '0') * 10;
962 if (isdigit((unsigned char)*cp)) {
963 altfrac += (*cp++ - '0');
970 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /*%< if trailing garbage or m */
971 cp++;
973 while (isspace((unsigned char)*cp) && (cp < maxcp))
974 cp++;
976 if (cp >= maxcp)
979 siz = precsize_aton(&cp);
981 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /*%< if trailing garbage or m */
982 cp++;
984 while (isspace((unsigned char)*cp) && (cp < maxcp))
985 cp++;
987 if (cp >= maxcp)
990 hp = precsize_aton(&cp);
992 while (!isspace((unsigned char)*cp) && (cp < maxcp)) /*%< if trailing garbage or m */
993 cp++;
995 while (isspace((unsigned char)*cp) && (cp < maxcp))
996 cp++;
998 if (cp >= maxcp)
1001 vp = precsize_aton(&cp);
1024 const u_char *cp = binary;
1040 versionval = *cp++;
1050 sizeval = *cp++;
1052 hpval = *cp++;
1053 vpval = *cp++;
1055 GETLONG(templ, cp);
1058 GETLONG(templ, cp);
1061 GETLONG(templ, cp);