seek back in rdwr
This commit is contained in:
parent
973131adc4
commit
1bb8ccf14e
@ -306,6 +306,7 @@ xrdwr(int argc, char **argv)
|
|||||||
|
|
||||||
fid = xopen(argv[0], ORDWR);
|
fid = xopen(argv[0], ORDWR);
|
||||||
for(;;){
|
for(;;){
|
||||||
|
fsseek(fid, 0, 0);
|
||||||
if((n = fsread(fid, buf, sizeof buf)) < 0)
|
if((n = fsread(fid, buf, sizeof buf)) < 0)
|
||||||
fprint(2, "read: %r\n");
|
fprint(2, "read: %r\n");
|
||||||
else{
|
else{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user