config EXAMPLES_HELLO_TASH
bool "\"Hello, World!\" example in tash"
default n
+ depends on TASH
---help---
Enable the \"Hello, World!\" example in tash
config EXAMPLES_PROC_TEST
bool "\"Procfs\" example"
default n
+ depends on !DISABLE_MOUNTPOINT && FS_PROCFS
---help---
Enable the \"Procfs\" example
/****************************************************************************
* Private Functions
****************************************************************************/
-#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_PROCFS)
+
int proc_read_entry(direntry_handler_t handler)
{
DIR *dirp;
return OK;
}
#endif
-#endif
+
static int my_task(int argc, char *argv[])
{
while (1) {
}
while (1) {
-#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_PROCFS)
#ifndef CONFIG_FS_PROCFS_EXCLUDE_PROCESS
proc_read_entry(proc_pid);
#ifdef CONFIG_SCHED_CPULOAD
#ifndef CONFIG_FS_PROCFS_EXCLUDE_VERSION
proc_version_test();
#endif
-#endif
sleep(INTERVAL_UPDATE_SEC);
}