CVS commit: src/sys/dev/wscons

2013-03-18 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Mar 18 11:40:39 UTC 2013

Modified Files:
src/sys/dev/wscons: wsmux.c

Log Message:
If there are no devices attached to the mux and software does
WSxxxIO_SETVERSION, the change doesn't actually get applied to the event
source as wsmux hands off processing of these ioctls to attached devices.
Handle these ioctls directly from the mux device instead of passing them
through, to correct an issue that prevented keyboards and mice from working
in X if there were zero devices attached when the X server started.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/wscons/wsmux.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/xf86-input-keyboard/dist/src

2013-03-18 Thread Jared D. McNeill
Module Name:xsrc
Committed By:   jmcneill
Date:   Mon Mar 18 11:50:08 UTC 2013

Modified Files:
xsrc/external/mit/xf86-input-keyboard/dist/src: bsd_kbd.c

Log Message:
If WSKBDIO_GTYPE succeeds and returns type=0, it is a mux with no keyboard
attached. In this case, assume USB.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 \
xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_kbd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2013-03-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Mar 18 13:14:11 UTC 2013

Modified Files:
src/lib/librumpuser: Makefile
src/sys/rump/net/lib/libsockin: Makefile sockin.c
Added Files:
src/sys/rump/net/lib/libsockin: rumpcomp_user.c rumpcomp_user.h
Removed Files:
src/lib/librumpuser: rumpuser_net.c

Log Message:
Move the rumpuser_net set of hypercalls to be a private to the sockin
component.  This cleans up the generic hypercall interfaces from ones
specific to only one component.  They should always have been private,
but the infrastructure to "make it so" didn't exist earlier.

no functional change


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/librumpuser/Makefile
cvs rdiff -u -r1.3 -r0 src/lib/librumpuser/rumpuser_net.c
cvs rdiff -u -r1.5 -r1.6 src/sys/rump/net/lib/libsockin/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/rump/net/lib/libsockin/rumpcomp_user.c \
src/sys/rump/net/lib/libsockin/rumpcomp_user.h
cvs rdiff -u -r1.26 -r1.27 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2013-03-18 Thread Lars Heidieker
Module Name:src
Committed By:   para
Date:   Mon Mar 18 13:36:23 UTC 2013

Modified Files:
src/sys/kern: init_main.c init_sysctl.c vfs_bio.c
src/sys/rump/librump/rumpkern: emul.c
src/sys/sys: param.h systm.h

Log Message:
calculate vnode cache size based on the resource it gets allocated from
this stops setting kern.maxvnodes to high so it exhausts available space in kmem

http://mail-index.netbsd.org/tech-kern/2013/03/08/msg015095.html


To generate a diff of this commit:
cvs rdiff -u -r1.447 -r1.448 src/sys/kern/init_main.c
cvs rdiff -u -r1.196 -r1.197 src/sys/kern/init_sysctl.c
cvs rdiff -u -r1.242 -r1.243 src/sys/kern/vfs_bio.c
cvs rdiff -u -r1.154 -r1.155 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.425 -r1.426 src/sys/sys/param.h
cvs rdiff -u -r1.257 -r1.258 src/sys/sys/systm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump

2013-03-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Mar 18 15:55:43 UTC 2013

Modified Files:
src/sys/rump: VERSION listsrcdirs

Log Message:
add librumphijack to the list


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/VERSION
cvs rdiff -u -r1.3 -r1.4 src/sys/rump/listsrcdirs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/include

2013-03-18 Thread Lars Heidieker
Module Name:src
Committed By:   para
Date:   Mon Mar 18 16:32:32 UTC 2013

Modified Files:
src/sys/arch/i386/include: pmap.h

Log Message:
i386 pmap.h got a forward declarition for vm_map from systm.h
insert a forward declaration


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/arch/i386/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet6

2013-03-18 Thread Greg Troxel
Module Name:src
Committed By:   gdt
Date:   Mon Mar 18 19:31:39 UTC 2013

