Lines Matching refs:tape
729 msg(gettext("Write error on %s\n"), tape); in tperror()
1039 if (strchr(tape, ':')) { in nextdevice()
1044 host = tape; in nextdevice()
1045 tape = strchr(host, ':'); in nextdevice()
1046 *tape++ = 0; in nextdevice()
1069 dumpdev = xmalloc((size_t)((sizeof (spcl.c_host) + strlen(tape) + 2))); in nextdevice()
1071 (void) sprintf(dumpdev, "%.*s:%s", (int)sizeof (spcl.c_host), cp, tape); in nextdevice()
1094 c = strrchr(tape, '/'); in isrewind()
1096 c = tape; in isrewind()
1105 else if ((strstr(tape, "mt") || strstr(tape, "st")) && in isrewind()
1106 sscanf(tape, "%*[a-zA-Z/]%d", &unit) == 1 && in isrewind()
1115 tape); in isrewind()
1307 if (rmtopen(tape, O_RDONLY) >= 0) { in changevol()
1314 m = (access(tape, F_OK) == 0) ? 0 : O_CREAT; in changevol()
1316 safe_device_open(tape, O_RDONLY, 0600) : in changevol()
1317 safe_device_open(tape, O_RDONLY|m, 0600)) in changevol()
1533 while ((to = host ? rmtopen(tape, O_RDONLY) : in otape()
1535 safe_device_open(tape, O_RDONLY, 0600)) < 0) { in otape()
1536 perror(tape); in otape()
1597 while ((to = host ? rmtopen(tape, O_WRONLY) : in otape()
1598 safe_device_open(tape, O_WRONLY, 0600)) < 0) in otape()
1605 m = (access(tape, F_OK) == 0) ? 0 : O_CREAT; in otape()
1613 rmtopen(tape, O_WRONLY) : in otape()
1614 safe_device_open(tape, O_WRONLY|m, 0600)) in otape()
1634 tape, mt.mt_fileno+1, filenum); in otape()
2404 m = (access(tape, F_OK) == 0) ? 0 : O_CREAT; in positiontape()
2410 while ((to = host ? rmtopen(tape, O_RDONLY) : in positiontape()
2411 safe_device_open(tape, O_RDONLY|m, 0600)) < 0) { in positiontape()