CVS commit: src/doc

2017-06-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Jun  6 07:13:06 UTC 2017

Modified Files:
src/doc: CHANGES.prev

Log Message:
Fix a typo, i366 -> i386.
>From PR misc/52274.


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/doc/CHANGES.prev

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



CVS commit: src/sys/dev/pad

2017-06-06 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Jun  6 07:18:38 UTC 2017

Modified Files:
src/sys/dev/pad: pad.c

Log Message:
Express BYTESTOSLEEP as an 64 bit integer.
Use BYTESTOSLEEP in expresson of BYTES_PER_SEC.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/pad/pad.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/pad

2017-06-06 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Jun  6 07:27:15 UTC 2017

Modified Files:
src/sys/dev/pad: pad.c

Log Message:
sc_bytes_count needs to be set in pad_audio_open not pad_open.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/pad/pad.c

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



CVS commit: [netbsd-8] src/doc

2017-06-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jun  6 07:28:29 UTC 2017

Modified Files:
src/doc [netbsd-8]: CHANGES

Log Message:
PR misc/52274: typo in CHANGES file


To generate a diff of this commit:
cvs rdiff -u -r1.2286 -r1.2286.2.1 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/dev/pad

2017-06-06 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Jun  6 07:29:35 UTC 2017

Modified Files:
src/sys/dev/pad: pad.c

Log Message:
Simplification of rate limiter.  It now works uni/multiprocessor.


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

2017-06-06 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Jun  6 07:31:41 UTC 2017

Modified Files:
src/sys/dev/pad: padvar.h

Log Message:
pad blocksize 1024 -> 8192.  Helps when sleeping in rate limiter.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pad/padvar.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/pad

2017-06-06 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Jun  6 07:32:41 UTC 2017

Modified Files:
src/sys/dev/pad: pad.c

Log Message:
Style change.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/pad/pad.c

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



CVS commit: src/tools/libfdt

2017-06-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Jun  6 07:45:39 UTC 2017

Added Files:
src/tools/libfdt: Makefile

Log Message:
Add libfdt


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tools/libfdt/Makefile

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



CVS commit: src/tools

2017-06-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Jun  6 08:21:53 UTC 2017

Modified Files:
src/tools: Makefile

Log Message:
Disable dtc/libfdt for now


To generate a diff of this commit:
cvs rdiff -u -r1.189 -r1.190 src/tools/Makefile

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



CVS commit: [netbsd-8] src/usr.sbin/service

2017-06-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jun  6 09:20:14 UTC 2017

Modified Files:
src/usr.sbin/service [netbsd-8]: service

