3 ms·
readlink(2) takes a buffer and the buffer's size, so it's safe. You just enter a race-controlled loop, as always.
by dom0 10y ago
readlink(2) takes a buffer and the buffer's size, so it's safe. You just enter a race-controlled loop, as always.
- klodolph 10y agoI should have been clearer: the complaint was about the API usability, not about safety. The POSIX API is a total mess when it comes to things like this.