Commit Graph

270659 Commits

Author SHA1 Message Date
msaitoh 53950d8632 All of snd_wnd, snd_cwnd and snd_ssthresh in stuct tcpcb are u_long,
so use u_long and ulmin() instead of u_int and uimin(). Found by lgtm bot.

XXX TCP's sequence number is uint32_t, so it might be good to change some
entries in struct tcpcb to uint32_t instead of u_long. FreeBSD did it.
2019-10-09 05:29:18 +00:00
christos 916f96072a regen 2019-10-09 01:43:35 +00:00
christos b0424b9dde - cast through void * for rump
- don't generate bogus filenames /dev/null.bottom etc.
2019-10-09 01:43:00 +00:00
christos 7ea1cb15c2 the cast police is looking for me. 2019-10-09 01:18:55 +00:00
bad 689f938f30 Add sun8i-h3-nanopi-duo2.dts and sun8i-h3-nanopi-r1.dts.
The former is untested.
2019-10-08 23:03:01 +00:00
bad e7368cc71e Cherry pick a few changes from the armbian u-boot patch.
Makes my NanoPi R1 boot reliably.
From https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/add-nano+pi-r1-and-duo2.patch
2019-10-08 23:00:36 +00:00
bad 6e8765caf8 Add sun8i-h3-nanopi-r1.dts and sun8i-h3-nanopi-duo2.dts.
From https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/xxx-add-nanopi-r1-and-duo2.patch
2019-10-08 22:55:58 +00:00
kardel 5f6a8366d7 enable FDT direct configuration.
remove address test as the i2c address can be changed on this device.
2019-10-08 21:16:11 +00:00
christos bfd64f2ac7 grow the buffer. 2019-10-08 20:02:44 +00:00
christos cdd1ab83dc remove useless packed attributes 2019-10-08 19:38:38 +00:00
christos 39fd362275 use strlcpy (the buffer is already zeroed) 2019-10-08 19:38:27 +00:00
christos 3df2b62655 remore error(1) comment 2019-10-08 19:21:40 +00:00
christos 991f62167b Change strncpy to either memcpy (when we know the len), or strlcpy (when
we used to NUL terminate explicitly.
2019-10-08 19:17:57 +00:00
maxv b16b0b556b No I/O ports for TPM-ISA, only MMIO, so remove commented-out options. 2019-10-08 18:50:44 +00:00
christos bfdd69f658 -Wstringop-truncation is only gcc. 2019-10-08 18:50:34 +00:00
christos 5d573fff76 grow the buffer a little. 2019-10-08 18:47:10 +00:00
maxv 066833e6eb Improvements in tpm(4):
- Remove interrupt support, do polling only, avoids unnecessary trouble.
 - Simplify a few things.
 - Fix the suspend function, the SaveState command is 0x98, not 0x9C.
 - Make the driver MP-safe.
 - Sync the man page with reality.
2019-10-08 18:43:02 +00:00
kamil f3a317a980 Enhance reliability of ptrace(2) in a debuggee with multiple LWPs
Stop competing between threads which one emits event signal quicker and
overwriting the signal from another thread.

This fixes missed in action signals.

NetBSD truss can now report reliably all TRAP_SCE/SCX/etc events without
reports of missed ones.

his was one of the reasons why debuggee with multiple threads misbehaved
under a debugger.


This change is v.2 of the previously reverted commit for the same fix.

This version contains recovery path that stopps triggering event SIGTRAP
for a detached debugger.
2019-10-08 18:02:46 +00:00
msaitoh 73157c453d Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-10-08 17:41:04 +00:00
msaitoh 011d94aeb6 Copy vge_clrwol() from FreeBSD and call it in vge_attach() to recover from
powerdown mode. Fixes PR kern/41525 reported by Aran Clauson.
2019-10-08 14:26:27 +00:00
uwe b55215e45d Convert ttynodisc() to devenodev and ttyerr*() to ttyenodev too.
Missed in previous.  Of these - only ttyerrio() is used, the rest are
just courtesy "for those defining their own line disciplines".  So may
be we should bring back ttyerrinput() too.
2019-10-08 12:49:56 +00:00
kamil 60274cdd77 Correct the same expression on both sides of |
PR sw-bug/54610 by David Binderman
2019-10-08 12:29:57 +00:00
mrg a2fd483377 steal an idea from uwe@ and implement gcc-8 function type cast
friendly methods for sys/conf.h that needs it.

one alias per return type and first function are are needed,
though they can be stubbed to existing code.  the only cost is
the symbol itself, the codegen it the same.
2019-10-08 07:33:14 +00:00
mlelstv d164e220a0 Merge more changes from FreeBSD/OpenBSD. My two run(4) devices now work
again.
2019-10-08 07:30:58 +00:00
mrg 290d060515 remove unused ttyerrinput. 2019-10-08 07:16:25 +00:00
kre e291c05efd Remove a (completely harmless) duplicate assignment introduced in a
code merge from FreeBSD in 2017.   NFC.

Pointed out by Roland Illig.
2019-10-08 03:53:57 +00:00
kre 7dca2b7edd Open code the validity test & copy of the character class name in
a bracket expression in a pattern (ie: [[:THISNAME:]]).   Previously
the code used strspn() to look for invalid chars in the name, and
then memcpy(), now we do the test and copy a character at a time.
This might, or might not, be faster, but it now correctly handles
\ quoted characters in the name (' and " quoting were already
dealt with, \ was too in an earlier version, but when the \ handling
changes were made, this piece of code broke).

Not exactly a vital bug fix (who writes [[:\alpha:]] or similar?)
but it should work correctly regardless of how obscure the usage is.

Problem noted by Harald van Dijk

XXX pullup -9
2019-10-08 03:52:44 +00:00
msaitoh 12b4500b7d Fix AMD Fn8000_0001f %eax bit 0's name. 2019-10-08 03:16:21 +00:00
kre 26f26f407d Note tzdata2019c 2019-10-08 02:47:07 +00:00
kre 332037c027 Merge tzdata2019c 2019-10-08 02:44:35 +00:00
kre 96989b5eda Import tzdata2019c from ftp://ftp.iana.org/tz/releases/tzdata2019c.tar.gz
Summary of changes in tzdata2019c (2019-09-11 08:59:48 -0700):
	Fiji observes DST from 2019-11-10 to 2020-01-12
	Norfolk Island starts observing Australian-style DST

	Plus historic corrections to time in Turkey (1940-85)
	South Korea (1948-51) Detroit (US) (1967-8), Perry County
	(Indiana, US) (pre 1970) Edmonton (CA) (1967, 1969)
	Vancouver (CA) (1946), Vienna (AT) (1946), Kaliningrad (1945-6).
	Louisville (US) (1946-50).  Brussles (BE) (1892).
	Hong Kong Winter Time (1941) now listed as being "DST".

Summary of changes in tzdata2019b (2019-07-01 00:09:53 -0700):

	Brazil no longer observes DST
	Predictions for Morocco extended to 2087.
	Panestine (March 2019) time zone change date corrected
	(and guesses for future transitions revised).

	Historic updates:  Honk Kong (1941 - 1947), Italy (1866).
2019-10-08 02:43:56 +00:00
kamil 815185c6dc Fix typo in a comment 2019-10-07 21:32:51 +00:00
christos ea4f9899c6 print the name of the disk causing the error. 2019-10-07 20:56:07 +00:00
wiz c46f45b0b3 Fix date. Add RCS Id. 2019-10-07 14:29:28 +00:00
wiz c6844e3115 New sentence, new line. 2019-10-07 14:29:21 +00:00
martin 382200828d Fix argument to fdtbus_get_reg, from Jared. 2019-10-07 13:54:59 +00:00
msaitoh d3ce678f8d Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by
Tomokazu HARADA and patch provided by Andrius V.
2019-10-07 11:53:40 +00:00
skrll dd2790e42c Avoid a warning 2019-10-07 09:37:16 +00:00
christos 1e2ebaf66a Enable the backtracking extension, otherwise code does not compile with YYDEBUG. 2019-10-07 02:56:33 +00:00
christos eefc87ec99 new yacc 2019-10-07 00:27:21 +00:00
christos caea1f9a8b merge conflicts 2019-10-06 23:29:42 +00:00
christos c0269b9b8d 2019-06-17 Thomas E. Dickey <dickey@invisible-island.net>
* test/btyacc/big_b.error, test/btyacc/big_l.error, test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/btyacc/nostdin.error, test/yacc/big_b.error, test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error, test/yacc/nostdin.error:
	regen

	* test/run_test.sh: test "-H" rather than "-D"

2019-06-16  Thomas E. Dickey  <dickey@invisible-island.net>

	* main.c, yacc.1:
	change "-D" option to "-H" (discussion with Ethan Sommer)

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

	* test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c:
	RCS_BASE

	* test/run_test.sh: in test_defines, save the ".c" file too

	* test/yacc/defines3.calc.c, test/yacc/defines2.calc.c, test/yacc/defines1.calc.c:
	RCS_BASE

	* test/run_test.sh:
	output of test_defines should be a header ".h", not ".c"

	* test/btyacc/defines1.calc.h, test/btyacc/defines1.error, test/btyacc/defines1.output, test/btyacc/defines2.calc.h, test/btyacc/defines2.error, test/btyacc/defines2.output, test/btyacc/defines3.calc.h, test/btyacc/defines3.error, test/btyacc/defines3.output:
	RCS_BASE

	* main.c: however, a subsequent -d cancels -D

	* test/yacc/defines1.calc.h, test/yacc/defines3.calc.h: RCS_BASE

	* main.c: -D option implies -d

	* test/yacc/defines1.error, test/yacc/defines1.output, test/yacc/defines2.calc.h, test/yacc/defines2.error, test/yacc/defines2.output, test/yacc/defines3.error, test/yacc/defines3.output:
	RCS_BASE

	* yacc.1: align macro definitions with my other manpages

	* test/run_test.sh: add test for -D after -d or -b options

	* test/btyacc/stdin1.calc.c, test/btyacc/stdin1.error, test/btyacc/stdin1.output, test/btyacc/stdin2.calc.c, test/btyacc/stdin2.error, test/btyacc/stdin2.output:
	RCS_BASE

	* test/btyacc/big_b.error, test/btyacc/big_b.output, test/btyacc/big_l.error, test/btyacc/big_l.output, test/btyacc/help.error, test/btyacc/help.output, test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output, test/btyacc/no_b_opt1.error, test/btyacc/no_b_opt1.output, test/btyacc/no_code_c.error, test/btyacc/no_code_c.output, test/btyacc/no_defines.error, test/btyacc/no_defines.output, test/btyacc/no_graph.error, test/btyacc/no_graph.output, test/btyacc/no_include.error, test/btyacc/no_include.output, test/btyacc/no_opts.error, test/btyacc/no_opts.output, test/btyacc/no_output.error, test/btyacc/no_output.output, test/btyacc/no_output1.error, test/btyacc/no_output1.output, test/btyacc/no_output2.error, test/btyacc/no_output2.output, test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output, test/btyacc/no_p_opt1.error, test/btyacc/no_p_opt1.output, test/btyacc/no_verbose.error, test/btyacc/no_verbose.output, test/btyacc/nostdin.error, test/btyacc/nostdin.output, test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error, test/yacc/big_l.output, test/yacc/help.error, test/yacc/help.output, test/yacc/no_b_opt.error, test/yacc/no_b_opt.output, test/yacc/no_b_opt1.error, test/yacc/no_b_opt1.output, test/yacc/no_code_c.error, test/yacc/no_code_c.output, test/yacc/no_defines.error, test/yacc/no_defines.output, test/yacc/no_graph.error, test/yacc/no_graph.output, test/yacc/no_include.error, test/yacc/no_include.output, test/yacc/no_opts.error, test/yacc/no_opts.output, test/yacc/no_output.error, test/yacc/no_output.output, test/yacc/no_output1.error, test/yacc/no_output1.output, test/yacc/no_output2.error, test/yacc/no_output2.output, test/yacc/no_p_opt.error, test/yacc/no_p_opt.output, test/yacc/no_p_opt1.error, test/yacc/no_p_opt1.output, test/yacc/no_verbose.error, test/yacc/no_verbose.output, test/yacc/nostdin.error, test/yacc/nostdin.output:
	regen

	* test/run_test.sh:
	add a test for stdin "-" vs end-options "--", and correct a redirection
	of stderr in test_flags

	* test/yacc/stdin2.output, test/yacc/stdin2.calc.c, test/yacc/stdin1.calc.c, test/yacc/stdin1.error, test/yacc/stdin1.output, test/yacc/stdin2.error:
	RCS_BASE

	* test/btyacc/big_b.output, test/btyacc/big_l.output, test/btyacc/help.output, test/btyacc/no_b_opt.output, test/btyacc/no_output2.output, test/btyacc/no_p_opt.output, test/btyacc/nostdin.output, test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output, test/yacc/no_b_opt.output, test/yacc/no_output2.output, test/yacc/no_p_opt.output, test/yacc/nostdin.output:
	regen

	* main.c: add -D option, to specify filename vs y.tab.h for -d

	* defs.h: add dflag2, for -D option

	* yacc.1: document -D option

	* config_h.in: updated with autoheader-252

	* configure: regen

	* package/debian/copyright: bump

	* aclocal.m4: add CF_GETOPT_HEADER

	* aclocal.m4: Improved autoconf macros:
	+ CF_CC_ENV_FLAGS
		putting preprocessor flags in CFLAGS also is a nuisance, which can be
		addressed in the same way.
	+ CF_GCC_WARNINGS
		factor out workaround for XTSTRINGDEFINES as CF_CONST_X_STRING
	+ CF_GNU_SOURCE
		The check for _DEFAULT_SOURCE should apply to "recent" Cygwin (since early 2016),
		and except for "NEWLIB" vs "GLIBC" in the test, acts the same if I pretend
		that "newlib" is the GNU C library.  Without this, the check falls through
		to the _XOPEN_SOURCE test, which breaks the pseudoterminal checks for xterm.
	+ CF_POSIX_C_SOURCE
		add/use CF_POSIX_VISIBLE
	+ CF_TRY_XOPEN_SOURCE
		use CF_APPEND_TEXT
	+ CF_WITH_MAN2HTML
		use sed to work around non-POSIX tail utility
	+ CF_XOPEN_SOURCE
		use CF_APPEND_TEXT
		add/use CF_POSIX_VISIBLE

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

2019-06-10  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.guess: 2019-06-10

2019-05-22  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.sub: 2019-05-22
2019-10-06 23:19:26 +00:00
sevan d93ed198c6 new byacc 2019-10-06 20:27:31 +00:00
sevan 64523049ba Add SICP
https://twitter.com/mit_csail/status/1164226910035087360
2019-10-06 19:53:04 +00:00
gutteridge 74401bb7d1 Add a note about pre-release ISO installers not being bootable. Relates
to PR port-macppc/54537. (This needs to also be placed in a more
prominent location. I've added it next to the explanation of the error
message for starters.)
2019-10-06 17:56:45 +00:00
martin 6bac96dfb5 Regen 2019-10-06 17:23:05 +00:00
martin d0ba02edad Add a few TP-Link "Archer" wlan devices 2019-10-06 17:22:29 +00:00
uwe bc5cb90f91 Use .Bl -tag -width Fn. There's no such thing as -width compact
or, rather, there is, but the width specified is that of the word
"compact".
2019-10-06 17:21:28 +00:00
uwe 48eb05d281 Avoid using .Fn for XC_HIGHPRI_IPL as it looks inconsistent with
.Dv XC_HIGHPRI
2019-10-06 17:14:18 +00:00
uwe 7c1ff2f1ba Format (*func)(arg1, arg2) so that "func" too is formatted as an
argument (the incantation is, admittedly, rather baroque and kludgy).
2019-10-06 17:01:15 +00:00