Commit Graph

17079 Commits

Author SHA1 Message Date
dholland
56052b0a66 pipe2 requires fcntl.h for its flags; PR 48614 from Steffen Daode Nurpmeso.
Also fix the wording for EINVAL as suggested by Robert Elz.
2014-02-22 17:26:41 +00:00
palle
4ad8530004 sun4v: Rename TLB_ defines to SUN4U_TLB_ so entries created using TSB_DATA() are properly setup for sun4u and sun4v. Relocate the cputyp variable from autoconf.c to locore.s and make it const in param.h so optimized code can be generated. Parts from OpenBSD. Optimization suggested by nakayama@. OK martin@, mrg@, nakayama@ 2014-02-21 18:00:09 +00:00
blymn
74ff043f96 Correct the implementation of mvderwin, it now works as specified by
SUSv2.
2014-02-20 09:42:42 +00:00
pooka
613311d8d7 remember to commit this file too 2014-02-20 01:24:49 +00:00
pooka
fb8e281673 make implementation of rumpuser_kill() match the documentation 2014-02-20 00:44:20 +00:00
pooka
64a85ea946 document rumpuser_kill() 2014-02-20 00:43:26 +00:00
pooka
437e54a701 Translate signal numbers between rump kernel and (POSIX) host. 2014-02-20 00:42:27 +00:00
dsl
7c166415e7 Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will fail.
OTOH it might be relying on a header that pcb.h includes.
In any case i386 and amd64 build.
2014-02-19 20:21:22 +00:00
skrll
4c855bdfea Provide a genassym.cf in libc for hppa and use it. 2014-02-19 13:01:51 +00:00
martin
ce92aca1d5 Bounce the minimum allocation alignement for sparc64 and amd64 as well,
to sync with their default gcc configuration.
We could relax this again later, after a filing a defect report with the
ISO C comitee and getting an answer contradicting the gcc teams
interpretation (and then fix the gcc target configurations instead).
2014-02-17 08:50:50 +00:00
wiz
d256445c5b New sentence, new line. 2014-02-14 07:27:37 +00:00
pooka
51b406fe68 some minor updates and reality-checks 2014-02-14 01:11:04 +00:00
pooka
177c2413c9 minor clarification: rumpuser_thread_create() is used to create the host
thread context for kernel threads, never for application threads.

per discussion with justin
2014-02-14 00:33:51 +00:00
rmind
068cee2998 NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296.  Add a unit test.  Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!
2014-02-13 03:34:40 +00:00
christos
3c501c2028 remove unneeded code, and kill parens from return 2014-02-10 16:30:54 +00:00
christos
72d54c1762 PR/48585: Henning Petersen: Always set errno when returning NULL. 2014-02-10 16:29:30 +00:00
rmind
8274d601f9 NPF: add support for static (stateless) NAT. 2014-02-07 23:45:22 +00:00
christos
10b0462e36 don't lie about function signatures. 2014-02-07 20:20:56 +00:00
hannken
97834f7ba0 Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
christos
4f4753b8fe RFC 3542 (section 10.1) states that optlen should only be checked when
opt != NULL (Eitan Adler)
2014-02-07 02:36:06 +00:00
rmind
aac4ad500b bump the date 2014-02-06 15:50:40 +00:00
rmind
290732ce3d cdbw(3) man page: fix the header file name and use .Fa for function arguments. 2014-02-06 15:47:20 +00:00
rmind
ffcdc4af8d Add support for CDB based NPF tables. 2014-02-06 02:51:28 +00:00
skrll
03dbd38792 Err on the safe side for small memory allocations and provide 4byte
alignment by default.  Override this to 8byte alignment for alpha and arm
eabi.

Someone (tm) can review this change once the standards and compiler(s)
have sorted themselves out.
2014-02-05 11:32:15 +00:00
martin
39ae3c2126 Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax. 2014-02-03 21:22:21 +00:00
rmind
2e17c78b61 pthread__mutex_lock_slow: fix the handling of a potential race with the
non-interlocked CAS in the fast unlock path -- it is unsafe to test for
the waiters-bit while the owner thread is running, we have to spin for
the owner or its state change to be sure about the presence of the bit.
Split off the logic into the pthread__mutex_setwaiters() routine.

