CVS commit: src/gnu/dist/gcc4/libcpp

2012-11-24 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Nov 24 09:07:44 UTC 2012

Modified Files:
src/gnu/dist/gcc4/libcpp: init.c macro.c
src/gnu/dist/gcc4/libcpp/include: cpplib.h

Log Message:
Teach gcc4.1's cpp about the magic __COUNTER__ macro,
which returns a unique integer each time it is expanded.
This code was written without reference to any other
implementation of the same feature.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/gnu/dist/gcc4/libcpp/init.c
cvs rdiff -u -r1.3 -r1.4 src/gnu/dist/gcc4/libcpp/macro.c
cvs rdiff -u -r1.2 -r1.3 src/gnu/dist/gcc4/libcpp/include/cpplib.h

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



CVS commit: src

2012-11-24 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sat Nov 24 14:00:36 UTC 2012

Modified Files:
src/distrib/sets/lists/comp: md.evbmips
src/share/mk: bsd.own.mk
src/sys/arch/evbmips/include: Makefile
Added Files:
src/sys/arch/evbmips/include: sljitarch.h

Log Message:
Add sljit and bpfjit to evbmips. Not enabled by default.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/distrib/sets/lists/comp/md.evbmips
cvs rdiff -u -r1.714 -r1.715 src/share/mk/bsd.own.mk
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbmips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/evbmips/include/sljitarch.h

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



CVS commit: src/share/mk

2012-11-24 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sat Nov 24 14:01:28 UTC 2012

Modified Files:
src/share/mk: bsd.README

Log Message:
Document MKSLJIT variable.


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/share/mk/bsd.README

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



CVS commit: src/tests/lib/libc/sys

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 15:05:46 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_kevent.c

Log Message:
Add a test for adding an event to an unsupported fd.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/t_kevent.c

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



CVS commit: src/sys/kern

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 15:07:44 UTC 2012

Modified Files:
src/sys/kern: kern_descrip.c

Log Message:
Return EOPNOTSUPP for fnullop_kqfilter to prevent registration of unsupported
fds. XXX: We should really fix the fd's to be supported in the future.
Unsupported fd's have a NULL f_event, so registering crashes the kernel with
a NULL function dereference of f_event.


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/sys/kern/kern_descrip.c

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



CVS commit: src/sys/kern

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 15:14:32 UTC 2012

Modified Files:
src/sys/kern: kern_event.c

Log Message:
- initialize kn_id
- in close, invalidate f_data and f_type early to prevent accidental re-use
- add a DIAGNOSTIC for when we use unsupported fd's and a KASSERT for f_event
  being NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/kern/kern_event.c

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



CVS commit: src/lib/libc/sys

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 15:16:52 UTC 2012

Modified Files:
src/lib/libc/sys: kqueue.2

Log Message:
mention that kevent returns now EOPNOTSUPP.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/sys/kqueue.2

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



CVS commit: src/lib/libc/arch/powerpc64/gen

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 15:20:58 UTC 2012

Modified Files:
src/lib/libc/arch/powerpc64/gen: _lwp.c

Log Message:
fix lint.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/powerpc64/gen/_lwp.c

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



CVS commit: [netbsd-6] src/sys/dev/marvell

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 18:10:10 UTC 2012

Modified Files:
src/sys/dev/marvell [netbsd-6]: mvgbereg.h

Log Message:
Apply patch from msaitoh to fix pullup-6 #671.


To generate a diff of this commit:
cvs rdiff -u -r1.3.10.1 -r1.3.10.2 src/sys/dev/marvell/mvgbereg.h

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



CVS commit: [netbsd-6] src

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 18:15:22 UTC 2012

Modified Files:
src/common/lib/libc/gen [netbsd-6]: ptree.c
src/sys/sys [netbsd-6]: ptree.h

Log Message:
Pull up revisions:
  src/common/lib/libc/gen/ptree.c revision 1.10
  src/sys/sys/ptree.h revision 1.8
