include: posix: Split dirent.h from unistd.h

From POSIX
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dirent.h.html

"""
The <dirent.h> header shall define the following type:
DIR

...

also define the structure dirent
"""

etc.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2018-09-27 17:54:24 +03:00 committed by Anas Nashif
commit c152ebd634
4 changed files with 39 additions and 11 deletions

View file

@ -9,6 +9,7 @@
#include <limits.h>
#include <posix/pthread.h>
#include <posix/unistd.h>
#include <posix/dirent.h>
#include <string.h>
BUILD_ASSERT_MSG(PATH_MAX > MAX_FILE_NAME,