This is a partial fix to the named lockup problem (also see PR/44756).
It seems there is another race which can be reproduced on faster CPUs.
2014-02-03 15:51:01 +00:00
joerg
1b87ac407e For ancient GCC, disable the missing prototype warning completely. 2014-02-03 13:30:10 +00:00
rmind
55b0c96054 - npfctl: fix table IDs (breakage since the table naming was added).
- libnpf: remove npf_table_exists_p() from public API.
2014-02-03 02:21:52 +00:00
dholland
7f6461e52c bump date for previous 2014-02-02 18:06:33 +00:00
dholland
74b6f13039 Reorg second paragraph too, to group related info together. 2014-02-02 17:32:38 +00:00
dholland
61bb893049 Rework description for clarity; prompted by chat comments from bad@. 2014-02-02 17:30:06 +00:00
wiz
d88140fcc8 Sort errors. Bump date for previous. 2014-02-02 16:59:13 +00:00
wiz
08c720a8d8 Bump date for previous. 2014-02-02 16:59:06 +00:00
martin
b450cd5b5f Remove paranthesis from return operands. 2014-02-02 14:54:39 +00:00
martin
2934fa70dc Limit the amount of kernel memory a posix_spawn syscall can use (for handling
the file action list) by limiting the maximum number of file actions to
twice the current file descriptor limit.
Fix a few bugs in the support functions and document the new limit.
From Maxime Villard.
2014-02-02 14:48:57 +00:00
wiz
0717db96f8 Mark up HZ. 2014-02-02 08:31:49 +00:00
martin
a7682b765e Fix unsigned 64 bit int to long double conversion for numbers that would not
fit into a signed 64 bit int. Found by latest t_floatunditf test case
failuer, hint from Matt Thomas.
2014-02-02 08:14:39 +00:00
christos
4acd8c5085 mention how HZ affects us 2014-02-01 22:42:45 +00:00
matt
193dbcdaae Since powerpc passes 8 arguments in registers and the syscall number in r0,
shuffle register argument so the kernel won't need to access the stack to
retrieve that last argument.
2014-02-01 20:26:21 +00:00
martin
0493f8e382 sparc and sparc64 have moved to new world order, remove legacy files. 2014-02-01 11:59:00 +00:00
joerg
69a4347a81 Restore -Wno-error for clang build. Just don't try to force GCC 4.1 for
clang, okay?
2014-01-31 22:17:50 +00:00
wiz
56c73caebc Fix prototype in SYNOPSIS, mark up NULL with Dv. 2014-01-31 21:11:05 +00:00
christos
b2a02f6aa7 expose __lwp_park60 2014-01-31 20:45:48 +00:00
christos
cdce479a47 remove compatibility code for handling CLOCK_MONOTONIC and handle it in the
syscall directly.
2014-01-31 20:44:01 +00:00
matt
3813b22c96 Just use EXT_EXP_INFNAN instead of EXT_EXP_INF or EXT_EXP_NAN. 2014-01-31 19:38:47 +00:00
christos
de79b4937c PR/44756: Sad Clouds: Prevent leakage of errno = ESRCH from _lwp_park. This
has two parts:
	- in pthread_cond_timedwait() if the thread we are trying to unpark
	  exited, retry the the _lwp_park call without it.
	- pthread_mutex() was affecting errno since it is calling _lwp_park()
	  from pthread_mutex_lock_slow(). preserve the original errno.
Note that the example problem still causes an occassional deadlock on machines
with many CPUs and it is the same deadlock we observe with named.
2014-01-31 19:22:00 +00:00
matt
969b8a91e4 Since N32/N64 pass the first 8 arguments in registers, we can load all
the arguments into those registers before invoking the syscall having
the kernel syscall handler from having to do that.
2014-01-31 18:06:26 +00:00
matt
9b9fc687ef Remove old compiler based crt stuff for alpha mips powerpc and vax 2014-01-31 11:58:33 +00:00
martin
3b4c95b566 -Wno-error=missing-prototypes is not available on gcc 4.1 2014-01-31 10:35:14 +00:00
matt
7b24ff02b9 Add unordtf2.c 2014-01-30 19:11:54 +00:00