jilles 3c3ab42fd9 directory(3): Deprecate readdir_r(). Clarify dirent buffers.
In existing implementations including FreeBSD, there is no reason to use
readdir_r() in the common case where potentially multiple threads each list
their own directory. Code using readdir() is simpler.

What's more, lthough readdir_r() can safely be used on FreeBSD because
NAME_MAX is forced to 255, it cannot be used safely on systems where
{NAME_MAX} is not fixed. As a concrete example, FAT/NTFS filenames can be up
to 255 UTF-16 code units long, which can be up to 765 UTF-8 bytes.

Deprecating readdir_r() in POSIX has been proposed in
http://www.austingroupbugs.net/view.php?id=696
and glibc wants to deprecate it as well.

Reviewed by:	ed, wblock
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D7678
2016-08-31 20:38:40 +00:00
..
2016-08-31 19:30:46 +00:00
2016-08-31 00:11:35 +00:00
MFH
2016-04-04 23:55:32 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-08-31 15:05:04 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-02-10 04:20:39 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-05-12 03:53:20 +00:00
2016-08-27 13:40:27 +00:00
2016-02-16 02:14:30 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-06-04 14:57:25 +00:00
MFH
2016-03-14 18:54:29 +00:00
MFH
2016-04-11 15:24:59 +00:00
2016-05-18 15:25:45 +00:00
MFH
2016-04-13 16:19:50 +00:00
2016-05-29 01:43:28 +00:00
MFH
2016-04-16 02:32:12 +00:00
MFH
2016-04-04 23:55:32 +00:00