Modified Files:
src/sys/netinet6: ip6_output.c

Log Message:
Initialize variable used as (conditional) result parameter.

ip6_insertfraghdr either sets a result parameter or returns an error.
While the caller only uses the result parameter in the non-error case,
knowing that requires cross-module static analysis, and that's not
robust against distant code changes.  Therfore, set ip6f to NULL
before the function call that maybe sets it, avoiding a spuruious
warning and changing the future possible bug from an unitialized
dereference to a NULL deferrence.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/netinet6/ip6_output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2013-03-18 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Mon Mar 18 19:35:48 UTC 2013

Modified Files:
src/sys/fs/adosfs: advnops.c
src/sys/fs/cd9660: cd9660_vnops.c
src/sys/fs/efs: efs_vnops.c
src/sys/fs/filecorefs: filecore_vnops.c
src/sys/fs/hfs: hfs_vnops.c
src/sys/fs/msdosfs: msdosfs_vnops.c
src/sys/fs/nilfs: nilfs_vnops.c
src/sys/fs/ntfs: ntfs_vnops.c
src/sys/fs/ptyfs: ptyfs_vnops.c
src/sys/fs/smbfs: smbfs_vnops.c
src/sys/fs/sysvbfs: sysvbfs_vnops.c
src/sys/fs/tmpfs: tmpfs_vnops.c
src/sys/fs/udf: udf_vnops.c
src/sys/fs/v7fs: v7fs_vnops.c
src/sys/kern: kern_auth.c vfs_subr.c
src/sys/miscfs/kernfs: kernfs_vnops.c
src/sys/miscfs/procfs: procfs_vnops.c
src/sys/nfs: nfs_vnops.c
src/sys/sys: kauth.h
src/sys/ufs/chfs: chfs_vnops.c
src/sys/ufs/ext2fs: ext2fs_vnops.c
src/sys/ufs/ufs: ufs_vnops.c

Log Message:
C99 section 6.7.2.3 (Tags) Note 3 states that:

  A type specifier of the form

enum identifier

  without an enumerator list shall only appear after the type it
  specifies is complete.

which means that we cannot pass an "enum vtype" argument to
kauth_access_action() without fully specifying the type first.
Unfortunately there is a complicated include file loop which
makes that difficult, so convert this minimal function into a
macro (and capitalize it).

(ok elad@)


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/fs/adosfs/advnops.c
cvs rdiff -u -r1.42 -r1.43 src/sys/fs/cd9660/cd9660_vnops.c
cvs rdiff -u -r1.29 -r1.30 src/sys/fs/efs/efs_vnops.c
cvs rdiff -u -r1.35 -r1.36 src/sys/fs/filecorefs/filecore_vnops.c
cvs rdiff -u -r1.26 -r1.27 src/sys/fs/hfs/hfs_vnops.c
cvs rdiff -u -r1.85 -r1.86 src/sys/fs/msdosfs/msdosfs_vnops.c
cvs rdiff -u -r1.20 -r1.21 src/sys/fs/nilfs/nilfs_vnops.c
cvs rdiff -u -r1.54 -r1.55 src/sys/fs/ntfs/ntfs_vnops.c
cvs rdiff -u -r1.40 -r1.41 src/sys/fs/ptyfs/ptyfs_vnops.c
cvs rdiff -u -r1.85 -r1.86 src/sys/fs/smbfs/smbfs_vnops.c
cvs rdiff -u -r1.46 -r1.47 src/sys/fs/sysvbfs/sysvbfs_vnops.c
cvs rdiff -u -r1.100 -r1.101 src/sys/fs/tmpfs/tmpfs_vnops.c
cvs rdiff -u -r1.74 -r1.75 src/sys/fs/udf/udf_vnops.c
cvs rdiff -u -r1.11 -r1.12 src/sys/fs/v7fs/v7fs_vnops.c
cvs rdiff -u -r1.72 -r1.73 src/sys/kern/kern_auth.c
cvs rdiff -u -r1.436 -r1.437 src/sys/kern/vfs_subr.c
cvs rdiff -u -r1.146 -r1.147 src/sys/miscfs/kernfs/kernfs_vnops.c
cvs rdiff -u -r1.185 -r1.186 src/sys/miscfs/procfs/procfs_vnops.c
cvs rdiff -u -r1.298 -r1.299 src/sys/nfs/nfs_vnops.c
cvs rdiff -u -r1.70 -r1.71 src/sys/sys/kauth.h
cvs rdiff -u -r1.14 -r1.15 src/sys/ufs/chfs/chfs_vnops.c
cvs rdiff -u -r1.106 -r1.107 src/sys/ufs/ext2fs/ext2fs_vnops.c
cvs rdiff -u -r1.211 -r1.212 src/sys/ufs/ufs/ufs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/ipf

