mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user