3 ms·
The "unopen" syscall actually exists, albeit under a different name: linkat https://linux.die.net/man/2/linkat https://linux.die.net/man/2/linkat
by datenwolf 7y ago
The "unopen" syscall actually exists, albeit under a different name: linkat
https://linux.die.net/man/2/linkat https://linux.die.net/man/2/linkat
- colonwqbang 7y agoI don't think it's the same thing. Linkat is still starting with a file that exists in the filesystem. In my silly world, unopen() would just take any fd (socket, file, pipe, etc.) and create a file system binding which anyone could open. Kind of like how /proc works on Linux today.