search for: 5e6e073

Displaying 1 result from an estimated 1 matches for "5e6e073".

Did you mean: 56073
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...f ((flags & O_ACCMODE) == O_WRONLY) { + errno = EINVAL; + return NULL; + } + + dp = malloc(sizeof(DIR)); + + if(!dp) + return NULL; + + dp->__fd = fd; + dp->next = NULL; + dp->bytes_left = 0; + return dp; +} diff --git a/usr/klibc/tests/Kbuild b/usr/klibc/tests/Kbuild index a3e0254..5e6e073 100644 --- a/usr/klibc/tests/Kbuild +++ b/usr/klibc/tests/Kbuild @@ -14,6 +14,7 @@ static-y := $(test-files:.c=) shared-y := $(addsuffix .shared, $(static-y)) environ.shared-y := environ.o +fdopendir.shared-y := fdopendir.o fcntl.shared-y := fcntl.o fnmatch.shared-y := fnmatch.o getopttest....