3 ms·
But you can't actually treat everything like a file, so you have to turn to ioctl and whatever structure is actually related to what you're working with in real
by AnIdiotOnTheNet 9y ago
But you can't actually treat everything like a file, so you have to turn to ioctl and whatever structure is actually related to what you're working with in reality.
In a sense, we only treat everything as a file the same way some languages have a toString method for everything. You can get something out of it no matter what it is, but there's no guarantee that something is going to be in any way useful and you still have to interact with it in a way that doesn't treat it like a generic string.