10 ms·
> It's really unfortunate the posix link() system call takes a pair of paths. It should really take an inode. You can do something like this on Linux for open
by scottlamb 9y ago
> It's really unfortunate the posix link() system call takes a pair of paths. It should really take an inode.
You can do something like this on Linux for open file descriptors via linkat(..., AT_EMPTY_PATH). However, you need the CAP_DAC_READ_SEARCH capability, which limits its usefulness.