CVS commit: src/sys/dev/pci

2019-02-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Fri Mar  1 07:02:56 UTC 2019

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

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/pci/pciconf.c

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



CVS commit: src/bin/sh

2019-02-28 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri Mar  1 06:15:02 UTC 2019

Modified Files:
src/bin/sh: redir.c

Log Message:
The previous commit was obviously made by a broken mindless automoton
with an IQ that underflows when one attempts to enter it as an
unnormalised 160 bit long long double...

Whoever would believe that (~0 & anything) was a meaningful thing
to write?   And three times in one #define.   That could not possibly
have been me, could it?

Simplify, simplify, simplify.   NFC.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/bin/sh/redir.c

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



CVS commit: src/common/lib/libc/atomic

2019-02-28 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Fri Mar  1 06:14:52 UTC 2019

Modified Files:
src/common/lib/libc/atomic: atomic_nand_16_cas.c atomic_nand_32_cas.c
atomic_nand_8_cas.c

Log Message:
Add missing alias for __atomic_fetch_nand_N.
XXX I'm not sure why does llvm/sparc call __atomic instead of
__sync though.
XXX atomic_*_cas.c should be more symmetric...


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/atomic/atomic_nand_16_cas.c \
src/common/lib/libc/atomic/atomic_nand_8_cas.c
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/atomic/atomic_nand_32_cas.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

2019-02-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Fri Mar  1 05:41:56 UTC 2019

Modified Files:
src/sys/dev/pci: pccbb.c pci_map.c pciconf.c

Log Message:
No functional change:
 - u_int* -> uint*
 - KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.212 -r1.213 src/sys/dev/pci/pccbb.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/pci_map.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/pci/pciconf.c

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/atomic

2019-02-28 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Fri Mar  1 05:39:01 UTC 2019

Modified Files:
src/tests/lib/libc/atomic: t___sync_and.c

Log Message:
Revert previous hack.
Now all libc have __sync_and_and_fetch functions.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/atomic/t___sync_and.c

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



CVS commit: src/bin/sh

2019-02-28 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri Mar  1 05:23:35 UTC 2019

Modified Files:
src/bin/sh: redir.c

Log Message:
Inspired by (really the need for) Maya's patch to pkgsrc/shells/bash
to allow bash to build fdflags on Solaris 10, here are some mods that
fix that, and some other similar issues in the NetBSD version of fdflags.

