Searched refs:tapebuf (Results 1 – 1 of 1) sorted by relevance
| /openbsd/src/sbin/restore/ |
| D | tape.c | 65 static char *tapebuf; variable 180 free(tapebuf); in newtapebuf() 181 tapebuf = calloc(size, TP_BSIZE); in newtapebuf() 182 if (tapebuf == NULL) in newtapebuf() 841 memcpy(buf, &tapebuf[(blkcnt++ * TP_BSIZE)], TP_BSIZE); in readtape() 847 ((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0; in readtape() 855 i = rmtread(&tapebuf[rd], cnt); in readtape() 858 i = read(mt, &tapebuf[rd], cnt); in readtape() 913 memset(tapebuf, 0, i); in readtape() 941 memcpy(&tapebuf[rd], &endoftapemark, TP_BSIZE); in readtape() [all …]
|