Message143147
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. |
|
Date |
User |
Action |
Args |
2011-08-29 13:29:35 | rpointel | set | recipients:
+ rpointel, vstinner, rosslagerwall |
2011-08-29 13:29:35 | rpointel | set | messageid: <1314624575.77.0.987432354255.issue12852@psf.upfronthosting.co.za> |
2011-08-29 13:29:35 | rpointel | link | issue12852 messages |
2011-08-29 13:29:35 | rpointel | create | |
|