summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-10-22Remove optional getrusage() declarationSebastian Huber1-4/+0
Declaration provided by Newlib since 2014. Update #3409.
2018-10-22Remove ttyname()Sebastian Huber1-121/+0
This function is provided by Newlib since 2000. Update #3409.
2018-10-22Remove __assert()Sebastian Huber1-15/+0
This function is provided by Newlib since 2000. Update #3409.
2018-10-22Remove isatty()Sebastian Huber1-40/+0
These functions are provided by Newlib since 2000. Update #3409.
2018-10-22Remove strlcat(), strlcpy(), strsep(), readdir_r()Sebastian Huber3-131/+0
These functions are provided by Newlib since 2002. Update #3409.
2018-10-22Support O_NOFOLLOW open() flagSebastian Huber1-1/+6
Close #3546.
2018-10-18Support O_DIRECTORY open() flagSebastian Huber1-2/+13
Close #3545.
2018-10-18console: Be fair in simple console readSebastian Huber1-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.
2018-10-04Optimize calloc()Sebastian Huber1-4/+5
Use return value of memset() to enable tail call optimizations.
2018-10-04Avoid need for -fno-builtin for calloc()Sebastian Huber1-0/+2
Use RTEMS_OBFUSCATE_VARIABLE() instead.
2018-10-04Remove superfluous pipe_create()Sebastian Huber1-39/+0
2018-10-02Use rtems_task_exit()Sebastian Huber1-2/+2
Update #3530. Update #3533.
2018-06-29riscv: Fix global constructionSebastian Huber1-1/+1
Update #3433.
2018-06-27console: Add missing return statusSebastian Huber1-0/+2
Update #3320.
2018-06-05Add RTEMS_FATAL_SOURCE_INVALID_HEAP_FREESebastian Huber1-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.
2018-03-06Add a simple task console driverSebastian Huber4-25/+282
Close #3320.
2018-02-22termios: Fix use of uninitialized variableSebastian Huber1-4/+4
Update #2840.
2018-02-02termios: Use self-contained objectsSebastian Huber2-181/+77
Update #2840.
2017-12-06libio: Use API mutexSebastian Huber1-30/+14
2017-11-22sapi: New implementation of rtems_panic()Sebastian Huber1-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.
2017-11-17cpukit: Add _arc4random_getentropy_fail.Christian Mauderer1-0/+21
Add a default implementation of _arc4random_getentropy_fail with an internal error. Update #3239.
2017-11-07termios: Fix canonical modeSebastian Huber1-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.
2017-11-06Add simple console driverSebastian Huber1-0/+97
Update #3170. Update #3199.
2017-11-06score: Add _IO_Printf() and _IO_Vprintf()Sebastian Huber1-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.
2017-10-28rtems: Add rtems_print_printer_fprintf_putc()Sebastian Huber1-0/+67
Update #3170. Update #3199.
2017-10-28tests: Move rtems_test_printer definitionSebastian Huber1-2/+2
Statically initialize it to use printk(). Update #3170. Update #3199.
2017-10-12Use right time format in _times()Sebastian Huber1-9/+5
Update #2740. Close #3179.
2017-10-05posix: Implement self-contained POSIX mutexSebastian Huber1-1/+0
POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
2017-10-05posix: Implement self-contained POSIX condvarSebastian Huber1-2/+0
POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
2017-10-05posix: Implement self-contained POSIX rwlocksSebastian Huber1-2/+0
POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
2017-10-05posix: Implement self-contained POSIX barriersSebastian Huber1-1/+0
POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
2017-10-05posix: Optimize pthread_once_tSebastian Huber1-1/+1
Reduce size of pthread_once_t and make it zero-initialized. Update #3142.
2017-09-19Add "\n" to "\r\n" translation to rtems_putc()Sebastian Huber1-1/+5
Update #3122.
2017-09-15libio: Use FIFO for iop free listSebastian Huber3-12/+23
Update #3136.
2017-09-15libio: Add hold/drop iop referenceSebastian Huber16-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.
2017-09-15libio: Unify readv() and writev()Sebastian Huber2-20/+34
Update #3132.
2017-09-15libio: LIBIO_GET_IOP() LIBIO_GET_IOP_WITH_ACCESS()Sebastian Huber14-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.
2017-09-15libio: Add rtems_libio_iop_is_no_delay()Sebastian Huber1-1/+1
Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags()Sebastian Huber1-5/+5
Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags_initialize()Sebastian Huber3-8/+13
Update #3132.
2017-09-15libio: Add iop set/clear flagsSebastian Huber3-7/+8
Update #3132.
2017-09-15libio: rtems_libio_check_permissions_with_error()Sebastian Huber4-4/+4
Rename rtems_libio_check_permissions_with_error() in rtems_libio_check_permissions(). Update #3132.
2017-09-15libio: Remove rtems_libio_check_permissions()Sebastian Huber1-1/+1
Remove rtems_libio_check_permissions() and convert single user to rtems_libio_check_permissions_with_error(). Update #3132.
2017-09-15libio: Do simple parameter checks earlySebastian Huber2-5/+7
This simplifies error handling later. Update #3132.
2017-09-14libio: Simplify rtems_libio_iop()Sebastian Huber1-1/+1
Remove the file descriptor validation. This is the job of rtems_libio_check_fd(). Use an inline function instread of a macro. Update #3132.
2017-09-14libio: Remove LIBIO_FLAGS_CREATESebastian Huber2-7/+0
Close #3134.
2017-09-14libio: Remove special-case reference countSebastian Huber1-30/+2
The top-level IO library structures should contain no special-case data. Update #2859.
2017-09-12Simplify and unify BSP_output_charSebastian Huber1-2/+2
The BSP_output_char should output a char and not mingle with high level processing, e.g. '\n' to '\r\n' translation. Move this translation to rtems_putc(). Remove it from all the BSP_output_char implementations. Close #3122.
2017-09-07Implement clock()Sebastian Huber1-0/+33
Newlib uses _times_r() in clock(). The problem is that the _times_r() clock frequency is defined by sysconf(_SC_CLK_TCK). The clock frequency of clock() is the constant CLOCKS_PER_SEC. FreeBSD uses getrusage() for clock(). Since RTEMS has only one process, the implementation can be simplified. Update #3121.
2017-09-06Fix integer overflow problems in times()Sebastian Huber1-34/+16
An integer overflow may still happen, however, only after 68 years of system uptime. Close #2135.