47 PROCESS(shell_ps_process,
"ps");
50 "ps: list all running processes",
59 for(p = PROCESS_LIST(); p !=
NULL; p = p->next) {
61 strncpy(namebuf, PROCESS_NAME_STRING(p),
sizeof(namebuf));
void shell_output_str(struct shell_command *c, char *text1, const char *text2)
Output strings from a shell command.
#define PROCESS_BEGIN()
Define the beginning of a process.
#define NULL
The null pointer.
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
#define PROCESS_END()
Define the end of a process.
void shell_register_command(struct shell_command *c)
Register a command with the shell.
Header file for process-related Contiki shell commands
#define PROCESS(name, strname)
Declare a process.
#define SHELL_COMMAND(name, command, description, process)
Define a shell command.