Commit Graph

190167 Commits

Author SHA1 Message Date
plunky f183cc477b no need to forward declare struct uio and proc before including
<sys/file.h> as it does that internally, and don't continue the
_KERNEL definition afterwards as it causes some other problems
with pcc relating to unreferenced symbols in unused static
inline functions which gcc optimises away.
2010-04-22 14:37:06 +00:00
plunky cb88fa41a4 it is not [any longer] necessary to #define _KERNEL while including
<net/route.h> so remove it.

This fixes a build problem with pcc which is not as clever as gcc
when optimising away unused static inline functions which refer to
unknown symbols (eg sockaddr_dup).
2010-04-22 14:32:30 +00:00
drochner f79e06d729 fix an obvious flaw in bounds check: the array of precomputed primes
could be overrun if its last entry (65537) was a factor of the input
(this does not affect PR misc/43192 -- the factors are much larger
here: 7742394596501*159455563099482401)
2010-04-22 14:28:48 +00:00
jruoho 829390ffbf gcc -> GCC, offset indent. 2010-04-22 13:41:40 +00:00
he 91dbb8c445 Change use of ${CP} and ${CHMOD} to ${INSTALL_FILE}, so that if the
target is made un-writeable, the build won't bomb out during an
UPDATE build.  OK'ed by martin@.
2010-04-22 11:58:59 +00:00
pooka 0bacc51806 fix compilation with -Wmissing-field-initializers.
smoke _KERNEL_OPT where appropriate.
2010-04-22 08:45:55 +00:00
jruoho 67e7c628fb A small correction. Typos. 2010-04-22 08:42:34 +00:00
jruoho 69cf4af7f3 Use .In for includes. 2010-04-22 08:00:34 +00:00
pooka 516d9bde16 more signal stuff to group. no functional change. 2010-04-22 07:10:47 +00:00
wiz 0b27f753a1 Add backslash before a dash to get a minus. 2010-04-22 06:57:13 +00:00
wiz dfc84806e9 Get rid of some unnecessary whitespace.
Add backslash before a dash to get a minus.
2010-04-22 06:55:07 +00:00
jruoho 8c26a8b2bd One small correction: .Ss instead of .Sh. 2010-04-22 06:49:56 +00:00
jruoho 526aa19c52 Rewrite types(5) as per perry@'s suggestion from few years back ("XXX this
document is rather musty. It needs a general update."). Also move it to the
right section from section 5. Ok wiz@.

To minimize maintenance costs, the content is mostly jargon around The
Standard. Only few NetBSD-specific types are mentioned as an example.
2010-04-22 06:48:28 +00:00
dholland 9f8746b55e Sync with reality. Bump date. 2010-04-22 04:42:21 +00:00
dyoung bac6fbbd00 Don't printf bus_space_tag_t's in a MI driver. 2010-04-21 21:49:53 +00:00
dyoung ca0767d9d7 Don't printf bus_space_tag_t's in a MI driver. 2010-04-21 21:38:47 +00:00
bouyer c638cbeac1 syn_cache_put(): defer all pool_put() to the callout. Reschedule
the callout if needed so frees are not delayed too much.
syn_cache_timer(): we can't call syn_cache_put() here any more,
so move code deleted from syn_cache_put() here.

