summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix a number of minor Doxygen formatting issuesJoel Sherrill2015-03-062-1/+3
|
* testsupport: Add cascade option to parallel testAlexander Krutwig2015-03-062-11/+44
|
* shell: Add PROFREPORT commandSebastian Huber2015-03-063-0/+50
|
* capture: Fix warningsSebastian Huber2015-03-051-5/+5
|
* tests: Fix warningSebastian Huber2015-03-051-2/+1
|
* tests: Refactor parallel test executionAlexander Krutwig2015-03-053-0/+269
|
* Move test support from sapi to libmisc/testsupportSebastian Huber2015-03-054-0/+246
|
* score: Delete superfluous Heap_Statistics::instanceSebastian Huber2015-01-221-2/+0
| | | | | This value depends on the _Heap_Initialize() call sequence and carries no useful information.
* capture: Fix lock initializationSebastian Huber2015-01-091-6/+11
|
* untar.c: Coverity ID 26151 and reformatJoel Sherrill2015-01-041-295/+251
| | | | | | | | The Coverity issue was an ignored return value from a read() in a loop which should have been a seek() since the data read was ignored. The file itself needed reformatting to conform to RTEMS style.
* Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEMSebastian Huber2014-12-161-1/+0
| | | | This define was superfluous, undocumented and used inconsistently.
* shell: Add 'all' topic for help for all commandsSebastian Huber2014-12-121-11/+19
|
* shell: Avoid __DATE__ and adjust welcome messageSebastian Huber2014-12-051-2/+1
| | | | The use of __DATE__ prevents reproducible builds.
* libmisc: More useful default configurationSebastian Huber2014-12-054-65/+106
| | | | | | | | | | | The dummy.c was a de-facto default configuration. Rename it to default-configuration.c. Use unlimited objects and the stack checker. This makes it easier for new RTEMS users which will likely use this file if they just work with the usual main() function as the application entry point. Provide proper arguments for main() using the BSP command line. Add spare user extensions and drivers. Do not initialize the network by default. Delete bspinit.c.
* monitor: Replace puts() with proper fprintf()Sebastian Huber2014-12-032-3/+3
|
* libmisc/shell: Edit history hack is corrupting memory. Remove it.Chris Johns2014-12-011-24/+1
| | | | | | The hack was a debug aid and is not needed. Close #2203.
* score: Add heap statisticsSebastian Huber2014-11-281-3/+9
| | | | | Add lifetime bytes allocated and freed since they were present in the malloc statistics. Add number of failed allocations.
* score: Return heap stats via _Heap_Get_informationSebastian Huber2014-11-284-10/+40
| | | | Print out heap statistics via the MALLOC and WKSPACE shell commands.
* libcsupport: Delete malloc statisticsSebastian Huber2014-11-281-20/+12
| | | | | | | Use the heap handler statistics instead. Add heap walk option to MALLOC shell command. close #1367
* shell: Make mv, cp and rm usable for applicationsSebastian Huber2014-11-273-4/+8
| | | | close #2030
* monitor/mon-prmisc.c: Use puts() not fprintf()Josh Oguin2014-11-261-1/+1
| | | | | | | CodeSonar flagged this as a case where the user could inject a format string and cause issues. Since we were not printing anything but a string, just switching to puts() rather than fprintf(stdout,...) was sufficient to make this code safer.
* monitor/mon-editor.c: Use puts() and snprintf() not fprintf() or sprintf()Josh Oguin2014-11-261-5/+7
| | | | | | | | | | CodeSonar flagged this as a case where the user could inject a format string and cause issues. Since we were not printing anything but a string, just switching to puts() rather than fprintf(stdout,...) was sufficient to make this code safer. snprintf() places a limit on the length of the output from sprintf() and avoids similar buffer overrun issues.
* shell: Include missing headerSebastian Huber2014-11-261-0/+1
|
* hexdump-conv.c: Use proper printf() formatting for wchar_tJoel Sherrill2014-11-251-1/+9
|
* main_edit.c: Do not reference beyond end of arrayJoel Sherrill2014-11-251-0/+5
|
* shell/main_edit.c: Note return value not checkedJoel Sherrill2014-11-251-1/+1
| | | | Coverity Id 1255320 spotted an unchecked return value.
* shell/main_blksync.c: Fix leak of file descriptorJoel Sherrill2014-11-251-0/+1
| | | | Coverity Id 1063887. File descriptor not freed on error path.
* cpukit/libmisc/shell/main_edit.c: Fix use after free()Joel Sherrill2014-11-251-0/+8
| | | | Coverity Id 1255353. Read from pointer after free().
* capture: Resolve failure path memory leak.Jennifer Averett2014-11-251-0/+1
|
* capture: Remove whitespace and fix copyrights.Jennifer Averett2014-11-246-61/+55
|
* capture: Add SMP support.Jennifer Averett2014-11-243-218/+234
| | | | | | To support smp data was broken into global and percpu capture data. Capture control must be disabled prior to printing or setting of watch points.
* capture: Move print methods out of cli for reuse.Jennifer Averett2014-11-244-210/+371
| | | | | | | Methods to print the data were moved from capture-cli into a support area and are no longer static so that they can be shared by test routines, or application code that wants to use the capture engine without the shell interface.
* capture: Move logging of task record to occur after filter check.Jennifer Averett2014-11-243-36/+78
| | | | | | | The catpture task record is now logged just prior to the first log entry using that task instead of the first time the task is seen. This involved splitting the record task method into an initialize task and a record task.
* Delete or rename MIN/MAX macros and definesSebastian Huber2014-11-211-3/+1
| | | | Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
* shell: Include <rtems/shell.h> earlySebastian Huber2014-11-201-2/+3
| | | | This avoids a conflict with the global variable defines.
* shell: Add CMDLS, CMDCHOWN, CMDCHMOD commandsSebastian Huber2014-11-205-0/+303
|
* shell: Fix help topic headerSebastian Huber2014-11-201-4/+3
|
* shell: Add mode, UID and GID to shell commandsSebastian Huber2014-11-207-27/+66
| | | | | 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.
* shell: Inherit UID and GID if no login checkSebastian Huber2014-11-202-0/+21
| | | | | | 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.
* shell: Add and use rtems_shell_execute_cmd()Sebastian Huber2014-11-204-18/+20
|
* shell: Make rtems_shell_main_joel() staticSebastian Huber2014-11-201-8/+1
|
* shell: Print to stderr in TIME commandSebastian Huber2014-11-201-3/+3
|
* shell: Add initial commands and aliases only onceSebastian Huber2014-11-204-26/+22
| | | | Make tables read-only.
* shell: Simplify rtems_shell_add_cmd_struct()Sebastian Huber2014-11-201-14/+15
|
* shell: Rename HALT to SHUTDOWN commandSebastian Huber2014-11-203-12/+10
| | | | Use a normal command for shutdown via exit().
* shell: Do chroot() after successful loginSebastian Huber2014-11-202-38/+41
|
* shell: Use exiting once initializationSebastian Huber2014-11-201-38/+31
| | | | Avoid TOCTOU issues. Avoid pull in of global buffers.
* shell: Get supplementary group IDs in login checkSebastian Huber2014-11-201-0/+2
|
* shell: Use crypt_r() in rtems_shell_login_check()Sebastian Huber2014-11-201-19/+36
| | | | | | | Use '*" to disable shell login instead of '!' according to the Linux man page. Use getpwnam_r() instead of getpwnam(). Do not access the user environment directly. Update the user environment only after a successful login check.
* shell/main_edit.c: Fix warningsJoel Sherrill2014-11-051-8/+10
|