CVS commit: src/sys/arch/mips/mips

2016-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sun Oct  2 09:06:35 UTC 2016

Modified Files:
src/sys/arch/mips/mips: mipsX_subr.S

Log Message:
Simplify. LOONGSON2 and MIPSNNR2 not possible.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/arch/mips/mips/mipsX_subr.S

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



CVS commit: [nick-nhusb] src/sys/dev/usb

2016-10-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Oct  2 10:39:29 UTC 2016

Modified Files:
src/sys/dev/usb [nick-nhusb]: if_smsc.c

Log Message:
Use our if_percpupq... driver works again on rpi2


To generate a diff of this commit:
cvs rdiff -u -r1.22.2.13 -r1.22.2.14 src/sys/dev/usb/if_smsc.c

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



CVS commit: src

2016-10-02 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Oct  2 13:09:24 UTC 2016

Modified Files:
src/distrib/sets/lists/comp: mi
src/include: Makefile
Added Files:
src/include: stdnoreturn.h

Log Message:
Import 

This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.23 _Noreturn 

According to ISO/IEC 9899:201x (draft)  defines the
noreturn macro which expands to _Noreturn.

The _Noreturn keyword appears in a function declaration and specifies
that the function does not return by reaching the end of the function
body.

Design choices:
 - don't implicitly break C++ code including this header with #error
   C++11 offers [[noreturn]] which conflicts with C11 _Noreturn

 - don't check for __STDC_VERSION__, everybody is free to reuse it with
   a nonstandard compiler not conforming to C11 but supporting _Noreturn

   gcc(1) and clang(1) support _Noreturn in -std=c99 and older standards

   this follows  choice for not checking for C99

 - follow  and declare the __noreturn_is_defined guard

 - use a standard header guard (_STDNORETURN_H_), similar to 

Reviewed by  and 


To generate a diff of this commit:
cvs rdiff -u -r1.2060 -r1.2061 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.141 -r1.142 src/include/Makefile
cvs rdiff -u -r0 -r1.1 src/include/stdnoreturn.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

2016-10-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct  2 14:16:03 UTC 2016

Modified Files:
src/sys/dev: kttcp.c
src/sys/dev/ic: elink3.c hme.c lance.c mtd803.c rrunner.c
src/sys/dev/isa: if_iy.c
src/sys/dev/ofw: ofnet.c
src/sys/dev/pci/cxgb: cxgb_mvec.h
src/sys/dev/pcmcia: if_cnw.c if_xi.c
src/sys/dev/sbus: be.c qe.c
src/sys/dev/scsipi: if_se.c

Log Message:
MFREE -> m_free


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/kttcp.c
cvs rdiff -u -r1.138 -r1.139 src/sys/dev/ic/elink3.c
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/ic/hme.c
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ic/lance.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ic/mtd803.c
cvs rdiff -u -r1.81 -r1.82 src/sys/dev/ic/rrunner.c
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/isa/if_iy.c
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/ofw/ofnet.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/cxgb/cxgb_mvec.h
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/pcmcia/if_cnw.c
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/pcmcia/if_xi.c
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/sbus/be.c
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/sbus/qe.c
cvs rdiff -u -r1.91 -r1.92 src/sys/dev/scsipi/if_se.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

2016-10-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct  2 14:17:07 UTC 2016

Modified Files:
src/sys/net: if_gre.c if_ppp.c if_sl.c if_strip.c if_tap.c if_tun.c
ppp_tty.c

Log Message:
MFREE -> m_free


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/sys/net/if_gre.c
cvs rdiff -u -r1.157 -r1.158 src/sys/net/if_ppp.c
cvs rdiff -u -r1.126 -r1.127 src/sys/net/if_sl.c
cvs rdiff -u -r1.106 -r1.107 src/sys/net/if_strip.c
cvs rdiff -u -r1.92 -r1.93 src/sys/net/if_tap.c
cvs rdiff -u -r1.132 -r1.133 src/sys/net/if_tun.c
cvs rdiff -u -r1.62 -r1.63 src/sys/net/ppp_tty.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

2016-10-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct  2 14:25:27 UTC 2016

Modified Files:
src/sys/arch/arm/imx: if_enet.c
src/sys/arch/emips/ebus: if_le_ebus.c
src/sys/arch/mac68k/dev: if_mc.c
src/sys/arch/macppc/dev: am79c950.c if_bm.c

Log Message:
MFREE -> m_free


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/imx/if_enet.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/emips/ebus/if_le_ebus.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/mac68k/dev/if_mc.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/macppc/dev/am79c950.c
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/macppc/dev/if_bm.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

2016-10-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  2 14:38:46 UTC 2016

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

Log Message:
wapbl_write_revocations(): fix use-after-free when writing more then one
block worth of revocations, introduced in previous commit; discovered by
Brad Harder on current-users


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 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/tests/net/net

2016-10-02 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Oct  2 15:27:32 UTC 2016

Modified Files:
src/tests/net/net: t_ipv6_lifetime.sh

Log Message:
This test works fine on real hardware, but due to PR kern/43997 (qemu
timing problems) fails when run under qemu.   Attempt to compensate
for that (by skipping the problematic test case) when running in qemu.

This should be reverted when the PR gets fixed (either in qemu or in
the NetBSD kernel).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/net/net/t_ipv6_lifetime.sh

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



CVS commit: src/sys/kern

2016-10-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  2 16:44:02 UTC 2016

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

Log Message:
fix off-by-one in wapbl_write_revocations() - when exiting the write loop,
wd gets set to next unwritten record, not last written one as code assumed;
'lost head!' KASSERT is not triggered any more


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 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

