From 6575480d5eb06d7ec7992d9dc7c2b2bb6fde7486 Mon Sep 17 00:00:00 2001
From: Juha Niskanen /etc/init.d/rcS
at start-up (before the
- first NSH prompt. After execution of the script, the root FS will look
+ first NSH prompt). After execution of the script, the root FS will look
like:
|--dev/
@@ -2952,7 +2952,7 @@ telnetd
The Telnet daemon may be started either programmatically by calling
nsh_telnetstart()
or it may be started from the NSH command line using this telnetd
command.
- Normally this command would be suppressed with CONFIG_NSH_DISABLE_TELNETD
because the Telnet daemon is automatically started in nsh_main.c
. The exception is when CONFIG_NSH_NETLOCAL
is selected. In that case, the network is not enabled at initialization but rather must be enabled from the NSH command line or via other applications.
+ Normally this command would be suppressed with CONFIG_NSH_DISABLE_TELNETD
because the Telnet daemon is automatically started in nsh_main.c
. The exception is when CONFIG_NSH_NETLOCAL
is selected. In that case, the network is not enabled at initialization but rather must be enabled from the NSH command line or via other applications.
In that case, when nsh_telnetstart()
is called before the the network is initialized, it will fail.
@@ -4561,11 +4561,9 @@ nsh> help
Implementation of Your Command.
For example, if you want to add a new a new command called mycmd
to NSH, you would first implement the mycmd
code in a function with this prototype:
int cmd_mycmd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);-
The argc
and argv
are used to pass command line arguments to the NSH command.
Command line parameters are passed in a very standard way: argv[0]
will be the name of the command, and argv[1]
through argv[argc-1]
are the additional arguments provided on the NSH command line.
@@ -4587,12 +4585,12 @@ void nsh_output(FAR struct nsh_vtbl_s *vtbl, const char *fmt, …);
int cmd_mycmd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { - nsh_output(vtbl, "e;Hello, World!"e;); + nsh_output(vtbl, "Hello, World!"); return 0; }
- The prototype for the new command should be placed in apps/examples/nshlib/nsh.h>
.
+ The prototype for the new command should be placed in apps/examples/nshlib/nsh.h
.
diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index 92054fec8e..4cb549e0f1 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -1843,7 +1843,7 @@ int posix_spawn_file_actions_init(FAR posix_spawn_file_actions_t *file_actions);
Optionally, a Nuttx task or thread can be configured with round-robin or sporadic scheduler.
- The round-roben is similar to priority scheduling except that tasks with equal priority and share CPU time via time-slicing.
+ The round-robin is similar to priority scheduling except that tasks with equal priority and share CPU time via time-slicing.
The time-slice interval is a constant determined by the configuration
setting CONFIG_RR_INTERVAL
to a positive, non-zero value.
Sporadic scheduling scheduling is more complex, varying the priority of a thread over a replenishment period.
@@ -2221,7 +2221,7 @@ priority of the calling task is returned.
Task Exit Hooks.
atexit()
and on_exit()
may be use to register callback functions that are executed when a task group terminates.
A task group is the functional analog of a process:
- It is a group that consists of the main task thread and of all of the pthreads created by the main task thread or any of the other pthreads within the task broup.
+ It is a group that consists of the main task thread and of all of the pthreads created by the main task thread or any of the other pthreads within the task group.
Members of a task group share certain resources such as environment variables, file descriptors, FILE
streams, sockets, pthread keys and open message queues.
@@ -5704,7 +5704,7 @@ be sent. NuttX only supports simple threads or tasks running within the same address space. However, NuttX does support the concept of a task group. A task group is the functional analog of a process: - It is a group that consists of the main task thread and of all of the pthreads created by the main thread or any of the other pthreads within the task broup. + It is a group that consists of the main task thread and of all of the pthreads created by the main thread or any of the other pthreads within the task group. Members of a task group share certain resources such as environment variables, file descriptors,FILE
streams, sockets, pthread keys and open message queues.