Sascha Wildner [Tue, 30 Jun 2020 18:03:30 +0000 (20:03 +0200)]
<sys/sockio.h>: Sort SIOC[SG]DRVSPEC better.
Aaron LI [Tue, 30 Jun 2020 15:53:55 +0000 (23:53 +0800)]
make_autoclone_dev.9: Improve some description and markups
Sascha Wildner [Tue, 30 Jun 2020 12:31:23 +0000 (14:31 +0200)]
<sys/cdefs.h>: FWIW, add __unreachable from FreeBSD.
Sascha Wildner [Sun, 28 Jun 2020 21:06:17 +0000 (23:06 +0200)]
Remove bsd.doc.mk via 'make upgrade'.
Krzysztof Piecuch [Sun, 28 Jun 2020 10:35:29 +0000 (10:35 +0000)]
indent(1): fix building with -fno-common
Taken-from: freebsd/freebsd@
e08f7da38459b29b19fd5766eb68864e203a1c93
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sun, 28 Jun 2020 09:23:38 +0000 (11:23 +0200)]
sysvipcd(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sun, 28 Jun 2020 09:23:14 +0000 (11:23 +0200)]
pfctl(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sun, 28 Jun 2020 09:22:42 +0000 (11:22 +0200)]
mfiutil(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
This removes some redundant code.
Taken-from: FreeBSD
Sascha Wildner [Sun, 28 Jun 2020 09:22:04 +0000 (11:22 +0200)]
installer(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sun, 28 Jun 2020 09:21:26 +0000 (11:21 +0200)]
truss(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sun, 28 Jun 2020 09:20:57 +0000 (11:20 +0200)]
top(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sun, 28 Jun 2020 09:20:19 +0000 (11:20 +0200)]
yp*(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Daniel Fojt [Sun, 28 Jun 2020 07:10:56 +0000 (09:10 +0200)]
etc/devd: recognize wireless network adapters
Extend default devd(8) configuration to recognize wireless network
adapters, and automatically create child wlanX interfaces on attach.
Interfaces are created either according to rc.conf(5) or, in case
particular wireless device is not configured there, first unused
wlan is created for it.
Note: newly created wlan interface is not automatically brought up
and connected to any network. If such behaviour is desired, both
dhcpcd(8) and wpa_supplicant(8) (in interface matching mode) have to
be running (dhcpcd_enable and wpa_supplicant_enable in rc.conf(5)).
Discussed with: Sascha Wildner
Daniel Fojt [Sun, 28 Jun 2020 07:05:29 +0000 (09:05 +0200)]
etc/devd: revise default devd.conf(5)
Revise $wifi-driver-regex and drop all drivers not supported on DragonFly.
Suggested by: Sascha Wildner
Sascha Wildner [Sat, 27 Jun 2020 21:30:41 +0000 (23:30 +0200)]
Revert "libtelnet/telnetd(8): Fix building with -fno-common."
This reverts commit
e311a593a0939bb6b4c1f0de9ff58675c7c1403e.
Needs further work, because it broke building telnet(8).
Sascha Wildner [Sat, 27 Jun 2020 20:55:48 +0000 (22:55 +0200)]
locate(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 20:55:18 +0000 (22:55 +0200)]
iscontrol(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 19:06:54 +0000 (21:06 +0200)]
<efivar-dp.h>: Include <sys/types.h> to be self sufficient.
Aaron LI [Sat, 27 Jun 2020 13:30:28 +0000 (21:30 +0800)]
make_autoclone_dev.9: Several minor improvements
* Remove the mention of private function 'devfs_clone_bitmap_fff()'.
* Adjust the wording about the clone handler.
* Add 'SEE ALSO' section to mention 'make_dev()', 'make_only_dev()',
etc.
Aaron LI [Sat, 27 Jun 2020 13:28:22 +0000 (21:28 +0800)]
make_autoclone_dev.9: Better describe devfs_clone_bitmap_get()
* Describe the 'limit' argument.
* Describe the return value.
* Adjust the description order of this function to align with 'SYNOPSIS'
section.
Aaron LI [Sat, 27 Jun 2020 13:23:33 +0000 (21:23 +0800)]
make_dev.9: Describe a bit more about make_only_dev()
* Describe a bit more about the usage of make_only_dev(), mentioning
make_autoclone_dev(), also improve a sensence about this function.
* Fix a missing function markup to 'make_dev()'.
* Add 'SEE ALSO' section to mention devfs(5) and make_autoclone_dev(9).
Aaron LI [Sat, 27 Jun 2020 13:21:53 +0000 (21:21 +0800)]
if_tap: Remove a debug message
Aaron LI [Sat, 27 Jun 2020 13:11:50 +0000 (21:11 +0800)]
tun/tap: Use if_clone framework to clone from autoclone device
Before this change, the clone methods from autoclone device and if_clone
is quite different, so the allocated device unit numbers are not synced
between them, and the default interface group is not added for the
interfaces created via the autoclone device.
For example: tinc/openvpn will open '/dev/tun' to clone a device
'/dev/tun0' and an interface 'tun0', but the 'tun0' interface doesn't
own the 'tun' default group. And then, 'ifconfig tun create' will fail
with 'SIOCIFCREATE2: File exists'.
Fix the above conflicts/inconsistencies by using the same if_clone logic
for device cloning from the autoclone device. Now the two clone methods
are consistent and can be mix used.
Bug: https://bugs.dragonflybsd.org/issues/3230
Aaron LI [Sat, 27 Jun 2020 12:05:33 +0000 (20:05 +0800)]
tun/tap: Return EEXIST in clone creation if softc found
With the old logic, an existing softc (e.g., created by cloning via
autoclone device) may be used and then be modified later, which should
be better avoided.
Aaron LI [Sat, 27 Jun 2020 11:36:11 +0000 (19:36 +0800)]
if_clone: Fix a missing allocated unit free upon error
Aaron LI [Sat, 27 Jun 2020 11:23:00 +0000 (19:23 +0800)]
tun/tap: Fix errno NODEV to NOENT in clone creation
I was thinking 'NODEV' means 'no such device' but it actually means
'operation not supported by device'... So change this errno to 'NOENT'.
While there, adjust the code a bit in if_tap.c to align with if_tun.c.
Aaron LI [Sat, 27 Jun 2020 03:43:00 +0000 (11:43 +0800)]
tun/tap: Do not flag cloned interface as manually made
Similar to the devices cloned via the autocloner device (i.e., /dev/tun,
/dev/tap), don't flag devices cloned via interface cloning as manually
made. Only explicitly opened devices are flagged as manually made.
Aaron LI [Thu, 30 Aug 2018 13:08:13 +0000 (21:08 +0800)]
vknetd(8): Minor style improvements
Sascha Wildner [Sat, 27 Jun 2020 13:30:42 +0000 (15:30 +0200)]
libthread_xu: Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:29:23 +0000 (15:29 +0200)]
camcontrol(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:29:05 +0000 (15:29 +0200)]
rtld(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:27:50 +0000 (15:27 +0200)]
libtelnet/telnetd(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:27:17 +0000 (15:27 +0200)]
csh(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:26:56 +0000 (15:26 +0200)]
sh(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:26:43 +0000 (15:26 +0200)]
pax(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:25:08 +0000 (15:25 +0200)]
libc: Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:20:18 +0000 (15:20 +0200)]
config(8): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 13:19:19 +0000 (15:19 +0200)]
make(1): Fix building with -fno-common.
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 11:57:03 +0000 (13:57 +0200)]
Sync various games with NetBSD, in order to fix building with -fno-common.
Namely, adventure(6), backgammon(6), battlestar(6), hack(6) and trek(6).
-fno-common will be default in future compilers (GCC 10, for example).
Sascha Wildner [Sat, 27 Jun 2020 10:53:05 +0000 (12:53 +0200)]
share/doc: Remove documents that we haven't been installing for ages.
While all of those are old and some of them are quite outdated, some
others are actually still useful and have information that is not
contained in any manual page (such as information on the internals
of config(8), for example). But since we haven't been installing them
since 15 years now (see
ce233c472eb2cc66b348daa45965ffeb85ad7fe1) and
they are archived elsewhere and easily findable on the web, remove
them from our tree.
Also, they would need groff in base to build, which is no longer the
case in DragonFly since
1419a4e1759b9901ee3a1d147d0f7bee0394d6f3.
See for example https://docs.freebsd.org/44doc/ for FreeBSD's
archive.
Daniel Fojt [Sat, 27 Jun 2020 10:21:08 +0000 (12:21 +0200)]
Upgrade libarchive, bsdcat(1), bsdcpio(1) and bsdtar(1). 2/2
- update README.DRAGONFLY
- extend Symbol.map and Versions.def
- adapt Makefile
- regenerate config.h
Daniel Fojt [Sat, 27 Jun 2020 10:19:57 +0000 (12:19 +0200)]
Upgrade libarchive, bsdcat(1), bsdcpio(1) and bsdtar(1). 1/2
Merge branch vendor/LIBARCHIVE into master.
Daniel Fojt [Sat, 27 Jun 2020 10:18:46 +0000 (12:18 +0200)]
vendor/libarchive: upgrade from 3.3.3 to 3.4.3
Fixes CVE-2019-18408.
New features:
- support for pzstd compressed files
- support for RHT.security.selinux tar extended attribute
- atomic file extraction support (bsdtar -x --safe-writes)
- unicode filename support for reading lha/lzh archives
- new pax write option "xattrhdr"
- read support for RAR 5.0 archives
- read support for ZIPX archives with xz, lzma, ppmd8 and bzip2
compression
- support for non-recursive list and extract
- new tar option: --exclude-vcs
- 64-bit ar format support
Bugfixes:
- use-after-free in a certain ARCHIVE_FAILED situation
- various zstd fixes and improvements
- child process handling fixes
- compression buffer fix in XAR writer
- fix for uname and gname longer than 32 characters in PAX writer
- fix segfault when archiving hard links in ISO9660 and XAR writers
- fix support for extracting 7z archive entries with Delta filter
- security fixes and optimizations to write filter logic
- security fix related to use of readlink(2)
- sparse file handling fixes
- fix reading Android APK archives
- fix problems related to unreadable directories
- patches from OpenBSD to libarchive_fe/passphrase.c
- support extracting ACLs with in-entry comments
- support extracting extattrs as non-root on non-user-writable files
- various resource leak, use-after-free and crash fixes
For details, see release notes or commit history on github:
https://github.com/libarchive/libarchive/wiki/ReleaseNotes
Sascha Wildner [Sat, 27 Jun 2020 09:40:58 +0000 (11:40 +0200)]
Fix various typos: a -> an
Sascha Wildner [Sat, 27 Jun 2020 09:11:33 +0000 (11:11 +0200)]
share/mk/bsd.README: Add some info about bsd.host{libs,prog}.mk.
Sascha Wildner [Sat, 27 Jun 2020 09:06:05 +0000 (11:06 +0200)]
share/mk/bsd.README: Remove reference to pmake documentation.
We've since switched to bmake.
Aaron LI [Fri, 26 Jun 2020 14:45:21 +0000 (22:45 +0800)]
traceroute.8: Mention ping6(8) and traceroute6(8)
Aaron LI [Fri, 26 Jun 2020 14:43:28 +0000 (22:43 +0800)]
ping.8: Mention ping6(8) and traceroute6(8)
Aaron LI [Thu, 14 Feb 2019 07:28:02 +0000 (15:28 +0800)]
ipfw3: Fix several comments and error messages
Aaron LI [Fri, 26 Jun 2020 14:34:43 +0000 (22:34 +0800)]
ifconfig(8): Support to filter output by interface groups
Add options '-g <match_group>' and '-G <no_group>' to select and
unselect interfaces by groups in the output of 'ifconfig -a', just
like the existing '-d' and '-u' options to select only interfaces
that are down or up, respectively. Note that '-g' and '-G' options
can be used at the same time to apply both conditions and their
arguments may contain shell patterns.
Examples:
* To exclude loopback from the list:
ifconfig -a -G lo
* To list interfaces whose group names begin with 't':
ifconfig -a -g 't*'
Obtained from FreeBSD (revision 361790; review D25029)
Aaron LI [Fri, 26 Jun 2020 14:21:56 +0000 (22:21 +0800)]
ifconfig.8: Update to show '-d' and '-u' is mutually exclusive
Aaron LI [Fri, 26 Jun 2020 13:38:11 +0000 (21:38 +0800)]
ifconfig(8): Speed up non-status operations to a single interface
When performing a non-status operation on a single interface (e.g., set
address or flags), it is not necessary for ifconfig(8) to build a list
of all addresses in the system, sort them, and then iterate through them
to look for the single interface of interest.
Obtained from FreeBSD (revision 343535; review D18919)
Aaron LI [Fri, 26 Jun 2020 12:56:17 +0000 (20:56 +0800)]
ifconfig(8): Group addresses of each interface by family
Group the list of addresses associated with an interface by the address
family. A stable sorting algorithm is employed here to preserve the
order of addresses inside a single group of each interface.
Obtained from FreeBSD (revisions 278080 and 278107).
Aaron LI [Fri, 26 Jun 2020 09:59:53 +0000 (17:59 +0800)]
ifconfig(8): Use getifaddrs(3) from libc
Use libc's getifaddrs(3) instead of implementing its own version.
Obtained from FreeBSD (revisions 166956 and 199770); with minor
adjustments.
While there, also adjust some styles.
Aaron LI [Fri, 26 Jun 2020 07:53:07 +0000 (15:53 +0800)]
ifconfig(8): Use correct interface name when setting flags
Obtained from FreeBSD (revision 187253).
With this change, the comment to setifflags() is now obsolete, so remove
it. While there, improve styles a bit.
Aaron LI [Fri, 26 Jun 2020 06:02:58 +0000 (14:02 +0800)]
ifconfig(8): Add '-f' option to print in more formats
* Add the '-f' option to control the output formats of addresses,
inet (IPv4) subnet masks, inet6 (IPv6) prefix length, Ethernet (MAC)
address. The following output formats are supported:
- address: numeric (default), host, FQDN
- inet (IPv4) subnet masks: CIDR, dotted-quad, and traditional hex
output (default)
- inet6 (IPv6) prefix length: CIDR, traditional integer format
(default)
- ether (MAC address): colon-separated (default), dash-separated
* The 'IFCONFIG_FORMAT' environment variable has the same usage as the
'-f' option and can be overrided by the latter.
* Some minor cleanups.
Obtained from FreeBSD (revisions 301059 and 301185; review D2856), but
with my own minor modifications.
Aaron LI [Tue, 5 May 2020 02:58:20 +0000 (10:58 +0800)]
ifconfig(8): Print more WPS attributes in verbose "list scan" output
* Move WPS-related defines to a dedicated file
<netproto/802_11/ieee80211_wps.h>
* Add handlers for more WPS attributes
Obtained-from: FreeBSD (revision 343204)
Aaron LI [Sun, 12 Apr 2020 13:53:32 +0000 (21:53 +0800)]
ifconfig(8): Eliminate trailing whitespace on inet6 and group lines
Obtained from FreeBSD:
https://github.com/freebsd/freebsd/commit/
edcbc8f7441a32ec27fb2e57542bf291cb01029e
https://reviews.freebsd.org/D19004
Aaron LI [Sun, 12 Apr 2020 13:36:22 +0000 (21:36 +0800)]
ifconfig(8): Drop two unused macros from ifieee80211.c
Obtained from FreeBSD:
https://github.com/freebsd/freebsd/commit/
1ce3befafefa7226bcff3621562943176fe87ff3
Aaron LI [Sun, 12 Apr 2020 13:29:32 +0000 (21:29 +0800)]
ifconfig(8): Make lagg creation more fault-tolerant
* Warn, don't exit, when SIOCSLAGGPORT returns an error.
When we exit with an error during lagg creation, a single failed NIC
(which no longer attaches) can prevent lagg creation and other
configuration, such as adding an IPv4 address, and thus leave a
machine unreachable.
* Preserve non-EEXISTS errors for exit status from SIOCSLAGGPORT, in
case scripts are looking for it. Hopefully this can be extended if
other parts of ifconfig can allow a "soft" failure.
* Improve the warning message to mention what lagg and what member are
problematic.
Obtained from FreeBSD:
https://github.com/freebsd/freebsd/commit/
dde41c97866152e8c7eb1f52f07e3e5ac43b2652
https://reviews.freebsd.org/D15046
Aaron LI [Sun, 12 Apr 2020 12:56:39 +0000 (20:56 +0800)]
ifconfig(8): Render non-ASCII SSID names with UTF-8 locales
Currently ifconfig(8) only prints the hex representation of ssid names
with non-ASCII characters. Many modern terminals are able to properly
render non-ASCII characters. This change checks if the terminal charmap
is UTF-8, and if so, will render the characters, rather than the hex
value.
This behavior is circumvented by running ifconfig(8) in a non-UTF8
locale; e.g. C or POSIX.
Obtained from FreeBSD:
https://github.com/freebsd/freebsd/commit/
137a4801848fde80544a987fb168ff56face2ffd
https://reviews.freebsd.org/D15922
Daniel Fojt [Thu, 25 Jun 2020 04:16:24 +0000 (06:16 +0200)]
Upgrade awk(1). 2/2
Adapt Makefile and update README.{DELETED,DRAGONFLY}.
Daniel Fojt [Thu, 25 Jun 2020 04:15:47 +0000 (06:15 +0200)]
Upgrade awk(1). 1/2
Merge branch vendor/AWK into master.
Daniel Fojt [Wed, 24 Jun 2020 05:45:41 +0000 (07:45 +0200)]
vendor/awk: upgrade from
20121220 to
20200612
Summary of notable changes:
- fixed buffer overflow in error reporting
- OFS value used to rebuild the record was incorrect
- add POSIX standard %a and %A to supported formats
- decrementing NF did not change $0
- unary plus on a string constant returned the string
- avoid undefined behaviour when using ctype(3) functions in relex()
- make getline handle numeric strings
- added support for POSIX-standard interval expressions in regexps
- use of random(3) as the random number generator
- support POSIX-specified C-style escape sequences "\a" and "\v" in
command line arguments and regular expressions
- fix various array / memory overruns
- import code from NetBSD awk that implements RS as a regular expression
- add an optimization for string concatenation
- fix a bug whereby a{0,3} could match four a's
- input/output errors on closing files are now fatal instead of mere
warnings
- if POSIXLY_CORRECT is set in the environment, then sub and gsub use
POSIX rules for multiple backslashes
- it's no longer necessary to use the -y flag to bison
- backslash continuation inside strings removes the newline
- avoid any spurious errors left over from previous calls
For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master
François Tigeot [Wed, 24 Jun 2020 15:45:07 +0000 (17:45 +0200)]
drm: Add headers, stubs and constants required by Linux 4.10 code
François Tigeot [Wed, 24 Jun 2020 14:58:54 +0000 (16:58 +0200)]
drm: Move acpi_is_video_device() to linux/acpi.h
Sascha Wildner [Tue, 23 Jun 2020 19:48:04 +0000 (21:48 +0200)]
bsd-family-tree: Sync with FreeBSD (fix 1BSD release date).
Krzysztof Piecuch [Sun, 21 Jun 2020 18:48:48 +0000 (18:48 +0000)]
ddb.4: document hardware watchpoints and dwatch
Document dwatch, hwatch, dhwatch commands.
While there, mention possible command aliases.
Matthew Dillon [Sat, 20 Jun 2020 18:26:05 +0000 (11:26 -0700)]
tmpfs - Try to avoid a tmpfs node deadlock in rename
* Simultaneous renames of A -> DIR/B and DIR/C -> D can
deadlock tmpfs due to an incorrect assumption. The directory
vnodes are only referenced, not locked, so the namecache locks
are insufficient.
* Solve by ordering the rename directories deterministically. This
is probably not a perfect solution but it should be good enough.
Use a simple pointer inequality and a direct directory-subdirectory
test.
Matthew Dillon [Sat, 20 Jun 2020 18:24:22 +0000 (11:24 -0700)]
mountd - Turn on SO_REUSEADDR (2)
* After several years it turns out that just turning SO_REUSEADDR
on can cause a duplicate port to be assigned when an anonymous
port is requested. This is really a bug in the kernel which also
needs to be fixed, but for now only set this option when a specific
port is selected.
* Enhance bind error reporting.
Aaron LI [Sat, 20 Jun 2020 07:10:41 +0000 (15:10 +0800)]
tail(1): Implement tac(1) as the reverse version of cat(1)
The tac(1) is the reverse version of cat(1) and is implemented with
'tail -rq'.
Update cat.1, rev.1 and tail.1 man pages to mention the new tac(1).
The tac.1 man page is obtained from NetBSD. The implementation is also
inspired by NetBSD but is different.
Aaron LI [Sat, 20 Jun 2020 03:52:32 +0000 (11:52 +0800)]
tail(1): Add -v flag to always print a header
* Add the '-v' flag to always print a header for each file, even if only
a single file is specified. Obtained from NetBSD.
* Add '__dead2' attribute to the non-return function 'usage()'.
* Improve several markups in the man page.
Aaron LI [Fri, 19 Jun 2020 05:17:29 +0000 (13:17 +0800)]
head(1): Support '-q' and '-v' flags and improve man page
* Support the '-q' flag to never print headers of each filename, and the
'-v' flag to always print the headers, which are the GNU extensions to
this tool.
* Improve the man page to include the 'COMPATIBILITY' and 'STANDARDS'
sections.
Obtained-from: NetBSD
Aaron LI [Fri, 19 Jun 2020 05:13:39 +0000 (13:13 +0800)]
head(1): Minor cleanups
* Add '__dead2' attribute to non-return function 'usage()'.
* Move the 'first' out from the initializer part of the 'for' loop and
change it to a boolean, making the code a bit cleaner.
* Remove one duplicate copyright notice.
Sascha Wildner [Fri, 19 Jun 2020 06:32:14 +0000 (08:32 +0200)]
efibootmgr.8: Add commas before long options for better readability.
While here, upper-case .Sh Examples -> EXAMPLES.
Sascha Wildner [Fri, 19 Jun 2020 06:21:32 +0000 (08:21 +0200)]
efi{dp,var}.8: Add commas before long options for better readability.
Daniel Fojt [Thu, 18 Jun 2020 06:16:04 +0000 (08:16 +0200)]
etc/network.subr: enhance wlan initialization
Teach wlan_up() and wlan_down() to process just a single interface
passed as optional argument. If no argument is given, process all
"net.wlan.devices" just like before.
Reviewed by: Aaron LI
Daniel Fojt [Thu, 18 Jun 2020 04:28:36 +0000 (06:28 +0200)]
tail(1): improve style consistency of previous change
Suggested by: Sascha Wildner
Daniel Fojt [Wed, 17 Jun 2020 06:56:17 +0000 (08:56 +0200)]
tail(1): fix misbehaviour on pseudo filesystems
When processing regular zero-sized files, use display_lines() instead of
rlines(). This fixes tail(1) behaviour with files on pseudo filesystems
(like procfs) which are often reported to have zero size while having
a content.
Issue: https://bugs.dragonflybsd.org/issues/3034
Daniel Fojt [Tue, 16 Jun 2020 17:05:40 +0000 (19:05 +0200)]
etc/periodic: fix off-by-one error in 220.snapshot-hammer2
Increase $_keep before passing it to tail(1) as the output from
tail -n+N starts at N-th line of its input which is the last
snapshot to be kept actually.
Daniel Fojt [Tue, 16 Jun 2020 05:23:19 +0000 (07:23 +0200)]
kernel: improve open(2) error handling
When trying to open a file with O_CREAT and O_EXCL flags while the file
exists, disregard the file permissions and always return EEXIST as
described in manpage and required by the standard.
Issue: https://bugs.dragonflybsd.org/issues/2953
Roy Marples [Tue, 16 Jun 2020 08:50:55 +0000 (08:50 +0000)]
dhcpcd: Update README.DRAGONFLY
Roy Marples [Tue, 16 Jun 2020 08:47:49 +0000 (08:47 +0000)]
dhcpcd: Fix build for 9.1.2
Roy Marples [Tue, 16 Jun 2020 08:46:44 +0000 (08:46 +0000)]
Merge branch 'vendor/DHCPCD'
Roy Marples [Tue, 16 Jun 2020 08:43:31 +0000 (08:43 +0000)]
Update to dhcpcd-9.1.2 with the following changes:
* BSD: Only mark static routes from dhcpcd.conf as static
* DHCP6: Ensure requested addresses are requested
* DHCP6: Fix prefix length calculation when no prefix specified
* privsep: Implement a resource limited sandbox
You will see a control proxy process now.
This is for the resource limited sandbox so that we can isolate
requests over the control socket.
For NetBSD, FreeBSD and derivatives such as DragonFlyBSD this is a massive win
as these OS now enjoy a similar level of protection as Capsicum or Pledge,
but without the syscall filtering.
François Tigeot [Tue, 16 Jun 2020 08:05:25 +0000 (10:05 +0200)]
drm/i915: enable i915_gem_phys_ops
Daniel Fojt [Mon, 15 Jun 2020 17:15:41 +0000 (19:15 +0200)]
sed(1): sync with FreeBSD
Summary of notable changes:
- fix sed functions 'i' and 'a' from discarding leading white space
- rewrite the main loop of the "sed s/..." command
- fix -i option behavior with 'q' command
- process \r, \n, and \t
- attempt to learn about hex escapes (e.g. \x27)
- read commands from stdin when -f - is passed
Reviewed by: Sascha Wildner
Sascha Wildner [Mon, 15 Jun 2020 18:25:18 +0000 (20:25 +0200)]
<protocols/dumprestore.h>: Fix include guard comment.
François Tigeot [Mon, 15 Jun 2020 10:16:39 +0000 (12:16 +0200)]
drm/i915: Use kmem_cache functions
François Tigeot [Mon, 15 Jun 2020 09:51:21 +0000 (11:51 +0200)]
drm/linux: Add kmem_cache functions and related constants
Sascha Wildner [Mon, 15 Jun 2020 09:13:32 +0000 (11:13 +0200)]
Update the pciconf(8) database.
May 29, 2020 snapshot from https://pci-ids.ucw.cz
Sascha Wildner [Sat, 13 Jun 2020 06:52:58 +0000 (08:52 +0200)]
Bring in efibootmgr(8) from FreeBSD.
Taken-from: FreeBSD
Aaron LI [Fri, 12 Jun 2020 15:57:01 +0000 (23:57 +0800)]
initrd/mkinitrd.sh: Use 'du -t' to simplify size calculation
The du(1)'s '-t' option calculates the apparent size, which is what we
want here for determining the required size of the initrd image. This
saves us a shell function to do the same work.
Aaron LI [Fri, 12 Jun 2020 14:58:42 +0000 (22:58 +0800)]
etc/periodic: Use 'LINKS' to create links for 220.snapshot-hammer2
Avoid the ad-hoc 'ln' command. In addition, the original linked-to
files are absolute paths but missing the '${DESTDIR}', so they can be on
two different installations. Use 'LINKS' that creates hard-links to
fix this issue.
Reviewed-by: swildner, deef
Aaron LI [Fri, 12 Jun 2020 14:54:53 +0000 (22:54 +0800)]
mk/bsd.README: Document 'SYMLINKS' and update 'LINKS' and 'MLINKS'
* Add description of 'SYMLINKS' that creates symbolic links.
* 'MLINKS' creates hard links rather than soft links.
* Update description of 'LINKS' and the example. '${DESTDIR}' will be
auto prepended so it should not be used.
Reviewed-by: swildner
Daniel Fojt [Fri, 12 Jun 2020 11:34:05 +0000 (13:34 +0200)]
Upgrade less(1). 2/2
- update README.{DELETED,DRAGONFLY}
- import regenerated defines.h
- fix -Werror=unused-variable in screen.c
Daniel Fojt [Fri, 12 Jun 2020 11:33:18 +0000 (13:33 +0200)]
Upgrade less(1). 1/2
Merge branch vendor/LESS into master.
Daniel Fojt [Fri, 12 Jun 2020 11:32:09 +0000 (13:32 +0200)]
vendor/less: upgrade from 481 to 551
- unicode tables updated
- new commands added
- new cmdline options introduced
- bugs and memory leaks fixed
For details see:
http://www.greenwoodsoftware.com/less/news.487.html
http://www.greenwoodsoftware.com/less/news.530.html
http://www.greenwoodsoftware.com/less/news.551.html
Matthew Dillon [Thu, 11 Jun 2020 22:57:04 +0000 (15:57 -0700)]
kernel - Refactor sysclock_t from 32 to 64 bits (2)
* Cputimer reload values can be negative, check condition and
set a small positive reload value instead.
* Also avoids muldivu64() overflow warnings on the console.
Reported-by: kworr
Sascha Wildner [Thu, 11 Jun 2020 20:37:18 +0000 (22:37 +0200)]
share/example/Makefile: Sort better.