Move prototypes of mkfifo2() from sys/stat.h and pipe2() from unistd.h. They are non-standard and should not be in such a public place. They are not in include/nuttx/fs/fs.h (which isn't a great place either).

This commit is contained in:
Gregory Nutt
2016-07-20 11:57:18 -06:00
parent aa8a52aacd
commit e73e82a923
7 changed files with 79 additions and 9 deletions
+4 -2
View File
@@ -42,7 +42,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#if CONFIG_DEV_FIFO_SIZE > 0
#include <nuttx/fs/fs.h>
#if defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0
/****************************************************************************
* Public Functions
@@ -82,5 +84,5 @@ int mkfifo(FAR const char *pathname, mode_t mode)
return mkfifo2(pathname, mode, CONFIG_DEV_FIFO_SIZE);
}
#endif /* CONFIG_DEV_FIFO_SIZE > 0 */
#endif /* CONFIG_PIPES && CONFIG_DEV_FIFO_SIZE > 0 */