Matthew Dillon [Fri, 13 Dec 2019 19:06:34 +0000 (11:06 -0800)]
du - Add an option to generate results based on file size
* By default du generates results based on st_blkcnt, the actual
number of blocks used on-media. This value might be smaller than
the file size due to filesystem-level compression, or possibly
larger due to the filesystem also counting overhead for indirect
blocks.
* Add the -t option. This option generates results based simply
on the file size (st_size), and assumes a 512-byte media
granularity.
This option gives you an idea of the transmittable bytes if you
were to copy the file elsewhere.
Matthew Dillon [Fri, 13 Dec 2019 01:36:56 +0000 (17:36 -0800)]
sio - Refactor some of the sio code
* Refactor some of the sio serial port code to reduce the amount of
time the com_lock() is held and to allow the siointr*() receive
buffer in the softc to pipeline.
Matthew Dillon [Fri, 13 Dec 2019 01:32:53 +0000 (17:32 -0800)]
docs - Add note about powerd and serial port operation
* Serial port operation at high baud rates such as 115200 may
lose characters if powerd is allowed to reduce the CPU
frequency below 1500 MHz.
* Document this fact and include a suggestion for powerd_flags
if this is not desired.
Matthew Dillon [Thu, 12 Dec 2019 20:35:30 +0000 (12:35 -0800)]
dsynth - Improve compatibility with newer pkg's
* pkg is going through a bit of an evolution in its support for
suffixes other than .txz, causing some issues with the generation
of the database and meta file that 'pkg install' fetches.
* In versions before 1.12 pkg always generated .txz database and
meta files, but pkg install looked for the suffix specified in
meta.txz for the database files.
In this case the database files have to be recompressed to
the requested suffix.
* In versions >= 1.12 (up until the next fix), pkg generates
the requested suffix, but unfortunately also for the meta file
too whereas pkg install still looks for 'meta.txz'.
In this case the meta.<suffix> file has to be recompressed
using xz to a .txz.
* At some future point pkg repo and pkg install will match up,
and dsynth may need another commit then.
In this case no recompression will be needed to make pkg repo
and pkg install play nicely with each other.
Sascha Wildner [Thu, 12 Dec 2019 12:06:46 +0000 (13:06 +0100)]
kernel/acpi: Fix debug.acpi.allow_method_calls functionality.
Adding SMAP (Supervisor Mode Access Protection) support back in May
(see
48c77f2b85f9ed807532e99b7187e6f5b5aa2975) caused it to (correctly)
panic on certain machines, such as the Dell XPS 9560, due to trying to
use a userspace pointer from the kernel.
FreeBSD has since fixed this in their sysutils/acpi_call port. This
commit pulls in these changes.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230993 for the
FreeBSD PR.
Submitted-by: Khamba Staring <qdk at quickdekay.net>
François Tigeot [Thu, 12 Dec 2019 11:08:07 +0000 (12:08 +0100)]
drm/i915: Revert unintended changes in i915_params.c
They were introduced in
1487f78699db6b645ec307a207e4611f50a7cc53
Tomohiro Kusumi [Tue, 10 Dec 2019 20:02:26 +0000 (05:02 +0900)]
usr.sbin/fstyp: Add device name to HAMMER2 label for autofs -media mount
This helps autofs -media mount support multiple HAMMER2 mounts
if not perfect solution. The format may change in future.
Add minor fix to HAMMER1 label algorithm to sync with this commit.
Matthew Dillon [Wed, 11 Dec 2019 01:30:53 +0000 (17:30 -0800)]
psm - Add Elantech touchpad IC type 15 found on Thinkpad L480 laptops
* Add support for thinkpad L480 laptops.
Suggested-by: aly
Taken-from: FreeBSD
François Tigeot [Tue, 10 Dec 2019 19:39:43 +0000 (20:39 +0100)]
drm/i915: Update PCI IDs from Linux 5.4
This brings in support for previously unknown models of Skylake,
Coffelake, Amber Lake, Whiskey Lake and Comet Lake GPUs.
François Tigeot [Tue, 10 Dec 2019 19:32:08 +0000 (20:32 +0100)]
drm/i915: Update to Linux commit
1f15b76f1ec973d1eb5d21b6d98b21aebb9025f1
"Separate GPU hang waitqueue from advance"
François Tigeot [Tue, 10 Dec 2019 17:45:22 +0000 (18:45 +0100)]
drm: Stop using an embedded struct drm_device in driver softcs
* All drm drivers use a struct drm_device record but are free to
allocate it by themselves in different ways or let the generic
drm subsystem code do it.
* This drm_device record can even be part of another data structure,
dynamically or statically allocated.
* We cannot just assume the length of a drm_device structure in the
softc memory block will be enough to store all driver private data.
* Make the drm softc the equivalent of a void* pointer and let the
upstream code behave as expected on Linux
Tomohiro Kusumi [Tue, 10 Dec 2019 14:38:07 +0000 (23:38 +0900)]
usr.sbin/fstyp: Add device name to HAMMER1 label for autofs -media mount
This helps autofs -media mount support multiple HAMMER1 mounts
if not perfect solution. The format may change in future.
Note that this doesn't support HAMMER1 with multiple devices.
François Tigeot [Tue, 10 Dec 2019 08:51:04 +0000 (09:51 +0100)]
drm/linux: Stop using driver softcs for dev_set/get_drvdata()
Sascha Wildner [Sun, 8 Dec 2019 13:27:54 +0000 (14:27 +0100)]
Remove wrong getvfsbytype.3 MLINK. The manpage doesn't document it.
François Tigeot [Sun, 8 Dec 2019 09:33:39 +0000 (10:33 +0100)]
drm: Add linux/smp.h
Tomohiro Kusumi [Sun, 8 Dec 2019 02:26:09 +0000 (11:26 +0900)]
sys/vfs/msdosfs: Minor msdosfs_readdir() sync up with FreeBSD
bits from freebsd/freebsd@
d08f717585ab19a81dfc5bd8aed1ac4edcb2b157
DragonFly doesn't need dirent_terminate(), but it also doesn't need
to use strcpy() for dirent name given how vop_write_dirent() works.
Matthew Dillon [Sun, 8 Dec 2019 02:00:47 +0000 (18:00 -0800)]
hammer2 - Fix chain->error case in hammer2_chain_lookup()
* The chain->error case was not being properly handled in
hammer2_chain_lookup(), resulting in either a panic or a
permanent "xxx" stall.
* Fix the case so upper levels can properly process EIO and
related issues.
Matthew Dillon [Fri, 6 Dec 2019 19:23:40 +0000 (11:23 -0800)]
hammer2 - Rename 'bcopy' variable to 'bsave'
* Rename variable to reduce confusion
Sascha Wildner [Sun, 8 Dec 2019 01:40:12 +0000 (02:40 +0100)]
getconf(1): Support NPROCESSORS_* too in addition to _NPROCESSORS_*.
Improves compatibility with software that is used to a Linux environment.
Linux uses leading underscores in these variable names.
Pointed-out-by: zrj
Sascha Wildner [Sat, 7 Dec 2019 11:51:06 +0000 (12:51 +0100)]
<cpu/ieeefp.h>: Just include <sys/cdefs.h> instead of complaining.
Sascha Wildner [Sat, 7 Dec 2019 11:28:25 +0000 (12:28 +0100)]
<sys/cdefs.h>: Ensure that __{BSD,EXT1}_VISIBLE are never undefined.
This is to fix -Wundef warnings that might occur if the environment is
restricted to POSIX or X/Open.
Thanks to zrj for testing with a dports bulk build.
Sascha Wildner [Sat, 7 Dec 2019 11:25:14 +0000 (12:25 +0100)]
<sys/stdarg.h>: Check if __cplusplus is defined before checking its value.
François Tigeot [Sat, 7 Dec 2019 08:07:48 +0000 (09:07 +0100)]
drm/linux: Add pci_map_rom() and pci_unmap_rom()
François Tigeot [Sat, 7 Dec 2019 08:06:44 +0000 (09:06 +0100)]
drm/linux: pfn_to_page() returns a struct page*
Sascha Wildner [Sat, 7 Dec 2019 00:07:11 +0000 (01:07 +0100)]
kernel/getsockaddr: Remove a COMPAT_43 removal leftover.
It was overlooked in
d6e8ab2d2508bde32ad7b7daaf86d44ec7330986.
Discussed-with: sephe
Sascha Wildner [Fri, 6 Dec 2019 21:51:35 +0000 (22:51 +0100)]
libc: Fix some -Wmissing-prototypes warnings.
Matthew Dillon [Wed, 4 Dec 2019 18:40:25 +0000 (10:40 -0800)]
dsynth - Conditionalize .txz -> other_compression_fmt for pkg repo
* pkg version 1.12 or later properly uses the compression
suffix when generating the repo database, the results do
not need to be recompressed.
Versions prior to 1.12 needed to be recompressed for
compression formats other than .txz.
* Conditionalize based on pkg -v output.
Reported-by: zrj
Antonio Huete Jimenez [Wed, 4 Dec 2019 11:32:28 +0000 (12:32 +0100)]
mount_devfs.8: Adjust fstab example to include the mount type.
- Mount type (rw, ro, ...) is required in fstab, otherwise getfsent() will fail
with EFTYPE.
Antonio Huete Jimenez [Tue, 3 Dec 2019 23:21:17 +0000 (00:21 +0100)]
jail: Use M_PRISON for sysctl allocation
Antonio Huete Jimenez [Tue, 3 Dec 2019 17:59:25 +0000 (17:59 +0000)]
jail: Allow jails to mount nullfs(5) and tmpfs(5)
- The code is structured in a way that it should be easy to add more
filesystems in the future.
- User mounts are disabled in jails for now.
- It is not allowed for jails to unmount filesystems that were not mounted
within the jail itself.
Reviewed by: dillon, mjg
Antonio Huete Jimenez [Tue, 3 Dec 2019 15:33:37 +0000 (15:33 +0000)]
<sys/jail.h>: Add nullfs, devfs and tmpfs filesystem privs
Antonio Huete Jimenez [Tue, 3 Dec 2019 00:04:19 +0000 (00:04 +0000)]
<sys/mount.h>: Add mnt_cred field
- For now it can will be used to retrieve cr_prison which
which indicate the prison that mountpoint belongs to.
Antonio Huete Jimenez [Mon, 2 Dec 2019 23:30:11 +0000 (23:30 +0000)]
<sys/priv.h>: Add filesystem specific constants
Sascha Wildner [Mon, 2 Dec 2019 21:13:50 +0000 (22:13 +0100)]
libutil: Bring in a fparseln() bugfix from NetBSD.
Prevents fparseln() from reporting spurious empty lines when it shouldn't:
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fparseln.c.diff?r1=1.5&r2=1.6
While here, optimize to prevent pointless realloc()s:
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fparseln.c.diff?r1=1.6&r2=1.7
Reported-by: zrj
Matthew Dillon [Mon, 2 Dec 2019 21:03:30 +0000 (13:03 -0800)]
kernel - Warn on duplicate physical addresses passed from BIOS
* Warn on duplicate PA free ranges passed from the BIOS instead
of panicing.
* Try to fix buggy threadripper BIOSes.
Matthew Dillon [Mon, 2 Dec 2019 20:53:55 +0000 (12:53 -0800)]
devfs - Ensure lock held around devfs_cdev_terminate() (2)
* Fix deadlock due to synchronous message sent via
devfs_clone_bitmap_put() -> devfs_config().
Sascha Wildner [Mon, 2 Dec 2019 20:25:03 +0000 (21:25 +0100)]
sort.1: Mention that -o's argument can be one of the input files.
Matthew Dillon [Mon, 2 Dec 2019 20:12:22 +0000 (12:12 -0800)]
devfs - Ensure lock held around devfs_cdev_terminate()
* Ensure that a lock is held around devfs_cdev_terminate() on
sysref release (which can occur from any thread, not just the
devfs thread).
Antonio Huete Jimenez [Mon, 2 Dec 2019 11:53:21 +0000 (12:53 +0100)]
jail: Simplify a bit by using the new BIT64 sysctl functions
- No functional changes.
- The per-jail settings have been renamed to match the new capability
constants. The default settings will be renamed soon too.
- Fix a missing prison chflags check in ufs_settattr() and
ext2fs_setattr().
Antonio Huete Jimenez [Mon, 2 Dec 2019 01:11:39 +0000 (02:11 +0100)]
sysctl.9: Document the new BIT32/BIT64 functionality.
Antonio Huete Jimenez [Mon, 2 Dec 2019 00:48:52 +0000 (01:48 +0100)]
<sys/sysctl.h>: Add runtime interface macros for BIT32/BIT64
- Add SYSCTL_ADD_BIT32() and SYSCTL_ADD_BIT64() macros which allow using a
sysctl context.
Sascha Wildner [Sun, 1 Dec 2019 15:25:01 +0000 (16:25 +0100)]
libc: Change getlogin_r()'s second argument to size_t, as POSIX likes it.
https://pubs.opengroup.org/onlinepubs/
9699919799/functions/getlogin.html
Also adjust the getconf syscall, aka _getconf() in userland, which is
called by getconf(3) and getconf_r(3).
Approved-by: dillon
Tested-by: zrj
Sascha Wildner [Sun, 1 Dec 2019 11:55:00 +0000 (12:55 +0100)]
<sys/stat.h>: Add S_TYPEISSEM() and S_TYPEISSHM() definitions.
Sascha Wildner [Sun, 1 Dec 2019 11:32:40 +0000 (12:32 +0100)]
<sys/stat.h>: Fix odd indentation.
Sascha Wildner [Sun, 1 Dec 2019 11:03:21 +0000 (12:03 +0100)]
Rename some functions to better names.
devfs_find_device_by_udev() -> devfs_find_device_by_devid()
dev2udev() -> devid_from_dev()
udev2dev() -> dev_from_devid()
This fits with the rest of the code. 'dev' usually means a cdev_t,
such as in make_dev(), etc. Instead of 'udev', use 'devid', since
that's what dev_t is, a "Device ID".
Sascha Wildner [Sun, 1 Dec 2019 10:59:08 +0000 (11:59 +0100)]
<sys/types.h>: Get rid of udev_t.
In a time long long ago, dev_t was a pointer, which later became cdev_t
during the great cleanups, until it ended up being a uint32_t, just like
udev_t. See for example the definitions of __dev_t in <sys/stat.h>.
This commit cleans up further by removing the udev_t type, leaving just
the POSIX dev_t type for both kernel and userland. Put it inside a
_DEV_T_DECLARED to prepare for further cleanups in <sys/stat.h>.
Matthew Dillon [Sat, 30 Nov 2019 20:06:29 +0000 (12:06 -0800)]
tools - Generate valid embedded newlines in strings
* Use the posix string concat instead of actually escaping
a hard newline inside the string.
This is not legal in C any more (it used to be, ages ago):
"abc\
def"
Instead we have to use:
"abc\n"
"def"
* Fixes the awk scripts to generate valid C strings.
Reported-by: zrj
Sascha Wildner [Sat, 30 Nov 2019 13:46:40 +0000 (14:46 +0100)]
tar(1): Fix -Wundef.
Sascha Wildner [Sat, 30 Nov 2019 06:08:54 +0000 (07:08 +0100)]
m4(1): Fix -Wundef.
Sascha Wildner [Sat, 30 Nov 2019 06:07:29 +0000 (07:07 +0100)]
larn(6): Fix -Wundef.
Sascha Wildner [Sat, 30 Nov 2019 06:06:26 +0000 (07:06 +0100)]
Fix -Wundef in bzip2, libpcap, mdocml, and ncurses.
Antonio Huete Jimenez [Fri, 29 Nov 2019 19:08:20 +0000 (20:08 +0100)]
kernel: debug_64bit must be uint64_t
Sascha Wildner [Fri, 29 Nov 2019 15:13:06 +0000 (16:13 +0100)]
<stdlib.h>: Check if __cplusplus is defined before checking its value.
Sascha Wildner [Fri, 29 Nov 2019 14:21:15 +0000 (15:21 +0100)]
sshd(8): Fix -Wundef.
Sascha Wildner [Fri, 29 Nov 2019 06:35:15 +0000 (07:35 +0100)]
bthcid(8): Fix -Wundef.
Sascha Wildner [Fri, 29 Nov 2019 06:18:34 +0000 (07:18 +0100)]
boot1/edk2: Fix -Wundef.
Sascha Wildner [Fri, 29 Nov 2019 05:56:22 +0000 (06:56 +0100)]
rwhod(8): Fix -Wundef.
Antonio Huete Jimenez [Fri, 29 Nov 2019 00:33:31 +0000 (01:33 +0100)]
kernel: Don't use atomic for cr_ref in crget()
Suggested-by: mjg
Antonio Huete Jimenez [Thu, 28 Nov 2019 16:33:20 +0000 (17:33 +0100)]
kernel: Merge crinit() into crget()
* Remove crinit() which was unused and merge _crinit() into
crget() which is its only user.
Sascha Wildner [Thu, 28 Nov 2019 20:16:29 +0000 (21:16 +0100)]
ldconfig(8): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 20:15:36 +0000 (21:15 +0100)]
truss(1): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 20:13:47 +0000 (21:13 +0100)]
adventure(6): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 20:04:36 +0000 (21:04 +0100)]
dhcpcd(8): Fix -Wundef.
Approved-by: rsmarples
Sascha Wildner [Thu, 28 Nov 2019 20:03:39 +0000 (21:03 +0100)]
install(1): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 19:31:27 +0000 (20:31 +0100)]
mtree(8): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 10:24:25 +0000 (11:24 +0100)]
from(1): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 08:47:31 +0000 (09:47 +0100)]
stat(1): Fix -Wundef.
Sascha Wildner [Thu, 28 Nov 2019 20:01:36 +0000 (21:01 +0100)]
mined(1): Fix -Wundef.
Tomohiro Kusumi [Thu, 28 Nov 2019 16:23:07 +0000 (01:23 +0900)]
usr.sbin/fstyp: Remove XXX comment on HAMMER2
This sholdn't be XXX.
Unlike HAMMER1, HAMMER2 itself doesn't support multiple devices.
Matthew Dillon [Wed, 27 Nov 2019 23:54:42 +0000 (15:54 -0800)]
sysctl - Add support for CTLTYPE_BIT32 and BIT64
* Add support for CTLTYPE_BIT32 and CTLTYPE_BIT64.
* In the switch() when you mask against CTLTYPE, the case statements should
use CTLTYPE_BIT32(0) and CTLTYPE_BIT64(0).
When generating the 'kind' field etc, use CTLTYPE_BIT32(bitno) or
CTLTYPE_BIT64(bitno).
Matthew Dillon [Wed, 27 Nov 2019 23:53:44 +0000 (15:53 -0800)]
kernel - Add SYSCTL_BIT32(n) and BIT64(n) support
* Add sysctl support capable of diving bits in a flags field.
This sysctl passes and returns an int (0 or 1) to userland.
* 32-bit and 64-bit flags fields supported.
Tomohiro Kusumi [Wed, 27 Nov 2019 16:12:38 +0000 (01:12 +0900)]
usr.sbin/fstyp: Rename HAMMER1/2 functions
Rename functions that look like Linux kernel functions when
double underscores aren't really necessary.
Sascha Wildner [Wed, 27 Nov 2019 16:09:51 +0000 (17:09 +0100)]
<time.h>: Fix C++17 visibility of timespec_get().
While here, pull all related bits together under one check.
Reported-by: marino
Matthew Dillon [Tue, 26 Nov 2019 23:45:13 +0000 (15:45 -0800)]
dsynth - Fix mktemplate bug when no keys in /etc/ssh
* mktemplate copies portions of /etc and removes ssh keys
in the builder chroots, but errors out if there are none
to remove.
* Add 'set nonomatch' to the script to fix the error.
Tomohiro Kusumi [Tue, 26 Nov 2019 15:11:32 +0000 (00:11 +0900)]
usr.sbin/autofs: Add missing description for automountd option -T
Sync with NetBSD.
François Tigeot [Mon, 25 Nov 2019 22:22:20 +0000 (23:22 +0100)]
drm/radeon: Be explicit about disabled acceleration
3D acceleration is intentionally disabled on evergreeen and radeonsi
due to unresolved issues.
Suggested-by: zrj
Sascha Wildner [Mon, 25 Nov 2019 19:18:57 +0000 (20:18 +0100)]
kernel: Remove no longer used vfinddev() function.
No longer used since
85aae976e20fc6b5be7ebb996fdf69c1c31e2b5b.
Matthew Dillon [Mon, 25 Nov 2019 19:47:43 +0000 (11:47 -0800)]
dsynth - Document -p profile option
* Document the option in the manual page.
* Correct some path names in the manual page.
Sascha Wildner [Mon, 25 Nov 2019 10:34:03 +0000 (11:34 +0100)]
<sys/types.h>: Fix comment.
Matthew Dillon [Mon, 25 Nov 2019 00:01:01 +0000 (16:01 -0800)]
dsynth - Adjust directive tests
* Adjust 'monitor' so it works as expected.
* 'version' does not need a working configuration to report.
zrj [Sun, 24 Nov 2019 16:59:36 +0000 (18:59 +0200)]
make(1): Decouple from libutil.
The bmake is a bootstrap tool.
Matthew Dillon [Sun, 24 Nov 2019 22:16:22 +0000 (14:16 -0800)]
dsynth - Add profile selection options
* Allow the profile to be specified via the DSYNTH_PROFILE env
variable or via the -p profile option, overriding the default
in /etc/dsynth.ini.
NOTE: If running more than one dsynth simultaneously on the same
machine, the following directives in dsynth.ini must be
different:
Directory_packages
Directory_repository
Directory_buildbase
Directory_logs
NOTE: The Directory_distfiles directive can be shared across
any number of running instances without running afoul
of colliding fetches.
* Allows easy selection from multiple profiles specified in
dsynth.ini.
* Create an active .lock file in the buildbase and complain if
another dsynth is running.
Matthew Dillon [Sun, 24 Nov 2019 08:01:49 +0000 (00:01 -0800)]
tmpfs - Make tmpfs_move_pages() more robust
* Make tmpfs_move_pages() more robust by re-checking the page
queue in the scan loop and waiting for any paging-in-progress
to complete.
* Possibly fixes or improves a race that could cause corruption
in tmpfs files.
Reported-by: zrj
Matthew Dillon [Sun, 24 Nov 2019 06:39:01 +0000 (22:39 -0800)]
libc - nmalloc clean part 3
* Cleanup the sigblockall()/sigunblockall() use cases to
remove unnecessary recursive counts. It suffices to wrap
the exported functions, fork callbacks, and the destructor.
Matthew Dillon [Sun, 24 Nov 2019 06:22:30 +0000 (22:22 -0800)]
libc - nmalloc clean part 2
* Clean up a lot of unused #define's and other constants.
* Increase the maximum capacity of a magazine to roughly
512 (M_MAX_ROUNDS). Continue to use a fixed structure.
* Set the magazine capacity dynamically based on the allocation
size. Magazines for smaller allocations have larger capacities.
This should improve performance for tiny allocations.
Matthew Dillon [Sun, 24 Nov 2019 05:25:56 +0000 (21:25 -0800)]
libc - nmalloc clean part 1
* Add an __isexiting global that the malloc thread destructor
can use to detect program exit (verses just thread exit),
allowing it to avoid burning unnecessary cpu. That is, it
doesn't bother to clean stuff if the program is on its way
out.
* Fresh allocations when the magazines are empty no longer
dive into the global structure (with accompanying locks)
for every allocation and will instead burst a bunch of chunks
into the local mtmagazine to reduce lock contention.
* Reduce the time the global slgd_lock() is held by rejiggering
the code a bit.
* Reduce overhead for allocating the magazine structure by
allowing the thead-local magazine to be accessed if it
happens to contain approriate free chunks.
We no longer disable the thread-local mtmagazine during
the recursive _slaballoc() call and instead pass a flag
to prevent an infinite recursion.
* Fix the confusing slgd_unlock() call that was previously in
zone_free(). slgd_unlock() is now called prior to the
zone_free().
Sepherosa Ziehau [Sun, 24 Nov 2019 12:14:56 +0000 (20:14 +0800)]
kevent: Leading white space.
Sascha Wildner [Sun, 24 Nov 2019 09:23:08 +0000 (10:23 +0100)]
hier.7: Adjust for the recent removals in /usr/include.
In order to not have a too deep nesting, document just one level below
/usr/include.
Sascha Wildner [Sun, 24 Nov 2019 09:01:13 +0000 (10:01 +0100)]
Remove some unneeded \& from manual pages.
Tomohiro Kusumi [Sat, 23 Nov 2019 23:19:54 +0000 (08:19 +0900)]
sbin/mount_autofs: Add AUTHORS to man page
Tomohiro Kusumi [Sat, 23 Nov 2019 22:14:11 +0000 (07:14 +0900)]
sys/vfs/autofs: Minor cleanup to sync with NetBSD
Tomohiro Kusumi [Sat, 23 Nov 2019 16:13:23 +0000 (01:13 +0900)]
sys/vfs/autofs: Fix a comment on autofs_mount_info
mount_autofs(8) also uses this.
This was ported back from NetBSD after autofs was ported to NetBSD.
Antonio Huete Jimenez [Sat, 23 Nov 2019 00:52:55 +0000 (01:52 +0100)]
kernel: Fix a problem with shutdown(8)
- When halting a system with 'shutdown -h ...', it would be stuck
forever in the 'press any key' message. Fix that by enabling
kbd polling right before a cngetc() call. This a follow-up of
commit
ce7866b8.
With-help-from: dillon, swildner
Sascha Wildner [Fri, 22 Nov 2019 21:16:43 +0000 (22:16 +0100)]
<sys/snoop.h>: Fix typos in comments.
Matthew Dillon [Fri, 22 Nov 2019 20:02:54 +0000 (12:02 -0800)]
dsynth - Fix /var/mail uid/gid/perms in template
* Fix the /var/mail directory and a few others in the
templated /var.
Reported-by: zrj
Matthew Dillon [Fri, 22 Nov 2019 19:52:52 +0000 (11:52 -0800)]
dsynth - Fix 'debug' mode
* Fix the 'debug' directive to proper build pre-cursor packages
without freezing and to only build the packages explicitly specified
on the command line with freezing.
* This reworks the global flag a bit. It wasn't entirely easy
because the WORKERs are exec'd sub-processes.
Matthew Dillon [Fri, 22 Nov 2019 19:05:33 +0000 (11:05 -0800)]
dsynth - Parse flavors on command line, parse text file
* Parse flavor specifications on the command line.
* Allow a text file containing the list of packages to be specified
on the command line.
* Make 'dsynth help' work even if no configuration file.
Reported-by: ftigeot
Sascha Wildner [Fri, 22 Nov 2019 17:34:58 +0000 (18:34 +0100)]
mount_autofs.8: Fix missing .El
Tomohiro Kusumi [Fri, 22 Nov 2019 13:19:09 +0000 (22:19 +0900)]
sbin/mount_autofs: Sync man page with NetBSD
Bring in NetBSD change by wiz, which was originally based on my email.
----------------------------
revision 1.5
date: 2018-01-23 23:58:46 +0900; author: wiz; state: Exp; lines: +29 -8; commitid: O4rw8KU57zXXI0oA;
Improve description of options. Based on comments by Tomohiro Kusumi.
----------------------------
Matthew Dillon [Thu, 21 Nov 2019 22:20:14 +0000 (14:20 -0800)]
dsynth - Set pty cols and finally fix ^M in handshake
* Set the pty columns to 80 (fixes textproc/po4a). Leave rows
set to 0.
* Set tty modes and CR filtering before issuing the handshake.
* Reorder the handshake. Now the ^M's no longer show up in the logs.