Norman Feske
6609aafb05
Replace Quota_exceeded by Insufficient_ram_quota
...
This patch replaces the 'Parent::Quota_exceeded',
'Service::Quota_exceeded', and 'Root::Quota_exceeded' exceptions
by the single 'Insufficient_ram_quota' exception type.
Furthermore, the 'Parent' interface distinguished now between
'Out_of_ram' (the child's RAM is exhausted) from
'Insufficient_ram_quota' (the child's RAM donation does not suffice to
establish the session).
This eliminates ambiguities and removes the need to convert exception
types along the path of the session creation.
Issue #2398
2017-05-31 13:16:05 +02:00
Norman Feske
58f44d39c5
base: use 'Ram_quota' in 'Ram_session' args
...
This patch replaces the former use of size_t with the use of the
'Ram_quota' type to improve type safety (in particular to avoid
accidentally mixing up RAM quotas with cap quotas).
Issue #2398
2017-05-31 13:16:04 +02:00
Christian Helmuth
c79155fd7b
libc_ffat: zero-init 'struct tm' on stack
...
This prevents the following runtime error.
Error: mktime() returned -1, the file modification time reported by stat() will be incorrect
2017-05-31 13:16:03 +02:00
Norman Feske
03d7208386
Turn posix lib into shared library
...
By building the posix library as shared object with an ABI, we
effectively decouple posix-using programs from the library
implementation (which happens to depend on several os-level APIs such as
the VFS).
2017-05-31 13:16:02 +02:00
Emery Hemingway
01e8f7ea3d
libc: do not open stdio descriptors unless configured to do so
...
Fix #2396
2017-05-31 13:16:01 +02:00
Emery Hemingway
24a9537a27
File_system: replace per-handle signals with notification packets
...
Replace registration and signaling of per-handle signal capabilities
with CONTENT_CHANGED notification packets.
Fix #2397
2017-05-31 13:16:01 +02:00
Alexander Boettcher
ecc98c293e
qemu-usb: avoid operating on stale memory
...
during for loop in garbage_collect
Issue #2362
2017-05-31 13:15:59 +02:00
Alexander Boettcher
760c04c53a
qemu-usb: respect size of assignment
...
fixes vbox4 and vbox5 xhci support
Issue #2362
2017-05-31 13:15:59 +02:00
Christian Helmuth
e3d8b6098f
netty: do UDP and TCP tests
...
This commit replaces echo_udp with the netty_udp test. TCP can be tested
via netty_tcp.
2017-05-31 13:15:58 +02:00
Christian Helmuth
9802ae83e0
libc: rework socket fs for O_NONBLOCK
2017-05-31 13:15:58 +02:00
Christian Helmuth
1d99e7ede9
base: classify signals as I/O and application level
...
Fixes #2363
2017-05-31 13:15:58 +02:00
Christian Helmuth
e33d65aea0
libc: test nested signal handling and RPC
...
Issue #2363
2017-05-31 13:15:58 +02:00
Christian Helmuth
a65a4c8621
netty: non-blocking server test
2017-05-31 13:15:57 +02:00
Christian Helmuth
b3819f30dc
libc: support for O_NONBLOCK in read()
2017-05-31 13:15:57 +02:00
Norman Feske
b58fbe5ba5
Depot-archive recipes
...
Issue #2339
2017-05-31 13:15:56 +02:00
Alexander Boettcher
480c42d424
pthread: fix deprecated warnings
...
Issue #1987
2017-05-31 13:15:54 +02:00
Christian Prochaska
739acd8b41
qt5: fix build errors with GCC 6
...
Fixes #2389
2017-05-31 13:15:51 +02:00
Christian Prochaska
e317eca9a5
fuse_ext2: build with '-std=gnu89'
...
GCC 6 defaults to '-std=gnu11' for the C language, which has different
semantics for inline functions and triggers build errors.
Fixes #2385
2017-05-31 13:15:51 +02:00
Christian Prochaska
661a3100b1
stdcxx: update to version 6.3.0
...
Issue #2372
2017-05-31 13:15:50 +02:00
Christian Prochaska
58f2088d3e
gcc: update to version 6.3.0
...
Issue #2372
2017-05-31 13:15:49 +02:00
Norman Feske
8aebfd9b26
libc: enhance quirk for building libc-gen on ARM
...
This patch enables the building of the libc from a source archive
for ARM.
2017-05-02 15:29:04 +02:00
Christian Helmuth
f96b5b89f2
Fix more deprecated warnings
...
Issue #1987
2017-05-02 15:28:55 +02:00
Norman Feske
44e5f1c2d4
ABIs for libm, libpng, zlib
2017-05-02 15:28:54 +02:00
Norman Feske
93b78573bd
Remove superfluous 'cxx' from LIBS in target.mk
2017-05-02 15:28:53 +02:00
Christian Prochaska
a62f09e87e
libc: add 'Libc::Component::stack_size()' to the ABI symbol file
...
Fixes #2354
2017-05-02 15:28:52 +02:00
Christian Prochaska
6b3c79f674
qt5: fix 'qt5_qpluginwidget' test
...
Fixes #2349
2017-03-27 12:35:10 +02:00
Christian Helmuth
92a339befd
rump_fs: handle errors on mkdir correctly
2017-03-24 16:20:05 +01:00
Christian Helmuth
c60edb5636
libc: use flex explicitly for port preparation
2017-03-24 16:20:04 +01:00
Christian Helmuth
cb43e04691
ldso: defer execution of static constructors
...
Ldso now does not automatically execute static constructors of the
binary and shared libraries the binary depends on. If static
construction is required (e.g., if a shared library with constructor is
used or a compilation unit contains global statics) the component needs
to execute the constructors explicitly in Component::construct() via
Genode::Env::exec_static_constructors().
In the case of libc components this is done by the libc startup code
(i.e., the Component::construct() implementation in the libc).
The loading of shared objects at runtime is not affected by this change
and constructors of those objects are executed immediately.
Fixes #2332
2017-03-24 16:20:04 +01:00
Christian Helmuth
67ac0dde6e
libc: checks for initialization and user context
...
We check if the libc (kernel singleton, config) was initialized and also
if suspend() is called from the valid user context.
Issue #2332
2017-03-24 16:20:03 +01:00
Christian Helmuth
88db3c0df7
Fix some deprecated warnings
...
Issue #1987
2017-03-24 16:20:03 +01:00
Christian Helmuth
a2ad5c06ab
Adjust run-script RAM quotas to actual demands
...
With the current implementation resource requests are not automically
satisfied with slack quota by init. Therefore, this commit adapts RAM
quotas of autopilot scenarios to the actual demands.
2017-03-24 16:20:02 +01:00
Alexander Boettcher
3758cb056d
acpica: increase memory quota for platform session
...
Fixes #2343
2017-03-24 16:20:01 +01:00
Alexander Boettcher
d8a151ef7d
acpica: fix iomem handling code
...
Issue already encountered during #2242 .
Fixes #2344
2017-03-24 16:20:01 +01:00
Christian Helmuth
770c7548d8
acpica: fix service routing in run scenario
2017-03-24 16:20:00 +01:00
Emery Hemingway
50ee91e738
libc: poll listening sockets during select
...
Open the accept file at the listen call and poll for read henceforce.
Fix #2319
2017-03-24 16:19:55 +01:00
Emery Hemingway
7ef8c81607
libc: socket fcntl flags inheritence
...
Set O_NONBLOCK on sockets from the fcntl syscall and propagate this flag
to socket_fs control files and sockets returned from accept.
Fix #2318
2017-03-24 16:19:55 +01:00
Josef Söntgen
a1b24a0a72
libports: remove deprecated from libc_block
...
Issue #2310 .
2017-03-24 16:19:54 +01:00
Josef Söntgen
a34fb617a7
ffat: remove deprecated env usage
...
Issue #2310 .
2017-03-24 16:19:53 +01:00
Christian Prochaska
137305d58a
libc: add 'max_align_t' type
...
Fixes #2334
2017-03-15 13:12:26 +01:00
Roman Iten
3f29e7c675
run/qt5: move to '<config> <vfs/>'
...
Fixes #2328
2017-03-15 12:32:28 +01:00
Christian Prochaska
6d6474ba0e
qt5: improve port check
...
Fixes #2324
2017-03-15 12:32:28 +01:00
Christian Prochaska
79fc33aca8
libav: improve port check
...
Fixes #2322
2017-03-15 12:32:27 +01:00
Emery Hemingway
10ed7b38d4
libc: initialize the environ pointer before Libc::construct
...
Setting the global environ pointer to NULL prevents getenv surprises
when using libc without the POSIX wrapper.
Fix #2312
2017-03-15 12:32:27 +01:00
Christian Helmuth
b9834bc388
Rename Linux audio driver to linux_audio_drv
...
Related to #2190
Fixes #2278
2017-03-15 12:32:27 +01:00
Christian Helmuth
43e7cc56a3
Rename Linux NIC driver to linux_nic_drv
...
Related to #2190
Issue #2278
2017-03-15 12:32:27 +01:00
Martin Stein
35cc020e9c
os/server: nic_dump
...
A tiny bump-in-the-wire tool for dumping NIC packet information.
Ref #2314
2017-03-15 12:32:26 +01:00
Alexander Boettcher
261edf59a9
pthread_cond_timedwait: fix timeout calculation
...
Due to rounding in the timeout calculation it may happen that the timeout
stored in ms becomes 0, but actually some time (us or ns) are left to wait.
With threads on various priorities (vbox) this may end up in endless loops.
Fixes #2311
2017-03-15 12:32:26 +01:00
Alexander Boettcher
1d36ecc13f
libc: fix config parsing in vfs_plugin
...
The Xml_node contains already only the libc sub_node.
Issue #2306
Broken due to commit:
libc: remove global config accessor
Issue #2280 .
2017-03-15 12:24:44 +01:00
Christian Helmuth
6bc3bc5881
libc: use proper fd sets in select-handler select
2017-03-15 12:24:44 +01:00