tseek back in rdwr - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1bb8ccf14e1c405e8bd038b80b286e233c4a1556
 (DIR) parent 973131adc41df0cae90eb35431047b697294809f
 (HTM) Author: rsc <devnull@localhost>
       Date:   Tue, 14 Feb 2006 19:41:02 +0000
       
       seek back in rdwr
       
       Diffstat:
         M src/cmd/9p.c                        |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/9p.c b/src/cmd/9p.c
       t@@ -306,6 +306,7 @@ xrdwr(int argc, char **argv)
        
                fid = xopen(argv[0], ORDWR);
                for(;;){
       +                fsseek(fid, 0, 0);
                        if((n = fsread(fid, buf, sizeof buf)) < 0)
                                fprint(2, "read: %r\n");
                        else{