summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Filesystem: Delete unused fsmountme_h handlerSebastian Huber2015-02-092-12/+0
|
* Add rtems_filesystem_make_dev_t_from_pointer()Sebastian Huber2015-02-041-0/+9
|
* Filesystem: Statically initialize rtems_libio_iopsSebastian Huber2015-02-042-8/+2
|
* Filesystem: Use rtems_libio_iop_to_descriptor()Sebastian Huber2015-02-043-3/+3
| | | | | Drop parameter check from previously unused rtems_libio_iop_to_descriptor().
* Filesystem: Delete rtems_libio_last_iopSebastian Huber2015-02-041-1/+0
|
* Filesystem: Make rtems_libio_number_iops constSebastian Huber2015-02-041-1/+1
|
* Filesystem: Delete node type operationSebastian Huber2015-01-2211-109/+33
| | | | Use the fstat handler instead.
* libcsupport: Do not use _Assert() for sync()Sebastian Huber2014-12-121-11/+3
| | | | Use a best-effort approach.
* Add POSIX key value pairs to resource snapshotSebastian Huber2014-12-122-12/+45
|
* score: Return heap stats via _Heap_Get_informationSebastian Huber2014-11-281-7/+8
| | | | Print out heap statistics via the MALLOC and WKSPACE shell commands.
* libcsupport: Delete malloc statisticsSebastian Huber2014-11-2815-325/+5
| | | | | | | Use the heap handler statistics instead. Add heap walk option to MALLOC shell command. close #1367
* sync.c: Add asserts to document and check assumptionsJoel Sherrill2014-11-271-5/+11
|
* rtems: Add rtems_cache_coherent_allocate()Sebastian Huber2014-11-272-0/+123
| | | | Add rtems_cache_coherent_free() and rtems_cache_coherent_add_area().
* 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.