Commit Graph
10333 Commits
Author SHA1 Message Date
Sebastian Huber 560acb62ef score: Include missing header file
Update #3059.
2017-09-22 14:15:50 +02:00
Sebastian Huber bdc468a9c5 posix: Allow PTHREAD_PROCESS_SHARED for rwlocks
Close #3153.
2017-09-22 08:24:57 +02:00
Sebastian Huber 9a50e32ded score: Include missing <limits.h>
Update #2132.
Close #3140.
2017-09-19 10:57:27 +02:00
Sebastian Huber a029230aec Add "\n" to "\r\n" translation to rtems_putc()
Update #3122.
2017-09-19 07:21:37 +02:00
Sebastian Huber c030edde3f posix: Allow PTHREAD_PROCESS_SHARED for condvar
Close #3137.
2017-09-15 13:57:53 +02:00
Sebastian Huber 8230a329d3 posix: Allow PTHREAD_PROCESS_SHARED for barriers
Close #3126.
2017-09-15 13:57:53 +02:00
Sebastian Huber 3b47ce73fa posix: Allow PTHREAD_PROCESS_SHARED for mutexes
Close #3125.
2017-09-15 13:57:38 +02:00
Sebastian Huber 8fa75d35cb libio: Remove rtems_libio_t::driver
This member was apparently unused.

Close #3133.
2017-09-15 12:52:08 +02:00
Sebastian Huber ac741625b0 libio: Use FIFO for iop free list
Update #3136.
2017-09-15 10:55:38 +02:00
Sebastian Huber baef823cd5 libio: Add hold/drop iop reference
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-15 10:29:34 +02:00
Sebastian Huber 98041b685e libio: Unify readv() and writev()
Update #3132.
2017-09-15 10:27:13 +02:00
Sebastian Huber 9012db84f6 libio: LIBIO_GET_IOP() LIBIO_GET_IOP_WITH_ACCESS()
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-15 10:27:13 +02:00
Sebastian Huber d4c54416b7 libio: Add rtems_libio_iop_is_append()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber 3cffd66d76 libio: Add rtems_libio_iop_is_writeable()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber a937a5a534 libio: Add rtems_libio_iop_is_readable()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber bbcdc302cd libio: Add rtems_libio_iop_is_no_delay()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber e2b1db2311 libio: Add rtems_libio_iop_flags()
Update #3132.
2017-09-15 10:27:12 +02:00
Sebastian Huber ca90c6c1db libio: Add rtems_libio_iop_flags_initialize()
Update #3132.
2017-09-15 10:27:08 +02:00
Sebastian Huber 856ede4f91 libio: Add iop set/clear flags
Update #3132.
2017-09-15 07:48:03 +02:00
Sebastian Huber ec10d266ba libio: rtems_libio_check_permissions_with_error()
Rename rtems_libio_check_permissions_with_error() in
rtems_libio_check_permissions().

Update #3132.
2017-09-15 07:47:46 +02:00
Sebastian Huber 48dbb6cf16 libio: Remove rtems_libio_check_permissions()
Remove rtems_libio_check_permissions() and convert single user to
rtems_libio_check_permissions_with_error().

Update #3132.
2017-09-15 07:34:03 +02:00
Sebastian Huber 0169e90e84 libio: Do simple parameter checks early
This simplifies error handling later.

Update #3132.
2017-09-15 07:33:43 +02:00
Sebastian Huber 4b759b1892 libio: Avoid direct use of rtems_libio_iops
Update #3132.
2017-09-14 07:02:29 +02:00
Sebastian Huber 7b4520258d libio: Simplify rtems_libio_iop()
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-14 07:02:29 +02:00
Sebastian Huber 5eb67f3ad0 libio: Remove LIBIO_FLAGS_CREATE
Close #3134.
2017-09-14 07:02:29 +02:00
Sebastian Huber 694e946dbd libio: Remove special-case reference count
The top-level IO library structures should contain no special-case data.