The bash implementation of fdflags is based upon the one Christos did for
the NetBSD sh, so the issues are similar ... the NetBSD sh cannot yet
(easily anyway) build on anything except NetBSD, so this change makes
no current difference at all (just adds some compile time tests (#ifdef)
which always work out the way things did before, when built on NetBSD).

However, there is no system on which any modern shell can hope to work
which does not support close on exec, or fcntl(F_SETFD,...) to set it.
The O_CLOEXEC and FD_CLOEXEC definitions might not exist, but close on
exec can still be manipulated.   Since the primary rationale for
the fdflags builtin was to be able to manipulate that state bit from
scripts, it would be annoying to lose that one, and keep all the (less
important) others, just because O_CLOEXEC is not defined, so do the
fix (workaround) a different way than was done in the bash patch.

Further, more than fdflags() will fail if O_CLOEXEC is not defined,
so handle that as well.

Also fix another oddity ... (noticed by reading the code) - if
fcntl(F_GETFL,...) returned any bits set that we don't understand,
the code was supposed to simply print their values as a hex constant,
when fdflags is run with -v.However, the getflags() function was
clearing all bits that the code did not know about ... so there is
no way any unknown bit could ever make it out to be printed.  Handle
that a different way - instead of clearing unknown bits, clear any
bits that get returned which we understand, but do not want to deal
with (stuff like O_WRONLY, which should not be returned from the
fcntl(), but who knows...)   Leave any unknown bits that happen to be
set, set, so that printone() can display them if appropriate.
(This is most likely to happen when running an older shell on a new
kernel where the kernel supports some new flag that the shell has
not been taught to understand).

NFCI that anyone should notice anytime soon.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/bin/sh/redir.c

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



CVS commit: src/etc/mtree

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Mar  1 04:39:37 UTC 2019

Added Files:
src/etc/mtree: NetBSD.dist.ofppc

Log Message:
add ./usr/include/ofppc for ofppc builds.

(how many more builds will i find like this?  the end result
is that i think we should generate the ./usr/include/$MACHINE
entry, i think, but i have to survey many ports.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/etc/mtree/NetBSD.dist.ofppc

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



CVS commit: src/sys/arch/alpha/alpha

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Mar  1 04:29:20 UTC 2019

Modified Files:
src/sys/arch/alpha/alpha: pmap.c

Log Message:
fix a typo in a comment


To generate a diff of this commit:
cvs rdiff -u -r1.262 -r1.263 src/sys/arch/alpha/alpha/pmap.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

2019-02-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar  1 03:20:50 UTC 2019

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

Log Message:
no more p_nsems.


To generate a diff of this commit:
cvs rdiff -u -r1.226 -r1.227 src/sys/kern/kern_proc.c

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



CVS commit: src/share/man/man7

2019-02-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar  1 03:05:08 UTC 2019

Modified Files:
src/share/man/man7: sysctl.7

Log Message:
Document kern.uidinfo.semcnt.


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/share/man/man7/sysctl.7

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



CVS commit: src/sys

2019-02-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar  1 03:03:19 UTC 2019

Modified Files:
src/sys/kern: kern_uidinfo.c uipc_sem.c
src/sys/sys: param.h proc.h uidinfo.h

Log Message:
PR/53998: Joel Bertrand:  Limit the number of semaphores on a
per-user basis not a per-process.  We cannot really keep track on
a per-process basis because a parent process can create the semaphore
and a child can free it taking credit for it.  There is also a
similar issue about resource exhaustion if we limited the number
of lwps per process as opposed to per user (which we don't).


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/kern/kern_uidinfo.c
cvs rdiff -u -r1.54 -r1.55 src/sys/kern/uipc_sem.c
cvs rdiff -u -r1.582 -r1.583 src/sys/sys/param.h
cvs rdiff -u -r1.350 -r1.351 src/sys/sys/proc.h
cvs rdiff -u -r1.3 -r1.4 src/sys/sys/uidinfo.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/aarch64/aarch64

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Mar  1 02:40:01 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: aarch32_syscall.c syscall.c

Log Message:
no need to include opt_multiprocessor.h here.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/aarch64/aarch32_syscall.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/aarch64/syscall.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/sparc64/dev

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Mar  1 02:38:17 UTC 2019

Modified Files:
src/sys/arch/sparc64/dev: tda.c

Log Message:
make the conversion from degC to uK a macro instead of open
coding it 4 places.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/sparc64/dev/tda.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/sparc/sparc

2019-02-28 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Mar  1 02:33:55 UTC 2019

Modified Files:
src/sys/arch/sparc/sparc: intr.c

Log Message:
since SX can trigger NMIs dump the status and error registers along with
the rest if sx is present.


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/sys/arch/sparc/sparc/intr.c

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



CVS commit: src/sbin/atactl

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Mar  1 02:33:43 UTC 2019

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

Log Message:
add some intel specific smart values, and be more specific for
a bunch of micron/crucial values.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sbin/atactl/atactl.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/sparc/dev

2019-02-28 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Mar  1 02:30:42 UTC 2019

Modified Files:
src/sys/arch/sparc/dev: sx.c sxvar.h

Log Message:
adapt to changes in sxreg.h


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sparc/dev/sx.c \
src/sys/arch/sparc/dev/sxvar.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/sparc/conf

2019-02-28 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Mar  1 02:28:27 UTC 2019

Modified Files:
src/sys/arch/sparc/conf: files.sparc

Log Message:
defflag SX_DEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 src/sys/arch/sparc/conf/files.sparc

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-video-suncg14/dist/src

2019-02-28 Thread Michael Lorenz
Module Name:xsrc
Committed By:   macallan
Date:   Fri Mar  1 02:22:27 UTC 2019

Modified Files:
xsrc/external/mit/xf86-video-suncg14/dist/src: cg14_accel.c

Log Message:
poll SX_BZ instead of SX_MT, also complain and dump register info if CG14Wait()
times out.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c

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



CVS commit: src/external/mpl/bind

2019-02-28 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Feb 28 22:18:21 UTC 2019

Modified Files:
src/external/mpl/bind: Makefile.inc
src/external/mpl/bind/lib/libisc: Makefile

Log Message:
Disable warning about atomic alignment for all bind. It's used too
often.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/mpl/bind/Makefile.inc
cvs rdiff -u -r1.7 -r1.8 src/external/mpl/bind/lib/libisc/Makefile

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



CVS commit: src/usr.bin/tip

2019-02-28 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Thu Feb 28 17:41:27 UTC 2019

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

Log Message:
Make xgetchar() return an int like getchar() does, and remove needless cast.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/tip/tip.c

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



CVS commit: src/external/mpl/bind/lib/libisc

2019-02-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Feb 28 17:40:06 UTC 2019

Modified Files:
src/external/mpl/bind/lib/libisc: Makefile

Log Message:
one more for the atomic references on clang.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/mpl/bind/lib/libisc/Makefile

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



CVS commit: src/sys/dev

2019-02-28 Thread Pierre Pronchery
Module Name:src
Committed By:   khorben
Date:   Thu Feb 28 16:56:35 UTC 2019

Modified Files:
src/sys/dev/i2c: sdtemp.c
src/sys/dev/pci: if_wm.c if_wmreg.h pci_subr.c

Log Message:
Typo (s/vaule/value/)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/i2c/sdtemp.c
cvs rdiff -u -r1.628 -r1.629 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.112 -r1.113 src/sys/dev/pci/if_wmreg.h
cvs rdiff -u -r1.210 -r1.211 src/sys/dev/pci/pci_subr.c

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



CVS commit: src/external/gpl3/gcc/lib/libgcc/arch/riscv64

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 09:50:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/riscv64: gthr-defs.mk

Log Message:
basic mknative bootstrap-libgcc for riscv64


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk

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



CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 09:49:14 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64: auto-host.h tm.h

Log Message:
basic mknative bootstrap-libgcc for riscv64


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/auto-host.h
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/tm.h

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



CVS commit: src/libexec/httpd

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 09:16:42 UTC 2019

Modified Files:
src/libexec/httpd: CHANGES bozohttpd.c

Log Message:
call this bozohttpd 20190228, and merge the CHANGES entries from the
previous release.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/libexec/httpd/CHANGES
cvs rdiff -u -r1.112 -r1.113 src/libexec/httpd/bozohttpd.c

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



CVS commit: src/libexec/httpd

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 08:28:22 UTC 2019

Modified Files:
src/libexec/httpd: auth-bozo.c bozohttpd.8 bozohttpd.c bozohttpd.h
dir-index-bozo.c ssl-bozo.c

Log Message:
add ssl specific timeout value (30s).  if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/libexec/httpd/auth-bozo.c
cvs rdiff -u -r1.78 -r1.79 src/libexec/httpd/bozohttpd.8
cvs rdiff -u -r1.111 -r1.112 src/libexec/httpd/bozohttpd.c
cvs rdiff -u -r1.58 -r1.59 src/libexec/httpd/bozohttpd.h
cvs rdiff -u -r1.31 -r1.32 src/libexec/httpd/dir-index-bozo.c
cvs rdiff -u -r1.25 -r1.26 src/libexec/httpd/ssl-bozo.c

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