Searched refs:gcache (Results 1 - 2 of 2) sorted by relevance

/netbsd-current/external/bsd/libarchive/dist/libarchive/
H A Darchive_read_disk_set_standard_lookup.c97 struct name_cache *gcache = malloc(sizeof(struct name_cache)); local
99 if (ucache == NULL || gcache == NULL) {
103 free(gcache);
110 memset(gcache, 0, sizeof(*gcache));
111 gcache->archive = a;
112 gcache->size = name_cache_size;
114 archive_read_disk_set_gname_lookup(a, gcache, lookup_gname, cleanup);
H A Darchive_write_disk_set_standard_lookup.c87 struct bucket *gcache = calloc(cache_size, sizeof(struct bucket)); local
88 if (ucache == NULL || gcache == NULL) {
90 free(gcache);
93 archive_write_disk_set_group_lookup(a, gcache, lookup_gid, cleanup);
103 struct bucket *gcache = (struct bucket *)private_data; local
111 b = &gcache[h % cache_size ];

Completed in 198 milliseconds