summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove superfluous <rtems/system.h> includesSebastian Huber2019-03-145-5/+0
|
* memalign: Add missing attributes to fix warningSebastian Huber2019-01-101-1/+3
| | | | Update #3666.
* Add aligned_alloc() and memalign()Sebastian Huber2018-12-211-0/+41
| | | | | | Ensure that the C++17 aligned new operator works. Close #3666.
* or1k: Support GCC 9Sebastian Huber2018-11-141-1/+2
| | | | Close #3602.
* Add rtems_malloc() and rtems_calloc()Sebastian Huber2018-11-121-0/+25
| | | | Close #3583.
* libcsupport: Add missing includeSebastian Huber2018-11-081-0/+1
| | | | Update #3598.
* config: Include <rtems.h> for RTEMS_NEWLIBSebastian Huber2018-11-071-0/+2
|
* termios: Move default lock functionsSebastian Huber2018-11-072-18/+18
| | | | | | | Move rtems_termios_device_lock_acquire_default() and rtems_termios_device_lock_release_default() to a file separate from the general Termios support. This avoids complex dependencies in printk() only scenarios.
* config: Fix CONFIGURE_DISABLE_NEWLIB_REENTRANCYSebastian Huber2018-11-071-0/+26
| | | | | | | | | | | Move the __getreent() variant using the global reentrancy structure to librtemscpu.a. This avoids a definition of __getreent() in the configuration module if CONFIGURE_DISABLE_NEWLIB_REENTRANCY is defined. This avoids all the dependencies which would be exposed by a reference to the global reentrancy structure. This change is only possible since the default configuration moved to librtemsdefaultconfig.a recently.
* posix: Provide threads by defaultSebastian Huber2018-10-291-26/+4
| | | | Update #2514.
* Remove checks for flockfile(), etc. declarationsSebastian Huber2018-10-223-3/+3
| | | | | | Declarations provided by Newlib since 2002. Update #3409.
* Remove getcwd()Sebastian Huber2018-10-221-296/+0
| | | | | | This function is provided by Newlib since 2000. Update #3409.
* Remove optional getrusage() declarationSebastian Huber2018-10-221-4/+0
| | | | | | Declaration provided by Newlib since 2014. Update #3409.
* Remove ttyname()Sebastian Huber2018-10-221-121/+0
| | | | | | This function is provided by Newlib since 2000. Update #3409.
* Remove __assert()Sebastian Huber2018-10-221-15/+0
| | | | | | This function is provided by Newlib since 2000. Update #3409.
* Remove isatty()Sebastian Huber2018-10-221-40/+0
| | | | | | These functions are provided by Newlib since 2000. Update #3409.
* Remove strlcat(), strlcpy(), strsep(), readdir_r()Sebastian Huber2018-10-223-131/+0
| | | | | | These functions are provided by Newlib since 2002. Update #3409.
* Support O_NOFOLLOW open() flagSebastian Huber2018-10-221-1/+6
| | | | Close #3546.
* Support O_DIRECTORY open() flagSebastian Huber2018-10-181-2/+13
| | | | Close #3545.
* console: Be fair in simple console readSebastian Huber2018-10-181-2/+7
| | | | | | | Wait for one tick in case no character is available after a call to getchark(). Otherwise the system is constantly busy within an input loop (for example in the RTEMS shell). The polled Termios driver uses the same approach.
* Optimize calloc()Sebastian Huber2018-10-041-4/+5
| | | | Use return value of memset() to enable tail call optimizations.
* Avoid need for -fno-builtin for calloc()Sebastian Huber2018-10-041-0/+2
| | | | Use RTEMS_OBFUSCATE_VARIABLE() instead.
* Remove superfluous pipe_create()Sebastian Huber2018-10-041-39/+0
|
* Use rtems_task_exit()Sebastian Huber2018-10-021-2/+2
| | | | | Update #3530. Update #3533.
* riscv: Fix global constructionSebastian Huber2018-06-291-1/+1
| | | | Update #3433.
* console: Add missing return statusSebastian Huber2018-06-271-0/+2
| | | | Update #3320.
* Add RTEMS_FATAL_SOURCE_INVALID_HEAP_FREESebastian Huber2018-06-051-6/+1
| | | | | | | | An invalid heap usage such as a double free is usually a fatal error since this indicates a use after free. Replace the use of printk() in free() with a fatal error. Update #3437.
* Add a simple task console driverSebastian Huber2018-03-064-25/+282
| | | | Close #3320.
* termios: Fix use of uninitialized variableSebastian Huber2018-02-221-4/+4
| | | | Update #2840.
* termios: Use self-contained objectsSebastian Huber2018-02-022-181/+77
| | | | Update #2840.
* libio: Use API mutexSebastian Huber2017-12-061-30/+14
|
* sapi: New implementation of rtems_panic()Sebastian Huber2017-11-221-15/+0
| | | | | | | | | | | | The previous rtems_panic() implementation was quite heavy weight. It depended on _exit() which calls the global destructors. It used fprintf(stderr, ...) for output which depends on an initialized console device and the complex fprintf(). Introduce a new fatal source RTEMS_FATAL_SOURCE_PANIC for rtems_panic() and output via vprintk(). Update #3244.
* cpukit: Add _arc4random_getentropy_fail.Christian Mauderer2017-11-171-0/+21
| | | | | | | Add a default implementation of _arc4random_getentropy_fail with an internal error. Update #3239.
* termios: Fix canonical modeSebastian Huber2017-11-071-2/+4
| | | | | | | In canonical mode, input is made available line by line. We must stop the canonical buffer filling upon reception of an end-of-line character. Close #3218.
* Add simple console driverSebastian Huber2017-11-061-0/+97
| | | | | Update #3170. Update #3199.
* score: Add _IO_Printf() and _IO_Vprintf()Sebastian Huber2017-11-061-206/+14
| | | | | | | | | | | | | | The previous vprintk() implementation had a questionable licence header, lacks support for the 'z' and 'j' format specifiers, is not robust against invalid format specifiers, uses a global variable for output. Replace it with a stripped down version of the FreeBSD kernel kvprintf() function. The new implementation allows a low overhead rtems_snprintf() if necessary. Update #3199. Close #3216.
* rtems: Add rtems_print_printer_fprintf_putc()Sebastian Huber2017-10-281-0/+67
| | | | | Update #3170. Update #3199.
* tests: Move rtems_test_printer definitionSebastian Huber2017-10-281-2/+2
| | | | | | | Statically initialize it to use printk(). Update #3170. Update #3199.
* Use right time format in _times()Sebastian Huber2017-10-121-9/+5
| | | | | Update #2740. Close #3179.
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-051-1/+0
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-051-2/+0
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-051-2/+0
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-051-1/+0
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* posix: Optimize pthread_once_tSebastian Huber2017-10-051-1/+1
| | | | | | Reduce size of pthread_once_t and make it zero-initialized. Update #3142.
* Add "\n" to "\r\n" translation to rtems_putc()Sebastian Huber2017-09-191-1/+5
| | | | Update #3122.
* libio: Use FIFO for iop free listSebastian Huber2017-09-153-12/+23
| | | | Update #3136.
* libio: Add hold/drop iop referenceSebastian Huber2017-09-1516-17/+83
| | | | | | | Check iop reference count in close() and return -1 with errno set to EBUSY in case the file descriptor is still in use. Update #3132.
* libio: Unify readv() and writev()Sebastian Huber2017-09-152-20/+34
| | | | Update #3132.
* libio: LIBIO_GET_IOP() LIBIO_GET_IOP_WITH_ACCESS()Sebastian Huber2017-09-1514-47/+18
| | | | | | | | | Replace rtems_libio_check_fd(), rtems_libio_iop(), rtems_libio_check_open() and rtems_libio_check_permissions() combinations with new LIBIO_GET_IOP() and LIBIO_GET_IOP_WITH_ACCESS() macros. Update #3132.
* libio: Add rtems_libio_iop_is_no_delay()Sebastian Huber2017-09-151-1/+1
| | | | Update #3132.