Commit Graph

274044 Commits

Author SHA1 Message Date
kamil 920eeb12bb Document what does ping_block. 2020-02-06 22:52:25 +00:00
fox c0ad960a60 games/battlestar: Replace snprintf(3) with strlcpy(3) for better performance.
Reviewed by: kamil@
2020-02-06 22:09:43 +00:00
martin 6c253ac2a4 Only a single partition can ever have the "extend" flag (grow to available
size).
2020-02-06 20:17:04 +00:00
kre 8a62489758 Actually, the issue with bash (in previous) is more likely that the
SIGCHLD is blocked rather than ignored.   We want neither.   Make sure
SIGCHLD is unblocked as well as SIG_DFL.

XXX pullup -9
2020-02-06 20:08:28 +00:00
martin 04b0ec0dc6 Fix copy&pasto in previous - from kre. 2020-02-06 19:53:10 +00:00
riastradh aba4d3d701 Fix previous brainfart.
Don't use the uninitialized trng node as the root node -- derp.
Instead, use the root node as the root node, and initialize the trng
node here.
2020-02-06 19:52:09 +00:00
kre 0b0dde195c If we are invoked with SIGCHLD ignored, we fail badly, as we assume
that we can always wait(2) for our children, and an ignored SIGCHLD
prevents that.   Recent versions of bash can be convinced (due to a
bug most likely) to invoke us that way.   Always return SIGCHLD to
SIG_DFL during init - we already prevent scripts from fiddling it.

All ash derived shells apparently have this problem (observed by
Martijn Dekker, and notified on the bash-bug list).  Actual issue
diagnosed by Harald van Dijk (same list).
2020-02-06 19:51:59 +00:00
martin d767a2bd18 Make re-install sets also work for an explicit selected root wedge 2020-02-06 19:50:04 +00:00
martin 53cb08e207 Reformat a query to add an automatically detected swap partition
so it fits on narrow screens.
2020-02-06 19:41:57 +00:00
kamil 5f94716bd4 Stop including unused header <sys/poll.h> 2020-02-06 19:20:21 +00:00
martin 38baaacf51 PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.
2020-02-06 19:08:38 +00:00
martin 5dd26405c9 PR bin/54944: explicitly reject GPT protective MBRs. 2020-02-06 18:07:22 +00:00
martin 7cc1a7bbc8 PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab. 2020-02-06 16:28:10 +00:00
martin bc25142e5e Do not assum a partitioning scheme that supports innner partitions always
needs to actually have such partitions defined.
2020-02-06 15:08:04 +00:00
macallan a1c53e9088 sent PMF events when (un)blanking so things like lmu can turn their lights on
or off as well
2020-02-06 13:31:30 +00:00
skrll c34debfadc Add bcm2837-rpi-3-a-plus.dts to DTS. Requested by logix 2020-02-06 12:51:13 +00:00
skrll a1ea8d7a83 Sort DTS 2020-02-06 12:49:59 +00:00
uki 3c045c30bc Building X11 system packages by "build.sh syspkgs" 2020-02-06 12:36:38 +00:00
martin a534083a51 Add a few O_SEARCH tests, currently only run on FreeBSD.
Patch from Kyle Evans.
2020-02-06 12:18:06 +00:00
uki 52ffe2313c Fix incorrect package name in xcomp 2020-02-06 12:13:45 +00:00
martin c37ad2b6d5 Deal with partitioning schemes having no inner counterpart.
Avoid NULL derefs.
2020-02-06 11:55:18 +00:00
martin e25168ca3e Remove a bogus assert: when reading disklabel partitions and the outer
(MBR) partitioning has changed, but the changes have not yet been written
back to disk, we need to ignore the kernels idea of the disklabel and
instead continue with an empty one.
2020-02-06 11:46:35 +00:00
martin 8ef7426ad0 PR install/54934: always use -f on the installboot invocation. We come
here post-newfs (and maybe should have dd'd zeros to the start of the
disk before newfs instead).
2020-02-06 10:47:33 +00:00
martin 6588e96561 bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)
2020-02-06 10:42:06 +00:00
simonb 882a370dc0 Add support for specifying an alternate locate.updatedb config file. 2020-02-06 08:45:44 +00:00
thorpej 7cfe9d50f8 Ensure we don't call workqueue_enqueue() if the pluggable optics
handler is already pending.
2020-02-06 06:28:49 +00:00
macallan 0ab295fff6 listen to PMF events in order to turn off keyboard lights when the lid is
closed or the screen is blanked
2020-02-06 02:17:24 +00:00
mrg b494a3830e add MIDI sequencer device. now midiplay works on usb midi devices. 2020-02-06 01:37:46 +00:00
sjg ee757927d0 Fix meta_compat mode.
We need to call meta_job_output() from meta_compat_parent()
Also, the need for extra fds for meta mode only applies when
using filemon_ktrace.c.
Since we hope to see more interfaces like that, test for
USE_FILEMON_DEV being not defined.

