|
|
1.1 ! root 1: /* @(#)rewind.c 1.2 */ ! 2: /* 3.0 SID # 1.2 */ ! 3: #include "fio.h" ! 4: f_rew(a) alist *a; ! 5: { ! 6: unit *b; ! 7: if(a->aunit>=MXUNIT || a->aunit<0) err(a->aerr,101,"rewind"); ! 8: b = &units[a->aunit]; ! 9: if(b->ufd == NULL) return(0); ! 10: if(!b->useek) err(a->aerr,106,"rewind") ! 11: if(b->uwrt) ! 12: { (void) nowreading(b); ! 13: (void) t_runc(b); ! 14: } ! 15: rewind(b->ufd); ! 16: b->uend=0; ! 17: return(0); ! 18: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.