search for: 14bd99b

Displaying 1 result from an estimated 1 matches for "14bd99b".

Did you mean: 14abd99f
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...suffix .shared, $(static-y)) environ.shared-y := environ.o +fdopendir.shared-y := fdopendir.o fcntl.shared-y := fcntl.o fnmatch.shared-y := fnmatch.o getopttest.shared-y := getopttest.o diff --git a/usr/klibc/tests/fdopendir.c b/usr/klibc/tests/fdopendir.c new file mode 100644 index 0000000..14bd99b --- /dev/null +++ b/usr/klibc/tests/fdopendir.c @@ -0,0 +1,31 @@ +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <dirent.h> +#include <stdio.h> + +int main() +{ + DIR *dir; + struct dirent dirent; + int fd; + + /* XXX: use mktemps */ + fd =...