I just want to clarify one misconception I've seen in linux-kernel
several times: Quake _DOES_ need to open /dev/dsp O_RDWR.
The reason is that Quake does an mmap MAP_SHARED PROT_WRITE on the
file descriptor from opening /dev/dsp, and Linux' mmap requires
the file descriptor to admit reading, even when PROT_READ or
PROT_EXEC aren't set. (See mm/mmap.c around line 209.)
/Mikael
-
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/