Zero based index of the next dirent structure in the array.
d_reclen
Size of this dirent structure.
d_name
Null-terminated directory name. This member is actually has a variable size, but cannot exceed NAME_MAX+1 (256) bytes.
edx
Size of the array pointed by ecx.
Return values
If the system call succeeds the return value is number of bytes read. If directory end is reached, 0 is returned.
If the system call fails the return value is one of the following errno values:
-EBADF
Invalid file descriptor.
-ENOTDIR
File descriptor does not refer to a directory.
-ENOENT
No such directory.
-EINVAL
Result buffer is too small.
-EFAULT
Argument points outside the calling process's address space.