Lines Matching refs:device
68 extern char *devattr(char *device, char *attribute);
71 extern int getvol(char *device, char *label, int options, char *prompt);
72 extern int _getvol(char *device, char *label, int options, char *prompt,
76 extern int ds_ginit(char *device);
116 static int wdsheader(struct dm_buf *, char *src, char *device,
154 pkghead(char *device)
162 if (device == NULL)
164 else if ((device[0] == '/') && !isdir(device)) {
165 pkgdir = device;
167 } else if ((pt = devattr(device, "pathname")) != NULL && !isdir(pt)) {
173 if (n = pkgtrans(device, (char *)0, allpkg, PT_SILENT|PT_INFO_ONLY,
330 /* transfer spool to appropriate device */
422 * output device isn't a stream. If we're making a signed
925 wdsheader(struct dm_buf *hdr, char *src, char *device, char **pkg, PKCS7 *sig)
942 ds_fd = creat(device, 0644);
944 ds_fd = open(device, 1);
948 logerr(pkg_gt(MSG_OPEN), device, errno);
952 if (ds_ginit(device) < 0) {
954 logerr(pkg_gt(MSG_OPEN), device, errno);
1206 * source device is a datstream, in which case only
1687 * device pointed to by the static 'srcdev' variable,