Commit Graph

193656 Commits

Author SHA1 Message Date
mrg df5be5736c merge bozohttpd 20100920 2010-09-20 23:11:38 +00:00
mrg 729c374954 initial import of bozohttpd 20100920. the only change missing in here is:
o  fix dynamic CGI content maps, from rudolf
2010-09-20 23:07:21 +00:00
mrg 44128f48a9 fix an error in the previous. 2010-09-20 22:18:22 +00:00
mrg 109d4102cc fix a serious error in virtual hosting support, noticed by seanb@netbsd,
and disallow ".." as a virtual host name!  also ".".

patch from sean.
2010-09-20 21:58:43 +00:00
christos 8fb564818f avoid integer overflow that can lead to buffer overflow 2010-09-20 19:39:20 +00:00
christos fda2d7ca9f deal with infinity on the vax. 2010-09-20 17:51:38 +00:00
christos c80a34bc23 no more ieee ifdefs 2010-09-20 16:55:20 +00:00
christos 0a9ef41cbe get rid of ieee dependencies. 2010-09-20 16:53:30 +00:00
christos 1a7202d2d0 cargo cult the x86 changes. 2010-09-20 16:13:35 +00:00
christos 852d033d43 shouldn't need ieee.h here. 2010-09-20 15:38:48 +00:00
christos 35f0b243af Use the control (not data) interface descriptor when looking at the
control interface endpoints! (from Anon Ymous)
2010-09-20 14:18:13 +00:00
ahoka 592d1c274a Avoid NaN when calculating std-dev, which fixes a crash on VAX. 2010-09-20 11:49:48 +00:00
tsutsui f252fc5e80 Prepare sparc optimized (by 32 bit add-with-carry insns) cpu_in_cksum()
which is reusing in_cksum_internal() in old sparc/in_cksum.c.

~4% improvements of ttcp(1) xfer rates on SS1+ with le(4).
2010-09-20 10:21:10 +00:00
kiyohara b9cf6be02b Clean up return/error in sdmem_mem_send_scr(). 2010-09-20 09:42:32 +00:00
kiyohara 87b07383a1 Fix SCR data. 2010-09-20 09:34:47 +00:00
kiyohara 34f323b137 Support MMC 4,8-bit mode.
It tested only 4bit on Marvell Sheevaplug.
2010-09-20 09:30:20 +00:00
kiyohara 393dd47650 Sync with POSTREAD before memcpy. 2010-09-20 09:19:31 +00:00
kiyohara ea26f43320 Clear SMF_CARD_PRESENT, if failed to attach. 2010-09-20 09:06:03 +00:00
kiyohara fbd4ef36fc Print product name. like sd(4), wd(4) and etc... 2010-09-20 09:03:33 +00:00
manu 3d6861b56c - performance improvement for read, readdir and write. Now we use
SOCK_DGRAM, we can send many pages at once without hitting any bug

- when creating a file, it is open for FUSE, but not for the kernel.
If the kernel does not do a subsequent open, we have a leak. We fight
against this by trying to close such file that the kernel left unopen
for some time.

- some code refactoring to make message exchange debug easier (more to come)
2010-09-20 07:00:21 +00:00
kiyohara e7ce62fde3 Check disk bounds, in RAW_PART. 2010-09-20 06:54:06 +00:00
manu 7ba588b3fb - Add debug santity checks
- Do not request peer creds anymore once we have them.
2010-09-20 06:45:38 +00:00
mjacob 60f1aed415 Multiple channel devices *should* be working. Remove the debug code
that was avoiding finding out.
2010-09-20 03:52:45 +00:00
abs 54e08a2860 use '/etc/rc.d/apmd onestatus' rather than '/etc/rc.d/apmd status',
so we DTRT if apmd is set to NO in rc.conf
2010-09-19 21:47:28 +00:00
jakllsch ae196f9835 Make pci(4) device nodes root:wheel 0640 by default.
Mortals do not need to be able to generate PCI Configuration Space
read transactions, which are not entirely without side effect, as
reported in PR#16300.
2010-09-19 20:52:23 +00:00
jym f0583e593c KNF 2010-09-19 11:37:40 +00:00
mrg e486642c97 AUDIO_WSEEK uses a u_long, not a int. 2010-09-19 10:34:33 +00:00
mrg bb1c68152f add (runtime untested) support for AUDIO_WSEEK. 2010-09-19 10:33:31 +00:00
mrg c97f9c82aa add support for the netbsd 5.0 versions of the VND* ioctls. 2010-09-19 09:46:59 +00:00
mrg d56ef50154 actually, put the old definitions back into vndvar.h, under _KERNEL,
as netbsd32 wants access to them.
2010-09-19 09:41:37 +00:00
mrg 9e2edd2b4d support VND* ioctls. 2010-09-19 09:09:30 +00:00
mrg 94bc17b82c fix the vnd_osize changes on 32 bit platforms with 64 bit alignment for
64 bit integers (eg, sparc).  the problem was that the new 64 bit
element on the end was used for the offsetof() (aka size) for the old
structure, but this includes the padding required, thus the ioctl number
was set wrongly.

