Commit Graph

18303 Commits

Author SHA1 Message Date
msaitoh 8ab7d3270e Use MCLGET() instead of homegrown cluster (jcl) allocation mechanism.
- Before this commit, resource shortage was easily occurred because the total
  number of the clusters is small.

- Reviewed by knakahara and ryo.
2021-08-25 09:06:02 +00:00
mrg d07aa01e08 xorg-server is now at 1.20.13. 2021-08-24 06:29:18 +00:00
mrg 2fa4170300 define variables for the libxcb-* libraries. 2021-08-23 22:13:27 +00:00
andvar 8324be4c9b fix some more typos in comments/log messages, improve wording as well. 2021-08-21 11:55:24 +00:00
mrg ab57e84c1b fix arm64 builds: turn off MKCOMPAT for GCC
no idea why it was enabled as we can't easily target 32 bit.

if we figure this out for aarch32, the subdir names etc will
probably be different, or we can just revive the deleted
files no longer referenced with this commit.
2021-08-19 06:52:37 +00:00
andvar 2e0bf311b3 fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected. 2021-08-17 22:00:26 +00:00
andvar a6c62dd046 tty.4: s/asynchronus/asynchronous/ 2021-08-17 14:11:22 +00:00
mrg 344668bab1 switch sh3 to GCC 10. buh bye GCC 9!
thanks to everyone who helped (most espcially rin@.)
2021-08-16 17:40:16 +00:00
christos 9aa9806a13 Fix sun2 build for ldap/gssapi 2021-08-15 10:30:39 +00:00
christos 7377d9de8f Centralize the ldap libraries 2021-08-14 16:16:32 +00:00
andvar d4eac28cae s/directry/directory/ 2021-08-12 20:25:26 +00:00
nia 213aa76def introduce a SOL_LOCAL for unix-domain socket level socket options
as an alias of the current 0 used for these options, as in FreeBSD.

reviewed by many.
2021-08-08 20:54:48 +00:00
andvar 5712d03cb7 change othersize to otherwise. I believe this is what was meant in the context. 2021-08-08 16:12:10 +00:00
uwe 3c26fdeeb4 autoconf(9) - Improve formatting.
Don't hide consumed cfargs in the second sentence of a function's
description, they ends up hidden towards the right margin and that
sentence is guaranteed to get a line break further reducing its
readability.  Instead make that the first sentence and start the
description with a new paragraph.  That makes it looks like part of
the signature and is much more prominent.

Various markup improvements while here.

Bump date for thorpej-cfargs2 changes.
2021-08-07 20:41:17 +00:00
andvar 3c7a3199b6 s/configuraiton/configuration/ in comments and man pages. 2021-08-07 19:41:13 +00:00
thorpej 2540f5896a Update for thorpej-cfargs2. 2021-08-07 16:20:02 +00:00
isaki 5aeec4b8b4 x68k now uses KAUTH_MACHDEP_UNMANAGEDMEM. 2021-08-07 03:28:42 +00:00
tnn 2fb83002a9 ssdfb(4): note SSD1353 support 2021-08-05 19:23:44 +00:00
andvar cba4208ca7 add pcib(4), pceb(4), pcmb(4).
pcmb is a separate man page for i386 only, pceb and pcib are references to pci(4) only and mentioned in its bridges section.
ok riastradh
2021-08-01 21:56:26 +00:00
tnn 25e0fac49a ssdfb(4): add an iic fdt attachment example also 2021-08-01 16:17:05 +00:00
tnn 2a55bc0beb ssdfb(4): nix BUGS section, add EXAMPLES section 2021-08-01 15:35:47 +00:00
wiz e2a90e41be Fix typos. 2021-07-28 11:32:21 +00:00
manu e5ffdc00de Tie the maximum file lock per unprivilegied uid to kern.maxfiles
This makes the limit simple to raise at run time. While there, document
that fcntl(2) and flock(2) may return ENOMEM when this limit is reached.
2021-07-27 09:32:55 +00:00
nia 92e19c2b10 Add a man page for amdccp(4) 2021-07-25 07:35:55 +00:00
pgoyette 7e0a9c140e module_hold() returns void, not int
XXX module_hold() and module_rele() should probably not be exposed, since
XXX they really aren't MP-safe.
2021-07-22 01:38:45 +00:00
nia d0318bc6c3 Swap encryption no longer experimental or default-off. 2021-07-13 16:56:43 +00:00
mrg fc1fab36bb switch Mesa 19 to use MesaLib.old subdir. 2021-07-11 22:07:35 +00:00
mrg 6579c40d91 xorg-server is now 1.20.12. 2021-07-11 00:13:49 +00:00
jmcneill 84b16ca6b7 build fix 2021-07-06 09:30:07 +00:00
dholland 723d09ce8e Add containment for the cloning devices hack in vn_open.
Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.

Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.

