summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport (follow)
AgeCommit message (Collapse)Author
2017-11-17cpukit: Add _arc4random_getentropy_fail.Christian Mauderer
Add a default implementation of _arc4random_getentropy_fail with an internal error. Update #3239.
2017-11-15libio: Add assert to rtems_libio_iop_drop()Sebastian Huber
This assert helps to detect an invalid reference counting in RTEMS_DEBUG configurations. Update #3132.
2017-11-09score: Change _Timecounter_Time_uptime to int32_tSebastian Huber
Move basic timecounter API shared with BSD network stack to <machine/_timecounter.h>. Update #3185.
2017-11-07termios: Fix canonical modeSebastian Huber
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 Huber
Update #3170. Update #3199.
2017-11-06score: Add _IO_Printf() and _IO_Vprintf()Sebastian Huber
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 Huber
Update #3170. Update #3199.
2017-10-28tests: Move rtems_test_printer definitionSebastian Huber
Statically initialize it to use printk(). Update #3170. Update #3199.
2017-10-12Use right time format in _times()Sebastian Huber
Update #2740. Close #3179.
2017-10-12timecounter: Merge FreeBSD change r303382Konstantin Belousov
Hide the boottime and bootimebin globals, provide the getboottime(9) and getboottimebin(9) KPI. Change consumers of boottime to use the KPI. The variables were renamed to avoid shadowing issues with local variables of the same name. Issue is that boottime* should be adjusted from tc_windup(), which requires them to be members of the timehands structure. As a preparation, this commit only introduces the interface. Some uses of boottime were found doubtful, e.g. NLM uses boottime to identify the system boot instance. Arguably the identity should not change on the leap second adjustment, but the commit is about the timekeeping code and the consumers were kept bug-to-bug compatible. Tested by: pho (as part of the bigger patch) Reviewed by: jhb (same) Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 month X-Differential revision: https://reviews.freebsd.org/D7302 Update #3175.
2017-10-05posix: Implement self-contained POSIX mutexSebastian Huber
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 Huber
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 Huber
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 Huber
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 Huber
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 Huber
Update #3122.
2017-09-15libio: Remove rtems_libio_t::driverSebastian Huber
This member was apparently unused. Close #3133.
2017-09-15libio: Use FIFO for iop free listSebastian Huber
Update #3136.
2017-09-15libio: Add hold/drop iop referenceSebastian Huber
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 Huber
Update #3132.
2017-09-15libio: LIBIO_GET_IOP() LIBIO_GET_IOP_WITH_ACCESS()Sebastian Huber
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_append()Sebastian Huber
Update #3132.
2017-09-15libio: Add rtems_libio_iop_is_writeable()Sebastian Huber
Update #3132.
2017-09-15libio: Add rtems_libio_iop_is_readable()Sebastian Huber
Update #3132.
2017-09-15libio: Add rtems_libio_iop_is_no_delay()Sebastian Huber
Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags()Sebastian Huber
Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags_initialize()Sebastian Huber
Update #3132.
2017-09-15libio: Add iop set/clear flagsSebastian Huber
Update #3132.
2017-09-15libio: rtems_libio_check_permissions_with_error()Sebastian Huber
Rename rtems_libio_check_permissions_with_error() in rtems_libio_check_permissions(). Update #3132.
2017-09-15libio: Remove rtems_libio_check_permissions()Sebastian Huber
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 Huber
This simplifies error handling later. Update #3132.
2017-09-14libio: Simplify rtems_libio_iop()Sebastian Huber
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 Huber
Close #3134.
2017-09-14libio: Remove special-case reference countSebastian Huber
The top-level IO library structures should contain no special-case data. Update #2859.
2017-09-12Simplify and unify BSP_output_charSebastian Huber
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 Huber
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 Huber
An integer overflow may still happen, however, only after 68 years of system uptime. Close #2135.
2017-08-25Include missing <string.h>Sebastian Huber
Update #2133.
2017-07-28Fix IO control request typeSebastian Huber
2017-07-14posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel
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
2017-06-21sys/utsname.h: Increase buffer to avoid overflowJoel Sherrill
2017-06-07network: Move RTEMS specificsSebastian Huber
Move RTEMS specifics to <rtems/rtems_bsdnet.h>. Introduce rtems_tap_ifreq. The interface tap support is RTEMS-specific and only available in the legacy network stack. Update #2833.
2017-06-07Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber
Update #2833.
2017-06-07Move RTEMS-specific Termios API contentSebastian Huber
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.
2017-06-07Do not use deprecated <sys/termios.h>Sebastian Huber
Update #2833.
2017-06-07Provide kernel space headers used by NewlibSebastian Huber
Update #2833.
2017-05-05posix/mman: add mmap support for shm objectsGedare Bloom
Update #2859.
2017-04-10Updating default termios initialization for dedicated input/output baud ratesKevin Kirspel
updates #2897.
2017-04-04sys/event.h: Update to FreeBSD head 2017-02-13Sebastian Huber
2017-04-03bsps: Fix baud settingsSebastian Huber
Update #2897.