Reviewed by: riastradh
2020-02-06 01:13:19 +00:00
rjs d36b8f2935 Match new dtb. 2020-02-06 00:32:07 +00:00
kamil 4f90136b3e Refactor signal9 and signal10 tests in t_ptrace_wait*
Remove signal9 and signal10. Reimplement the idea of these test in new
trace_thread_lwpexit_masked_sigtrap, trace_thread_lwpcreate_masked_sigtrap
and trace_thread_lwpcreate_and_exit_masked_sigtrap.

This removes 2 tests directly using low-level lwp APIs.
2020-02-05 23:43:18 +00:00
fox 19f84ebb48 games/battlestar: Fix the -Werror=restrict warning.
Replace strcpy(1) with the safer snprintf(3) which guarantees NULL
termination of strings.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-05 20:11:54 +00:00
fox bbacb4192b bin/csh: Fix the -Wclobber warning.
Mark the variable as volatile as it can be clobbered when a vfork occurs.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-05 20:06:17 +00:00
martin 6d0c22e236 PR misc/54940: do not combine O_SEARCH with O_RDWR, from Kyle Evans. 2020-02-05 17:13:24 +00:00
kre 92dfd40c67 Oops, the previous didn't do what was promised. Rather that ignoring
just "--" for exec & "." it ignored any first arg starting '-'.
Do it properly.
2020-02-05 14:56:25 +00:00
ryoon 2da2192d78 Remove trailing whiteapaces and tab 2020-02-05 14:56:04 +00:00
pgoyette 5448349461 Use ENOTTY as error for an unrecognized ioctl() code, rather than
"magic number" 1.


ok kamil@
2020-02-05 14:10:46 +00:00
kamil 9ecc7056f0 Import new example kernel module ping_block
Subbmitted by Nisarg Joshi.
2020-02-05 13:23:42 +00:00
martin 9ff9477c65 Fix if_stats access. 2020-02-05 13:08:19 +00:00
kamil 91719d9fbd Retire ifdef ERRORCHECK in pthread(3)
It is enabled unconditionally since 2003 and used only for rwlocks and
spinlocks.

LLVM sanitizers make assumptions that these checks are enabled always.
2020-02-05 11:05:10 +00:00
msaitoh 0263ce38fb Modify note in ixv_update_stats(). VF doesn't count errors by hardware. 2020-02-05 10:07:47 +00:00
msaitoh 4ce7e1d5a4 No functional change:
- s/vaule/value/ in comment.
 - whitespace fixes.
 - KNF.
2020-02-05 09:59:50 +00:00
msaitoh 07ee1dd971 No functional change:
- Fix typos.
 - Remove extra newline.
2020-02-05 09:47:16 +00:00
martin 43ee572233 PR misc/54939: fix file descriptor leak, patch from Kyle Evans. 2020-02-05 08:52:46 +00:00
skrll 0f0cfc5aa4 Trailing whitespace 2020-02-05 08:36:56 +00:00
skrll 58613969ea Adopt <net/if_stats.h> 2020-02-05 08:33:19 +00:00
skrll 224819bba8 Adopt <net/if_stats.h> 2020-02-05 08:22:23 +00:00
wiz d210ba75a0 Remove trailing whitespace. 2020-02-05 08:14:36 +00:00
msaitoh f380331f6a No functional change:
- Add debug printf()s.
 - Remove unused macros.
 - Remove extra newline.
2020-02-05 07:45:46 +00:00
skrll f50b445679 Fix the armv[67] memory attributes for uncached memory. Previously it was
mapped as strongly-ordered which meant that unaligned accesses would fault.

armv7_generic_bs_map now maps pages with PMAP_DEV which is treated as SO

bus_dma continues to use PMAP_NOCACHE as appropriate, but this now get
mapped to the correct memory attribute bits for armv[67]

DEVMAP_ENTRY usees a new flag PTE_DEV.

The workaround for the unaligned access faults is now removed.

XXX Other armv[67] boards bus_space implementations should be checked.
XXX There is scope to reduce the difference to aarch64
2020-02-05 07:37:35 +00:00