Message-ID: <003101c06ded$c2781420$9f4d57cb@spunky> From: "JB" To: References: <3A460B93 DOT 2347528B AT bigfoot DOT com> <2110-Sun24Dec2000202824+0200-eliz AT is DOT elta DOT co DOT il> <200012242003 DOT PAA29486 AT envy DOT delorie DOT com> Subject: Re: An implementation of /dev/zero for DJGPP Date: Mon, 25 Dec 2000 08:09:08 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Reply-To: djgpp-workers AT delorie DOT com If /dev/zero can be used on Windoes, does that mean things like /dev/floppy, /dev/cdrom, /dev/modem even, can be used also? -- James Buchanan ----- Original Message ----- From: "DJ Delorie" To: Sent: Monday, December 25, 2000 7:03 AM Subject: Re: An implementation of /dev/zero for DJGPP > > > This actually raises a more serious problem: how does an application > > requests that /dev/zero support to be linked in? > > One way is via command line: > > gcc -Wl,-u,__use_dev_zero ... > > Or, in main, > > __use_dev_zero(); > > I think very few programs actually need /dev/zero; dd is the only one > (aside from programs that mmap() it for shared memory, which we don't > support (yet?)) that I can think of that really benefits from it. > > I guess it depends on how big the handler is, and if we want to carry > that kind of load in *every* program, and how big such a load can get > as we add more and more handlers. > > I would think that making it the default would be wrong in general. >