Avoid KASSERT() in kern_timeout.c because pool_put() is called from
ipintr context, as reported in
http://mail-index.netbsd.org/tech-kern/2010/03/19/msg007762.html
Thanks to Andrew Doran and Mindaugas Rasiukevicius for help and review.
2010-04-21 20:40:16 +00:00
pooka fbe5f09ac1 remove stuff which now comes via std. kernel source modules 2010-04-21 20:07:02 +00:00
pooka 33de26e6c6 dumdidumdum, need _KERNEL in previous for fsck. noticed by moof 2010-04-21 19:50:57 +00:00
wiz 0788984015 Fix an xref and change word order slightly so it sounds better to me. 2010-04-21 18:43:26 +00:00
jruoho ad57969cf2 Fix a roff warning. 2010-04-21 18:07:11 +00:00
jruoho 71e904f60f Document __STRING(x) and __CONCAT(x, y) from <sys/cdefs.h>. 2010-04-21 18:04:38 +00:00
christos 9021b5c725 revert previous. it does not work properly. 2010-04-21 17:10:31 +00:00
pooka 34244e1069 Reduce #ifdef spew by attaching wapbl as a module.
(no, it's still too ifdef-ridden to be able to actually do anything
useful and module-like like load into any kernel)
2010-04-21 16:51:24 +00:00
drochner 14f78ca302 the correct check for BPF_K is with BPF_SRC for BPF_ALU ops, from
Guy Harris per PR kern/43185
fixes possible division-by-zero crashes by evil filter expressions
like "len / 0 = 1"
pullup candidate
2010-04-21 16:35:09 +00:00
pooka 4a383bb8da Move sys_module from vfs to kern -- while modules cannot be loaded,
there's not forbidden about querying the list of (builtin) modules
even when running without vfs.
2010-04-21 16:29:08 +00:00
pooka 70e61cdef2 regen: get/setrlimit 2010-04-21 16:18:35 +00:00
pooka 593dfe42a8 make get/setrlimit as rump-capable 2010-04-21 16:17:04 +00:00
pooka edc96984f5 support kern_resource 2010-04-21 16:16:31 +00:00
pooka 1ceaafde2e dial . for operator 2010-04-21 16:09:11 +00:00
christos 21003f688c don't try to build PIE binaries when LDSTATIC 2010-04-21 15:07:20 +00:00
christos cf1f9ba391 move LDSTATIC before the includes because the rules need it early for
conditionals.
2010-04-21 14:58:10 +00:00
uebayasi fdee31b059 Make this build. 2010-04-21 12:58:38 +00:00
pooka 77c91f3324 Move all signal-related from emul.c to signals.c. Additionally,
define a few alternate signal models for the rump kernel, including
ones where signals are ignored or sent to host processes.
2010-04-21 11:38:05 +00:00
pooka 2f75110c81 Add bpf program source in a comment. 2010-04-21 11:19:44 +00:00
pooka a08942d291 Actually, support rumpuser_kill() only on NetBSD, since signal
numbers may not match on non-NetBSD hosts.
2010-04-21 11:16:41 +00:00
pooka 3cc6a65772 Add rumpuser_kill, which sends a signal to a host process. 2010-04-21 11:13:29 +00:00
pooka 4c1500491b bend over 2010-04-21 11:11:32 +00:00
pooka 513ca2875b Check that bpf doesn't accept programs with divide-by-zero in them.
Example filter from Guy Harris via PR kern/43185.
2010-04-21 11:07:34 +00:00
pooka e213e0de8f rumpfs is mpsafe (has always been), so mark it as such. 2010-04-21 07:35:12 +00:00
jruoho 273ed82be4 Finally, add FORTIFY_SOURCE also to the "table of contents". 2010-04-21 06:00:06 +00:00
wiz 8789b35b90 Fix typo. 2010-04-21 05:53:32 +00:00
jruoho 95e81d12f6 Refer to the generic ssp(3) instead of the specific __builtin_object_size(3). 2010-04-21 05:49:36 +00:00
jruoho 00a887d886 Fix a typo noted by wiz@. 2010-04-21 05:40:59 +00:00
jruoho f861a6fb21 Add a paragraph also for "FORTIFY_SOURCE" (or USE_FORT). 2010-04-21 05:39:13 +00:00
jruoho c5e0404b2a Small improvements to wording and markup.
Note also the default use of SSP on x86.
2010-04-21 05:05:07 +00:00
sjg 862d4ff05d If we do .export (all) and have any variables that involve :sh
we will hit an error (var is recursive) while trying to evaluate that.
Fix, and add a unit test for this.
2010-04-21 04:25:27 +00:00
jruoho 3ae479ecfd Make the examples fit into 80 columns. Use .Tn. 2010-04-21 02:59:29 +00:00
dyoung 0c6d62cfe9 Change sc_pil_intr_enable from an int to a bool. No functional change
intended.
2010-04-20 23:39:10 +00:00
christos 22c1c07780 XXX: This is a hack, the note inclusion does not belong here, and
it belongs in a separate elf_nbsd.sh, included from elf_i386_nbsd.sh.
The problem is described in:
https://bugzilla.redhat.com/show_bug.cgi?id=492183#c7, namely if
all the sections are not defined in the ld script, it can screw
up.  This happens when building /usr/src/usr.sbin.crash with
MKPIE=yes. Thanks to Piotr Meyer for the report and analysis.
We don't need to fix any other archs yet (because crash only works on i386),
but we should. skrll should look into it, please :-)
2010-04-20 22:47:48 +00:00