Lines Matching refs:cp

43 data_string (unsigned char *cp, const char *str, int len)  in data_string()  argument
46 unsigned char *cpe = cp + len; in data_string()
48 while (len == -1 || cp < cpe) in data_string()
50 if (isgraph (*cp)) in data_string()
51 putchar (*cp); in data_string()
53 printf ("\033[%dm<%02x>\033[0m", *cp % 6 + 31, *cp); in data_string()
54 if (len == -1 && *cp == 0) in data_string()
55 return cp + 1; in data_string()
57 ++cp; in data_string()
61 return cp; in data_string()
158 unsigned char *cp = (unsigned char *) (&dh->data[0]); in nscd_print_cache() local
168 data_string (cp, _(" - all data: "), cpe - cp); in nscd_print_cache()
179 #define DSTR(str, l) cp = data_string (cp, str, l) in nscd_print_cache()
187 cp += sizeof (*pw); in nscd_print_cache()
204 cp += sizeof (*gr); in nscd_print_cache()
205 grplens = (uint32_t *) cp; in nscd_print_cache()
206 cp += gr->gr_mem_cnt * sizeof (uint32_t); in nscd_print_cache()
226 cp += sizeof (*hst); in nscd_print_cache()
228 uint32_t *aliases_len = (uint32_t *) cp; in nscd_print_cache()
229 cp += hst->h_aliases_cnt * sizeof (uint32_t); in nscd_print_cache()
230 uint32_t *addrs = (uint32_t *) cp; in nscd_print_cache()
231 cp += hst->h_length * hst->h_addr_list_cnt; in nscd_print_cache()
263 cp += sizeof (*ai); in nscd_print_cache()
264 unsigned char *addrs = cp; in nscd_print_cache()
265 unsigned char *families = cp + ai->addrslen; in nscd_print_cache()
266 cp = families + ai->naddrs; in nscd_print_cache()
296 cp += sizeof (*ig); in nscd_print_cache()
297 grplens = (uint32_t *) cp; in nscd_print_cache()
298 cp += ig->ngrps * sizeof (uint32_t); in nscd_print_cache()
315 cp += sizeof (*serv); in nscd_print_cache()
320 uint32_t *alias_len = (uint32_t *) cp; in nscd_print_cache()
322 cp += sizeof (uint32_t) * serv->s_aliases_cnt; in nscd_print_cache()
336 cp += sizeof (*ng); in nscd_print_cache()
360 if (debug_level > 2 && cp && cp < cpe) in nscd_print_cache()
362 printf (_(" - remaining data %p: "), cp); in nscd_print_cache()
363 data_string (cp, "", cpe - cp); in nscd_print_cache()