Sebastian Huber
4e100058cc
sparc: Remove <bsp.h> from PCI shell command
...
Update #3254 .
Update #3260 .
2018-01-02 15:47:00 +01:00
Sebastian Huber
4a23aa4528
shell: Include <rtems/shell.h>
...
Prepare for header file move to common include directory.
Update #3254 .
2017-12-13 09:04:27 +01:00
Sebastian Huber
7192313802
shell: Fix missing prototype warning
2017-09-28 13:18:52 +02:00
Sebastian Huber
1f22b26945
Include missing <limits.h>
...
Update #2132 .
2017-08-25 10:59:52 +02:00
Sebastian Huber
b2ed712d26
Include missing <string.h>
...
Update #2133 .
2017-08-25 10:58:58 +02:00
Sebastian Huber
93934f886f
heap: Fix integer types
...
Update #3082 .
2017-08-22 14:18:58 +02:00
Chris Johns
2465c0130b
libmisc/shell: Make some internal shell functions public.
...
- Add 'rtems_shell_init_environment()' so a user can create the
shell environment without needing to run a shell.
- Move 'rtems_shell_lookup_topic', 'rtems_shell_can_see_cmd',
and 'rtems_shell_execute_cmd' from the internal interface to
the public interface.
Closes #3096 .
2017-08-14 14:50:55 +10:00
Sebastian Huber
787f51f5b3
Do not include <sys/ioctl.h> in kernel-space
...
Update #2833 .
2017-06-07 13:02:08 +02:00
Sebastian Huber
6b42018eb6
shell: Fix format specifiers
2017-05-02 08:06:12 +02:00
Joel Sherrill
54bdf0c7e5
rtems/inttypes.h: New file. Uses contents from cpukit
...
Provide extentions to <inttpes.h> PRIxxx constants for more POSIX types.
Start with existing definitions found in RTEMS Project owned code
in cpukit/.
updates #2983 .
2017-04-18 11:24:44 -05:00
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