joerg
e325eedcc1
Remove tautology.
2010-12-07 22:01:45 +00:00
joerg
aaf356760f
Mark function as static and give it an explicit return type.
2010-12-07 22:01:22 +00:00
joerg
cb63bb73c3
Don't use argument as direct format string.
2010-12-07 20:10:53 +00:00
joerg
c37869d883
Build assembler sources with assembler compile rules.
2010-12-07 19:51:02 +00:00
pooka
248168affc
Remove PUFFS_WITH_THREADS ifdef garbage, just use libc weak symbols.
2010-12-06 14:50:34 +00:00
dholland
eb1ab8ee50
Improve previous to avoid changing the interface of an externally
...
exposed function. (But note that this function is neither documented
nor declared in any installed header file, and it probably should not
be externally exposed.) Related to PR 44183, closes PR 44186.
2010-12-06 00:05:38 +00:00
pooka
fee25d6c52
rumpcrypto should never have been its own faction, so finally make
...
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.
2010-12-05 20:11:21 +00:00
christos
3542a25b9b
hook new libpcap
2010-12-05 05:58:12 +00:00
plunky
f33b316b63
Remove the do-external-lib and do-gnu-lib targets, along with
...
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.
compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.
2010-12-03 21:38:46 +00:00
dholland
574c2fc5a2
add const, from PR 44183.
2010-12-02 04:42:46 +00:00
dholland
92417c82c1
Fix up bodgy code for printing completion matches; it used to sometimes
...
skip entries, print (null), run off the end of the array, or occasionally
receive SIGSEGV, and now will, hopefully at least, do none of that.
Based in part on the patch in PR 44183 from Sergio Acereda; I also
did some tidyup and fixed it to print top-to-bottom first like ls(1).
2010-12-02 04:35:17 +00:00
pooka
48ac8b3849
implement mutex_owner()
2010-12-01 17:22:51 +00:00
pooka
0f9fe55ba4
Umm, delete recursive mutex interface instead of renaming it.
2010-12-01 15:01:52 +00:00
pooka
5e1b7bf36d
Track lwp as the rumpuser mutex owner instead of pthread_t (this
...
is done in rumpuser for simplicity, since on the kernel side things
we assume we have only one pointer of space). As a side-effect,
we can no longer know if the current thread is holding on to a
mutex locked without curlwp context (basically all mutexes inited
outside of mutex_init()). The only thing that called rumpuser_mutex_held()
for a non-kmutex was the giant lock. So, instead implement recursive
locking for the giant lock in the rump kernel and get rid of the
now-unused recursive pthread mutex in the hypercall interface.
2010-12-01 14:59:37 +00:00
pooka
03f765ec9e
lint care
2010-11-30 22:32:01 +00:00
pooka
cc95cda0d4
lintsquelch
2010-11-30 22:30:43 +00:00
wiz
5657c17871
Add some consistency dots though they make not much typographic sense; however,
...
just as much as in the other places in the enumeration.
Use Pa for a path.
2010-11-30 22:00:01 +00:00
jruoho
b4ba5c1508
Xref glob(7).
2010-11-30 21:03:07 +00:00
pooka
ff46270ebc
Hands off of stuff we need to keep hands off of.
2010-11-30 20:33:43 +00:00
pooka
82747810db
Add missing .El
...
Maybe next we can have typoed comments break builds?
2010-11-30 19:50:25 +00:00
joerg
cb0b8d7cc6
Fix stack alignment for non-constructor/destructor calls.
...
AMD64 stack is 16 Byte aligned at the start of the function,
so always push rbx.
2010-11-30 18:37:59 +00:00
pooka
0161ae951b
ahem, use public interface names in the doc
2010-11-30 18:08:46 +00:00
pooka
fe96301432
document rump_etfs
2010-11-30 17:32:28 +00:00
pooka
9670fcaf80
Remove dead code from previous revision.
2010-11-30 15:42:11 +00:00
tnozaki
96bcb898d4
variable must to be nul terminated before "CODESET=foo".
...
ISO2022 module doesn't understand this and may fail setlocale(3).
2010-11-30 15:25:05 +00:00
pooka
fbdc3da9ae
Change RUMP_SP_CLIENT to RUMP_SERVER. The former was, in addition
...
to being annoying to write, slightly misguiding, since it contains
the server url.
2010-11-30 14:24:40 +00:00
pooka
7332ad1515
Require server to be explicitly initialized with rump_init_server(url).
...
Also, add rump_daemonize_begin() / rump_daemonize_end() to help
with the "can't daemon() after pthread_create()" problem. Applications
could accomplish the same, but since it's such a common operation,
provide a little help.
2010-11-30 14:23:24 +00:00
pooka
1e3b8bd985
add commented-out -D_DIAGNOSTIC
2010-11-30 14:08:39 +00:00
dholland
297e393f26
SAVENAME and HASBUF namei flags have been removed; update accordingly.
...
(pooka@ says not to worry about compat.)
2010-11-30 10:49:22 +00:00
pooka
d402686fe2
Remove remaining panic()s from server-side code. Also, allow to
...
send an out-of-band error. Make the client retry syscall requests
if this error is EAGAIN, fail them otherwise.
2010-11-29 16:08:03 +00:00
drochner
240e9917d0
fix accuracy problems in argument ranges where j0(x) is small, closes
...
PR lib/44170 by Henning Petersen
(originally from Steven G. Kargl per FreeBSD PR bin/144306)
2010-11-29 15:10:06 +00:00
pooka
ea8aecd4f3
Cache syscall worker threads and include some stetson-harrison
...
limits. This improves syscall throughput about 2x for non-userio
syscalls (no copyin/out, e.g. getpid()) and almost 1.5x even for
things like __sysctl().
(measured for cases where the remote process is on the local machine)
XXX: if the pthread deadqueue sucks for anything which cares about
performance, why does it exist? Nuking it would make supporting
variable stack size easier.
2010-11-29 11:40:54 +00:00
skrll
15fa0783d7
Centralise USE_COMPILERCRTSTUFF.
...
PCC might need help.
2010-11-28 18:40:54 +00:00
wiz
80b39d395e
Fix typo in comment.
2010-11-28 01:31:26 +00:00
wiz
cb676ec98b
Remove superfluous comma.
2010-11-28 01:28:21 +00:00
christos
fabd9ea05b
explain better what's going on here.
2010-11-28 00:50:16 +00:00
jnemeth
22405528a4
Rename the autoloaded property list from <module>.prop to <module>.plist
...
as discussed on tech-kern.
2010-11-28 00:26:38 +00:00
christos
5fe11453fa
fix lint warning.
2010-11-27 21:22:11 +00:00
christos
d5ea004dc7
Implement VIS_NOESCAPE and VIS_HTTP1866.
2010-11-27 19:44:21 +00:00
christos
b77d89c7da
ansify
2010-11-27 18:33:54 +00:00
pooka
bd26e667a8
Since we are going to handle syscalls in our threads, limit stacksize.
...
(unfortunately though, pthread_attr_setstacksize() has no effect on NetBSD)
2010-11-27 18:30:51 +00:00
dholland
01cef2d63e
Return error on failure instead of hiding it and always returning zero.
...
From Henning Petersen in PR 44152.
2010-11-26 22:01:53 +00:00
pooka
f0d58f7830
Fix a few locking problems with multithreaded clients.
...
TODO: make server deal graciously with out-of-resources conditions
2010-11-26 18:51:03 +00:00
pooka
6e0e64ab1b
Improve reliability in cases where client disconnects mid-operation.
2010-11-26 14:37:08 +00:00
pooka
404fa78c67
update comment
2010-11-26 11:12:06 +00:00
pooka
22b33166de
rumpuser should not be included outside of the rump kernel (and
...
rumpuser itself)
2010-11-26 11:10:53 +00:00
pooka
7ca02bea53
Plug recently introduced memory leak: release lwp after use instead of
...
just switching away.
Also, make freeing syscall arguments a little more symmetric.
2010-11-26 10:59:14 +00:00
dholland
6e4e77d46e
No file system I know of reports directory sizes that are multiples of
...
sizeof(struct dirent) except by accident. So, sync with reality. Brought
to my attention by Taylor R Campbell in chat.
2010-11-25 20:53:23 +00:00
pooka
6b71288c49
*facepalm*, adjust remote copyinstr to work in cases where the end
...
of the max copyin extends to an unmapped page.
Noticed, as usual, by tests.
2010-11-25 17:59:02 +00:00
pooka
6d4b60f246
create pthread attribute only once
2010-11-24 20:29:13 +00:00