2016-10-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  2 16:52:27 UTC 2016

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

Log Message:
drop wl_mtx mutex during call to pool_get() with PR_WAITOK

pointed out by riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 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

2016-10-02 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Oct  2 17:19:00 UTC 2016

Modified Files:
src/distrib/sets/lists/comp: mi
src/include: Makefile
Added Files:
src/include: stdalign.h

Log Message:
Import 

This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.15 Alignment 

According to ISO/IEC 9899:201x (draft) 7.15 Alignment  defines
four macros:
 - alignas which expands to _Alignas
 - alignof which expands to _Alignof
 - __alignas_is_defined and __alignof_is_defined which both expand to 1

The _Alignas declaration appears as one of the type specifiers to modify
the alignment requirement of the object being declared.

The _Alignof operator is used to query the alignment requirement of its
operand type.

ISO/IEC N3242=11-0012 (C++1x) and ISO/IEC N3797 (C++1y) both note a header
 which defines only __alignas_is_defined and shall not define
the alignas macro. It misses the alignof case as it's probably based on an
older C1x draft, which defined only alignas. Assume that this is a bug in
the standard and treat alignof the same way as alignas in C++11.

Allow to define alignas and alignof in C++ prior the C++11 standard. It
might be broken but a nonstandard C++ compiler might support C11-like
_Alignas and _Alignof. Note that it's fatal for g++(1) v.5.4.


To generate a diff of this commit:
cvs rdiff -u -r1.2061 -r1.2062 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.142 -r1.143 src/include/Makefile
cvs rdiff -u -r0 -r1.1 src/include/stdalign.h

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



CVS commit: src/doc

2016-10-02 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Oct  2 17:28:57 UTC 2016

Modified Files:
src/doc: CHANGES

Log Message:
libc: Add  and .

These headers conform C1x (ISO/IEC 9899:201x).


To generate a diff of this commit:
cvs rdiff -u -r1.2187 -r1.2188 src/doc/CHANGES

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

2016-10-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct  2 19:02:57 UTC 2016

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

Log Message:
use __func__ and print the filesystem we are printing the message for.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 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

2016-10-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct  2 19:26:46 UTC 2016

Modified Files:
src/sys/kern: uipc_socket.c uipc_socket2.c

Log Message:
more MFREE -> m_free


To generate a diff of this commit:
cvs rdiff -u -r1.248 -r1.249 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.123 -r1.124 src/sys/kern/uipc_socket2.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/scsipi

2016-10-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  2 19:40:35 UTC 2016

Modified Files:
src/sys/dev/scsipi: scsipi_base.c

Log Message:
change scsipi_execute_xs() to default to simple tags for !XS_CTL_URGENT
if not specified by caller; this is mostly for documentation purposes
only, as sd(4) and cd(4) explicitly use simple tags already


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/dev/scsipi/scsipi_base.c

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



CVS commit: src/bin/kill

2016-10-02 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Oct  2 21:00:54 UTC 2016

Modified Files:
src/bin/kill: kill.1

Log Message:
kill(1) is a utility, not a function.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/bin/kill/kill.1

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



CVS commit: src/usr.bin

2016-10-02 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Oct  2 21:06:18 UTC 2016

Modified Files:
src/usr.bin/column: column.1
src/usr.bin/id: whoami.1

Log Message:
Move information about exit values from DESCRIPTION to EXIT STATUS section.
ok wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/column/column.1
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/id/whoami.1

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



CVS commit: src/share/man/man4

2016-10-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  2 22:44:30 UTC 2016

Modified Files:
src/share/man/man4: Makefile

Log Message:
make symlink ahci.4 -> ahcisata.4


To generate a diff of this commit:
cvs rdiff -u -r1.629 -r1.630 src/share/man/man4/Makefile

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



CVS commit: src/distrib/sets/lists/man

2016-10-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  2 23:14:19 UTC 2016

Modified Files:
src/distrib/sets/lists/man: mi

Log Message:
add ahci(4) to list


To generate a diff of this commit:
cvs rdiff -u -r1.1534 -r1.1535 src/distrib/sets/lists/man/mi

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



CVS commit: src/sys/dev/usb

2016-10-02 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon Oct  3 00:32:37 UTC 2016

Modified Files:
src/sys/dev/usb: ehci.c

Log Message:
Improve diagnostic print seen in PR 51524.


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/dev/usb/ehci.c

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



CVS commit: src

2016-10-02 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Oct  3 01:00:27 UTC 2016

Modified Files:
src/distrib/sets/lists/comp: mi
src/usr.bin: Makefile
Added Files:
src/usr.bin/c11: Makefile c11.1 c11.sh

Log Message:
Import c11(1) - a cc -std=c11 wrapper

This script is similar to c89(1) and c99(1).

It's a NetBSD extension. The c89(1) and c99(1) scripts are part of POSIX.


To generate a diff of this commit:
cvs rdiff -u -r1.2062 -r1.2063 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.225 -r1.226 src/usr.bin/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/c11/Makefile src/usr.bin/c11/c11.1 \
src/usr.bin/c11/c11.sh

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



CVS commit: src/doc

2016-10-02 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Oct  3 01:04:36 UTC 2016

Modified Files:
src/doc: CHANGES

Log Message:
c11: Import cc(1) wrapper for C11


To generate a diff of this commit:
cvs rdiff -u -r1.2188 -r1.2189 src/doc/CHANGES

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



CVS commit: src/sys/arch/macppc/dev

2016-10-02 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Oct  3 01:23:55 UTC 2016

Modified Files:
src/sys/arch/macppc/dev: if_bm.c

Log Message:
Fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/macppc/dev/if_bm.c

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