CVS commit: src/sys/net

2017-03-16 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Mar 16 08:11:47 UTC 2017

Modified Files:
src/sys/net: if.c

Log Message:
Fix panic on ifconfig 

Pointed out by s-yamaguchi@IIJ


To generate a diff of this commit:
cvs rdiff -u -r1.385 -r1.386 src/sys/net/if.c

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



CVS commit: src/sys/net

2017-03-16 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Mar 16 09:40:48 UTC 2017

Modified Files:
src/sys/net: if.c

Log Message:
Simplify ifunit, if_get and if_get_byindex by reusing other functions

Inspired by kre@'s comment


To generate a diff of this commit:
cvs rdiff -u -r1.386 -r1.387 src/sys/net/if.c

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



CVS commit: src/tests/net/if

2017-03-16 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Mar 16 09:43:56 UTC 2017

Modified Files:
src/tests/net/if: t_ifconfig.sh

Log Message:
Add a test case of ifconfig 

I don't know if  is expected to be accepted instead of
an interface name. Please update the test case if the behavior is
just a bug and ifconfig gets fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/tests/net/if/t_ifconfig.sh

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



CVS commit: src/bin/sh

2017-03-16 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Mar 16 13:09:06 UTC 2017

Modified Files:
src/bin/sh: Makefile show.c show.h

Log Message:
Have "make clean" remove sh.html1 and adapt it to clean trace files
the way they have been generated the past 20 years or so...


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/bin/sh/Makefile
cvs rdiff -u -r1.34 -r1.35 src/bin/sh/show.c
cvs rdiff -u -r1.7 -r1.8 src/bin/sh/show.h

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



CVS commit: src/bin/sh

2017-03-16 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Mar 16 13:21:59 UTC 2017

Modified Files:
src/bin/sh: show.c show.h

Log Message:
Undo local changes not intended to be committed (and certainly not
with that commit message) in the previous update.   This stuff works,
and will probably appear sometime, but not right now.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/bin/sh/show.c
cvs rdiff -u -r1.8 -r1.9 src/bin/sh/show.h

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



CVS commit: src

2017-03-16 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Thu Mar 16 16:13:21 UTC 2017

Modified Files:
src/share/man/man9: pcu.9
src/sys/arch/aarch64/include: locore.h
src/sys/arch/alpha/alpha: compat_13_machdep.c compat_16_machdep.c
machdep.c process_machdep.c trap.c
src/sys/arch/alpha/include: alpha.h
src/sys/arch/arm/arm: arm_machdep.c process_machdep.c
src/sys/arch/arm/arm32: sys_machdep.c
src/sys/arch/arm/include: locore.h
src/sys/arch/arm/vfp: vfp_init.c
src/sys/arch/mips/include: locore.h
src/sys/arch/mips/mips: compat_16_machdep.c cpu_subr.c mips_dsp.c
mips_fpu.c netbsd32_machdep.c process_machdep.c
src/sys/arch/powerpc/booke: spe.c
src/sys/arch/powerpc/include: altivec.h fpu.h
src/sys/arch/powerpc/oea: altivec.c
src/sys/arch/powerpc/powerpc: fpu.c process_machdep.c trap.c
src/sys/arch/riscv/include: locore.h
src/sys/arch/riscv/riscv: netbsd32_machdep.c process_machdep.c
riscv_machdep.c
src/sys/compat/linux/arch/powerpc: linux_machdep.c
src/sys/kern: subr_pcu.c
src/sys/sys: pcu.h

Log Message:
allow pcu_save() and pcu_discard() to be called on other threads,
ptrace needs to use it that way.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man9/pcu.9
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/include/locore.h
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/alpha/alpha/compat_13_machdep.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/alpha/alpha/compat_16_machdep.c
cvs rdiff -u -r1.349 -r1.350 src/sys/arch/alpha/alpha/machdep.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/alpha/alpha/process_machdep.c
cvs rdiff -u -r1.132 -r1.133 src/sys/arch/alpha/alpha/trap.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/alpha/include/alpha.h
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/arm/arm/arm_machdep.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/arm/arm/process_machdep.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/arm/arm32/sys_machdep.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/arm/include/locore.h
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/arm/vfp/vfp_init.c
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/mips/include/locore.h
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mips/mips/compat_16_machdep.c
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/mips/mips/cpu_subr.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/mips/mips_dsp.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/mips/mips/mips_fpu.c \
src/sys/arch/mips/mips/netbsd32_machdep.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/mips/mips/process_machdep.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/booke/spe.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/powerpc/include/altivec.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/include/fpu.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/oea/altivec.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/powerpc/powerpc/fpu.c \
src/sys/arch/powerpc/powerpc/process_machdep.c
cvs rdiff -u -r1.152 -r1.153 src/sys/arch/powerpc/powerpc/trap.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/include/locore.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/riscv/netbsd32_machdep.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/riscv/process_machdep.c \
src/sys/arch/riscv/riscv/riscv_machdep.c
cvs rdiff -u -r1.48 -r1.49 src/sys/compat/linux/arch/powerpc/linux_machdep.c
cvs rdiff -u -r1.19 -r1.20 src/sys/kern/subr_pcu.c
cvs rdiff -u -r1.12 -r1.13 src/sys/sys/pcu.h

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



CVS commit: src/lib/libm/arch/arm

2017-03-16 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Thu Mar 16 16:32:12 UTC 2017

Modified Files:
src/lib/libm/arch/arm: lrint.S lrintf.S

Log Message:
lrint() and lrintf() are supposed to use the current rounding mode,
so use vcvtr rather than vcvt.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/arch/arm/lrint.S \
src/lib/libm/arch/arm/lrintf.S

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



CVS commit: src/sys/ufs/ffs

2017-03-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Mar 16 22:09:19 UTC 2017

Modified Files:
src/sys/ufs/ffs: ffs_wapbl.c

Log Message:
need to turn off async during ffs_sync(), otherwise its bwrite() calls are
themselves turned to bdwrite(), creating dirty delayed writes

fixes panic for 'mount -o log,async ...' reported by Masanobu SAITOH
on current-users; fix help by hannken@, thank you


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/ufs/ffs/ffs_wapbl.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

2017-03-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Mar 17 03:06:17 UTC 2017

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

Log Message:
Assert write lock in wapbl_write_revocations, wapbl_write_inodes.

Only one call site, so trivial to prove correct.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/kern/vfs_wapbl.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

2017-03-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Mar 17 03:16:29 UTC 2017

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

Log Message:
Sort includes.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/kern/vfs_wapbl.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

2017-03-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Mar 17 03:17:07 UTC 2017

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

Log Message:
Nix trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/kern/vfs_wapbl.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

2017-03-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Mar 17 03:19:46 UTC 2017

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

Log Message:
Back out part of previous: missed a caller of wapbl_write_inodes.


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/kern/vfs_wapbl.c

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



CVS commit: src/sbin/ping

2017-03-16 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Fri Mar 17 06:52:59 UTC 2017

Modified Files:
src/sbin/ping: ping.c

Log Message:
Fix cksum calculation for clearing the cached route.

In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sbin/ping/ping.c

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