[examples-v2 2/2] fat_ramdisk: define POSIX keys number
Peng Fan
van.freenix at gmail.com
Fri Apr 8 08:33:39 UTC 2016
define POSIX KEYS and PAIRS to 16, otherwise met:
"
pthread_setspecific(shell_current_env_key)
"
Signed-off-by: Peng Fan <van.freenix at gmail.com>
---
filesystem/fat_ramdisk/init.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/filesystem/fat_ramdisk/init.c b/filesystem/fat_ramdisk/init.c
index 2fff705..62721f1 100644
--- a/filesystem/fat_ramdisk/init.c
+++ b/filesystem/fat_ramdisk/init.c
@@ -130,6 +130,9 @@ rtems_task Init(
/* configuration */
+#define CONFIGURE_MAXIMUM_POSIX_KEYS 16
+#define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS 16
+
#define CONFIGURE_SHELL_COMMANDS_INIT
#define CONFIGURE_SHELL_COMMANDS_ALL
#define CONFIGURE_SHELL_MOUNT_MSDOS
--
2.6.2
More information about the devel
mailing list