Author rpointel
Recipients rosslagerwall, rpointel, vstinner
Date 2011-08-29.13:29:35
SpamBayes Score 0.00153088
Marked as misclassified No
Message-id <1314624575.77.0.987432354255.issue12852@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I tested with this program in C:

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

int
main(void)
{
    DIR *d;
    struct dirent *dp;
    int dfd;

    if ((d = fdopendir((dfd = open("/tmp", O_RDONLY)))) == NULL) {
        fprintf(stderr, "Cannot open /tmp directory\n");
        exit(1);
    }
    while ((dp = readdir(d)) != NULL) {
        if (dp->d_name[0] == '.')
            continue;
            printf("%s, \n", dp->d_name);
    }
    closedir(d);
    return 0;
}


and it seems to correctly works.

Remi.
History
Date User Action Args
2011-08-29 13:29:35rpointelsetrecipients: + rpointel, vstinner, rosslagerwall
2011-08-29 13:29:35rpointelsetmessageid: <1314624575.77.0.987432354255.issue12852@psf.upfronthosting.co.za>
2011-08-29 13:29:35rpointellinkissue12852 messages
2011-08-29 13:29:35rpointelcreate