bindfs icon indicating copy to clipboard operation
bindfs copied to clipboard

`readdir_r` is deprecated

Open mpartel opened this issue 7 years ago • 3 comments

Turns out readdir_r was deprecated around a year ago: https://lwn.net/Articles/696474/

We can probably safely replace it with readdir, but should check documentation on OS X and FreeBSD to be sure. Switching away from it would help avoid problems like #54.

mpartel avatar Jun 18 '17 12:06 mpartel

readdir seems to exist both on OS X and FreeBSD: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/readdir.3.html https://www.freebsd.org/cgi/man.cgi?query=readdir&sektion=3

tyll avatar Nov 03 '17 05:11 tyll

Sorry, I was vague. The question is whether we can count on it being thread-safe. Neither of those man-pages seems mention that.

I can easily imagine a thread-safe implementation and don't know why any non-ancient implementation wouldn't be thread-safe, but it'd be nice to know for sure.

mpartel avatar Nov 03 '17 09:11 mpartel