Lines Matching refs:cachep
77 client_cache_t ***cachep = &header->ch_cache;
88 if (*cachep) {
89 for (i = 0; (*cachep)[i] != NULL; i++)
90 if (strcmp((*cachep)[i]->cc_node, node) == 0 &&
91 (*cachep)[i]->cc_clp == NULL) {
92 (*cachep)[i]->cc_clp = clntp;
93 (*cachep)[i]->cc_ttl = now;
98 *cachep = Calloc(MALLOC_BLK_SIZE, sizeof (**cachep));
102 (*cachep)[i] = Zalloc(sizeof (***cachep));
103 (*cachep)[i]->cc_node = Strdup(node);
104 (*cachep)[i]->cc_priv_ip = Strdup(priv_ip);
105 (*cachep)[i]->cc_clp = clntp;
106 (*cachep)[i]->cc_ttl = now;
109 *cachep = Realloc(*cachep,
110 (i + MALLOC_BLK_SIZE) * sizeof (**cachep));
112 (*cachep)[j] = NULL;
118 rel_clntp(client_cache_t *cachep)
120 CLIENT *clntp = cachep->cc_clp;
126 cachep->cc_clp = NULL;
132 client_cache_t ***cachep = &header->ch_cache;
136 if (*cachep) {
137 for (i = 0; ((*cachep)[i] != NULL); i++) {
138 client_cache_t *p = (*cachep)[i];
145 Free(*cachep);
146 *cachep = NULL;
334 client_cache_t ***cachep = &client_header.ch_cache;
349 for (i = 0; (*cachep)[i] != NULL; i++) {
350 if (strcmp((*cachep)[i]->cc_node, hostname) == 0) {
351 clntp = (*cachep)[i]->cc_clp;
355 (*cachep)[i]->cc_ttl.tv_sec;
357 rel_clntp((*cachep)[i]);