Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rtems-rfs-rtems.c: Add cast to address warning | Joel Sherrill | 2014-11-25 | 1 | -1/+1 |
| | |||||
* | hexdump-conv.c: Use proper printf() formatting for wchar_t | Joel Sherrill | 2014-11-25 | 1 | -1/+9 |
| | |||||
* | main_edit.c: Do not reference beyond end of array | Joel Sherrill | 2014-11-25 | 1 | -0/+5 |
| | |||||
* | shell/main_edit.c: Note return value not checked | Joel Sherrill | 2014-11-25 | 1 | -1/+1 |
| | | | | Coverity Id 1255320 spotted an unchecked return value. | ||||
* | cpukit/libcsupport/src/pwdgrp.c: Check return value | Joel Sherrill | 2014-11-25 | 1 | -1/+5 |
| | | | | | | Coverity Id 1255518. mkdir() could fail. Check return value and return on failure. Behavior is similar to if open() failed while writing the files. | ||||
* | shell/main_blksync.c: Fix leak of file descriptor | Joel Sherrill | 2014-11-25 | 1 | -0/+1 |
| | | | | Coverity Id 1063887. File descriptor not freed on error path. | ||||
* | cpukit/libmisc/shell/main_edit.c: Fix use after free() | Joel Sherrill | 2014-11-25 | 1 | -0/+8 |
| | | | | Coverity Id 1255353. Read from pointer after free(). | ||||
* | cpukit/dev/i2c/i2c-dev.c: Fix leak on error path | Joel Sherrill | 2014-11-25 | 1 | -2/+1 |
| | | | | Coverity ID 1255520. fd was not closed on error path. | ||||
* | capture: Resolve failure path memory leak. | Jennifer Averett | 2014-11-25 | 1 | -0/+1 |
| | |||||
* | bdbuf: Use rtems_cache_aligned_malloc() | Sebastian Huber | 2014-11-25 | 1 | -9/+6 |
| | |||||
* | rtems: Move rtems_cache_aligned_malloc() | Sebastian Huber | 2014-11-25 | 2 | -0/+29 |
| | | | | | | Make sure also the size is cache aligned since otherwise we may have some overlap with the next allocation block. A cache invalidate on this area would be fatal. | ||||
* | libcsupport: malloc_is_system_state_OK() | Sebastian Huber | 2014-11-25 | 5 | -20/+7 |
| | | | | Move system state check to malloc_is_system_state_OK(). | ||||
* | arm: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC | Sebastian Huber | 2014-11-25 | 1 | -1/+1 |
| | | | | | | | Converting 64-bit nanoseconds values into the common struct timeval or struct timespec formats requires a 64-bit division to get the seconds value. Performance analysis of high network loads revealed that this is too costly on ARM. | ||||
* | capture: Remove whitespace and fix copyrights. | Jennifer Averett | 2014-11-24 | 6 | -61/+55 |
| | |||||
* | capture: Add SMP support. | Jennifer Averett | 2014-11-24 | 3 | -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 Averett | 2014-11-24 | 4 | -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 Averett | 2014-11-24 | 3 | -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. | ||||
* | i2c: Fix endian issue | Sebastian Huber | 2014-11-24 | 1 | -9/+14 |
| | |||||
* | _Scheduler_FIXME_thread_priority_queues_are_broken | Sebastian Huber | 2014-11-24 | 3 | -19/+0 |
| | | | | | Delete this variable since it is no longer necessary due to the thread priority queue implementation change to use RB trees. | ||||
* | smp: Fix scheduler helping protocol | Luca Bonato | 2014-11-24 | 2 | -18/+35 |
| | | | | | | | | | | | | New test case for smptests/smpmrsp01. Fix _Scheduler_Block_node() in case the node is in the SCHEDULER_HELP_ACTIVE_RIVAL helping state. For example a rtems_task_suspend() on a task waiting for a MrsP semaphore. Fix _Scheduler_Unblock_node() in case the node is in the SCHEDULER_SMP_NODE_READY state. For example a rtems_task_resume() on a task owning or waiting for a MrsP semaphore. | ||||
* | rtems/score/object.h: Correct types on _Objects_Build_id | Santosh G Vattam | 2014-11-23 | 1 | -3/+3 |
| | | | | close 1423 | ||||
* | objectsetname.c: Fix always true condition (Coverity ID 1063874) | Joel Sherrill | 2014-11-21 | 1 | -5/+5 |
| | | | | | Coverity spotted the comparison (0 <= length) which is always true. Changed logic to address this. | ||||
* | pipe/fifo.c: NULL dereference flagged by Coverity ID 1063889 | Joel Sherrill | 2014-11-21 | 1 | -1/+2 |
| | | | | It does not appear that this is possible so adding an assert. | ||||
* | dosfs/fat_fat_operations.c: Explicitly ignore return (Coverity ID 26048) | Joel Sherrill | 2014-11-21 | 1 | -2/+7 |
| | | | | | | Coverity spotted that the return code from fat_set_fat_cluster() was ignored. But it should be because we want to return the status that caused us to hit the cleanup path. | ||||
* | dosfs/msdos_format.c: Dead code removal (Coverity ID 1255325) | Joel Sherrill | 2014-11-21 | 1 | -75/+61 |
| | | | | | Coverity identified that ret_val was never set except to be initialized to 0. Thus the code could not be executed. | ||||
* | libcsupport/src/termios.c: Explicitly ignore return value (Coverity ID 1255347) | Joel Sherrill | 2014-11-21 | 1 | -3/+6 |
| | | | | | | Coverity spotted that we were ignoring a return value. But ignoring it is intentional. Adding (void) clearly indicates it is being ignored explicitly. | ||||
* | Delete or rename MIN/MAX macros and defines | Sebastian Huber | 2014-11-21 | 6 | -21/+6 |
| | | | | Include <sys/param.h> if necessary to get the MIN()/MAX() macros. | ||||
* | libdl/rtl-mdreloc-powerpc.c: Fix warnings | Joel Sherrill | 2014-11-20 | 1 | -2/+1 |
| | | | | | | This patch addresses the following warnings: + The variable "target" was unused. + The parentheses in the expression around line 72 were ambiguous. | ||||
* | sys/mman.h: New file. Clean up and add supporting stubs | Joel Sherrill | 2014-11-20 | 7 | -8/+254 |
| | | | | | | * Makefile.am updated and preinstall.am regenerated. * mprotect.c had a prototype removed now that we have mman.h * mmap.c, munmap.c: New stub files. | ||||
* | libdl/.../mips/machine/elf_machdep.h: Fix typo so compiles | Joel Sherrill | 2014-11-20 | 1 | -2/+5 |
| | |||||
* | cpukit: basedefs: macro for packed attribute | Jan Dolezal | 2014-11-20 | 1 | -0/+10 |
| | |||||
* | score: i386: functions converting real mode pointer to physical address and back | Jan Dolezal | 2014-11-20 | 2 | -0/+75 |
| | |||||
* | bdbuf: Use rtems_cache_get_data_line_size() | Sebastian Huber | 2014-11-20 | 1 | -9/+1 |
| | |||||
* | shell: Include <rtems/shell.h> early | Sebastian Huber | 2014-11-20 | 1 | -2/+3 |
| | | | | This avoids a conflict with the global variable defines. | ||||
* | shell: Add CMDLS, CMDCHOWN, CMDCHMOD commands | Sebastian Huber | 2014-11-20 | 5 | -0/+303 |
| | |||||
* | shell: Fix help topic header | Sebastian Huber | 2014-11-20 | 1 | -4/+3 |
| | |||||
* | shell: Add mode, UID and GID to shell commands | Sebastian Huber | 2014-11-20 | 7 | -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 check | Sebastian Huber | 2014-11-20 | 2 | -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 Huber | 2014-11-20 | 4 | -18/+20 |
| | |||||
* | shell: Make rtems_shell_main_joel() static | Sebastian Huber | 2014-11-20 | 1 | -8/+1 |
| | |||||
* | shell: Print to stderr in TIME command | Sebastian Huber | 2014-11-20 | 1 | -3/+3 |
| | |||||
* | shell: Add initial commands and aliases only once | Sebastian Huber | 2014-11-20 | 4 | -26/+22 |
| | | | | Make tables read-only. | ||||
* | shell: Simplify rtems_shell_add_cmd_struct() | Sebastian Huber | 2014-11-20 | 1 | -14/+15 |
| | |||||
* | shell: Rename HALT to SHUTDOWN command | Sebastian Huber | 2014-11-20 | 3 | -12/+10 |
| | | | | Use a normal command for shutdown via exit(). | ||||
* | Ensure security of default user environment | Sebastian Huber | 2014-11-20 | 2 | -9/+13 |
| | |||||
* | shell: Do chroot() after successful login | Sebastian Huber | 2014-11-20 | 2 | -38/+41 |
| | |||||
* | shell: Use exiting once initialization | Sebastian Huber | 2014-11-20 | 1 | -38/+31 |
| | | | | Avoid TOCTOU issues. Avoid pull in of global buffers. | ||||
* | shell: Get supplementary group IDs in login check | Sebastian Huber | 2014-11-20 | 1 | -0/+2 |
| | |||||
* | Add supplementary groups to user environment | Sebastian Huber | 2014-11-20 | 5 | -26/+159 |
| | |||||
* | dosfs: Avoid MIN() re-definition | Sebastian Huber | 2014-11-20 | 1 | -0/+2 |
| |