On Sat, 02 Jan 2016 02:30:58 +0900, Waldemar Brodkorb wrote:
Hi Yoshinori, Yoshinori Sato wrote,
Signed-off-by: Yoshinori Sato ysato@users.sourceforge.jp
libc/misc/dirent/__readdir.c | 39 ++++++++++++++++++++++++++++++++++++++ libc/misc/dirent/readdir.c | 45 ++++---------------------------------------- libc/misc/dirent/readdir64.c | 12 ++++++++++-- 3 files changed, 53 insertions(+), 43 deletions(-) create mode 100644 libc/misc/dirent/__readdir.c
Did you find the issues you are solving in the four patches while code review or do you had runtime problems on a target?
Yes. I tested only getdents64 system (not supported getdents syscall). It don't work glob in shell.
readir calld __getdents64. but it 2nd argument type dirent. kernel assume this type is dirent64 and write dirent64 structure. So type mismatch and can't parse result in readdir.
Just to get a better understanding.
best regards Waldemar