From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10611210737l6796930eibbd12721570520ab@mail.gmail.com> Date: Tue, 21 Nov 2006 08:37:19 -0700 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: echo -n In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Topicbox-Message-UUID: e465b120-ead1-11e9-9d60-3106f5b1d025 On 11/21/06, Fco. J. Ballesteros wrote: > : I think Plan 9 got it completely right. Being able to push a 0-byte > : write through the kernel is mighty handy. I got quite annoyed with > : Unix at various points over the years as I watched "optimizations" > : gobble up my attempts to get a 0 byte write through the kernel. > > Do you remember why you wanted to push a 0-byte write? it's usually io or networking. many of the wacky networks I have dealt with have at times needed a 0-byte write; we got the effect via ioctl, since the kernel gobbled up 0-byte writes, the kernel of course knowing much better than you what you were trying to do, e.g. Linux. there is of course the need to write a blank punch card with a 0-byte write, assuming you can find a card punch. And as david mentioned, in a real case, tape marks. but, seriously, it's the general issue that you need to tell something (program, io device, network, whatever) that you don't have anything to say, which is not the same as saying nothing. ron