cleanup: include/: move fs.h to fs/fs.h

move fs.h to fs/fs.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-25 12:09:16 -04:00
commit 656f4dfdac
59 changed files with 556 additions and 541 deletions

View file

@ -14,7 +14,7 @@ extern "C" {
#include "posix_types.h"
#ifdef CONFIG_POSIX_FS
#include <fs.h>
#include <fs/fs.h>
typedef void DIR;

View file

@ -18,7 +18,7 @@ extern "C" {
#endif
#ifdef CONFIG_POSIX_API
#include <fs.h>
#include <fs/fs.h>
/* File related operations */
extern int open(const char *name, int flags);