This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.

Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)

This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)
2021-06-29 22:40:53 +00:00
wiz e58f3f6928 Remove unnecessary Pp, fix formatting, remove empty line. 2021-06-29 10:26:00 +00:00
wiz ee7020df38 Fix date. 2021-06-29 10:25:33 +00:00
nia f3c68eb2b0 Remove uscanner(4) driver
This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
2021-06-29 10:22:33 +00:00
gutteridge 1115b3e02c boot.8: minor grammar tweaks 2021-06-22 03:39:21 +00:00
gutteridge b2e48ae440 mbr.8: fix a typo 2021-06-22 03:30:06 +00:00
yamaguchi 718c28d1e1 lagg: fix typo 2021-06-21 06:36:28 +00:00
thorpej 17524afeeb x/I no longer has special meaning on alpha, and behaves just like x/i. 2021-06-21 02:12:00 +00:00
mrg 5be704ed29 switch m68000, m68k and 32 bit arm to GCC 10. just sh3 left!
special thanks to rin for fixing arm32.
2021-06-19 06:19:35 +00:00
riastradh eace48406f EEE: embrace, extend, extinguish; or eastern equine encephalitis 2021-06-18 21:58:20 +00:00
riastradh 076e35792d if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
2021-06-16 00:21:17 +00:00
jdc d9e6c5d988 Add a bugs section about inserting two cards with different requirements. 2021-06-11 05:10:45 +00:00
dholland 7cec841687 Mention in ums(4) that a lot of usb mice detach/reattcah when not in use.
Prompted by PR 56209 but not related to the actual problem there.
2021-06-07 03:04:50 +00:00
nia 6fea7fb4ad actually, an anchor is needed so the period is appended 2021-06-04 12:43:14 +00:00
nia 081ceff646 remove empty anchor text 2021-06-04 12:29:33 +00:00
nia e4f8ed1955 re-order initial sections in the order a user is likely to be able
to address them. add a section on NPF. attempt to make various things
easier to find.
2021-06-04 12:12:02 +00:00
wiz 306a842f34 Fix typo. 2021-06-04 11:56:47 +00:00
nia 1068f92f08 adjust layout of afterboot(8) to make things easier to find 2021-06-04 11:48:18 +00:00
nia 40ec0685cd capitalization police, etc 2021-06-04 11:33:18 +00:00
riastradh 96893e54be uvm(9): Enable swap encryption by default.
For machines where the performance impact of swapping before the
system has an opportunity to process `vm.swap_encrypt=0' in
/etc/sysctl.conf, you can disable it again by adding

options 	VMSWAP_DEFAULT_PLAINTEXT

to the kernel config.
2021-06-03 20:18:06 +00:00
wiz 9fa9487eaa Remove i386/autoconf(4) and i386/console(4) to x86/autoconf(4) and x86/console(4)
Part of PR 36350.
2021-06-03 07:41:26 +00:00