2013-03-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar 18 20:03:56 UTC 2013

Modified Files:
src/tests/ipf: t_nat_exec.sh

Log Message:
Mark a few more test cases known to only work by chance as failing
and point to PR 47665.
Julio: how do we make such cases not fail when they actually happen to
work (by pure luck)?


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/ipf/t_nat_exec.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librumpuser

2013-03-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Mar 18 21:00:52 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser.c

Log Message:
Terminate result of readlink().  Makes writefilewatch_setup() work in
cases when the buffer doesn't accidentally contain suitable zeroes.

Thanks to Juan RP who debugged this with me!


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/librumpuser/rumpuser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/crypto/external/bsd/netpgp/dist/src/libbn

2013-03-18 Thread Alistair G. Crooks
Module Name:src
Committed By:   agc
Date:   Tue Mar 19 01:00:17 UTC 2013

Modified Files:
src/crypto/external/bsd/netpgp/dist/src/libbn: bignum.c

Log Message:
fix some lint on i386, noticed by Greg Troxel, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/net/lib/libsockin

2013-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 19 02:07:44 UTC 2013

Modified Files:
src/sys/rump/net/lib/libsockin: rumpcomp_user.c

Log Message:
can we please stop breaking the build? These get compiled by the kernel
environment when there are no userland header files!


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/net/lib/libsockin/rumpcomp_user.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2013-03-18 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Mar 19 02:56:17 UTC 2013

Modified Files:
src/sys/dev/pci: if_bge.c

Log Message:
Fix Buffer Manager Mbuf Pool settings which was modified in rev. 1.202.


To generate a diff of this commit:
cvs rdiff -u -r1.217 -r1.218 src/sys/dev/pci/if_bge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2013-03-18 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Mar 19 03:40:16 UTC 2013

Modified Files:
src/sys/dev/pci: if_bge.c if_bgereg.h

Log Message:
Fix three bugs:
- An workaround for TX data corruption is only for 5719 "A0".
  Fix the wrong evaluation.
- Check BGE_RXBDFLAG_IPV6 flag for 5717_PLUS case.
  Note that {tcp,udp}6csum flag is currently not added in the capability.
- Add delay after clearing BGE_MACMODE_TBI_SEND_CFGS for the link checking.
  FreeBSD has the same delay().


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/pci/if_bgereg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2013-03-18 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Mar 19 04:10:13 UTC 2013

Modified Files:
src/sys/dev/mii: brgphy.c
src/sys/dev/pci: if_bge.c if_bgereg.h

Log Message:
- Rename PHY related flags for the consistency. It's the same as FreeBSD.
- Remove BGE_10_100_ONLY flag because this was not used.
  For 10/100 devices, when calling mii_attach(), mask BMSR_EXTSTAT flag to
  not to check Gigabit flags. It's the same as FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/mii/brgphy.c
cvs rdiff -u -r1.219 -r1.220 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/if_bgereg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2013-03-18 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Mar 19 06:34:28 UTC 2013

Modified Files:
src/sys/arch/x86/x86: ipmi.c

Log Message:
KNF a bit.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/x86/x86/ipmi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.