summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libcsupport/src/newlibc_exit.c: Remove dead codeJosh Oguin2014-11-261-1/+1
| | | | | This was flagged as an empty for statement by CodeSonar but is actually unreachable code that should be removed.
* libcsupport/src/mount.c: Remove unnecessary operationJosh Oguin2014-11-261-1/+0
| | | | This was flagged by CodeSonar.
* cpukit/libcsupport/src/pwdgrp.c: Check return valueJoel Sherrill2014-11-251-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.
* rtems: Move rtems_cache_aligned_malloc()Sebastian Huber2014-11-252-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 Huber2014-11-255-20/+7
| | | | Move system state check to malloc_is_system_state_OK().
* libcsupport/src/termios.c: Explicitly ignore return value (Coverity ID 1255347)Joel Sherrill2014-11-211-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.
* Ensure security of default user environmentSebastian Huber2014-11-202-9/+13
|
* Add supplementary groups to user environmentSebastian Huber2014-11-204-17/+94
|
* Filesystem: TypoSebastian Huber2014-11-201-1/+1
|
* libcsupport: Implement getgroups()Sebastian Huber2014-11-201-3/+54
|
* libcsupport: Use POSIX key for getgrent()Sebastian Huber2014-11-203-29/+113
|
* libcsupport: Minimal /etc/passwd and /etc/groupSebastian Huber2014-11-201-20/+19
| | | | | Create a minimal /etc/passwd and /etc/group with user root and group root only with no passwords.
* libcsupport: Avoid TOCTOU and format errorsSebastian Huber2014-11-201-20/+22
|
* libcsupport: Use pthread_once()Sebastian Huber2014-11-201-5/+9
|
* libcsupport: Split passwd/group supportSebastian Huber2014-11-205-383/+476
|
* libcsupport: Add copyrights according to rev histSebastian Huber2014-11-201-0/+7
|
* ilibcsupport: Add realpath call.Chris Johns2014-10-242-1/+254
|
* libcsupport/include/clockdrv.h: Remove rtems_clock_major/minorJoel Sherrill2014-10-131-2/+0
|
* IMFS: Avoid NULL pointer accessSebastian Huber2014-10-081-1/+2
| | | | | Avoid NULL pointer access in IMFS_is_imfs_instance(). File systems mounted via mount() always have a valid type string.
* termios: Partially hide rtems_termios_ttySebastian Huber2014-10-073-103/+191
| | | | | | | Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support.
* termios: Separate flow control from normal handlerSebastian Huber2014-10-072-17/+41
|
* termios: Fix transmit daemonSebastian Huber2014-10-071-1/+9
| | | | | | Do not call rtems_termios_refill_transmitter() in case a PPP line discipline is present. This is similar to rtems_termios_dequeue_characters().
* tod.h -> libcsupport like other driver and helper prototype filesJoel Sherrill2014-09-163-0/+75
| | | | | This rippled into the handful of files that should have been using <rtems/tod.h>.
* Use correct prototype of benchmark_timer_read()Joel Sherrill2014-09-163-39/+0
| | | | | | | | | | | | | | This change starts with removing the effectively empty file timerdrv.h. The prototypes for benchmark_timer_XXX() were in btimer.h which was not universally used. Thus every use of timerdrv.h had to be changed to btimer.h. Then the prototypes for benchmark_timer_read() had to be adjusted to return benchmark_timer_t rather than int or uint32_t. I took this opportunity to also correct the file headers to separate the copyright from the file description comments which is needed to ensure the copyright isn't propagated into Doxygen output.
* libcsupport: Use RTEMS_DECONST()Sebastian Huber2014-09-081-1/+1
|
* rtems_termios_puts: Copy and write more than one char at onceKolja Waschk2014-08-181-50/+85
| | | | Renamed startXmit(), nToSend is unsigned, just check FL_ORCVXOF, no (void) cast anymore, compute nToSend in single if/else if/else.
* termios: Add rtems_termios_set_best_baud()Sebastian Huber2014-07-093-4/+64
|
* termios: Add rtems_termios_get_termios()Christian Mauderer2014-07-091-1/+14
|
* termios: PR1279: Use first open statusSebastian Huber2014-07-091-73/+82
|
* termios: PR1279: Use set attributes statusSebastian Huber2014-07-091-2/+4
|
* termios: PR2153: New low-level device APISebastian Huber2014-07-092-113/+630
| | | | | | | | | | | | | | | | | Add a new low-level device API to Termios that passes the TTY structure to the low-level device functions. This greatly simplifies the low-level device drivers since they are no longer forced to derive their private data from the minor number. It makes it possible to use the TTY low-level lock in the device driver low-level functions which is necessary for proper SMP support. For example to set the attributes it is often necessary to perform a read-modify-write operation on a control register used also by interrupt routines. A compatibility layer is provided to support device drivers using the old callback functions so it is not necessary to modify existing device drivers.
* termios: Make tty list staticSebastian Huber2014-06-302-4/+3
|
* score: Simplify thread control initializationSebastian Huber2014-04-152-30/+3
| | | | | | | | | | | The thread control block contains fields that point to application configuration dependent memory areas, like the scheduler information, the API control blocks, the user extension context table, the RTEMS notepads and the Newlib re-entrancy support. Account for these areas in the configuration and avoid extra workspace allocations for these areas. This helps also to avoid heap fragementation and reduces the per thread memory due to a reduced heap allocation overhead.
* privateenv.c: Remove unused variable warningJoel Sherrill2014-04-041-1/+0
|
* ringbuf: Fix ISR lock initialization/destructionSebastian Huber2014-04-011-0/+6
|
* score: PR2152: Use allocator mutex for objectsSebastian Huber2014-03-311-17/+7
| | | | | Use allocator mutex for objects allocate/free. This prevents that the thread dispatch latency depends on the workspace/heap fragmentation.
* score: Thread life cycle re-implementationSebastian Huber2014-03-313-7/+18
| | | | | | | | | | | | | | | | | | | The thread deletion is now supported on SMP. This change fixes the following PRs: PR1814: SMP race condition between stack free and dispatch PR2035: psxcancel reveals NULL pointer access in _Thread_queue_Extract() The POSIX cleanup handler are now called in the right context (should be called in the context of the terminating thread). http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html Add a user extension the reflects a thread termination event. This is used to reclaim the Newlib reentrancy structure (may use file operations), the POSIX cleanup handlers and the POSIX key destructors.
* privateenv: Use POSIX keys instead of task variables.Christian Mauderer2014-03-274-19/+37
|
* privateenv: Remove sharing of user environment between threads.Christian Mauderer2014-03-271-56/+4
|
* libcsupport: Use POSIX keys for GXX key functionsChristian Mauderer2014-03-242-67/+53
| | | | | With this patch C++ applications now eventually need additional POSIX-keys and POSIX-key-value-pairs configured.
* libcsupport: Remove unused gxx-wrapper function.Christian Mauderer2014-03-242-12/+0
| | | | The rtems_gxx_key_dtor function is not longer used by gcc.
* score: Unify pthread and gxx_wrapper once and move to score.Christian Mauderer2014-03-211-13/+2
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-21164-164/+164
|
* score: Add SMP lock profiling supportSebastian Huber2014-03-142-2/+2
|
* score: Add function to destroy SMP locksSebastian Huber2014-03-111-0/+1
|
* score: Add local context to SMP lock APISebastian Huber2014-03-113-36/+36
| | | | | | | | | | | Add a local context structure to the SMP lock API for acquire and release pairs. This context can be used to store the ISR level and profiling information. It may be later used to enable more sophisticated lock algorithms, e.g. MCS locks. There is only one lock that cannot be used with a local context. This is the per-CPU lock since here we would have to transfer the local context through a context switch which is very complicated.
* printk: Add support for long longSebastian Huber2014-03-111-30/+55
|
* score: Rename _Internal_error_Occurred()Sebastian Huber2014-02-212-3/+3
| | | | Rename _Internal_error_Occurred() into _Terminate().
* score: Change debug helper functionsSebastian Huber2014-02-122-44/+0
| | | | | | | | Rename rtems_internal_error_description() to rtems_internal_error_text(). Rename rtems_fatal_source_description() to rtems_fatal_source_text(). Rename rtems_status_code_description() to rtems_status_text(). Remove previous implementation of rtems_status_text().
* calloc.c: Remove use of register keywordJoel Sherrill2014-02-031-3/+3
|