Comment by DonHopkins
16 days ago
I hope the new API is flexible enough to support my proposed /dev/seven, an infinite source of ^G.
https://news.ycombinator.com/item?id=17532285
>DonHopkins on July 14, 2018 | parent | context | favorite | on: The everything-is-a-file principle – Linus Torvald...
>I always wanted /dev/zero, which is used to mmap zeros into memory, to be more general and use the device minor number to define which byte gets mapped, so you could mknod /dev/seven with a minor number of 7, to provide an infinite source of beeps!
Can we also have /dev/bseven, which is the same thing but as a block device? Convenient if you ever want to be able to acquire ^G at larger scale, or randomly seek through your infinite ^G.
I want a /dev/yes. I'm tired of typing 'yes | apt install' etc. I want to type '</dev/yes apt install'. Just an infinite stream of "y\n".
CUSE on Linux can do that: https://libfuse.github.io/doxygen/cuse_8c.html