[examples-v2 V2] fat_ramdisk: define POSIX keys number

Peng Fan van.freenix at gmail.com
Wed Apr 13 05:25:11 UTC 2016


define POSIX KEYS and PAIRS to 16, otherwise met:
"
pthread_setspecific(shell_current_env_key)
"
---

V2:
 Addressed Gedare's comments: Discard signed off

 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