CVS commit: src/usr.bin/progress

2021-01-07 Thread Luke Mewburn
Module Name:src
Committed By:   lukem
Date:   Thu Jan  7 12:02:52 UTC 2021

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

Log Message:
progress: handle EINTR in writes. PR/55914


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/progress/progress.c

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



CVS commit: src/sys/external/bsd/dwc2

2021-01-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan  7 13:25:51 UTC 2021

Modified Files:
src/sys/external/bsd/dwc2: dwc2.c

Log Message:
More converstion from usbd_status to int for function error reporting.
This time it's the turn of usb_allocmem.

(missed in previous commit)


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/external/bsd/dwc2/dwc2.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/cdb

2021-01-07 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan  7 14:41:50 UTC 2021

Modified Files:
src/lib/libc/cdb: cdbw.c

Log Message:
Optimize CPU and memory use of cdbw(3)

Reduce memory footprint and processing time by dropping the vertex parts
of the edges kept during the peeling. Hook up the
division-by-multiplication logic to help older platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/cdb/cdbw.c

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



CVS commit: src

2021-01-07 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan  7 16:03:08 UTC 2021

Modified Files:
src/tests/usr.bin/nbperf: t_nbperf.sh
src/usr.bin/nbperf: graph2.c graph2.h graph3.c nbperf-bdz.c
nbperf-chm.c nbperf-chm3.c nbperf.1 nbperf.c nbperf.h
Removed Files:
src/usr.bin/nbperf: graph3.h

Log Message:
Optimize nbperf

- add fudge mode which gives a slightly slower hash function, but works
  almost always in the first iteration by avoiding degenerate edges
- avoid keeping incidence lists around reducing the memory foot print by
  30%
- split edge processing from hashing as in the non-fudge case it is a
  reasonable costly part that often gets thrown away
- merge graph2 and graph3 routines now that they are mostly the same


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/nbperf/t_nbperf.sh
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/nbperf/graph2.c \
src/usr.bin/nbperf/graph3.c src/usr.bin/nbperf/nbperf.h
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/nbperf/graph2.h \
src/usr.bin/nbperf/nbperf-chm3.c
cvs rdiff -u -r1.1 -r0 src/usr.bin/nbperf/graph3.h
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/nbperf/nbperf-bdz.c
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/nbperf/nbperf-chm.c
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/nbperf/nbperf.1
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/nbperf/nbperf.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/mips/mips

2021-01-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan  7 17:28:20 UTC 2021

Modified Files:
src/sys/arch/mips/mips: bus_dma.c

Log Message:
Fix build for non-_MIPS_NEED_BUS_DMA_BOUNCE platforms


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/mips/mips/bus_dma.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/make/unit-tests

2021-01-07 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Thu Jan  7 18:11:23 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: jobs-error-nested-make.exp
jobs-error-nested-make.mk

Log Message:
Remove .MAKE from nested target which is not a sub-make

This does not fix the issue, just makes the unit-test more accurate.

PR: 55578
Reviewed by: rillig


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/usr.bin/make/unit-tests/jobs-error-nested-make.exp \
src/usr.bin/make/unit-tests/jobs-error-nested-make.mk

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-07 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Jan  7 18:37:41 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_006.c msg_006.exp msg_007.c
msg_007.exp msg_008.c msg_008.exp msg_009.c msg_009.exp msg_010.c
msg_010.exp msg_011.c msg_011.exp msg_180.c msg_180.exp msg_221.c
msg_221.exp

Log Message:
lint: add tests for some messages


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_006.c \
src/tests/usr.bin/xlint/lint1/msg_006.exp \
src/tests/usr.bin/xlint/lint1/msg_007.c \
src/tests/usr.bin/xlint/lint1/msg_007.exp \
src/tests/usr.bin/xlint/lint1/msg_008.c \
src/tests/usr.bin/xlint/lint1/msg_008.exp \
src/tests/usr.bin/xlint/lint1/msg_009.c \
src/tests/usr.bin/xlint/lint1/msg_009.exp \
src/tests/usr.bin/xlint/lint1/msg_010.c \
src/tests/usr.bin/xlint/lint1/msg_010.exp \
src/tests/usr.bin/xlint/lint1/msg_011.c \
src/tests/usr.bin/xlint/lint1/msg_011.exp \
src/tests/usr.bin/xlint/lint1/msg_180.c \
src/tests/usr.bin/xlint/lint1/msg_180.exp \
src/tests/usr.bin/xlint/lint1/msg_221.c \
src/tests/usr.bin/xlint/lint1/msg_221.exp

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-07 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Thu Jan  7 19:11:58 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_011.c msg_011.exp

