Lines Matching refs:package
106 struct package;
110 struct package *tf_pkg;
120 struct package
122 struct package *pkg_chain;
131 static struct package *package = NULL;
133 static int new_package(int, struct package **);
138 struct package *chain;
141 while (package != NULL) {
142 inflateEnd(&package->pkg_zs);
143 close(package->pkg_fd);
145 tf = package->pkg_first;
154 chain = package->pkg_chain;
155 free(package);
156 package = chain;
163 struct package *pkg;
188 pkg->pkg_chain = package;
189 package = pkg;
195 static int get_zipped(struct package *, void *, size_t);
196 static int new_package(int, struct package **);
197 static struct tarfile *scan_tarfile(struct package *, struct tarfile *);
207 if (package == NULL)
211 * We can only read from a package, so reject request to open
220 * a package within a package. We assume we have all the files
231 * to support listing files in the package.
238 tf = scan_tarfile(package, NULL);
245 tf = scan_tarfile(package, tf);
405 tf = scan_tarfile(package, NULL);
421 get_byte(struct package *pkg, off_t *op)
441 get_zipped(struct package *pkg, void *buf, size_t bufsz)
473 struct package *pkg;
484 DBG(("%s: no package associated with file?\n", __func__));
615 new_package(int fd, struct package **pp)
617 struct package *pkg;
706 scan_tarfile(struct package *pkg, struct tarfile *last)
772 * Skip package meta-files.