Update #2859.
2017-09-14 07:02:28 +02:00
Sebastian Huber 18b32d7635 posix: Ignore pshared for semaphores
Since we have only one process, sharing between processes is trivial.

Close #3124.
2017-09-12 11:50:39 +02:00
Sebastian Huber 2fc3246080 serdbg: Fix warning
Update #3122.
2017-09-12 11:50:39 +02:00
Sebastian Huber 1bc0ad2e12 Simplify and unify BSP_output_char
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-12 09:57:53 +02:00
Sebastian Huber 62c912e155 posix: Use mutex object itself for condvar
We should only use the address used to initialize the mutex object
according to POSIX, "2.9.9 Synchronization Object Copies and Alternative
Mappings".

http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_09

Update #3113.
2017-09-12 08:11:08 +02:00
Chris Johns 4e0ba7ef6f i2c: TMP112 correct the function name to set the config. 2017-09-11 14:15:51 +10:00
Sebastian Huber bdbf1ffa6e Implement clock()
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-07 07:40:19 +02:00
Sebastian Huber 4d495cfd01 dosfs: Fix fat_file_update()
Do not update the non-existant meta-data of the root directory.

Update #2944.
2017-09-06 14:31:04 +02:00
Sebastian Huber a2c204ebf8 dosfs: Fix find name next entry preparation
Update #2964.
2017-09-06 13:59:35 +02:00
Sebastian Huber 34dda6042a dosfs: Fix msdos_dir_read()
Set a proper name buffer length for each converter invocation.

Update #2987.
2017-09-06 13:21:41 +02:00
Sebastian Huber fae59c9b42 dosfs: Support a cluster size of 64KiB
Close #3003.
2017-09-06 10:20:46 +02:00
Sebastian Huber 731e68a39a Fix integer overflow problems in times()
An integer overflow may still happen, however, only after 68 years of
system uptime.

Close #2135.
2017-09-06 07:42:25 +02:00
Daniel Hellstrom 3663be5352 drvmgr: clean up info_drv print
Fixes #2930
2017-08-29 08:44:13 +02:00
Sebastian Huber 163ff8ee04 score: Remove <string.h> include from basedefs.h
Close #2133.
2017-08-25 11:03:21 +02:00
Sebastian Huber cfa7afd4e4 score: Remove <limits.h> include from basedefs.h
Close #2132.
2017-08-25 11:02:43 +02:00
Sebastian Huber f93f770ee6 network: Include missing header file 2017-08-25 11:01:50 +02:00
Sebastian Huber 76b9c313ac libpci: Use calloc()
Update #2133.
2017-08-25 11:01:15 +02:00
Sebastian Huber 1f22b26945 Include missing <limits.h>
Update #2132.
2017-08-25 10:59:52 +02:00
Sebastian Huber b2ed712d26 Include missing <string.h>
Update #2133.
2017-08-25 10:58:58 +02:00
Chris Johns 602b184fd0 libmisc/rtems-fdt: Add libmisc/rtems-fdt to the cpukit wrapup.
Updates #3099.
2017-08-24 09:39:43 +10:00
Sebastian Huber c693a3a506 powerpc: PPC64_NOP_FOR_LINKER_TOC_POINTER_RESTORE
In 64-bit mode, the linker must have the ability to restore the TOC
pointer after an external function call.

Update #3082.
2017-08-22 16:27:03 +02:00
Sebastian Huber a6f84b2753 powerpc: Add 64-bit context/interrupt support
Update #3082.
2017-08-22 16:26:19 +02:00
Sebastian Huber 7837728b13 powerpc: 64-bit _CPU_Context_Initialize() support
Update #3082.
2017-08-22 14:19:00 +02:00
Sebastian Huber 5a9372ff7e powerpc: 64-bit support for CPU_SIZEOF_POINTER
Update #3082.
2017-08-22 14:19:00 +02:00
Sebastian Huber ea9084defd powerpc: ppc_interrupt_get_disable_mask()
Fix warning on 64-bit PowerPC.

Update #3082.
2017-08-22 14:18:59 +02:00