I've found a typo in the getdents(2) manual page today. In the description of a dirent structure as given by the getdents(2) manual page, d_name is erronously described as being MAXNAMELEN + 1 bytes long, while actually it is MAXNAMLEN + 1 bytes long, as correctly described in dirent(3) - Giuseppe Gatta