Commit Graph

270634 Commits

Author SHA1 Message Date
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
sevan cd8c140f3a AWDL, BLE, another NAN 2019-10-06 15:17:39 +00:00
uwe edcef67ec2 xc_barrier - convenience function to xc_broadcast() a nop.
Make the intent more clear and also avoid a bunch of (xcfunc_t)nullop
casts that gcc 8 -Wcast-function-type is not happy about.
2019-10-06 15:11:16 +00:00
jmcneill 993288ab5c Change sysctl to be named after the first CPU in the DVFS domain.
old: machdep.cpu.frequency.*, machdep.cpufreqdt4.frequency.*
  new: machdep.cpufreq.cpu0.*, machdep.cpufreq.cpu4.*
2019-10-06 11:28:24 +00:00
skrll 5718b48b2f Disable tegradrm for now as it causes random crashes 2019-10-06 07:36:46 +00:00
mlelstv 7189ee3303 Use multiple cache lines for fd_dfdfile elements when necessary. 2019-10-06 07:15:34 +00:00
mlelstv bf4452a016 Don't attach disks with sector sizes we cannot handle. 2019-10-06 06:10:44 +00:00
mlelstv cd01aa02e1 Defer to synchronous I/O before the aiodone work queue exists. 2019-10-06 05:48:00 +00:00
uwe 51ae856229 icmp6_notify_error - fix ctlfunc typedef to match pr_ctlinput,
drop the cast that is no longer necessary.
2019-10-06 02:30:58 +00:00
uwe 9d5b26a9e3 Define cpu_xc_* functions with unused second argument to make them
conform to xcfunc_t callback typedef (-Wcast-function-type).
Same object code is generated.
2019-10-06 02:04:26 +00:00
mrg ad0c4b353e use memcpy() for non C-strings. 2019-10-06 01:05:36 +00:00
uwe 9c9d72f078 Get rid of bogus ADW_CALLBACK typedef. Use the real callback types
directly.  Since we no longer need the casting dance we can get rid of
ADW_ISR_CALLBACK and ADW_ASYNC_CALLBACK typedefs too.  The diff for
adwlib.h looks larger than it is b/c we need to reorder structure
definitions for the proper callback declaration.  Found by gcc8
-Wcast-function-type.
2019-10-06 01:04:49 +00:00
uwe 5da7fd86cc Get rid of bogus ASC_CALLBACK typedef. Use the real callback type
(which is almost ASC_ISR_CALLBACK).  Since we no longer need the
casting dance we can get rid of the temporary variables, and since we
don't need the temporary variables we don't need the ASC_ISR_CALLBACK
typedef either.  Found by gcc8 -Wcast-function-type.
2019-10-06 00:48:19 +00:00
mrg 4df8bc966e sprintf() -> snprintf(), and adjust a buffer size to avoid any
potential for overflow.
2019-10-06 00:27:50 +00:00
mrg 31fd77d90f remove ubsan_handlers_cxx.cc from sources. shouldn't be used with gcc. 2019-10-06 00:15:22 +00:00
mrg 056b9b215b remove, not comment, the partman.c option 2019-10-06 00:07:11 +00:00
mrg b6c33b696c avoid calling snprintf/strlcat with an input parameter the same
as the output.  from martin@.  fixes gcc 8 restrict warnings.
2019-10-06 00:05:10 +00:00
mrg cfe79b5b48 use memcpy() for strings that are not C strings.
destinations are already sufficiently sized and nul terminated.
2019-10-05 23:35:57 +00:00
mrg c8bf876ced expand the internal consistency checks in truedirec() to avoid
fallthrough cases.  now if direction turns up wrong (it should
not, but this code can't tell that, and convert it to an enum
that would also fix this, is more effort than this is worth.
2019-10-05 23:34:14 +00:00
mrg 91d03f50e2 use target size in a couple of strncpy() calls:
- load_hash() has already zeroed the structure so final nul is there.
- print_ipflog() copied final byte that was then nul'd.
2019-10-05 23:32:20 +00:00
mrg 630723670f memcpy->strncpy, and avoid copying beyond the static string length
into potentially unmapped regions.
2019-10-05 23:30:22 +00:00
mrg 49e1839354 remove __packed attribute from struct ieee80211_radiotap_header
and all the structures that include it.

this should not change anything while avoiding packed vs alignment
warnings from GCC 8, and potentially pessimised code generation
due to the packed marker (there are no misaligned members, just
that the per-device parts may end unaligned.)

all consumers of these members are done from the properly aligned
packet members directly, or, as a union with a 64 byte member,
also properly aligned.  codegen didn't appear to change, except
for the definition of sizeof(struct driver_[rt]x_radiotap_header)
in debug info, which is not directly used anywhere.
2019-10-05 23:27:20 +00:00
mrg 21f80204df list the PCI ID range for new nvidia TU117 and TU116.
adjust the check to simply be >= 0x1580, which is the
first pciid not support.

should fix PR#54600.
2019-10-05 22:37:49 +00:00
sevan 0e74c10957 No need to empose the script to be runnable during boot time, it prevents the
script from wroking if the system is booted into single user mode & then
moved onto multi-user mode.

Reported by <pgoyette> for NPF but the issue is there in PF too.
2019-10-05 22:21:29 +00:00
mrg 662908cac2 sprintf->snprintf 2019-10-05 22:06:29 +00:00
christos 6b7001662d Add tests for escape sequences. 2019-10-05 20:24:16 +00:00