NSH: cmd_mkfifo depend son CONFIG_DEV_PIPE_SIZE > 0
This commit is contained in:
parent
aaedd7c0ab
commit
e4914622b3
@ -1201,7 +1201,7 @@ Command Dependencies on Configuration Settings
|
||||
mb,mh,mw ---
|
||||
mkdir (((!CONFIG_DISABLE_MOUNTPOINT && CONFIG_FS_WRITABLE) || !CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && CONFIG_NFILE_DESCRIPTORS > 0)
|
||||
mkfatfs !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT
|
||||
mkfifo CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_PIPES
|
||||
mkfifo CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_PIPES && CONFIG_DEV_PIPE_SIZE > 0
|
||||
mkrd !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
||||
mount !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_READABLE (see note 3)
|
||||
mv (((!CONFIG_DISABLE_MOUNTPOINT && CONFIG_FS_WRITABLE) || !CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && CONFIG_NFILE_DESCRIPTORS > 0) (see note 4)
|
||||
|
@ -1039,7 +1039,8 @@ int cmd_lsmod(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||
# if defined(CONFIG_SMART_DEV_LOOP) && !defined(CONFIG_NSH_DISABLE_LOSMART)
|
||||
int cmd_losmart(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||
# endif
|
||||
# if defined(CONFIG_PIPES) && !defined(CONFIG_NSH_DISABLE_MKFIFO)
|
||||
# if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0 && \
|
||||
!defined(CONFIG_NSH_DISABLE_MKFIFO)
|
||||
int cmd_mkfifo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||
# endif
|
||||
# ifdef CONFIG_FS_READABLE
|
||||
|
@ -297,7 +297,8 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0
|
||||
# if defined(CONFIG_PIPES) && !defined(CONFIG_NSH_DISABLE_MKFIFO)
|
||||
# if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0 && \
|
||||
!defined(CONFIG_NSH_DISABLE_MKFIFO)
|
||||
{ "mkfifo", cmd_mkfifo, 2, 2, "<path>" },
|
||||
# endif
|
||||
#endif
|
||||
|
@ -1181,7 +1181,8 @@ int cmd_mkfatfs(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
****************************************************************************/
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||
#if defined(CONFIG_PIPES) && !defined(CONFIG_NSH_DISABLE_MKFIFO)
|
||||
# if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0 && \
|
||||
!defined(CONFIG_NSH_DISABLE_MKFIFO)
|
||||
int cmd_mkfifo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
{
|
||||
char *fullpath = nsh_getfullpath(vtbl, argv[1]);
|
||||
@ -1200,8 +1201,8 @@ int cmd_mkfifo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif # CONFIG_PIPES && CONFIG_DEV_PIPE_SIZE > 0 && !CONFIG_NSH_DISABLE_MKFIFO
|
||||
#endif # CONFIG_NFILE_DESCRIPTORS > 0
|
||||
|
||||
/****************************************************************************
|
||||
* Name: cmd_mkrd
|
||||
|
Loading…
Reference in New Issue
Block a user