Messages in this thread | | | Date | Sun, 27 Jun 1999 14:46:13 +0200 | From | Werner Almesberger <> | Subject | Re: Improving the Unix API |
| |
Francois-Rene Rideau wrote: > Robert told me that in some Unix flavors of old, > it was possible to open a file by path with a null access mode (O_NULL ?)
E.g. Linux. Very undocumented, but has been around for ages ('92 or such). The main purpose is to keep the floppy drive from spinning up to check for a media change when you open it to access parameters and such. E.g. fdformat, setfdprm, and LILO use this. (NB: some versions of strace print the flags argument in this case as "0x4", although it's really 3.)
- Werner
-- _________________________________________________________________________ / Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch / /_IN_R_131__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |