[uClibc]Re: readdir with uclibc

Miles Bader miles at lsi.nec.co.jp
Mon Feb 10 04:31:14 UTC 2003


Mike Bush <mbush at rogers.com> writes:
>  I attempt to stat a the file, but it always will fail because
> struct dirent 's d_name does not contain the proper file name.
> 
> and I open and read the files in directory def, d_name contains the file 
> name 'bc' not 'abc'

It sounds like you're getting the wrong <bits/dirent.h>, perhaps glibc's
-- uClibc's version doesn't have the d_type file, and so the name starts
one byte sooner.

You might want to do a `cc -E' equivalent, and see where
<bits/dirent.h> is coming from.

-Miles
-- 
`Life is a boundless sea of bitterness'



More information about the uClibc mailing list