summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shell.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-16 17:17:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-16 17:17:29 +0000
commit798ff5a8eafdb496acee8a246848fffea498c3af (patch)
tree4ddde55a4826a4697c4cf4fb7627c93d6911b715 /cpukit/libmisc/shell/shell.h
parent2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-798ff5a8eafdb496acee8a246848fffea498c3af.tar.bz2
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell.c, libmisc/shell/shell.h: New argument sequence for rtems_shell_init(). This makes it possible to run the shell forever or invoke it from a program as a subroutine, have a user enter commands, and wait for it to exit.
Diffstat (limited to '')
-rw-r--r--cpukit/libmisc/shell/shell.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
index 89b041a70f..2d3da8312d 100644
--- a/cpukit/libmisc/shell/shell.h
+++ b/cpukit/libmisc/shell/shell.h
@@ -133,21 +133,17 @@ int rtems_shell_script_file(
* @param task_name Name of the shell task.
* @param task_stacksize The size of the stack. If 0 the default size is used.
* @param task_priority The priority the shell runs at.
- * @param tcflag The termios c_cflag value. If 0 the default is used, if
- * not 0 the value is ORed with CLOCAL and CREAD.
* @param forever Repeat logins.
+ * @param wait Caller should block until shell exits
*
- * @todo CCJ I am not sure this termios flag setting is a good idea. The shell
- * needs to adjust the termios for its use but it should assume the
- * settings are set by the user for things like baudrate etc.
*/
rtems_status_code rtems_shell_init(
char *task_name,
uint32_t task_stacksize, /*0 default*/
rtems_task_priority task_priority,
char *devname,
- tcflag_t tcflag,
- int forever
+ int forever,
+ int wait
);
/**
@@ -184,7 +180,6 @@ typedef struct {
rtems_name magic; /* 'S','E','N','V': Shell Environment */
char *devname;
char *taskname;
- tcflag_t tcflag;
/* user extensions */
int exit_shell; /* logout */
int forever ; /* repeat login */