1: #ifndef lint 2: static char *sccsid = "@(#)rewind.c 4.1 (Berkeley) 10/1/80"; 3: #endif 4: /* rewinds mag tape drive */ 5: main(argc,argv) char**argv; { 6: char *f; 7: int fd; 8: 9: if (argc > 1) f = argv[1]; 10: else f = "/dev/mt0"; 11: 12: fd = open(f,0); 13: if (fd < 0) printf("Can't open %s\n",f); 14: else close(fd); 15: }