Lines Matching defs:scache
1 /* $NetBSD: scache.c,v 1.2 2017/02/14 01:16:45 christos Exp $ */
5 /* scache 3
9 /* #include <scache.h>
19 /* unsigned scache_size(scache, size)
20 /* SCACHE *scache;
23 /* void scache_free(scache)
24 /* SCACHE *scache;
26 /* void scache_save_endp(scache, endp_ttl, endp_label, endp_prop, fd)
27 /* SCACHE *scache;
33 /* int scache_find_endp(scache, endp_label, endp_prop)
34 /* SCACHE *scache;
38 /* void scache_save_dest(scache, dest_ttl, dest_label,
40 /* SCACHE *scache;
47 /* SCACHE *scache;
166 #include <scache.h>
177 static SCACHE *scache;
210 if (scache != 0)
211 scache_free(scache);
214 scache = cp->create();
255 scache_save_endp(scache, ttl, argv->argv[2], argv->argv[3], fd);
268 if ((fd = scache_find_endp(scache, argv->argv[1], endp_prop)) >= 0)
282 scache_save_dest(scache, ttl, argv->argv[2], argv->argv[3], argv->argv[4]);
295 if ((fd = scache_find_dest(scache, argv->argv[1], dest_prop, endp_prop)) >= 0)
389 if ((ap->flags & FLAG_NEED_CACHE) != 0 && scache == 0)
402 scache_free(scache);