Re: [coders] ENOMEDIUM... and the answer is...

2009-07-29 Thread Daniel Pittman
Peter Miller writes: > On Wed, 2009-07-29 at 09:20 +1000, Peter Miller wrote: > >> Today's quiz is related to ENOMEDIUM. > > And the answer is > O_NONBLOCK > > If, on Linux, you open /dev/cdrom with O_NONBLOCK, you can open a CD-ROM > drive that contains no disc. This is also true for tap

Re: [coders] ENOMEDIUM... and the answer is...

2009-07-29 Thread Conrad Parker
2009/7/29 Peter Miller : > On Wed, 2009-07-29 at 09:20 +1000, Peter Miller wrote: > >> Today's quiz is related to ENOMEDIUM. > > And the answer is > >        O_NONBLOCK > > If, on Linux, you open /dev/cdrom with O_NONBLOCK, you can open a CD-ROM > drive that contains no disc.  This is also true for

Re: [coders] ENOMEDIUM... and the answer is...

2009-07-29 Thread Peter Miller
On Wed, 2009-07-29 at 09:20 +1000, Peter Miller wrote: > Today's quiz is related to ENOMEDIUM. And the answer is O_NONBLOCK If, on Linux, you open /dev/cdrom with O_NONBLOCK, you can open a CD-ROM drive that contains no disc. This is also true for tape devices. The same code appears i