summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-09Filesystem: Delete unused fsmountme_h handlerSebastian Huber2-12/+0
2015-02-04Add rtems_filesystem_make_dev_t_from_pointer()Sebastian Huber1-0/+9
2015-02-04Filesystem: Statically initialize rtems_libio_iopsSebastian Huber2-8/+2
2015-02-04Filesystem: Use rtems_libio_iop_to_descriptor()Sebastian Huber3-3/+3
Drop parameter check from previously unused rtems_libio_iop_to_descriptor().
2015-02-04Filesystem: Delete rtems_libio_last_iopSebastian Huber1-1/+0
2015-02-04Filesystem: Make rtems_libio_number_iops constSebastian Huber1-1/+1
2015-01-22Filesystem: Delete node type operationSebastian Huber11-109/+33
Use the fstat handler instead.
2014-12-12libcsupport: Do not use _Assert() for sync()Sebastian Huber1-11/+3
Use a best-effort approach.
2014-12-12Add POSIX key value pairs to resource snapshotSebastian Huber2-12/+45
2014-11-28score: Return heap stats via _Heap_Get_informationSebastian Huber1-7/+8
Print out heap statistics via the MALLOC and WKSPACE shell commands.
2014-11-28libcsupport: Delete malloc statisticsSebastian Huber15-325/+5
Use the heap handler statistics instead. Add heap walk option to MALLOC shell command. close #1367
2014-11-27sync.c: Add asserts to document and check assumptionsJoel Sherrill1-5/+11
2014-11-27rtems: Add rtems_cache_coherent_allocate()Sebastian Huber2-0/+123
Add rtems_cache_coherent_free() and rtems_cache_coherent_add_area().
2014-11-26libcsupport/src/newlibc_exit.c: Remove dead codeJosh Oguin1-1/+1
This was flagged as an empty for statement by CodeSonar but is actually unreachable code that should be removed.
2014-11-26libcsupport/src/mount.c: Remove unnecessary operationJosh Oguin1-1/+0
This was flagged by CodeSonar.
2014-11-25cpukit/libcsupport/src/pwdgrp.c: Check return valueJoel Sherrill1-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.
2014-11-25rtems: Move rtems_cache_aligned_malloc()Sebastian Huber2-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.
2014-11-25libcsupport: malloc_is_system_state_OK()Sebastian Huber5-20/+7
Move system state check to malloc_is_system_state_OK().
2014-11-21libcsupport/src/termios.c: Explicitly ignore return value (Coverity ID 1255347)Joel Sherrill1-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.
2014-11-20Ensure security of default user environmentSebastian Huber2-9/+13
2014-11-20Add supplementary groups to user environmentSebastian Huber4-17/+94
2014-11-20Filesystem: TypoSebastian Huber1-1/+1
2014-11-20libcsupport: Implement getgroups()Sebastian Huber1-3/+54
2014-11-20libcsupport: Use POSIX key for getgrent()Sebastian Huber3-29/+113
2014-11-20libcsupport: Minimal /etc/passwd and /etc/groupSebastian Huber1-20/+19
Create a minimal /etc/passwd and /etc/group with user root and group root only with no passwords.
2014-11-20libcsupport: Avoid TOCTOU and format errorsSebastian Huber1-20/+22
2014-11-20libcsupport: Use pthread_once()Sebastian Huber1-5/+9
2014-11-20libcsupport: Split passwd/group supportSebastian Huber5-383/+476
2014-11-20libcsupport: Add copyrights according to rev histSebastian Huber1-0/+7
2014-10-24ilibcsupport: Add realpath call.Chris Johns2-1/+254
2014-10-13libcsupport/include/clockdrv.h: Remove rtems_clock_major/minorJoel Sherrill1-2/+0
2014-10-08IMFS: Avoid NULL pointer accessSebastian Huber1-1/+2
Avoid NULL pointer access in IMFS_is_imfs_instance(). File systems mounted via mount() always have a valid type string.
2014-10-07termios: Partially hide rtems_termios_ttySebastian Huber3-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.
2014-10-07termios: Separate flow control from normal handlerSebastian Huber2-17/+41
2014-10-07termios: Fix transmit daemonSebastian Huber1-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().
2014-09-16tod.h -> libcsupport like other driver and helper prototype filesJoel Sherrill3-0/+75
This rippled into the handful of files that should have been using <rtems/tod.h>.
2014-09-16Use correct prototype of benchmark_timer_read()Joel Sherrill3-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.
2014-09-08libcsupport: Use RTEMS_DECONST()Sebastian Huber1-1/+1
2014-08-18rtems_termios_puts: Copy and write more than one char at onceKolja Waschk1-50/+85
Renamed startXmit(), nToSend is unsigned, just check FL_ORCVXOF, no (void) cast anymore, compute nToSend in single if/else if/else.
2014-07-09termios: Add rtems_termios_set_best_baud()Sebastian Huber3-4/+64
2014-07-09termios: Add rtems_termios_get_termios()Christian Mauderer1-1/+14
2014-07-09termios: PR1279: Use first open statusSebastian Huber1-73/+82
2014-07-09termios: PR1279: Use set attributes statusSebastian Huber1-2/+4
2014-07-09termios: PR2153: New low-level device APISebastian Huber2-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.
2014-06-30termios: Make tty list staticSebastian Huber2-4/+3
2014-04-15score: Simplify thread control initializationSebastian Huber2-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.
2014-04-04privateenv.c: Remove unused variable warningJoel Sherrill1-1/+0
2014-04-01ringbuf: Fix ISR lock initialization/destructionSebastian Huber1-0/+6
2014-03-31score: PR2152: Use allocator mutex for objectsSebastian Huber1-17/+7
Use allocator mutex for objects allocate/free. This prevents that the thread dispatch latency depends on the workspace/heap fragmentation.
2014-03-31score: Thread life cycle re-implementationSebastian Huber3-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.