Lines Matching defs:package
104 struct package;
108 struct package *tf_pkg;
118 struct package
120 struct package *pkg_chain;
129 static struct package *package = NULL;
131 static int new_package(int, struct package **);
137 struct package *chain;
140 while (package != NULL) {
141 inflateEnd(&package->pkg_zs);
142 close(package->pkg_fd);
144 tf = package->pkg_first;
153 chain = package->pkg_chain;
154 free(package);
155 package = chain;
162 struct package *pkg;
187 pkg->pkg_chain = package;
188 package = pkg;
194 static int get_zipped(struct package *, void *, size_t);
195 static int new_package(int, struct package **);
196 static struct tarfile *scan_tarfile(struct package *, struct tarfile *);
206 if (package == NULL)
210 * We can only read from a package, so reject request to open
219 * a package within a package. We assume we have all the files
230 * to support listing files in the package.
237 tf = scan_tarfile(package, NULL);
255 tf = scan_tarfile(package, tf);
430 tf = scan_tarfile(package, NULL);
446 get_byte(struct package *pkg, off_t *op)
466 get_zipped(struct package *pkg, void *buf, size_t bufsz)
510 struct package *pkg;
521 DBG(("%s: no package associated with file?\n", __func__));
659 new_package(int fd, struct package **pp)
661 struct package *pkg;
750 scan_tarfile(struct package *pkg, struct tarfile *last)
816 * Skip package meta-files.