Searched defs:tape (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/cmd/mt/
H A Dmt.c15 * mt -- magnetic tape manipulation program
94 char *tape; local
102 tape = argv[2];
105 tape = getenv("TAPE");
106 if (tape == NULL) {
107 tape = DEFAULT_NRW_TAPE;
129 mtfd = open(tape, comp->c_oflag);
138 "%s: no tape loaded or drive offline\n", tape);
141 "%s: write protected or reserved.\n", tape);
[all...]
/illumos-gate/usr/src/cmd/rmt/
H A Drmt.c30 * Has three locks (for stdin, stdout, and the tape)
114 static int tape = -1; variable
217 rval = llseek(tape, atoll(count), atoi(pos));
269 rval = (offset_t)ioctl(tape, MTIOCTOP,
294 rval = (offset_t)ioctl(tape, MTIOCGET, (char *)&mtget);
375 rval = (offset_t)write(tape, record, n);
389 rval = (offset_t)read(tape, record, n);
422 rval = (offset_t)close(tape);
430 (void) close(tape);
442 tape
[all...]
/illumos-gate/usr/src/cmd/backup/lib/
H A Drmtlib.c47 static uint_t ntrec; /* blocking factor on tape */
231 rmtopen(char *tape, int mode) argument
237 (void) snprintf(buf, sizeof (buf), "O%s\n%d\n", tape, mode);
239 fd = rmtcall(tape, buf);
466 * and the tape is not loaded (EIO error)
481 "Protocol to remote tape server botched (code %s?).\n"),
509 "Protocol to remote tape server botched (in rmtgets).\n"));
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.h70 /* audio, cd, floppy, rmdisk, tape */
123 #define DA_TAPE_NAME "tape"
146 deventry_t *tape; member in struct:_devlist_t
/illumos-gate/usr/src/cmd/allocate/
H A Dmkdevalloc.c32 * tape (cartridge)
87 struct tape { struct
91 } *tape; variable in typeref:struct:tape
270 ntape = expandmem(i, (void **)&tape,
271 sizeof (struct tape));
280 tape[i].name = nm;
283 if (lstat(tape[i].name, &stat) < 0) {
291 if ((sz = readlink(tape[i].name, linkvalue,
299 tape[i].device = nm;
302 cp = strrchr(tape[
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddump.h111 char *tape; /* name of the tape file */ variable
112 char *host; /* name of the remote tape host (may be "user@host") */
120 char *tlabel; /* what goes in tape header c_label field */
123 int to; /* tape file descriptor */
126 int tapeout; /* true => output to a tape drive */
129 int leftover; /* number of tape recs left over from prev vol */
131 int newtape; /* new tape flag */
135 ulong_t tsize; /* tape size in 0.1" units */
136 u_offset_t esize; /* estimated tape siz
[all...]
/illumos-gate/usr/src/cmd/backup/restore/
H A Dtape.c41 static int bct; /* block # index into tape record buffer */
42 static int numtrec; /* # of logical blocks in current tape record */
49 static long tapea; /* current logical block # on tape */
105 char *tape; local
108 tape = strchr(host, ':');
109 *tape++ = '\0';
110 if (strlen(tape) > (sizeof (magtape) - 1)) {
114 (void) strcpy(magtape, tape);
179 * Verify that the tape drive can be accessed and
180 * that it actually is a dump tape
[all...]

Completed in 61 milliseconds