3 ms·
Nothing is ever "pure". Linux isn't pure, ultimate Unix philosophy. ioctl, mmap, sockets could be represented as files, why not? `echo 1 > /root/some-file/%lo
by 1_player 7y ago
Nothing is ever "pure". Linux isn't pure, ultimate Unix philosophy.
ioctl, mmap, sockets could be represented as files, why not?
`echo 1 > /root/some-file/%lock` instead of fcntl(F_SETLK) -- I just made up this syntax
`echo SIGTERM > /proc/15683/signal` instead of kill
Not sure about mmap, since its very purpose it to map a file to memory.
- DonHopkins 7y ago>ioctl, mmap, sockets could be represented as files, why not? The fact that they're not may be a clue to answering that question.