From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 23 Oct 1995 08:13:03 -0400 From: forsyth@plan9.cs.york.ac.uk forsyth@plan9.cs.york.ac.uk Subject: mothra Topicbox-Message-UUID: 2fb9a910-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19951023121303.VDdDpr2LkK93-5bKIFQ7jnZZwfWQi9Lqdhzi2_sNZlY@z> mothra's save function seems to go into a loop, generating write(..., ..., 0) . certainly it seems to be responsible for the Twrite(count=0) requests i'm seeing on the ethernet, and the code save+#113? CALL read(SB) save+#118? MOVL AX,CX save+#11a? CMPL AX,$#0 save+#11d? JLT save+#13c(SB) save+#11f? MOVL ofd+#1014(SP),AX save+#126? MOVL AX,#0(SP) save+#129? LEA buf+#c(SP),AX save+#12d? MOVL AX,#4(SP) save+#131? MOVL CX,#8(SP) save+#135? CALL write(SB) looks like while((n=read(fd1, buf, sizeof(buf)))>=0) write(fd2, ..., n); to me. perhaps this is an appropriate time to beg for a boddle of the mothra changes, so i can reconstruct the source, and libpanel updates, if any?