readdir not setting d_type 0.9.28

Rogelio Serrano rogelio.serrano at
Wed Sep 6 17:40:27 UTC 2006

readdir is not setting d_type in struct dirent?

am i missing something?

hre is the test im using:

#include <dirent.h>
#include <stdio.h>

    struct dirent * de;
    DIR * mydir;

    mydir = opendir("testdir");
    de = readdir(mydir);
         printf("%d\n", de->d_type);
        de = readdir(myfir);
    return 0;

im using 0.9.28 on 2.6.17

the thing i like with my linux pc is that i can sum up my complaints in 5 items

More information about the uClibc mailing list