Log Message:
Pull up following revision(s) (requested by sborrill in ticket #9):
usr.sbin/service/service: revision 1.8
Only match first instance of name and rcvar in file.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.10.1 src/usr.sbin/service/service

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



CVS commit: [netbsd-8] src/sys/arch/mips/mips

2017-06-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jun  6 09:25:49 UTC 2017

Modified Files:
src/sys/arch/mips/mips [netbsd-8]: pmap_machdep.c

Log Message:
Pull up following revision(s) (requested by skrll in ticket #10):
sys/arch/mips/mips/pmap_machdep.c: revision 1.20
Fix the PMAP_NO_PV_UNCACHED pmap_md_vca_add case where the pmap_update
call would cause problems for pmap_remove_all case where the deferred
activate should not be done...
Add a comment about what's going on.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.19.2.1 src/sys/arch/mips/mips/pmap_machdep.c

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



CVS commit: [netbsd-8] src/sys/gdbscripts

2017-06-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jun  6 09:28:26 UTC 2017

Modified Files:
src/sys/gdbscripts [netbsd-8]: cpus

Log Message:
Pull up following revision(s) (requested by skrll in ticket #11):
sys/gdbscripts/cpus: revision 1.2
sys/gdbscripts/cpus: revision 1.3
Make cpus MI
Typo in previous


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.94.1 src/sys/gdbscripts/cpus

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



CVS commit: [netbsd-8] src/external/bsd/blacklist/bin

2017-06-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jun  6 09:30:24 UTC 2017

Modified Files:
src/external/bsd/blacklist/bin [netbsd-8]: blacklistd.conf.5

Log Message:
Pull up following revision(s) (requested by sevan in ticket #12):
external/bsd/blacklist/bin/blacklistd.conf.5: revision 1.6
Improve wording.
Bump date.
ok christos


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.8.1 src/external/bsd/blacklist/bin/blacklistd.conf.5

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



CVS commit: [netbsd-8] src/doc

2017-06-06 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jun  6 09:31:21 UTC 2017

Modified Files:
src/doc [netbsd-8]: CHANGES-8.0

Log Message:
Tickets #9 .. #12


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.4 -r1.1.2.5 src/doc/CHANGES-8.0

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



CVS commit: src/sys/arch/evbarm/fdt

2017-06-06 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jun  6 09:56:00 UTC 2017

Modified Files:
src/sys/arch/evbarm/fdt: fdt_machdep.c

Log Message:
Initialize boot_args before bootstrap for the benefit of platform code.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbarm/fdt/fdt_machdep.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/arm/vexpress

2017-06-06 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jun  6 09:56:57 UTC 2017

Modified Files:
src/sys/arch/arm/vexpress: vexpress_platform.c

Log Message:
Allow 'console=fb' to act as a shortcut on vexpress for
'stdout-path=/smb@0800/motherboard/iofpga@3,/clcd@1f'


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/vexpress/vexpress_platform.c

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



CVS commit: src/doc

2017-06-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Jun  6 12:56:43 UTC 2017

Modified Files:
src/doc: 3RDPARTY

Log Message:
Document current dtc/libfdt status (even if it is a mess)


To generate a diff of this commit:
cvs rdiff -u -r1.1445 -r1.1446 src/doc/3RDPARTY

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

2017-06-06 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Jun  6 15:58:17 UTC 2017

Added Files:
src/sys/arch/macppc/dev: smu.c smuiic.c smuiicvar.h smusat.c smuvar.h

Log Message:
SMU support, from Phileas Fogg


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/macppc/dev/smu.c \
src/sys/arch/macppc/dev/smuiic.c src/sys/arch/macppc/dev/smuiicvar.h \
src/sys/arch/macppc/dev/smusat.c src/sys/arch/macppc/dev/smuvar.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/macppc/conf

2017-06-06 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Jun  6 15:58:59 UTC 2017

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

Log Message:
SMU config goo


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/macppc/conf/files.macppc

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



CVS commit: [netbsd-8] src/sys

2017-06-06 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Tue Jun  6 16:26:53 UTC 2017

Modified Files:
src/sys/arch/arm/fdt [netbsd-8]: plfb_fdt.c
src/sys/arch/arm/vexpress [netbsd-8]: vexpress_platform.c
src/sys/arch/evbarm/conf [netbsd-8]: VEXPRESS_A15
src/sys/arch/evbarm/fdt [netbsd-8]: fdt_machdep.c
src/sys/dev/ic [netbsd-8]: pl050.c

Log Message:
Pull up following revision(s) (requested by jmcneill in ticket #13):
sys/arch/arm/fdt/plfb_fdt.c: revision 1.2
sys/arch/arm/vexpress/vexpress_platform.c: revision 1.3
sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.13
sys/arch/evbarm/fdt/fdt_machdep.c: revisions 1.5, 1.6
sys/dev/ic/pl050.c: revision 1.2
Fix spelling of WS_DEFAULT_FG and WS_KERNEL_FG options.
--
Attach kbd slot to console
--
Allow plfb to be the console device
--
Add support for stdout-path= kernel cmdline option to override the
console device specified in the FDT.
--
Initialize boot_args before bootstrap for the benefit of platform code.
--
Allow 'console=fb' to act as a shortcut on vexpress for
'stdout-path=/smb@0800/motherboard/iofpga@3,/clcd@1f'


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.2.1 src/sys/arch/arm/fdt/plfb_fdt.c
cvs rdiff -u -r1.2 -r1.2.2.1 src/sys/arch/arm/vexpress/vexpress_platform.c
cvs rdiff -u -r1.12 -r1.12.2.1 src/sys/arch/evbarm/conf/VEXPRESS_A15
cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/arch/evbarm/fdt/fdt_machdep.c
cvs rdiff -u -r1.1 -r1.1.2.1 src/sys/dev/ic/pl050.c

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



CVS commit: [netbsd-8] src/doc

2017-06-06 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Tue Jun  6 16:29:36 UTC 2017

Modified Files:
src/doc [netbsd-8]: CHANGES-8.0

Log Message:
ticket 13


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/doc/CHANGES-8.0

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

2017-06-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jun  6 17:01:59 UTC 2017

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

Log Message:
Update the EV_SET() description with newer implementation.

EV_SET(2) is a macro again, that wraps an inline function which is still
new in NetBSD 8.0.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 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/sys/opencrypto

2017-06-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jun  6 18:08:23 UTC 2017

Modified Files:
src/sys/opencrypto: crypto.c

Log Message:
- acquire lock
- use c99 loop indexes
- initialize featp


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/opencrypto/crypto.c

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



CVS commit: src/lib/librumphijack

2017-06-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jun  6 19:48:42 UTC 2017

Modified Files:
src/lib/librumphijack: hijack.c

Log Message:
since ln(1) now uses linkat(2) provide a dumb wrapper.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/lib/librumphijack/hijack.c

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



CVS commit: src/usr.sbin/arp

2017-06-06 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Tue Jun  6 19:59:10 UTC 2017

Modified Files:
src/usr.sbin/arp: arp.c

Log Message:
whitespace police


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/arp/arp.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

2017-06-06 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Jun  6 20:12:54 UTC 2017

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

Log Message:
Bump date for previous
Fix typo: fileystem -> filesystem


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 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/external/gpl2/dtc/dist

2017-06-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Jun  6 20:19:04 UTC 2017

Modified Files:
src/external/gpl2/dtc/dist: data.c dtc.h fdtdump.c fdtput.c flattree.c
srcpos.c util.h
src/external/gpl2/dtc/dist/tests: mangle-layout.c move_and_save.c
tests.h

Log Message:
Reduce number of ALIGN macros defines and rename to avoid namespace clash


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl2/dtc/dist/data.c \
src/external/gpl2/dtc/dist/dtc.h src/external/gpl2/dtc/dist/fdtdump.c \
src/external/gpl2/dtc/dist/fdtput.c src/external/gpl2/dtc/dist/flattree.c \
src/external/gpl2/dtc/dist/srcpos.c src/external/gpl2/dtc/dist/util.h
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl2/dtc/dist/tests/mangle-layout.c \
src/external/gpl2/dtc/dist/tests/move_and_save.c \
src/external/gpl2/dtc/dist/tests/tests.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/sdmmc

2017-06-06 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jun  6 21:01:07 UTC 2017

Modified Files:
src/sys/dev/sdmmc: ld_sdmmc.c

Log Message:
Fix a race between ld_sdmmc_start and ld_sdmmc_dobio that could result in
tasks getting lost from the task queue. The symptom of this is a NULL
deref in ld_sdmmc_start since the code assumes that a task will always be
available from the pool.

This changes the code to use pcq(9) instead of a TAILQ to manage the free
task list.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/sdmmc/ld_sdmmc.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

2017-06-06 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Jun  6 22:38:52 UTC 2017

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

Log Message:
Fix a typo (or rather a remnant of an earlier intent).


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/bin/sh/sh.1

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



CVS commit: src/sys/dev/mii

2017-06-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Jun  7 03:08:44 UTC 2017

Modified Files:
src/sys/dev/mii: mii.h

Log Message:
 Fix typos.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/mii/mii.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/mii

2017-06-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Jun  7 03:21:31 UTC 2017

Modified Files:
src/sys/dev/mii: mii.h

Log Message:
- Add some bit definitions:
   - Unidirectional enable
   - Unidirectional ability
   - Extended Next Page
   - Receive Next Page Location Able
   - Received Next Page Storage Location
   - Data Link Layer Classification capability
   - Enable Physical Layer Classification
   - Invalid Class in PD Class
   - PSE Status bit definitions
- Sort registers
- Modify comments.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/mii/mii.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/mii

2017-06-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Jun  7 03:32:39 UTC 2017

Modified Files:
src/sys/dev/mii: mdio.h

Log Message:
Fix typo.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/mii/mdio.h

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-06-06 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Wed Jun  7 03:53:11 UTC 2017

Modified Files:
src/sys/net: if_vlan.c if_vlanvar.h

Log Message:
vlan(4) MP-ify. contributed by s-yamaguchi@IIJ, thanks.

XXX Pull-ups needed for netbsd-8 branch


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/net/if_vlan.c
cvs rdiff -u -r1.9 -r1.10 src/sys/net/if_vlanvar.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-06-06 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed Jun  7 04:44:17 UTC 2017

Modified Files:
src/bin/sh: eval.c input.c input.h nodetypes parser.c var.c var.h

Log Message:
An initial attempt at implementing LINENO to meet the specs.

Aside from one problem (not too hard to fix if it was ever needed) this version
does about as well as most other shell implementations when expanding
$((LINENO)) and better for ${LINENO} as it retains the "LINENO hack" for the
latter, and that is very accurate.

Unfortunately that means that ${LINENO} and $((LINENO)) do not always produce
the same value when used on the same line (a defect that other shells do not
share - aside from the FreeBSD sh as it is today, where only the LINENO hack
exists and so (like for us before this commit) $((LINENO)) is always either
0, or at least whatever value was last set, perhaps by
LINENO=${LINENO}
which does actually work ... for that one line...)

This could be corrected by simply removing the LINENO hack (look for the string
LINENO in parser.c) in which case ${LINENO} and $((LINENO)) would give the
same (not perfectly accurate) values, as do most other shells.

POSIX requires that LINENO be set before each command, and this implementation
does that fairly literally - except that we only bother before the commands
which actually expand words (for, case and simple commands).   Unfortunately
this forgot that expansions also occur in redirects, and the other compound
commands can also have redirects, so if a redirect on one of the other compound
commands wants to use the value of $((LINENO)) as a part of a generated file
name, then it will get an incorrect value.  This is the "one problem" above.
(Because the LINENO hack is still enabled, using ${LINENO} works.)

This could be fixed, but as this version of the LINENO implementation is just
for reference purposes (it will be superseded within minutes by a better one)
I won't bother.  However should anyone else decide that this is a better choice
(it is probably a smaller implementation, in terms of code & data space then
the replacement, but also I would expect, slower, and definitely less accurate)
this defect is something to bear in mind, and fix.

This version retains the *BSD historical practice that line numbers in functions
(all functions) count from 1 from the start of the function, and elsewhere,
start from 1 from where the shell started reading the input file/stream in
question.  In an "eval" expression the line number starts at the line of the
"eval" (and then increases if the input is a multi-line string).

Note: this version is not documented (beyond as much as LINENO was before)
hence this slightly longer than usual commit message.


To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/bin/sh/eval.c
cvs rdiff -u -r1.56 -r1.57 src/bin/sh/input.c
cvs rdiff -u -r1.18 -r1.19 src/bin/sh/input.h
cvs rdiff -u -r1.15 -r1.16 src/bin/sh/nodetypes
cvs rdiff -u -r1.132 -r1.133 src/bin/sh/parser.c
cvs rdiff -u -r1.55 -r1.56 src/bin/sh/var.c
cvs rdiff -u -r1.28 -r1.29 src/bin/sh/var.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-06-06 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed Jun  7 05:08:32 UTC 2017

Modified Files:
src/bin/sh: arith_token.c arith_tokens.h arithmetic.c arithmetic.h
eval.c exec.c exec.h expand.c expand.h input.c jobs.c nodetypes
option.list parser.c parser.h sh.1 show.c syntax.c syntax.h var.c
var.h

Log Message:
A better LINENO implementation.   This version deletes (well, #if 0's out)
the LINENO hack, and uses the LINENO var for both ${LINENO} and $((LINENO)).
(Code to invert the LINENO hack when required, like when de-compiling the
execution tree to provide the "jobs" command strings, is still included,
that can be deleted when the LINENO hack is completely removed - look for
refs to VSLINENO throughout the code.  The var funclinno in parser.c can
also be removed, it is used only for the LINENO hack.)

This version produces accurate results: $((LINENO)) was made as accurate
as the LINENO hack made ${LINENO} which is very good.  That's why the
LINENO hack is not yet completely removed, so it can be easily re-enabled.
If you can tell the difference when it is in use, or not in use, then
something has broken (or I managed to miss a case somewhere.)

The way that LINENO works is documented in its own (new) section in the
man page, so nothing more about that, or the new options, etc, here.

This version introduces the possibility of having a "reference" function
associated with a variable, which gets called whenever the value of the
variable is required (that's what implements LINENO).  There is just
one function pointer however, so any particular variable gets at most
one of the set function (as used for PATH, etc) or the reference function.
The VFUNCREF bit in the var flags indicates which func the variable in
question uses (if any - the func ptr, as before, can be NULL).

I would not call the results of this perfect yet, but it is close.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/bin/sh/arith_token.c
cvs rdiff -u -r1.1 -r1.2 src/bin/sh/arith_tokens.h src/bin/sh/arithmetic.h
cvs rdiff -u -r1.2 -r1.3 src/bin/sh/arithmetic.c src/bin/sh/option.list
cvs rdiff -u -r1.142 -r1.143 src/bin/sh/eval.c
cvs rdiff -u -r1.48 -r1.49 src/bin/sh/exec.c
cvs rdiff -u -r1.25 -r1.26 src/bin/sh/exec.h
cvs rdiff -u -r1.112 -r1.113 src/bin/sh/expand.c
cvs rdiff -u -r1.22 -r1.23 src/bin/sh/expand.h
cvs rdiff -u -r1.57 -r1.58 src/bin/sh/input.c
cvs rdiff -u -r1.85 -r1.86 src/bin/sh/jobs.c
cvs rdiff -u -r1.16 -r1.17 src/bin/sh/nodetypes
cvs rdiff -u -r1.133 -r1.134 src/bin/sh/parser.c
cvs rdiff -u -r1.21 -r1.22 src/bin/sh/parser.h
cvs rdiff -u -r1.148 -r1.149 src/bin/sh/sh.1
cvs rdiff -u -r1.42 -r1.43 src/bin/sh/show.c
cvs rdiff -u -r1.3 -r1.4 src/bin/sh/syntax.c
cvs rdiff -u -r1.7 -r1.8 src/bin/sh/syntax.h
cvs rdiff -u -r1.56 -r1.57 src/bin/sh/var.c
cvs rdiff -u -r1.29 -r1.30 src/bin/sh/var.h

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

2017-06-06 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Wed Jun  7 05:26:19 UTC 2017

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

Log Message:
s/filesystem/file system/

Thanks to Thomas for pointing out that in NetBSD man pages we try to use the 
convention of writing it
as "file system".


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 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/sys/dev/pci

2017-06-06 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Jun  7 05:30:49 UTC 2017

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

Log Message:
 Fix to print the following bit fields correctly.
  -  Supported Link Speeds Vector in LCAP2
  -  Lower SKP OS Generation Supported Speed Vector  in LCAP2
  -  Lower SKP OS Reception Supported Speed Vector in LCAP2
  -  Enable Lower SKP OS Generation Vector in LCTL3

Note that the above bitfields start from 0 and the follwing bitfields start
from 1:
  -  Maximum Link Speed in LCAP
  -  Current Link Speed in LCSR
  -  Target Link Speed in LCSR2


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