Log Message:
lint: revert test for message 11

That test only produced other messages, but not message 11.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_011.c \
src/tests/usr.bin/xlint/lint1/msg_011.exp

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



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

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jan  7 19:49:13 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): small mdoc fixes to improve PostScript output.

The length/scale example at the beginning is not all literal.
Fix remaining "quoted" words to use .Dq
Fix a few small inline code snippets to be literal.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/bc/dist/bc.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/bc/dist

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jan  7 20:12:59 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Misc fixes in the DIFFERENCES section.

Make "last" an item, as intended.
Make operators literal.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/bc/dist/bc.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/bc/dist

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jan  7 20:22:34 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Indent displays with code examples.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/bc/dist/bc.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/bc/dist

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jan  7 20:37:33 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Use .Fn and .Fa for functions and their arguments.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/bc/dist/bc.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/bc/dist

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jan  7 21:21:35 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Use more .Ql, misc related fixes.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/bc/dist/bc.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/bc/dist

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jan  7 23:57:25 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Replace one last missed \f with semantic markup.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/bc/dist/bc.1

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

2021-01-07 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Jan  8 00:13:21 UTC 2021

Modified Files:
src/sys/arch/arm/amlogic: meson_thermal.c

Log Message:
shut up a clang warning about snprintf() called with a variable as format
string
NFCI


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/amlogic/meson_thermal.c

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



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

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri Jan  8 01:17:03 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Prettify PostScript output some more.

Don't set BNF in all bold .Ic, instead use .Ar for "expr" and "var" so
that only the literal stuff that is being defined is bold.  Arrange
for subscripts to actually be subscripted in PostScript.  Make sure
meta-syntactic [] are set differently than literal (). Etc...


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/bc/dist/bc.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/bc/dist

2021-01-07 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri Jan  8 01:17:55 UTC 2021

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
bc(1): Consistently use "parentheses" in plural.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/bc/dist/bc.1

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



CVS commit: src

2021-01-07 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri Jan  8 01:40:03 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_204.c msg_204.exp
src/usr.bin/xlint/lint1: func.c

Log Message:
lint: demonstrate wrong message 204 (since 2020-12-31)

In func.c 1.39 from 2020-12-31 18:51:28, the check that controlling
expressions are indeed scalar was extended from while and for loops to
if statements as well.  It just seemed to have been an oversight.

This revealed a bug in lint, which didn't accept the following valid
code snippet from lib/libpthread/pthread.c:634:

void _malloc_thread_cleanup(void) __weak;
...
if (_malloc_thread_cleanup)
_malloc_thread_cleanup();

Testing a function (instead of a function pointer) for truthiness is
probably rare since most functions are defined unconditionally.  For
weak functions it comes in handy though.

Clang-Tidy suggests to prefix the function with '&' to silence its
warning.  Doing that revealed a non-obvious behavior in build_ampersand,
which does not add the AMPER node to the expression even though it is
clearly mentioned in the code.  That is left for further research.

Once the original bug is fixed, it probably doesn't matter whether the
AMPER is discarded or retained since check_controlling_expression would
add it back.  There's probably a reason though to sometimes discard the
AMPER and sometimes retain it.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_204.c \
src/tests/usr.bin/xlint/lint1/msg_204.exp
cvs rdiff -u -r1.51 -r1.52 src/usr.bin/xlint/lint1/func.c

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



CVS commit: src

2021-01-07 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri Jan  8 02:11:45 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_fold_test.c d_fold_test.exp msg_204.c
msg_204.exp
src/usr.bin/xlint/lint1: func.c

Log Message:
lint: fix function as controlling expression (since 2020-12-31)

It's perfectly valid to directly use a function name as the controlling
expression of an if statement.  That function name is converted
implicitly to a pointer to that function, and that is a scalar value
then.

Spotted by christos in lib/libpthread/pthread.c:634.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/d_fold_test.c \
src/tests/usr.bin/xlint/lint1/d_fold_test.exp
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_204.c \
src/tests/usr.bin/xlint/lint1/msg_204.exp
cvs rdiff -u -r1.52 -r1.53 src/usr.bin/xlint/lint1/func.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/make

2021-01-07 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Fri Jan  8 04:36:45 UTC 2021

Modified Files:
src/usr.bin/make: job.c

Log Message:
Set wantToken when none available.

PR: 53285
Reviewed by: gson


To generate a diff of this commit:
cvs rdiff -u -r1.392 -r1.393 src/usr.bin/make/job.c

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