(requested by rmind in ticket #717).

Add a ptree_mask_node_p to determine if an item is a mask node, and what
its non-mask length is.


To generate a diff of this commit:
cvs rdiff -u -r1.5.8.2 -r1.5.8.3 src/common/lib/libc/gen/ptree.c
cvs rdiff -u -r1.4.8.2 -r1.4.8.3 src/sys/sys/ptree.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/librump/rumpkern/arch/powerpc

2012-11-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Nov 24 18:16:16 UTC 2012

Modified Files:
src/sys/rump/librump/rumpkern/arch/powerpc: Makefile.inc

Log Message:
File is common between pp6 and ppc64 ports, so define ARCH_ELFSIZE
accordingly.

>From christos@, resolves the latest build break


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/sys/rump/librump/rumpkern/arch/powerpc/Makefile.inc

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



CVS commit: [netbsd-6] src

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:02:10 UTC 2012

Modified Files:
src/doc [netbsd-6]: HACKS
src/lib/libc/softfloat [netbsd-6]: Makefile.inc

Log Message:
Pull up revisions:
  src/lib/libc/softfloat/Makefile.inc 1.11-1.12 via patch
  src/doc/HACKS   1.124 via patch
(requested by msaitoh in ticket #703).

For arm, add -fno-tree-vrp to COPTS when compiling softfloat.c.
Without -fno-tree-vrp, -INF + -INF returns 0 by adddf3.
Fixes PR#46953.


To generate a diff of this commit:
cvs rdiff -u -r1.122.2.1 -r1.122.2.2 src/doc/HACKS
cvs rdiff -u -r1.10 -r1.10.4.1 src/lib/libc/softfloat/Makefile.inc

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



CVS commit: [netbsd-6-0] src

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:02:14 UTC 2012

Modified Files:
src/doc [netbsd-6-0]: HACKS
src/lib/libc/softfloat [netbsd-6-0]: Makefile.inc

Log Message:
Pull up revisions:
  src/lib/libc/softfloat/Makefile.inc 1.11-1.12 via patch
  src/doc/HACKS   1.124 via patch
(requested by msaitoh in ticket #703).

For arm, add -fno-tree-vrp to COPTS when compiling softfloat.c.
Without -fno-tree-vrp, -INF + -INF returns 0 by adddf3.
Fixes PR#46953.


To generate a diff of this commit:
cvs rdiff -u -r1.122.2.1 -r1.122.2.1.4.1 src/doc/HACKS
cvs rdiff -u -r1.10 -r1.10.10.1 src/lib/libc/softfloat/Makefile.inc

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



CVS commit: [netbsd-6] src/sys/arch/arm/broadcom

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:14:49 UTC 2012

Modified Files:
src/sys/arch/arm/broadcom [netbsd-6]: bcm2835_tmr.c

Log Message:
Pull up revision 1.2 (requested by skrll in ticket #704).

Fix delay.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/arm/broadcom/bcm2835_tmr.c

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



CVS commit: [netbsd-6] src

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:22:17 UTC 2012

Modified Files:
src/distrib/x68k/floppies/ramdisk [netbsd-6]: Makefile
src/sys/arch/x68k/conf [netbsd-6]: INSTALL

Log Message:
Pull up revisions:
  src/distrib/x68k/floppies/ramdisk/Makefile revision 1.41
  src/sys/arch/x68k/conf/INSTALL revision 1.96
(requested by tsutsui in ticket #705).

- add dhcpcd support to x68k install ramdisk
- enable bpf(4) in INSTALL kernel for dhcpcd
- bump ramdisk size from 1400k to 1440k
No objection on port-x68k.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.40.8.1 src/distrib/x68k/floppies/ramdisk/Makefile
cvs rdiff -u -r1.94 -r1.94.2.1 src/sys/arch/x68k/conf/INSTALL

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



CVS commit: [netbsd-6] src/distrib/utils/sysinst

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:32:28 UTC 2012

Modified Files:
src/distrib/utils/sysinst [netbsd-6]: disks.c

Log Message:
Pull up revision 1.127 (requested by tsutsui in ticket #706).

Don't show a disk which is mounted as root partition
in the "Available disks" list during sysinst procedure
to prevent users from shooting their foot in case of
installation using install-image on a USB stick.
Per suggestion in PR/47195.


To generate a diff of this commit:
cvs rdiff -u -r1.123.2.2 -r1.123.2.3 src/distrib/utils/sysinst/disks.c

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



CVS commit: [netbsd-6] src/doc

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:36:35 UTC 2012

Modified Files:
src/doc [netbsd-6]: CHANGES-6.1

Log Message:
Tickets 671 (update), 703-706, 717.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.41 -r1.1.2.42 src/doc/CHANGES-6.1

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



CVS commit: [netbsd-6-0] src/doc

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 19:36:47 UTC 2012

Modified Files:
src/doc [netbsd-6-0]: CHANGES-6.0.1

Log Message:
Ticket 703


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.20 -r1.1.2.21 src/doc/CHANGES-6.0.1

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



CVS commit: src/sys

2012-11-24 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Nov 24 19:48:25 UTC 2012

Modified Files:
src/sys/fs/smbfs: smbfs_smb.c
src/sys/netsmb: smb_smb.c

Log Message:
- fix endian cofusion around FID, which is used as is, so no need
  to do byte swapping.
- put right value to ByteCount of SMB_COM_NT_CREATE_ANDX request.

The fix makes smbfs actually works on big-endian port.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/fs/smbfs/smbfs_smb.c
cvs rdiff -u -r1.32 -r1.33 src/sys/netsmb/smb_smb.c

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



CVS commit: [netbsd-6] src/doc

2012-11-24 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Sat Nov 24 19:58:05 UTC 2012

Modified Files:
src/doc [netbsd-6]: CHANGES-6.1

Log Message:
Ticket 668.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.42 -r1.1.2.43 src/doc/CHANGES-6.1

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



CVS commit: [netbsd-6] src/sys/arch/x68k/stand

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:20:29 UTC 2012

Modified Files:
src/sys/arch/x68k/stand/boot [netbsd-6]: dp8390.c dp8390.h if_ne.c ne.c
src/sys/arch/x68k/stand/boot_ufs [netbsd-6]: boot.S
src/sys/arch/x68k/stand/libsa [netbsd-6]: clock.c sdcd.c
src/sys/arch/x68k/stand/netboot [netbsd-6]: Makefile boot.c conf.c
src/sys/arch/x68k/stand/xxboot [netbsd-6]: boot.S bootmain.c version
xx.c
src/sys/arch/x68k/stand/xxboot/cdboot_cd9660 [netbsd-6]: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_ffsv1 [netbsd-6]: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_ffsv2 [netbsd-6]: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_lfsv1 [netbsd-6]: Makefile
src/sys/arch/x68k/stand/xxboot/xxboot_lfsv2 [netbsd-6]: Makefile
Removed Files:
src/sys/arch/x68k/stand/bootlogo [netbsd-6]: MANIFEST netbsd.xpm
setbootimg.c xpm2bootimg.c

Log Message:
Pull up revisions:
  src/sys/arch/x68k/stand/boot_ufs/boot.S revision 1.10
  src/sys/arch/x68k/stand/boot/dp8390.c revision 1.2
  src/sys/arch/x68k/stand/boot/dp8390.h revision 1.2
  src/sys/arch/x68k/stand/boot/if_ne.c revision 1.2
  src/sys/arch/x68k/stand/boot/ne.c revision 1.2
  src/sys/arch/x68k/stand/libsa/clock.c revision 1.2
  src/sys/arch/x68k/stand/netboot/Makefile revision 1.2
  src/sys/arch/x68k/stand/netboot/boot.c revision 1.2
  src/sys/arch/x68k/stand/netboot/conf.c revision 1.2
  src/sys/arch/x68k/stand/bootlogo/MANIFEST delete
  src/sys/arch/x68k/stand/bootlogo/netbsd.xpm delete
  src/sys/arch/x68k/stand/bootlogo/setbootimg.c delete
  src/sys/arch/x68k/stand/bootlogo/xpm2bootimg.c delete
  src/sys/arch/x68k/stand/xxboot/boot.S revisions 1.2,1.3
  src/sys/arch/x68k/stand/xxboot/bootmain.c revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xx.c revision 1.2
  src/sys/arch/x68k/stand/xxboot/xxboot_ffsv1/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xxboot_ffsv2/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xxboot_lfsv1/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/xxboot_lfsv2/Makefile revisions 1.2,1.3,1.4
  src/sys/arch/x68k/stand/xxboot/version revision 1.2
  src/sys/arch/x68k/stand/xxboot/cdboot_cd9660/Makefile revision 1.2
  src/sys/arch/x68k/stand/libsa/sdcd.c revision 1.14
(requested by tsutsui in ticket #707).

Fix typo in comment. s/d1/d0/

Remove my local RCS IDs.

Remove x68k/stand/bootlogo/ directory.
It was a tool before the bootloader becomes multi-stage (>10 years ago),
and it does not work anymore today.

Pull fixes in comments from x68k/stand/boot_ufs/boot.S rev 1.9 and 1.10.

Use a correct function name in .globl decl.

- fix comments
- use proper uintNN_t types
- use ANSI function decls
- remove unnecessary function decl
- remove __P()
- misc KNF and cosmetics

- use declarations in 
- remove __P() and some KNF
- remove extern variable decl
- use uintNN_t type

Set *file for FS_OPS() pathname properly in devopen().
Now bootxx_ffsv1 (and other bootxx ufs variants) work properly.

XXX: cd9660_open() in sys/lib/libsa/cd9660.c seems to open a file in
 the first entry of root directory if specified path is empty.
 Not sure if it's intentional behavoir.

Appease warning "nbmake: ${TOUCHPROG} expands to empty string".

Fix previous; no need to echo dummy command.

Make xxboot for ufs variants actually functional:
- set bootdev properly even on SCSI HD and floppy boot
  per SDBOOT/FDBOOT/CDBOOT defines in each Makefile
- always print xxboot name and version
- use IOCS PRINT calls instead of printf to avoid size overflow in DEBUG case
- wrap debug stuff with #ifdef XXBOOT_DEBUG
- bump version to denote changes
Mostly taken from old boot_ufs.

XXX: xxboot_lfs[12] are untested.

Make sure to initialize partition offset in cdopen(),
i.e. fix an uninitialized auto variable which happened
to be zero on XM6i emulator.

Now cdboot also works on real X68030.


To generate a diff of this commit:
cvs rdiff -u -r1.2.2.2 -r1.2.2.3 src/sys/arch/x68k/stand/boot/dp8390.c \
src/sys/arch/x68k/stand/boot/dp8390.h \
src/sys/arch/x68k/stand/boot/if_ne.c src/sys/arch/x68k/stand/boot/ne.c
cvs rdiff -u -r1.9 -r1.9.10.1 src/sys/arch/x68k/stand/boot_ufs/boot.S
cvs rdiff -u -r1.1 -r0 src/sys/arch/x68k/stand/bootlogo/MANIFEST \
src/sys/arch/x68k/stand/bootlogo/netbsd.xpm
cvs rdiff -u -r1.4 -r0 src/sys/arch/x68k/stand/bootlogo/setbootimg.c
cvs rdiff -u -r1.5 -r0 src/sys/arch/x68k/stand/bootlogo/xpm2bootimg.c
cvs rdiff -u -r1.2.2.2 -r1.2.2.3 src/sys/arch/x68k/stand/libsa/clock.c
cvs rdiff -u -r1.11.8.1 -r1.11.8.2 src/sys/arch/x68k/stand/libsa/sdcd.c
cvs rdiff -u -r1.2.2.2 -r1.2.2.3 src/sys/arch/x68k/stand/netboot/Makefile \
src/sys/arch/x68k/stand/netboot/boot.c \
src/sys/arch/x68k/stand/netboot/conf.c
cvs rdiff -u -r1.3.2.2 -r1.3.2.3 src/sys/arch/x68k/stand/xxboot/boot.S
cvs rdiff -u -r1.4.2.2 -r1.4.2.3 src/sys/arch/x68k/stand/xxboot/bootmain.c
cvs rdiff -u -r1.

CVS commit: [netbsd-6] src/distrib/x68k/cdroms/installcd

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:29:49 UTC 2012

Modified Files:
src/distrib/x68k/cdroms/installcd [netbsd-6]: Makefile

Log Message:
Pull up revisions:
  src/distrib/x68k/cdroms/installcd/Makefile revisions 1.2,1.3
(requested by tsutsui in ticket #708).

The x68k installcd is now bootable.

Use CDBUILDEXTRA to copy secondary bootloader into target CD iso image.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.40.1 src/distrib/x68k/cdroms/installcd/Makefile

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



CVS commit: [netbsd-6] src/distrib/x68k/floppies/bootfloppy.sysinst

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:34:13 UTC 2012

Modified Files:
src/distrib/x68k/floppies/bootfloppy.sysinst [netbsd-6]: Makefile

Log Message:
Pull up revision 1.13 (requested by tsutsui in ticket #709).

FLOPPYPAD=1 for padding floppies.
On XM6i (emulator), the floppy format type of plain image is
decided by filesize, so it makes easy to use the image on XM6i.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.58.1 \
src/distrib/x68k/floppies/bootfloppy.sysinst/Makefile

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



CVS commit: [netbsd-6] src/distrib/notes/common

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:38:08 UTC 2012

Modified Files:
src/distrib/notes/common [netbsd-6]: postinstall

Log Message:
Pull up revision 1.75 (requested by tsutsui in ticket #710).

Most contents in ftp://ftp.NetBSD.org/pub/NetBSD/packages/ seem removed
recently (do we have any announcment?) so update pakcages URLs and
descriptions accordingly.


To generate a diff of this commit:
cvs rdiff -u -r1.74.8.1 -r1.74.8.2 src/distrib/notes/common/postinstall

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



CVS commit: [netbsd-6-0] src/distrib/notes/common

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:41:14 UTC 2012

Modified Files:
src/distrib/notes/common [netbsd-6-0]: postinstall

Log Message:
Pull up revision 1.75 (requested by tsutsui in ticket #710).

Most contents in ftp://ftp.NetBSD.org/pub/NetBSD/packages/ seem removed
recently (do we have any announcment?) so update pakcages URLs and
descriptions accordingly.


To generate a diff of this commit:
cvs rdiff -u -r1.74.8.1 -r1.74.8.1.4.1 src/distrib/notes/common/postinstall

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



CVS commit: [netbsd-6] src/sbin/mount_msdos

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:43:16 UTC 2012

Modified Files:
src/sbin/mount_msdos [netbsd-6]: mount_msdos.8

Log Message:
Pull up revisions:
  src/sbin/mount_msdos/mount_msdos.8 revisions 1.35,1.36
(requested by tsutsui in ticket #711).

Remove the bit about empty DOS file systems assumed to have short names
by default;  jmcneill changed this back in Jan 2009, but missed this
text.

Note mount_msdos -G option also allows mounting X680x0's Human68k floppies.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.34.4.1 src/sbin/mount_msdos/mount_msdos.8

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



CVS commit: [netbsd-6-0] src/sbin/mount_msdos

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:45:39 UTC 2012

Modified Files:
src/sbin/mount_msdos [netbsd-6-0]: mount_msdos.8

Log Message:
Pull up revisions:
  src/sbin/mount_msdos/mount_msdos.8 revisions 1.35,1.36
(requested by tsutsui in ticket #711).

Remove the bit about empty DOS file systems assumed to have short names
by default;  jmcneill changed this back in Jan 2009, but missed this
text.

Note mount_msdos -G option also allows mounting X680x0's Human68k floppies.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.34.10.1 src/sbin/mount_msdos/mount_msdos.8

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



CVS commit: [netbsd-6] src/sys/kern

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:50:16 UTC 2012

Modified Files:
src/sys/kern [netbsd-6]: kern_runq.c

Log Message:
Pull up revision 1.34 (requested by para in ticket #712).

change sched_upreempt_pri default to 0 as discussed on tech-kern@
should improve interactive performance on SMP machines
as user preemption happens immediately in x-cpu wakeup case now


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.33.4.1 src/sys/kern/kern_runq.c

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



CVS commit: [netbsd-6] src/sys/arch/arm/marvell

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:53:13 UTC 2012

Modified Files:
src/sys/arch/arm/marvell [netbsd-6]: mvsocgpp.c

Log Message:
Pull up revision 1.5 (requested by msaitoh in ticket #713).

Fix a uvm_fault panic that memory is not allocated for the last few GPIO bits.


To generate a diff of this commit:
cvs rdiff -u -r1.3.8.1 -r1.3.8.2 src/sys/arch/arm/marvell/mvsocgpp.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/acpi

2012-11-24 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat Nov 24 20:56:39 UTC 2012

Modified Files:
src/sys/dev/acpi: thinkpad_acpi.c

Log Message:
Match LEN0068 in thinkpad(4) too, as newer Thinkpads report.

Tested on a W530.  Lots of stuff is missing, though.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/acpi/thinkpad_acpi.c

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



CVS commit: [netbsd-6] src/sys/kern

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 20:58:00 UTC 2012

Modified Files:
src/sys/kern [netbsd-6]: subr_cprng.c

Log Message:
Pull up revision 1.14 (requested by msaitoh in ticket #714).

Pass correct wait channel string.


To generate a diff of this commit:
cvs rdiff -u -r1.5.2.5 -r1.5.2.6 src/sys/kern/subr_cprng.c

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



CVS commit: [netbsd-6] src/external/mit/expat/dist

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 21:08:47 UTC 2012

Modified Files:
src/external/mit/expat/dist/lib [netbsd-6]: expat.h xmlparse.c
src/external/mit/expat/dist/xmlwf [netbsd-6]: readfilemap.c

Log Message:
Pull up revisions:
  src/external/mit/expat/dist/lib/expat.h  1.1.1.2 via patch
  src/external/mit/expat/dist/lib/xmlparse.c   1.1.1.2 via patch
  src/external/mit/expat/dist/xmlwf/readfilemap.c  1.1.1.2 via patch
(requested by spz in ticket #715)

import of expat 2.1.0
Fixes CVE-2012-1147, CVE-2012-1148 and CVE-2012-0876 (other security
issues have been previously fixed in our tree)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 src/external/mit/expat/dist/lib/expat.h
cvs rdiff -u -r1.2 -r1.2.2.1 src/external/mit/expat/dist/lib/xmlparse.c
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/mit/expat/dist/xmlwf/readfilemap.c

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



CVS commit: [netbsd-6-0] src/external/mit/expat/dist

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 21:09:41 UTC 2012

Modified Files:
src/external/mit/expat/dist/lib [netbsd-6-0]: expat.h xmlparse.c
src/external/mit/expat/dist/xmlwf [netbsd-6-0]: readfilemap.c

Log Message:
Pull up revisions:
  src/external/mit/expat/dist/lib/expat.h  1.1.1.2 via patch
  src/external/mit/expat/dist/lib/xmlparse.c   1.1.1.2 via patch
  src/external/mit/expat/dist/xmlwf/readfilemap.c  1.1.1.2 via patch
(requested by spz in ticket #715)

import of expat 2.1.0
Fixes CVE-2012-1147, CVE-2012-1148 and CVE-2012-0876 (other security
issues have been previously fixed in our tree)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.6.1 src/external/mit/expat/dist/lib/expat.h
cvs rdiff -u -r1.2 -r1.2.6.1 src/external/mit/expat/dist/lib/xmlparse.c
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.6.1 \
src/external/mit/expat/dist/xmlwf/readfilemap.c

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



CVS commit: src/usr.bin/mail

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 21:40:02 UTC 2012

Modified Files:
src/usr.bin/mail: mime_codecs.c

Log Message:
PR/47237: Steffen Nurpmeso: Detect more than 2 pad characters and mark as bad.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/mail/mime_codecs.c

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



CVS commit: [netbsd-6] src

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 21:40:03 UTC 2012

Modified Files:
src/lib/libc/sys [netbsd-6]: kqueue.2
src/sys/kern [netbsd-6]: kern_descrip.c kern_event.c
src/tests/lib/libc/sys [netbsd-6]: t_kevent.c

Log Message:
Pull up revisions:
  src/sys/kern/kern_event.c revision 1.79
  src/sys/kern/kern_descrip.c revision 1.219
  src/lib/libc/sys/kqueue.2 revision 1.33
  src/tests/lib/libc/sys/t_kevent.c revision 1.2-1.5
(requested by christos in ticket #716).

- initialize kn_id
- in close, invalidate f_data and f_type early to prevent accidental re-use
- add a DIAGNOSTIC for when we use unsupported fd's and a KASSERT for f_event
  being NULL.

Return EOPNOTSUPP for fnullop_kqfilter to prevent registration of unsupported
fds. XXX: We should really fix the fd's to be supported in the future.
Unsupported fd's have a NULL f_event, so registering crashes the kernel with
a NULL function dereference of f_event.

mention that kevent returns now EOPNOTSUPP.

Move the references to PRs from code comments to the test description. Once
ATF has the ability to output the metadata in the HTML reports, it should be
easy to traverse between releng and gnats -reports via links.

Add a (skipped for now) test case for PR 46463

adapt to new reality

Add a test for adding an event to an unsupported fd.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.32.2.1 src/lib/libc/sys/kqueue.2
cvs rdiff -u -r1.218 -r1.218.2.1 src/sys/kern/kern_descrip.c
cvs rdiff -u -r1.75 -r1.75.2.1 src/sys/kern/kern_event.c
cvs rdiff -u -r1.1 -r1.1.2.1 src/tests/lib/libc/sys/t_kevent.c

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



CVS commit: [netbsd-6-0] src

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 21:40:08 UTC 2012

Modified Files:
src/lib/libc/sys [netbsd-6-0]: kqueue.2
src/sys/kern [netbsd-6-0]: kern_descrip.c kern_event.c
src/tests/lib/libc/sys [netbsd-6-0]: t_kevent.c

Log Message:
Pull up revisions:
  src/sys/kern/kern_event.c revision 1.79
  src/sys/kern/kern_descrip.c revision 1.219
  src/lib/libc/sys/kqueue.2 revision 1.33
  src/tests/lib/libc/sys/t_kevent.c revision 1.2-1.5
(requested by christos in ticket #716).

- initialize kn_id
- in close, invalidate f_data and f_type early to prevent accidental re-use
- add a DIAGNOSTIC for when we use unsupported fd's and a KASSERT for f_event
  being NULL.

Return EOPNOTSUPP for fnullop_kqfilter to prevent registration of unsupported
fds. XXX: We should really fix the fd's to be supported in the future.
Unsupported fd's have a NULL f_event, so registering crashes the kernel with
a NULL function dereference of f_event.

mention that kevent returns now EOPNOTSUPP.

Move the references to PRs from code comments to the test description. Once
ATF has the ability to output the metadata in the HTML reports, it should be
easy to traverse between releng and gnats -reports via links.

Add a (skipped for now) test case for PR 46463

adapt to new reality

Add a test for adding an event to an unsupported fd.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.32.8.1 src/lib/libc/sys/kqueue.2
cvs rdiff -u -r1.218 -r1.218.8.1 src/sys/kern/kern_descrip.c
cvs rdiff -u -r1.75 -r1.75.6.1 src/sys/kern/kern_event.c
cvs rdiff -u -r1.1 -r1.1.6.1 src/tests/lib/libc/sys/t_kevent.c

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



CVS commit: [netbsd-6] src/doc

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 21:47:28 UTC 2012

Modified Files:
src/doc [netbsd-6]: CHANGES-6.1

Log Message:
Tickets 707-716.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.43 -r1.1.2.44 src/doc/CHANGES-6.1

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



CVS commit: [netbsd-6-0] src/doc

2012-11-24 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Nov 24 21:47:35 UTC 2012

Modified Files:
src/doc [netbsd-6-0]: CHANGES-6.0.1

Log Message:
Tickets 710, 711, 715, 716.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.21 -r1.1.2.22 src/doc/CHANGES-6.0.1

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



CVS commit: src/external/bsd/mdocml/dist

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 22:29:09 UTC 2012

Modified Files:
src/external/bsd/mdocml/dist: tbl_data.c

Log Message:
XXX: rename data() to getdata(). This is to avoid an assembler botch on the
ppc64 toolchain where function names are prefixed with a period, so "data"
becomes ".data" and ".data" is confused by the assembler with the segment
directive with the same name. Clearly this is a toolchain issue; we should
be able to call functions "text" and "data" but it is simpler to fix the
code rather than the toolchain.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/mdocml/dist/tbl_data.c

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



CVS commit: [netbsd-6] src/sbin/iscsid

2012-11-24 Thread Jeremy C. Reed
Module Name:src
Committed By:   reed
Date:   Sun Nov 25 00:19:52 UTC 2012

Modified Files:
src/sbin/iscsid [netbsd-6]: iscsid.8

Log Message:
Fix simple typo.  (3270 is MPLS)


To generate a diff of this commit:
cvs rdiff -u -r1.2.2.1 -r1.2.2.2 src/sbin/iscsid/iscsid.8

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



CVS commit: src/usr.bin/fstat

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 25 00:36:24 UTC 2012

Modified Files:
src/usr.bin/fstat: fstat.c

Log Message:
- add more debugging.
- in misctrans() we need the file index not the file type.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/usr.bin/fstat/fstat.c

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



CVS commit: src/sys/miscfs/procfs

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 25 01:03:06 UTC 2012

Modified Files:
src/sys/miscfs/procfs: procfs_subr.c procfs_vnops.c

Log Message:
do something reasonable with kernel semaphores.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/miscfs/procfs/procfs_subr.c
cvs rdiff -u -r1.184 -r1.185 src/sys/miscfs/procfs/procfs_vnops.c

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



CVS commit: src/sys

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 25 01:05:04 UTC 2012

Modified Files:
src/sys/kern: uipc_sem.c
src/sys/sys: ksem.h

Log Message:
expose ksem_t for fstat(8), and implement stat for future reference.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/kern/uipc_sem.c
cvs rdiff -u -r1.13 -r1.14 src/sys/sys/ksem.h

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



CVS commit: src/usr.bin/fstat

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 25 01:05:49 UTC 2012

Modified Files:
src/usr.bin/fstat: misc.c

Log Message:
return stuff for ksem


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/fstat/misc.c

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



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

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 25 01:10:37 UTC 2012

Modified Files:
src/sys/arch/powerpc/include: asm.h

Log Message:
provide _ENTRY(x) because some code needs it.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/powerpc/include/asm.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/x68k/stand/libsa

2012-11-24 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sun Nov 25 04:07:00 UTC 2012

Modified Files:
src/sys/arch/x68k/stand/libsa: putimage.S

Log Message:
Make the end of image address absolute-long.
It allows to locate the end of image higher than 0x1.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x68k/stand/libsa/putimage.S

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



CVS commit: src/sys/arch/xen/xen

2012-11-24 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov 25 07:48:47 UTC 2012

Modified Files:
src/sys/arch/xen/xen: evtchn.c

Log Message:
hypervisor_set_ipending() should not set the pending flag across cpus. The 
reason for this is that the pending flag update is not atomic, or protected by 
a lock. Since its current (mis)use in evtchn_do_event() across cpus is to 
notify the remote cpu of an interrupt, we use hypervisor_send_event() instead, 
to trigger an event on the remote cpu, which in turn invokes evtchn_do_event() 
on that cpu and DTRT on it.

On the local cpu, we protect hypervisor_set_ipending() from re-entry via cli(). 
Remove a redundant and unprotected call to hypervisor_set_ipending().

Thanks to jym@ for spotting this discrepancy while reviewing a related patch.

See: http://mail-index.netbsd.org/tech-kern/2012/11/12/msg014374.html


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/xen/xen/evtchn.c

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