getdirentries.2: Reference directory(3)
MFC after: 3 days
(cherry picked from commit 3a02df5e27d2eeabffd761ff5cb79496a6d796ea)