move all the supporting code for this inside COMPAT_50, with some renaming
to suit, and kill all the external definitions related to it.


tested on i386, amd64 and sparc.
2010-09-19 07:11:42 +00:00
mrg 6489048a39 add support for COMPAT_50 ioctls. struct vnd_user has a dev_t component
which grew since netbsd 5.0 (hi christos!)

fix a few issues/problems:
- the COMPAT_30 code wasn't used since opt_compat_netbsd.h wasn't included
- move 'struct vnd_ouser' (for COMPAT_30) into vnd.c itself, and call it
  'struct vnd_user30'
- same for VNDIOOCGET -> VNDIOCGET30

now 'vnconfig -l' works on -current with a netbsd-5 binary, using i386.


XXX: there is still a potential problem with the old VNDIOOCSET and
VNDIOOCCLR macros on some platforms like sparc.  there is padding
between the old vnd_osize member and the new vnd_size member on
platforms that want 64 bit values 64 bit aligned, but are 32 bit
otherwise (like sparc.)  64 bit systems already end up with this
member 64 bit aligned, and should be fine.

this most likely results in the old ioctl numbers being wrong and
the code won't match/run ever (ENOTTY.)
2010-09-19 05:50:28 +00:00
mrg 0db5384dc8 enable COMPAT_30 and COMPAT_50 in the module. 2010-09-19 05:42:10 +00:00
tsutsui d52a314491 - add m68k/conf/std.m68k, which includes common standard options for m68k,
options EXEC_ELF32, EXEC_SCRIPTS, and CPU_IN_CKSUM for md cpu_in_cksum.c
- make all m68k ports include common arch/m68k/conf/std.m68k
  from MD std.${MACHINE}
2010-09-19 02:09:27 +00:00
jym 6dc46b923b Ansify and KNF all functions within kvm(3). No objection on current-users@.
Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
2010-09-19 02:07:00 +00:00
tsutsui 4a614dd9e5 Remove MD m68k/in_cksum.c which is obsolete since cpu_in_cksum refactoring
in 2008 and now superseded by m68k/cpu_in_cksum.c.
2010-09-19 01:39:48 +00:00
tsutsui fa0b9f38f6 Add m68k MD cpu_in_cksum.c.
Based on sys/netinet/cpu_in_cksum.c but just modified
to use traditional MD m68k/oc_cksum.s.

Makes ~5% improvements of ttcp(1) xfer rates on ATARI TT030 + SMC_TT.
2010-09-19 01:35:43 +00:00
tsutsui 564f296c0b Fix wrong checksum calculations of 32 bit unaligned two byte payloads.
Analyzed in PR port-mips/43882, but applied slightly different patch.
Also put some changes for readability.

Note netbsd-5 doesn't use this MD version but netbsd-4 needs a pullup.
(though it's unclear if it's really faster even on modern aggressive gcc4)
2010-09-18 16:43:50 +00:00
jakllsch 3f28b50a70 AMD publication 25759 rev 3.69 says that DisIOReqLock in NB_CFG is "bit 3".
They probably mean "bit 3" and not "the third bit" (or bit 2).
This change should prevent superfluous warnings of errata 89.
2010-09-18 15:49:25 +00:00
christos 92da7545e1 don't compile long double support for the havenots. 2010-09-17 20:39:39 +00:00
drochner de41a05aef fix an obvious botch which made eg conjl(3) a no-op 2010-09-16 20:39:50 +00:00
christos b354315033 unbreak readline history. 2010-09-16 20:08:51 +00:00
rmind 63012b51f1 NPF checkpoint:
- Add support for bi-directional NAT and redirection / port forwarding.
- Finish filtering on ICMP type/code and add filtering on TCP flags.
- Add support for TCP reset (RST) or ICMP destination unreachable on block.
- Fix a bunch of bugs; misc cleanup.
2010-09-16 04:53:27 +00:00
yamt 53cf9ce3be - remove a wrong _DIAGASSERT
- update comments
- whitespace
2010-09-16 02:38:50 +00:00
jym b60c232a64 Use standard ELF types for ELF code, instead of paddr_t. paddr_t should
only be used for low level code, like virtual memory internals.
2010-09-16 00:26:49 +00:00
jym b8a7885350 Use PRIxVADDR to print vaddr_t elements. Wrap lines. 2010-09-15 21:37:35 +00:00
wiz 0d8d67869e Remove trailing whitespace. 2010-09-15 18:40:27 +00:00
christos 98b923b685 commit long double SoC code from Stathis Kamperis 2010-09-15 16:12:05 +00:00
christos e2a86dd3c7 Commit SoC long double support from Stathis Kamperis 2010-09-15 16:11:28 +00:00