Hi To fadden, I am not sure that using dirent instead of dirent64 will work without any regression but I will try.
To Elvis There is similar structure in my cupcake source tree: "struct linux_dirent64" defined in kernel/include/linux/dirent.h is almost same to dirent64 defined in bionic/libc/kernel/common/linux/dirent.h. How can I sure that dirent64 is supported in bionic of current cupcake source tree. Another question is that is there any support for telldir and seekdir? If not available, what should I do to add the replacements? Best regards On Jul 28, 1:12 pm, Elvis Dowson <elvis.dow...@gmail.com> wrote: > Hi, I encountered a similar error, > seehttp://groups.google.com/group/android-porting/browse_thread/thread/8... > > check to see if you have direct64 in your current kernel headers in bionic > libc. > > diff --git a/libc/kernel/common/linux/dirent.h b/libc/kernel/common/ > linux/dirent.h > index 7799fe3..3f8628f 100644 > --- a/libc/kernel/common/linux/dirent.h > +++ b/libc/kernel/common/linux/dirent.h > @@ -12,9 +12,24 @@ > #ifndef _LINUX_DIRENT_H > #define _LINUX_DIRENT_H > > +struct dirent { > +long d_ino; > +__kernel_off_t d_off; > + unsigned short d_reclen; > + char d_name[256]; > +}; > + > +struct dirent64 { > + __u64 d_ino; > + __s64 d_off; > + unsigned short d_reclen; > + unsigned char d_type; > + char d_name[256]; > +}; > > Best regards, > > Elvis --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---