1 | /* |
---|
2 | * Shell Internal Information |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _RTEMS_SHELL_INTERNAL_H |
---|
10 | #define _RTEMS_SHELL_INTERNAL_H |
---|
11 | |
---|
12 | #include "shell.h" |
---|
13 | |
---|
14 | struct rtems_shell_topic_tt; |
---|
15 | typedef struct rtems_shell_topic_tt rtems_shell_topic_t; |
---|
16 | |
---|
17 | struct rtems_shell_topic_tt { |
---|
18 | const char *topic; |
---|
19 | rtems_shell_topic_t *next; |
---|
20 | }; |
---|
21 | |
---|
22 | |
---|
23 | extern rtems_shell_cmd_t * rtems_shell_first_cmd; |
---|
24 | extern rtems_shell_topic_t * rtems_shell_first_topic; |
---|
25 | |
---|
26 | rtems_shell_topic_t * rtems_shell_lookup_topic(const char *topic); |
---|
27 | |
---|
28 | int rtems_shell_execute_cmd(const char *cmd, int argc, char *argv[]); |
---|
29 | |
---|
30 | extern void rtems_shell_register_monitor_commands(void); |
---|
31 | |
---|
32 | extern void rtems_shell_print_heap_info( |
---|
33 | const char *c, |
---|
34 | Heap_Information *h |
---|
35 | ); |
---|
36 | |
---|
37 | |
---|
38 | extern void rtems_shell_print_unified_work_area_message(void); |
---|
39 | |
---|
40 | extern int rtems_shell_main_rm(int argc, char *argv[]); |
---|
41 | extern int rtems_shell_main_cp(int argc, char *argv[]); |
---|
42 | |
---|
43 | #include <sys/types.h> |
---|
44 | |
---|
45 | extern void strmode(mode_t mode, char *p); |
---|
46 | extern const char *user_from_uid(uid_t uid, int nouser); |
---|
47 | extern char *group_from_gid(gid_t gid, int nogroup); |
---|
48 | |
---|
49 | #endif |
---|