pooka
5ede295be8
Since the rump kernel does not know when the container it's running in
...
actually halts, print "halted" in the hypercall.
2015-07-24 14:11:11 +00:00
pooka
f24bc1c7bb
check for utimensat
2015-03-05 00:25:39 +00:00
justin
a0e1fabf06
Minor fixes to types and includes
2015-02-15 00:54:32 +00:00
justin
36ca2dc69a
Whitespace fixes, no functional change
2015-02-13 22:00:53 +00:00
justin
eb70afec87
Fix some return value checks
2015-02-13 21:31:18 +00:00
pooka
7ee5757301
If binding fails, print URL with which it failed.
2015-02-04 12:55:47 +00:00
justin
1eb711493e
Remove no longer required definitions
2015-01-17 23:49:40 +00:00
pooka
bc3e3c852d
check that sys/cdefs.h builds with -Werror (not the case on alpine linux
...
where it contains an unconditional #warning)
2015-01-03 13:16:41 +00:00
justin
e42c569056
Just abort on currently unsupported functions.
2014-12-29 21:50:09 +00:00
pooka
68efe5aa2a
With glibc on ARM kthread_exit() aborts because pthread_exit() fails
...
to unwind the stack. Add a temporary workaround where we simply don't
allow the thread to exit (a kernel thread exit is a relatively uncommon
event in a rump kernel anyway).
2014-12-16 17:00:17 +00:00
justin
af1fbf0457
Avoid uninitialised variable warning when gcc is feeling lazy
2014-12-08 00:12:03 +00:00
pooka
770e02d5a9
work around c11 visibility problems on some version(s) of FreeBSD
2014-11-10 22:43:46 +00:00
pooka
05761acba3
Just _GNU_SOURCE should be enough to expose everything necessary on Linux
2014-11-10 22:29:06 +00:00
pooka
77e862601f
Move rump kernel man pages from various sources to sys/rump
...
namely:
* src/lib is used only when building for POSIX'y platforms, but
the man pages have their use for all platforms
* rumpuser.3 is a function of the rump kernel, not one of the of
the POSIX'y implementation hosted in src/lib/librumpuser
no functional change
2014-11-09 17:39:37 +00:00
justin
50e0f3e25a
Remove superfluous getcontext()
2014-11-08 23:47:15 +00:00
justin
c78a9b9247
Move makecontext into function with getcontext for consistency
2014-11-08 23:20:23 +00:00
justin
1e44adf395
Fix some error handling cases.
2014-11-08 21:27:04 +00:00
justin
0f54d4e5e3
Add some prototypes for Android rump kernel builds
...
See buildrump.sh #70 , some Android versins are missing prototypes for
these libc functions
2014-11-05 12:28:46 +00:00
pooka
e613b0fe74
check for clock_gettime from librt too
2014-11-05 01:40:30 +00:00
pooka
aeea18dfa5
assert that clock_gettime() does not fail
2014-11-05 01:39:40 +00:00
pooka
db9c98fa8e
fix clock_gettime emulation
2014-11-05 01:37:27 +00:00
pooka
638846d983
update for NetBSD-current having clock_nanosleep
2014-11-05 01:15:58 +00:00
pooka
6d2cad6b7c
actually check for clock_nanosleep()
2014-11-05 00:50:17 +00:00
pooka
e0e4b98687
check clock_gettime() rv
2014-11-05 00:43:55 +00:00
pooka
4c554ddcdc
be happy with netbsd*-* to recognize arm--netbsdelf-eabi
...
from pkg/48126, simplified
2014-11-04 23:25:00 +00:00
pooka
12956bdef1
More finegrained disklabel macro checks, for FreeBSD
2014-11-04 21:08:12 +00:00
pooka
23dfcd7408
Use autoconf for rump kernel posix hypercall layer.
...
This gets rid of homegrown hacks and puts all probes in one place.
Tested for NetBSD (build.sh + anita) and Linux (buildrump.sh)
2014-11-04 19:05:17 +00:00
pooka
9dcb86b37a
Don't install rumpuser.h here.
...
It's already installed by the rump kernel build (sys/rump/include/rump)
2014-10-28 23:48:03 +00:00
justin
87c18243d5
Canonical Minix check as pointed out by Marc
2014-10-07 12:48:02 +00:00
justin
6f964b7d23
Minix also has getenv_r support
2014-09-29 15:54:28 +00:00
pooka
b124cf15b4
No longer create a special process context to fork remote clients off
...
of, simply always rfork off of proc1 closing all descriptors, and have
the rump kernel open 0/1/2 if the parent process is "1".
Fixes tests/rump/rumpkernel/t_sp, which was failing since the
abovementioned special process change due to attempting to deliver a
signal to the special process and the special process was not equipped
to handle one.
2014-08-25 14:58:48 +00:00
justin
404e3c9501
lso translate errno in the rumpfiber version
2014-08-25 10:33:32 +00:00
justin
103543d43b
Add errno translation for bio operations
2014-08-25 10:21:39 +00:00
pooka
82dada912f
RCS Id police (because we can. or have you heard of git id police?)
2014-08-24 14:37:31 +00:00
pooka
de743a993f
* attempt to clarify what "POSIX" means
...
* link to Platforms page on wiki for a list of known implementation
2014-08-24 14:35:27 +00:00
justin
aaf730d309
Add missing include
2014-08-20 12:09:15 +00:00
justin
28e2f06e08
Clean up error handling in rumpuser_init()
2014-07-25 14:00:31 +00:00
justin
648d66f04b
Clean up random implementation for librumpuser
...
Use /dev/urandom for platforms without arc4random, not srandom(),
deduplicate code, do not read excessive random bytes
Reviewed by pooka@
2014-07-22 22:41:58 +00:00
alnsn
e77183a6da
Remove unused file.
2014-07-14 10:36:33 +00:00
justin
3620d3dbee
Add a fiber based implementation of librumpuser in addition to the
...
default pthreads based version.
Discussed with pooka@
2014-07-11 20:26:31 +00:00
justin
10b89fe038
Reinstate include of netdb.h, needed on some cross builds
2014-07-10 08:17:43 +00:00
justin
4ce85d0b6f
Split out file and memory access in librumpuser
...
This allows alternate implementations to reuse these parts, and the file
parts will at the next hypercall revision be moved to their own driver.
Discussed with pooka@
2014-07-09 23:41:40 +00:00
pooka
2f525beeee
Hrmph, revert previous pending another fix. I tested it yesterday with
...
a slightly older tree, and of course it doesn't work anymore ...
2014-06-23 12:38:18 +00:00
pooka
fbc749c67d
Wrap pthread_create(). Shouldn't really have a functional effect,
...
apart from testing that rumpuser_thread_create() can actually survive
an unschedule/schedule cycle (which may or may not be necessary with
other hypercall implementations).
2014-06-22 20:17:23 +00:00
justin
9dd44a1195
Applications are not supposed to and do not need to include <features.h> explicitly
2014-06-17 09:53:59 +00:00
alnsn
f6181a22c5
Antti objected to including rumpuser_sync_icache. Exclude it from the build.
2014-06-17 08:42:35 +00:00
alnsn
e0a3ca70e0
For consistency with other files in the same directory
...
don't include <sys/cdefs.h> before __RCSID.
2014-06-17 06:43:21 +00:00
alnsn
bb8c3186cb
Implement rumpuser_sync_icache hypercall.
2014-06-17 06:31:47 +00:00
alnsn
46b0c1cbc8
Add __RCSID.
2014-06-16 21:07:28 +00:00
pooka
ce1cd03e24
Remove one more symbol reference to librump (missed in previous commit
...
to this file)
2014-06-14 11:52:42 +00:00