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
Christian Prochaska
e446fd5f7c
Qt5: keyboard layout support
...
To select a different keyboard layout than the default 'en_us', override the
'language_chargen' function in your run script (after including
qt5_common.inc):
proc language_chargen { } { return "de" }
where "de" refers to the character map file
'repos/os/src/server/input_filter/de.chargen'
Issue #2264
2017-02-28 12:59:31 +01:00
Josef Söntgen
1f447c1460
mupdf: remove env deprecated warnings
...
Issue #2280 .
2017-02-28 12:59:31 +01:00
Alexander Boettcher
7c0542d4bc
qemu-usb: avoid env deprecated warnings
...
Issue #2280
2017-02-28 12:59:30 +01:00
Norman Feske
29b8d609c9
Adjust file headers to refer to the AGPLv3
2017-02-28 12:59:29 +01:00
Martin Stein
8ab0a5c795
nic_router.run: avoid use of 'string cat'
...
It seems that our buildbot has a problem with the TCL command 'string
cat'. In most cases it is not necessary anyway as we can use the ""
enclosure instead. It unfolds inline procedure calls and variables
automatically. We don't want to use "" only in cases where the literal
shall contain many " characters itself as it is the case for XML
configs. Then we use the 'append' command and a helper variable instead.
Ref #2193
2017-02-28 12:59:28 +01:00
Sebastian Sumpf
d1fa549628
libports: adjust lwip and ldso scripts to new API
2017-02-28 12:59:28 +01:00
Josef Söntgen
9ec553474e
libc: remove global config accessor
...
Issue #2280 .
2017-02-28 12:59:27 +01:00
Josef Söntgen
b3af297058
libc: remove global env from sysctl
...
Issue #2280 .
2017-02-28 12:59:27 +01:00
Josef Söntgen
b2dd0ab436
libc: remove global env from socket_fs_plugin
...
Issue #2280 .
2017-02-28 12:59:27 +01:00
Josef Söntgen
5ec7a0e2f8
libc: remove global env from mmap registry
...
Issue #2280 .
2017-02-28 12:59:27 +01:00
Josef Söntgen
a79f7d234b
libc: remove global env from fd_alloc
...
Issue #2280 .
2017-02-28 12:59:27 +01:00
Christian Prochaska
c4eea920a4
libc: fix resume mechanism
...
Fixes #2287
2017-02-28 12:59:25 +01:00
Josef Söntgen
76cb06794a
libports: Libc::with_libc nested
...
Fixes #2286 .
2017-02-28 12:59:25 +01:00
Martin Stein
c20bfd4414
echo_udp: do often create, bind, and close socket
...
Ref #2285
2017-02-28 12:59:25 +01:00
Martin Stein
d61cb2714c
libc/socket_fs: unlink during close
...
If 'close' does not call 'unlink' like 'shutdown', the Lxip_socket_dir
never gets destroyed and thus the socket server leaks resources like
RAM and ports.
Ref #2285
2017-02-28 12:59:25 +01:00
Martin Stein
d5b1f4fa5f
echo_udp.run: remove unnecessary stdcxx
...
Ref #2285
2017-02-28 12:59:25 +01:00
Martin Stein
43fcdc43e6
libc/socket_fs: warn on unexpected arg in shutdown
...
Our 'shutdown' implementation handles only the case that 'how' is 'RDWR'.
Thus, print an error and continue if a user calls it with another value.
Fixes #2285
2017-02-28 12:59:24 +01:00
Alexander Boettcher
1a6963813c
libc: avoid race using Libc::suspend with pthreads
...
TOCTTOU bug, in our case time of check to time of sleep bug
2017-02-28 12:59:24 +01:00
Christian Prochaska
db0dc0d97c
libc: unblock main thread in 'Kernel::resume_all()'
...
If 'Libc::Kernel::resume:all()' is called from a non-main thread, send a
signal to unblock the main thread from 'wait_and_dispatch_one_signal()'.
Fixes #2283
2017-02-28 12:59:24 +01:00
Josef Söntgen
69c48a3626
os: refactor Global_file_system_factory
...
The global file system factory is now created explicitly and the
global singleton accessor function was removed.
Fixes #2281 .
2017-02-28 12:59:23 +01:00
Martin Stein
a74a0092b3
nic_router.run: raise Qemu RAM size
...
Ref #2193
2017-02-28 12:59:22 +01:00
Martin Stein
d301022fe7
nic_router.run: do not append but concatenate
...
Makes the script more readable and saves 100 LOC.
Ref #2193
2017-02-28 12:59:22 +01:00
Martin Stein
d2832c3e4d
lwip/http_clnt: remove unused variable
...
Ref #2193
2017-02-28 12:59:22 +01:00
Martin Stein
a88954394a
nic_bridge tests: simplify test names
...
Ref #2193
2017-02-28 12:59:21 +01:00
Martin Stein
dc4e2325d0
nic_router.run: use static IP config in general
...
Dynamic IP configuration is a problem when testing on real machines
in a network that behaves differently than the DHCP in QEMU.
Ref #2193
2017-02-28 12:59:21 +01:00
Martin Stein
959b80bab1
lxip/lwip tests: non-libc attributes to config tag
...
The 'server_ip' and 'server_port' attributes for 'lxip/udp_client' and
'lwip/http_clnt' as well as the 'port' attribute for 'lxip/udp_echo' and
'lwip/http_srv_static' are not directly libc-related so they should not
live in the libc tag but in the config tag of the component.
Ref #2193
2017-02-28 12:59:21 +01:00
Martin Stein
a9535d5311
nic_router.run: update to new usage of the VFS tag
...
Use <config><vfs/></config> instead of <config><libc><vfs/></libc></config>.
Ref #2193
2017-02-28 12:59:21 +01:00
Martin Stein
06e605defa
LibC VFS: Warn on possible FD path leaks
2017-02-28 12:59:19 +01:00
Martin Stein
222a789fef
LibC socket FS: Fix leak of remote and local files
2017-02-28 12:59:19 +01:00
Christian Prochaska
1df4e53cba
Qt5: use 'Libc::with_libc()' where needed
...
Fixes #2282
2017-02-28 12:59:19 +01:00
Christian Helmuth
4eb04119a5
test: TCP echo server and client
2017-02-28 12:59:19 +01:00