
PROBLEM:        (QAR39830)      (Patch ID: OSF375-350231)
********
This patch fixes a problem where the System V getdirentries() system call
 did not correctly calculate the number of entries in a directory inode
when accessing the /dev/fd file system.

The problem resulted in the readdir() function returning erroneous directory
entries when used on the /dev/fd file system and also caused error messages
to be produced by the ksh builtin dir command when used on /dev/fd.

Error messages such as the following are typical:

stat: /dev/fd/ptyq9: No such file or directory
stat: /dev/fd/ttyq9: No such file or directory
stat: /dev/fd/ptyqa: No such file or directory
stat: /dev/fd/ttyqa: No such file or directory


The problem can be reproduced by using the System V ksh builtin dir command
on /dev/fd.

