Lines Matching refs:device

51 extern char	*devattr(char *device, char *attribute);
54 extern int getvol(char *device, char *label, int options, char *prompt);
95 int ds_next(char *device, char *instdir);
96 int ds_ginit(char *device);
111 static int ds_getnextvol(char *device);
112 static int ds_skip(char *device, int nskip);
183 ds_readbuf(char *device) in ds_readbuf() argument
189 if ((ds_fd = open(device, O_RDONLY)) >= 0 && in ds_readbuf()
201 if (ds_ginit(device) < 0) { in ds_readbuf()
203 logerr(pkg_gt(MSG_OPEN), device, errno); in ds_readbuf()
292 ds_init(char *device, char **pkg, char *norewind) in ds_init() argument
305 if ((ds_fd = open(device, O_RDONLY)) < 0) { in ds_init()
307 logerr(pkg_gt(MSG_OPEN), device, errno); in ds_init()
319 if (ds_ginit(device) < 0) { in ds_init()
322 logerr(pkg_gt(MSG_OPEN), device, errno); in ds_init()
361 logerr(pkg_gt(MSG_OPEN), device, errno); in ds_init()
367 if (ds_ginit(device) < 0) { in ds_init()
370 logerr(pkg_gt(MSG_OPEN), device, errno); in ds_init()
417 ds_device = device; in ds_init()
519 ds_findpkg(char *device, char *pkg) in ds_findpkg() argument
527 if (ds_init(device, pkglist, NULL)) in ds_findpkg()
562 if (ds_volpart > 0 && ds_getnextvol(device)) in ds_findpkg()
565 if (ds_skip(device, ods_volpart)) in ds_findpkg()
568 if (ds_skip(device, nskip - ds_totread)) in ds_findpkg()
583 ds_getpkg(char *device, int n, char *dstdir) in ds_getpkg() argument
611 return (ds_next(device, dstdir)); in ds_getpkg()
615 ds_getnextvol(char *device) in ds_getnextvol() argument
625 if (n = getvol(device, NULL, NULL, prompt)) in ds_getnextvol()
627 if ((ds_fd = open(device, O_RDONLY)) < 0) in ds_getnextvol()
629 if (ds_ginit(device) < 0) { in ds_getnextvol()
642 ds_skip(char *device, int nskip) in ds_skip() argument
658 if (n = ds_getnextvol(device)) in ds_skip()
670 ds_skiptoend(char *device) in ds_skiptoend() argument
673 (void) ds_skip(device, ds_nparts - ds_read); in ds_skiptoend()
677 ds_next(char *device, char *instdir) in ds_next() argument
686 if (n = ds_getnextvol(device)) in ds_next()
707 if (n = ds_getnextvol(device)) in ds_next()
734 BIO_ds_dump(PKG_ERR *err, char *device, BIO *bio) in BIO_ds_dump() argument
746 pkgerr_add(err, PKGERR_WRITE, ERR_WRITE, device, in BIO_ds_dump()
793 ds_ginit(char *device) in ds_ginit() argument
799 if ((pbufsize = devattr(device, "bufsize")) != NULL) { in ds_ginit()