summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* libio: Add rtems_libio_iop_flags()Sebastian Huber2017-09-151-5/+5
| | | | Update #3132.
* libio: Add rtems_libio_iop_flags_initialize()Sebastian Huber2017-09-153-8/+13
| | | | Update #3132.
* libio: Add iop set/clear flagsSebastian Huber2017-09-153-7/+8
| | | | Update #3132.
* libio: rtems_libio_check_permissions_with_error()Sebastian Huber2017-09-154-4/+4
| | | | | | | Rename rtems_libio_check_permissions_with_error() in rtems_libio_check_permissions(). Update #3132.
* libio: Remove rtems_libio_check_permissions()Sebastian Huber2017-09-151-1/+1
| | | | | | | Remove rtems_libio_check_permissions() and convert single user to rtems_libio_check_permissions_with_error(). Update #3132.
* libio: Do simple parameter checks earlySebastian Huber2017-09-152-5/+7
| | | | | | This simplifies error handling later. Update #3132.
* libio: Simplify rtems_libio_iop()Sebastian Huber2017-09-141-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.
* libio: Remove LIBIO_FLAGS_CREATESebastian Huber2017-09-142-7/+0
| | | | Close #3134.
* libio: Remove special-case reference countSebastian Huber2017-09-141-30/+2
| | | | | | The top-level IO library structures should contain no special-case data. Update #2859.
* Simplify and unify BSP_output_charSebastian Huber2017-09-121-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.
* Implement clock()Sebastian Huber2017-09-071-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.
* Fix integer overflow problems in times()Sebastian Huber2017-09-061-34/+16
| | | | | | | An integer overflow may still happen, however, only after 68 years of system uptime. Close #2135.
* Include missing <string.h>Sebastian Huber2017-08-255-0/+5
| | | | Update #2133.
* Fix IO control request typeSebastian Huber2017-07-281-1/+2
|
* posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel2017-07-142-0/+2
| | | | | | | | | | | Added a mmap file handler to struct _rtems_filesystem_file_handlers_r. Updated each file handler object to support the default mmap handler. Updated mmap() to call the mmap handler for MAP_SHARED. Added a mmap file handler for shm Added support for MAP_ANON in mmap(). Updates #2859
* Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber2017-06-071-0/+1
| | | | Update #2833.
* Move RTEMS-specific Termios API contentSebastian Huber2017-06-071-2/+2
| | | | | | | Remove obsolete support for OFILL, OFDEL, NLDLY, CRDLY, BSDLY, VTDLY, and FFDLY which is not present on FreeBSD and not implemented in Linux. Update #2833.
* Do not use deprecated <sys/termios.h>Sebastian Huber2017-06-071-1/+1
| | | | Update #2833.
* posix/mman: add mmap support for shm objectsGedare Bloom2017-05-051-2/+30
| | | | Update #2859.
* Updating default termios initialization for dedicated input/output baud ratesKevin Kirspel2017-04-101-1/+4
| | | | updates #2897.
* termios: Avoid invalid memory accessSebastian Huber2017-03-271-1/+3
| | | | Update #2897.
* termios: Synchronize with latest FreeBSD headersKevin Kirspel2017-03-2217-69/+177
| | | | | | | | | | | Adding modified FreeBSD headers to synchronize RTEMS termios with FreeBSD. Modify termios to support dedicated input and output baud for termios structure. Updated BSPs to use dedicated input and output baud in termios structure. Updated tools to use dedicated input and output baud in termios structure. Updated termios testsuites to use dedicated input and output baud in termios structure. Close #2897.
* libio: Fix deadlock in location managementSebastian Huber2017-03-166-12/+13
| | | | | | | | Perform a context-dependent deferred location release to avoid a deadlock on the file system instance locks, for example during a chdir(). Update #2936.
* posix_devctl: Fix for pre C99Sebastian Huber2017-03-021-5/+5
| | | | | Use __restrict just like in <devctl.h> to avoid compiler errors with older GCC, e.g. 4.8 or 4.9.
* termios: Simplify some calculationsSebastian Huber2017-02-281-4/+3
| | | | Use the modular arithmetic addition rule.
* termios: Implement non-blocking writeSebastian Huber2017-02-281-4/+6
|
* termios: Make write POSIX compatibleSebastian Huber2017-02-281-34/+81
| | | | | | | | Currently only blocking read/write operations are implemented. A blocking write must transfer at least one character. It should not wait for the device for the second character and so on. Close #2917.