Sebastian Huber
661be20777
shell: Fix warnings
2017-02-15 13:05:27 +01:00
Sebastian Huber
5eee7184ad
shell: Fix warnings
2017-02-14 08:46:22 +01:00
Sebastian Huber
2711914f82
Use <sys/endian.h>
...
Update #2803 .
2017-01-24 08:39:22 +01:00
Sebastian Huber
506bfc8580
Move printer initialization to separate header
...
The RTEMS print user need to know nothing about a particular printer
implementation. In particular get rid of the <stdio.h> include which
would be visible via <rtems.h>.
2016-06-22 07:29:26 +02:00
Alexander Krutwig
a2597f3160
shell: Add rtems_shell_wait_for_explicit_input()
2016-06-06 12:57:07 +02:00
Sebastian Huber
01cb5540bd
shell: Add CPUINFO command
...
Update #2723 .
2016-05-31 10:10:36 +02:00
Chris Johns
24d0ee57a4
cpukit, testsuite: Add rtems_printf and rtems_printer support.
...
This change adds rtems_printf and related functions and wraps the
RTEMS print plugin support into a user API. All references to the
plugin are removed and replaced with the rtems_printer interface.
Printk and related functions are made to return a valid number of
characters formatted and output.
The function attribute to check printf functions has been added
to rtems_printf and printk. No changes to remove warrnings are part
of this patch set.
The testsuite has been moved over to the rtems_printer. The testsuite
has a mix of rtems_printer access and direct print control via the
tmacros.h header file. The support for begink/endk has been removed
as it served no purpose and only confused the code base. The testsuite
has not been refactored to use rtems_printf. This is future work.
2016-05-25 15:47:34 +10:00
Sebastian Huber
f2ffd646fa
shell: Fix warning visible with latest Newlib
...
Works also with previous Newlib versions.
2016-04-12 07:36:19 +02:00
Joel Sherrill
85f690189b
shell/hexdump-odsyntax.c: Add define of _GNU_SOURCE to avoid warnings
2016-03-24 11:41:22 -05:00
Joel Sherrill
037f7a6096
shell/hexdump-conv.c: Disable sccsid to avoid unused warning
2016-03-24 11:41:22 -05:00
Joel Sherrill
020c4c07d4
libmisc/shell/main_hexdump.c: Disable unused copyright string
2016-03-24 11:41:21 -05:00
Nick Withers
7a0c4854c6
libmisc: Include missing header file, fix warnings
2015-12-15 07:47:27 +01:00
Sebastian Huber
f97536dcd3
basdefs.h: Add and use RTEMS_UNUSED
2015-10-26 09:13:19 +01:00
Daniel Hellstrom
4d3e70f4a6
DRVMGR: KEY_TYPE now a enum drvmgr_kt
2015-04-17 01:10:30 +02:00
Daniel Hellstrom
219d4045e7
DRVMGR: added drvmgr shell command
2015-04-17 01:10:16 +02:00
Daniel Hellstrom
02550220c5
LIBPCI: added PCI shell command
2015-04-17 01:10:15 +02:00
Joel Sherrill
fd50acd54f
shell/main_rtrace.c: Fix warning
2015-04-03 15:08:20 -05:00
Chris Johns
a300920de1
libmisc/shell: Add the rtrace command for buffered tracing support.
...
The rtrace command interfaces to the RTEMS Trace Linker's trace
buffering data allowing users to capture and report trace data.
2015-03-31 17:04:43 +11:00
Joel Sherrill
0a9345ed68
shell/utils-cp.c: Avoid redefinition of TIMESPEC_TO_TIMEVAL
2015-03-24 08:16:28 -05:00
Joel Sherrill
5cd910bf3a
cpukit/libmisc/shell/hexdump-conv.c: Eliminate printf() format warning
2015-03-22 10:29:57 -05:00
Joel Sherrill
5ce776ec62
cpukit/libmisc/shell/main_df.c: Eliminate printf() format warning
2015-03-22 10:29:57 -05:00
Sebastian Huber
d4edbdbcbf
Replace www.rtems.com with www.rtems.org
2015-03-20 15:42:34 +01:00
Gedare Bloom
a62220fefa
shell: remove rtems ifdef, upstream is correct
2015-03-16 13:23:15 -04:00
Gedare Bloom
ce4e691a01
shell: fix printf warnings
2015-03-16 13:01:37 -04:00
Sebastian Huber
2bd71d95b6
shell: Add PROFREPORT command
2015-03-06 16:20:00 +01:00
Sebastian Huber
50a50313cc
score: Delete superfluous Heap_Statistics::instance
...
This value depends on the _Heap_Initialize() call sequence and carries
no useful information.
2015-01-22 07:52:50 +01:00
Sebastian Huber
26e04e2f02
shell: Add 'all' topic for help for all commands
2014-12-12 13:16:28 +01:00
Sebastian Huber
a2097c56ad
shell: Avoid __DATE__ and adjust welcome message
...
The use of __DATE__ prevents reproducible builds.
2014-12-05 13:09:11 +01:00
Chris Johns
e37e8504f1
libmisc/shell: Edit history hack is corrupting memory. Remove it.
...
The hack was a debug aid and is not needed.
Close #2203 .
2014-12-01 14:53:55 +11:00
Sebastian Huber
d006b46df3
score: Add heap statistics
...
Add lifetime bytes allocated and freed since they were present in the
malloc statistics. Add number of failed allocations.
2014-11-28 13:09:11 +01:00
Sebastian Huber
2c3c657625
score: Return heap stats via _Heap_Get_information
...
Print out heap statistics via the MALLOC and WKSPACE shell commands.
2014-11-28 13:09:07 +01:00
Sebastian Huber
01557b0c6e
libcsupport: Delete malloc statistics
...
Use the heap handler statistics instead. Add heap walk option to MALLOC
shell command.
close #1367
2014-11-28 11:23:53 +01:00
Sebastian Huber
43b09a9865
shell: Make mv, cp and rm usable for applications
...
close #2030
2014-11-27 13:37:52 +01:00
Sebastian Huber
fdd1e20579
shell: Include missing header
2014-11-26 09:58:40 +01:00
Joel Sherrill
ebb39a216d
hexdump-conv.c: Use proper printf() formatting for wchar_t
2014-11-25 12:58:00 -06:00
Joel Sherrill
3bd0cd1ad5
main_edit.c: Do not reference beyond end of array
2014-11-25 12:58:00 -06:00
Joel Sherrill
d15202490c
shell/main_edit.c: Note return value not checked
...
Coverity Id 1255320 spotted an unchecked return value.
2014-11-25 12:57:09 -06:00
Joel Sherrill
630642e21c
shell/main_blksync.c: Fix leak of file descriptor
...
Coverity Id 1063887. File descriptor not freed on error path.
2014-11-25 12:57:09 -06:00
Joel Sherrill
4afa216ba8
cpukit/libmisc/shell/main_edit.c: Fix use after free()
...
Coverity Id 1255353. Read from pointer after free().
2014-11-25 12:57:08 -06:00
Sebastian Huber
6b4a22e383
shell: Include <rtems/shell.h> early
...
This avoids a conflict with the global variable defines.
2014-11-20 10:30:26 +01:00
Sebastian Huber
3fe5d01bc0
shell: Add CMDLS, CMDCHOWN, CMDCHMOD commands
2014-11-20 10:30:26 +01:00
Sebastian Huber
478455e0ea
shell: Fix help topic header
2014-11-20 10:30:26 +01:00
Sebastian Huber
7eada71e1b
shell: Add mode, UID and GID to shell commands
...
Use this information to determine if a command is visible to the current
user and if the current user is allowed to execute this command.
2014-11-20 10:30:26 +01:00
Sebastian Huber
ffd5285844
shell: Inherit UID and GID if no login check
...
Use the UID and GID of the executing user for the real and effective UID
and GID of the shell task in case no login check is present. This
prevents privilege escalation via shell scripts.
2014-11-20 10:30:25 +01:00
Sebastian Huber
5c141d6a25
shell: Add and use rtems_shell_execute_cmd()
2014-11-20 10:30:25 +01:00
Sebastian Huber
12278585c6
shell: Make rtems_shell_main_joel() static
2014-11-20 10:30:25 +01:00
Sebastian Huber
66da4844f4
shell: Print to stderr in TIME command
2014-11-20 10:30:25 +01:00
Sebastian Huber
7840b66f74
shell: Add initial commands and aliases only once
...
Make tables read-only.
2014-11-20 10:30:25 +01:00
Sebastian Huber
7a2c30faee
shell: Simplify rtems_shell_add_cmd_struct()
2014-11-20 10:30:24 +01:00
Sebastian Huber
bac3d6df35
shell: Rename HALT to SHUTDOWN command
...
Use a normal command for shutdown via exit().
2014-11-20 10:30:24 +01:00