The output buffer given to getdents may not be large enough for the next directory entry. If no directory entries has been loaded into the buffer, just return EINVAL. Otherwise, return the total length of the directory entries already loaded in the buffer |
||
---|---|---|
.. | ||
main.c | ||
Makefile |