I suppose it depends on how it's done... but Xenix attached shared memory
(*not* of the mmap() variety) and semaphores into the filesystem (type
S_IFNAM, with the type S_INSHD / S_INSEM encoded in rdev). It was generally
more of an annoyance than anything else, since you couldn't use the ordinary
file calls to access them (open() got EISNAM IIRC).
That said, message queues *do* fit the file model to a considerable extent;
one could use special flags to poll() to implement the full functionality of
System V's msgrcv() and use select() to deal with the most common case
(possibly with an fcntl()/ioctl() to set a desired message type mask).
-- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu carnegie mellon / electrical and computer engineering KF8NH We are Linux. Resistance is an indication that you missed the point.
- 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/