Commit Graph

17397 Commits

Author SHA1 Message Date
sjg cb2c55cb6a Enable make/unit-tests/directive-for-break
Also ensure MAKE_VERSION is ignored.
2022-09-02 18:54:25 +00:00
tsutsui 6baa9127b6 Avoid more obsolescent binary primaries not supported by crunched test(1).
See PR/54835 and PR/56983 for details.
2022-08-28 12:44:00 +00:00
christos aa52e7fbf7 fix sets 2022-08-28 07:30:41 +00:00
dholland a611fd1e16 Attach tradcpp to the build. 2022-08-27 21:53:38 +00:00
christos 5dd94c5e95 Add sincos{,f,l} from FreeBSD 2022-08-27 08:31:58 +00:00
lukem dac6dcb8de Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC
Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
   including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
   EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.
2022-08-21 07:10:03 +00:00
tsutsui f4c6ab5a8c Fix yet another "[: SMALL test, no fallback usage" error on installation.
The same problem as PR/54835 of the miniroot scripts, i.e.
avoid and replace use of -o binary primary marked obsolescent
by POSIX.1-2017:
 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_12
8_16

Noticed on installation of NetBSD 9.3 on TT030, and
maybe should be pulled up to netbsd-9.
2022-08-20 20:50:41 +00:00
kre ed6340463e Add Europe/Kyiv to the sets list - fix the builds. Apologies... 2022-08-17 14:03:05 +00:00
riastradh cc725e3507 viocon(4): New virtio tty driver imported from OpenBSD.
viocon* at virtio?

/dev/ttyVI??

Tested under qemu with:

qemu-system-aarch64 ... \
  -device virtio-serial \
  -chardev socket,path=/tmp/ttyVI00,server=on,wait=off,id=ttyVI00 \
  -device virtconsole,chardev=ttyVI00,name=org.NetBSD.dev.ttyVI00 \
  ...

I updated MAKEDEV.conf to create /dev/ttyVI?? on all ports where it
looks likely to work based on:
(a) having pci or a non-pci virtio attachment,
(b) `qemu-system-$ARCH -M ?' mentioned something resembling the port,
    and
(c) `qemu-system-$ARCH -device virtio-serial' launched without
    complaining about the virtio-serial device.

(Criterion (c) excluded sparc and sparc64.)
2022-08-12 11:15:40 +00:00
riastradh 920e28df65 cgdconfig(8): Add support for shared keys.
New clause `shared <id> algorithm <alg> subkey <info>' in a keygen
block enables `cgdconfig -C' to reuse a key between different params
files, so you can, e.g., use a single password for multiple disks.
This is better than simply caching the password itself because:

- Hashing the password is expensive, so it should only be done once.

  Suppose your budget is time t before you get bored, and you
  calibrate password hash parameters to unlock n disks before you get
  bored waiting for `cgdconfig -C'.

  . With n password hashings the adversary's cost goes up only by a
    factor of t/n.
  . With one password hashing and n subkeys the adversary's cost goes
    up by a factor of n.

  And if you ever add a disk, rehashing it will make `cgdconfig -C'
  go over budget, whereas another subkey adds negligible cost to you.

- Subkeys work for other types of keygen blocks, like shell_cmd,
  which could be used to get a key from a hardware token that needs a
  button press.

The <info> parameter must be different for each params file;
everything else in the keygen block must be the same.  With this
clause, the keygen block determines a shared key used only to derive
keys; the actual key used by cgdconfig is derived from the shared key
by the specified algorithm.

The only supported algorithm is hkdf-hmac-sha256, which uses
HKDF-Expand of RFC 5869 instantiated with SHA-256.

Example:

	algorithm aes-cbc;
	iv-method encblkno1;
	keylength 128;
	verify_method none;
	keygen pkcs5_pbkdf2/sha1 {
		iterations 39361;
		salt AAAAgMoHiYonye6KogdYJAobCHE=;
		shared "pw" algorithm hkdf-hmac-sha256
		    subkey AAAAgFlw0BMQ5gY+haYkZ6JC+yY=;
	};

The key used for this disk will be derived by

	HKDF-HMAC-SHA256_k(WXDQExDmBj6FpiRnokL7Jg==),

where k is the outcome of PBKDF2-SHA1 with the given parameters.

Note that <info> encodes a four-byte prefix giving the big-endian
length in bits of the info argument to HKDF, just like all other bit
strings in cgdconfig parameters files.

If you have multiple disks configured using the same keygen block
except for the info parameter, `cgdconfig -C' will only prompt once
for your passphrase, generate a shared key k with PBKDF2 as usual,
and then reuse it for each of the disks.
2022-08-12 10:49:17 +00:00
riastradh a7c16118d0 cgdconfig(8): New -t operation just prints the derived key in base64.
For testing purposes.
2022-08-12 10:48:27 +00:00
mrg a14297961e install new xorgproto files. 2022-08-12 07:35:55 +00:00
riastradh 5c23615bdf i915: Restore non-obsolete set list entries. 2022-08-05 08:48:36 +00:00
mlelstv d2698c432d Move libisns to /lib to allow /sbin/iscsid to work without /usr being
mounted.
2022-07-31 12:40:35 +00:00
pgoyette d4dfd05175 The new drm modules made the image file grow again! Bump the size
limit a bit.

XXX Other $ARCH might also need this.
2022-07-30 00:55:38 +00:00
riastradh 709f669d54 drm: Hook up the drmkms modules to the build. 2022-07-28 22:00:23 +00:00
martin 116a16e639 Revert editor mishap in r1.10 2022-07-28 16:45:31 +00:00
pgoyette 9781142f34 And, we're not ready for 10.0 yet, so remove a couple premature lines!
Thanks, Rin!
2022-07-28 00:33:57 +00:00
pgoyette a5b39220d5 remove duplicate entry and blank line that crept in from somewhere. 2022-07-28 00:14:40 +00:00
pgoyette 277dad01a2 Oopppss, /usr has no `e' :) 2022-07-27 20:34:30 +00:00
pgoyette b61ea6bcac Include debug files for new amdgpu modules 2022-07-27 20:28:41 +00:00
maya 895e74fe94 Enable amdgpu module & firmware on x86
Make it easier to test this one out, add `load amdgpu` before boot netbsd.

XXX there should probably be a drm block in sys/modules/Makefile which
includes aarch64.
2022-07-27 18:29:35 +00:00
wiz 5bea87492d Build and install pkgconfig files for liblzma and libarchive 2022-07-22 15:43:36 +00:00
kre fa7d65a3b6 Add ATF tests for realpath(1)
Note that realpath can act differently for root than for other users
(where an ordinary user will see EACCESS root just barrels right through).

The tests adapt themselves, when run as root, less error cases can be
tested than when run as some other user.
2022-07-21 09:52:48 +00:00
mrg 309ada3c2c properly mark glint_drv.so.1.debug obsolete 2022-07-17 05:51:29 +00:00
mrg 98b26dcb38 s3 driver is not available here either. 2022-07-16 19:46:50 +00:00
mrg fc58e94d8e revert part of the previous - sgimips is still default to xorg-server 1.10. 2022-07-15 18:58:09 +00:00
mrg ef2fc67d8d properly mark glint_drv has obsolete. 2022-07-15 11:34:59 +00:00
mrg 00aa3b9410 fix some builds (no longer built drivers.) 2022-07-15 10:44:21 +00:00
mrg 5b643e9ab6 properly mark an obsolete file obsolete. 2022-07-15 05:11:14 +00:00
mrg 896abb3b6a updates for xorg-server 21.1.3. 2022-07-15 04:47:55 +00:00
mrg 5e6699cc80 also move cvt manual parts into the xbase set. 2022-07-15 00:16:04 +00:00
mrg 93f87cd297 fix sets after making cvt(1) for everyone
remove duplicate entries for Xorg and gtf
2022-07-14 23:55:53 +00:00
mrg dcf0b487fd build and install libxcvt, and it's cvt(1). 2022-07-14 07:41:49 +00:00
mrg 355d19546f add libxvct include subdir. 2022-07-14 06:53:40 +00:00
hgutch 07aadaa0c8 Check for right sysctl node to make live image work OOTB on OpenStack:
machdep.dmi.system-product = OpenStack Compute
2022-07-13 18:51:03 +00:00
mrg 25f6f91bd6 bump the krb_drv.so version (oops forgot to commit this yesterday.)
should fix most of the 46 builds broken currently..
2022-07-12 23:19:53 +00:00
mrg 7c159d6853 updates for xcb-proto 1.15.2. 2022-07-12 02:44:43 +00:00
mrg 59904b6a7b updates for the merged cirrus driver (apline/laguna sub-drivers are gone.) 2022-07-12 01:51:05 +00:00
mrg 939d0e6b06 updates for libdrm 2.4.112. 2022-07-11 19:33:33 +00:00
nia 9668cd9f7d Add a manual page for udl(4) 2022-07-10 19:49:24 +00:00
mrg 441b3b4dac include bsd.own.mk to ensure that USE_XZ_SETS is set properly before using it.
this should fix PR#56919.
2022-07-10 04:01:07 +00:00
nia 51ce44ea2b Add a man page for slurm(4) 2022-07-08 16:50:10 +00:00
nia f16ece3123 Add a manual page for uintuos(4) 2022-07-08 08:59:33 +00:00
martin b570478b50 Tegra TX2 dtb files are build for big endian aarch64 too. 2022-07-06 15:24:58 +00:00
rillig 715e58e70b lint: add additional queries that are not enabled by default
In the last 18 months, several lint warnings have been made adjusted to
allow common usage patterns.  For example, lint no longer warns about a
constant condition in the statement 'do { ... } while (false)' (message
161), as this pattern is well-known in statement-like macros, making it
unlikely that the 'false' is a mistake.  Another example is casts
between unequal pointer types (message 247) for a few well-known
patterns that are unlikely to be bugs.

Occasionally, it is useful to query the code for patterns or events that
would not justify a warning.  These patterns are modeled as predefined
queries that can be selected individually, in addition to and
independently of the existing warnings and errors.

New queries can be added as needed, in the same way as new warnings.
Queries that are deemed no longer used can be deactivated in the same
way as warnings that are no longer used.

As long as none of the queries is enabled, they produce a minimal
overhead of querying a single global variable.  Computations that are
more expensive than a few machine instructions should be guarded by
any_query_enabled.

https://mail-index.netbsd.org/source-changes-d/2022/06/28/msg013716.html

ok christos@
2022-07-05 22:50:41 +00:00
martin 3b7b1db2d2 Build dtb files for the Tegra TX2 2022-07-04 18:25:45 +00:00
rillig 5716ac4baa tests/lint: remove .exp files, as they have become redundant
Now that each lint1 test lists all generated diagnostics as 'expect'
comments, the information from the .exp files is no longer needed.  The
only information that gets lost is the order of the diagnostics, which
is mostly relevant for paired messages like 'inconsistent definition' +
'previous definition was here'.
2022-06-17 20:23:58 +00:00
rillig 36dcebf9e1 tests/lint: add more details to messages in msg_200 until msg_299
Add some tests that were previously empty.  Some other tests are still
empty.
2022-06-16 21:24:41 +00:00
rillig 65e5c21b37 tests/lint: make expectation lines in the tests more detailed
This commit migrates msg_100 until msg_199.
2022-06-16 16:58:35 +00:00
tsutsui 34941bda13 Add luna68k specific section 4 man pages.
Taken from mostly OpenBSD/luna88k and partially NetBSD/hp300.
2022-06-12 03:51:13 +00:00
rillig b511067d09 tests/lint: fix test for loss of accuracy on ILP32 platforms
The test had been wrong since msg_132.c 1.14 from 2022-05-30.

Using 'unsigned long' in a test that was intended to behave the same on
ILP32 and LP64 was an accident.  Use 'unsigned long long' instead, which
is 64-bits wide on all platforms supported by lint.

Move the test about conversion from 'long' to 'int' to the
platform-specific test files.

Noticed by martin@ on powerpc.
2022-06-10 18:29:01 +00:00
uwe a503ab7560 Terminus Font: Import latin1 encoded versions from 4.49.1 2022-06-08 19:27:37 +00:00
nia 402b924225 revert bits and pieces I accidentally included in my last commit
from hannken
2022-06-06 13:28:55 +00:00
nia 3299e8e2bf Remove accidentally committed merge conflict line. 2022-06-06 10:57:05 +00:00
nia b7957d1677 build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.
2022-06-06 10:56:27 +00:00
pgoyette c1b2d682cf Add sets-lists entries for the new combined midi_seq module 2022-06-04 03:32:04 +00:00
andvar 7a3188d95f some srm firmware (including legacy platforms) still available at hp ftp.
not sure if HPE selling firmware CDs, but it is definitely not Compaq anymore.
2022-06-03 15:36:36 +00:00
andvar c8f8b6bbdf fix link to pkgsrc.tar.gz file in postinstall section. 2022-06-03 14:02:48 +00:00
andvar b9acd6afaf fix the title of the boot tape creation section. 2022-06-03 13:50:32 +00:00
riastradh 2b5e567d9c libc: Reintroduce getentropy.
This was introduced two years ago when the getrandom/getentropy API
question was still open, and removed because the discussion was
ongoing.  Now getentropy is more widely adopted and soon to be in
POSIX.  So reintroduce the symbol into libc since we'll be keeping it
anyway.  Discussion of details of the semantics, as interpreted by
NetBSD, is ongoing, but the symbol needs to get in before the
netbsd-10 branch.  The draft POSIX text is
(https://www.opengroup.org/austin/docs/austin_1110.pdf):

    SYNOPSIS
        #include <unistd.h>

        int getentropy(void *buffer, size_t length);

    DESCRIPTION
        The getentropy() function shall write length bytes of data
        starting at the location pointed to by buffer. The output
        shall be unpredictable high quality random data, generated by
        a cryptographically secure pseudo-random number
        generator. The maximum permitted value for the length
        argument is given by the {GETENTROPY_MAX} symbolic constant
        defined in <limits.h>.

    RETURN VALUES
        Upon successful completion, getentropy() shall return 0;
        otherwise, -1 shall be retunred and errno set to indicate the
        error.

    ERRORS
        The getentropy() function shall fail if:

        [EINVAL]        The value of length is greater than
                        {GETENTROPY_MAX}.

        The getentropy() function may fail if:

        [ENOSYS]        The system does not provide the necessary
                        source of entropy.

    RATIONALE
        The getentropy() function is not a cancellation point.

Minor changes from the previous introduction of getentropy into libc:

- Return EINVAL, not EIO, on buflen > 256.
- Define GETENTROPY_MAX in limits.h.

The declaration of getentropy in unistd.h and definition of
GETENTROPY_MAX in limits.h are currently conditional on
_NETBSD_SOURCE.  When the next revision of POSIX is finalized, we can
expose them also under _POSIX_C_SOURCE > 20yymmL as usual -- and this
can be done as a pullup without breaking existing compiled programs.
2022-05-31 13:42:58 +00:00
rin dd3ee07da4 Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.
2022-05-30 15:06:54 +00:00
nia da7913c09e mk: Add MKTIMED and MKMOUSED flags for compiling NetBSD without timed
and moused
2022-05-29 15:23:20 +00:00
nia 8469593b52 mk: Add a MKPPP flag to exclude pppd(8) and related utilities from
the build
2022-05-29 08:09:59 +00:00
andvar 67cf5ffde0 s/hierach/hierarch/ 2022-05-28 21:57:39 +00:00
nia e994758d71 mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.
2022-05-28 14:31:11 +00:00
nia f2e2da3feb mk: Add MKNTP, MKTCPDUMP knobs. 2022-05-28 11:17:35 +00:00
nia cbb875961a mk: Add a MKLFS flag for excluding the log-structured filesystem userspace
tools from the build.
2022-05-27 07:28:20 +00:00
nia 6678627ac7 mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.
2022-05-25 21:25:46 +00:00
nia f52526086f mk: Allow setting MKDHCPD=no to build base without the ISC DHCP server,
useful for embedded images that don't need to act as one.
2022-05-25 20:44:01 +00:00
nia 3b39fcc49f debug pieces should also be installed conditionally based on MKMBONE 2022-05-25 12:47:40 +00:00
nia 30fbdc74a3 mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf
2022-05-25 10:18:28 +00:00
andvar 9f4a9600be fix various typos in comments, docs and log messages. 2022-05-24 06:27:59 +00:00
rillig 6b107a132e tests/make: document and demonstrate .for i containing .if empty(i)
PR bin/43821 describes the inconsistency that in a '.for i' loop, the
condition '.if ${i:M*.c}' works since 2009 while the seemingly
equivalent condition '.if !empty(i:M*.c)' does not access the variable
'i' from the .for loop but instead the global 'i'.

Resolving this situation in a backwards-compatible and non-surprising
way is hard, as make has grown several features during the last 20 years
that interact in various edge cases.  For now, document the most obvious
pitfalls.
2022-05-23 22:33:56 +00:00
jmcneill 8bc77b2dd2 Restore Makefile.installimage include after variables are set. Makes amd64
USB install images bootable again.
2022-05-22 19:32:41 +00:00
rillig 345652c15e tests/compress: demonstrate truncation of target file
Reported by Giorgos Keramidas in PR#19722.
2022-05-22 17:55:08 +00:00
andvar f42f89fd6f fix various small typos, mainly in comments. 2022-05-22 11:27:33 +00:00
mrg c90a6d284e install the lower case radeon firmware files into /usr/libdata/firmware.
radeon has different case but same name firmware files.  the lower case
ones are already installed into /libdata/firmware, and to avoid having
to provide some special method to build on systems with case-preserving
file systems (such as macOS), we install the lower case ones in /usr.

this means that anyone that requires the lower case files must either
have /usr as part of the / file system, or manually keep them updated.

last part of PR#54976, though i doubt we'll try to pull up these.

this is enabled on i386, amd64 and arm64.
2022-05-15 00:24:14 +00:00
mrg 95edaa90e6 allow some invocations of expr(1) to "fail" - expr(1) returns "1" is
the expression expands to "0" or empty, and sometimes these values end
up correctly being 0.
2022-05-15 00:05:24 +00:00
uwe 050f0752dd Terminus Font: Import 12pt and 28pt IBM437 fonts too. 2022-05-14 17:52:10 +00:00
uwe 8d7f698117 Terminus Font: Import IBM-encoded versions from 4.49.1
Terminus Font is a clean, fixed width bitmap font, designed for long
(8 and more hours per day) work with computers.

The font has a very good script coverage and subsets with other
encodings can be imported in the future.

This commit imports IBM437 encoded (WSDISPLAY_FONTENC_ISO) subsets
converted to WSF format.  wsfont metadata are stored in the files, so
you can load them without any additional arguments to wsfontload(8).
2022-05-14 14:02:08 +00:00
brad 3cdfb747ad Add LINKS and MLINKS to the ddns-confgen Makefile to provide
tsig-keygen.  This helps to allow pkgsrc/security/acmesh to function
and should be provided in all BIND >= 9.13 installs anyway.
2022-05-13 16:39:32 +00:00
rillig c1ebf8f4b6 tests/lint: add more tests for __alignof__ 2022-05-12 20:49:21 +00:00
rillig 91bf128de4 tests/lint: adjust tests to reflect missing support of __alignof__
The change in lex.c 1.129 attempted to add support for __alignof, in
addition to the existing support for __alignof__.  It failed by removing
support for __alignof__, while allowing the plain 'alignof' instead.
2022-05-12 00:09:44 +00:00
rin fbe173fe52 Drop IEEE 802.11 support from ifconfig(8).
Reduce ~9KB, and atari builds again for me.
2022-05-11 10:47:10 +00:00
rin 7d0374d5e7 Introduce NOIEEE80211 option, by which IEEE 802.11 support is dropped from
ifconfig(8) in crunched binaries. This saves ~9KB for, e.g., m68k.
2022-05-11 10:45:48 +00:00
rin 809f35d114 For atari install disk:
- Drop FD support from installboot(8). Reduce ~0.5KB.
- Drop primary boot loaders for FD (2 files, 0.5KB each).

Note that we continue to support these features in base.

OK tsutsui@
2022-05-11 10:36:52 +00:00
rillig bdfa9f3367 tests/make: remove test varquote
The test varmod-quote-dollar covers the same topic.
2022-05-08 10:20:49 +00:00
mrg f2d8a8f4d6 fix building amd64 with USE_XZ_SETS=no.
bump the size of images if USE_XZ_SETS != no.  consolidate a lot of
the code between installimage/Makefile and installimage-bios/Makefile
into installimage/installimage.mk.
2022-05-08 08:12:45 +00:00
rillig 794db94679 tests/make: migrate cond1 test to other, more specific tests
The tests in cond1 were a mixture of "everything related to conditions",
and the test cases were heavily dependent on each other, which made them
hard to understand.  Move each test case to its corresponding
special-purpose test.
2022-05-08 06:51:27 +00:00
andvar 0ac7f4ddbc fix various typos, mainly s/trasfering/transferring/ and s/theese/these/. 2022-05-03 20:52:30 +00:00
uwe d9b6d5a181 libXcursor: Add missing MLINKS. 2022-05-03 13:46:22 +00:00
uwe f33c454aa5 xorg-server: Add xorg.conf.d(5) MLINKS. 2022-05-03 12:53:51 +00:00
uwe dbbde5bcaf libXrandr: Add missing MLINKS. 2022-05-03 00:29:23 +00:00
uwe 2c85024b98 libX11: Install Compose(5) manual page. 2022-05-01 22:54:59 +00:00
uwe 70503e8c99 libX11: Add missing MLINKS. 2022-05-01 13:45:46 +00:00
pgoyette 726aa68aee Add a new test for PR kern/56713 and set to expected_failure for now. 2022-04-29 22:17:49 +00:00
rillig 154b5ed632 lint: revert resolving grammar conflicts for labeled statements
Restore the grammar rule for labeled_statement as it was before cgram.y
1.400 from 2022-04-24.  This allows labels with attributes again.  Fix
the wrong interpretation in the tests; the attributes belong to the
label, not to the statement.

Today in the morning, when I thought that the change in cgram.y 1.400
were innocent, I accidentally ran lint only with the options '-Sw' but
forgot the option '-g' for GNU mode.  Without that option, the token
'__attribute__' is unknown, which unsurprisingly leads to lots of syntax
errors, and these didn't change with that commit.  The actual change was
only visible in GNU mode.
2022-04-28 21:38:38 +00:00
blymn 3c9a56d88f Added new libcurses test. 2022-04-26 22:48:53 +00:00
gutteridge db7f4d8575 Update firmware for Intel Centrino Advanced-N 6205 WiFi cards
Use the final version of firmware provided for these cards. This has
been tested with both variants of impacted iwn(4) cards (6005_2X2_1 and
6005_2X2_2, as found in a Dell E6230 and a Lenovo T420), improvements
noted.
2022-04-25 02:29:13 +00:00
rillig b60cb68fed tests/indent: migrate token tests to other tests
In indent.h 1.49 from 2021-10-25, the enumeration token_type was split
into lexer_symbol and parser_symbol to more clearly express that these
tokens fall into completely different classes of usage patterns.
2022-04-24 10:36:37 +00:00
rillig 15606711d7 tests/indent: migrate tests for parentheses, brackets, braces 2022-04-24 08:48:17 +00:00
rillig 173b4e090e tests/indent: migrate tests for the tokens '{' and '.' 2022-04-23 09:59:13 +00:00
rillig c91f4bf8dd tests/indent: migrate a few token tests to psym tests 2022-04-23 09:01:03 +00:00
blymn 83e1731bf4 Add test and check file for bkgrndset 2022-04-20 07:41:04 +00:00
rillig ddac43c43f make: only switch to POSIX mode if '.POSIX:' is the first line
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
says that in order to make a makefile POSIX-conforming, its first
non-comment line must be the special dependency line '.POSIX:' without
any source dependencies.

Previously, make switched to POSIX mode even if such a line occurred
anywhere else, which was allowed by POSIX but was deep in the
"unspecified behavior" area.  For NetBSD make, there is no big
difference since it doesn't ship any <posix.mk> file, this change mainly
affects the bmake distribution.

Previously, makefiles that contain '.POSIX:' somewhere in the middle
could fail due to <posix.mk> resetting .SUFFIXES, among other things.

Suggested by Simon J. Gerraty, who also reviewed an earlier version of
this change.
2022-04-18 15:06:27 +00:00
christos 7f5154de3f bump for OpenSSH-9.0 2022-04-15 14:00:29 +00:00
pgoyette bc7accac9e Add the new scsi_subr module to sets lists. 2022-04-14 16:51:57 +00:00
martin 1d58cb4b56 Make this no-op variant of fmtcheck() compatible with the libc version
when called with NULL as first argument.
2022-04-14 15:51:29 +00:00
martin df3ac62ce2 Adapt to libcurses minor bump 2022-04-12 11:54:57 +00:00
blymn a12028486c Bump libcurses minor 2022-04-12 07:03:29 +00:00
martin ae26e95f81 Add missing EFI bootloaders to the install kernel ramdisk,
noticed by Lloyd Parkes.
2022-04-10 11:56:28 +00:00
riastradh 4f8ce3b31d Introduce membar_acquire/release. Deprecate membar_enter/exit.
The names membar_enter/exit were unclear, and the documentation of
membar_enter has disagreed with the implementations on sparc,
powerpc, and even x86(!) for the entire time it has been in NetBSD.

The terms `acquire' and `release' are ubiquitous in the literature
today, and have been adopted in the C and C++ standards to mean
load-before-load/store and load/store-before-store, respectively,
which are exactly the orderings required by acquiring and releasing a
mutex, as well as other useful applications like decrementing a
reference count and then freeing the underlying object if it went to
zero.

Originally I proposed changing one word in the documentation for
membar_enter to make it load-before-load/store instead of
store-before-load/store, i.e., to make it an acquire barrier.  I
proposed this on the grounds that

(a) all implementations guarantee load-before-load/store,
(b) some implementations fail to guarantee store-before-load/store,
and
(c) all uses in-tree assume load-before-load/store.

I verified parts (a) and (b) (except, for (a), powerpc didn't even
guarantee load-before-load/store -- isync isn't necessarily enough;
need lwsync in general -- but it _almost_ did, and it certainly didn't
guarantee store-before-load/store).

Part (c) might not be correct, however: under the mistaken assumption
that atomic-r/m/w then membar-w/rw is equivalent to atomic-r/m/w then
membar-r/rw, I only audited the cases of membar_enter that _aren't_
immediately after an atomic-r/m/w.  All of those cases assume
load-before-load/store.  But my assumption was wrong -- there are
cases of atomic-r/m/w then membar-w/rw that would be broken by
changing to atomic-r/m/w then membar-r/rw:

https://mail-index.netbsd.org/tech-kern/2022/03/29/msg028044.html

Furthermore, the name membar_enter has been adopted in other places
like OpenBSD where it actually does follow the documentation and
guarantee store-before-load/store, even if that order is not useful.
So the name membar_enter currently lives in a bad place where it
means either of two things -- r/rw or w/rw.

With this change, we deprecate membar_enter/exit, introduce
membar_acquire/release as better names for the useful pair (r/rw and
rw/w), and make sure the implementation of membar_enter guarantees
both what was documented _and_ what was implemented, making it an
alias for membar_sync.

While here, rework all of the membar_* definitions and aliases.  The
new logic follows a rule to make it easier to audit:

	membar_X is defined as an alias for membar_Y iff membar_X is
	guaranteed by membar_Y.

The `no stronger than' relation is (the transitive closure of):

- membar_consumer (r/r) is guaranteed by membar_acquire (r/rw)
- membar_producer (w/w) is guaranteed by membar_release (rw/w)
- membar_acquire (r/rw) is guaranteed by membar_sync (rw/rw)
- membar_release (rw/w) is guaranteed by membar_sync (rw/rw)

And, for the deprecated membars:

- membar_enter (whether r/rw, w/rw, or rw/rw) is guaranteed by
  membar_sync (rw/rw)
- membar_exit (rw/w) is guaranteed by membar_release (rw/w)

(membar_exit is identical to membar_release, but the name is
deprecated.)

Finally, while here, annotate some of the instructions with their
semantics.  For powerpc, leave an essay with citations on the
unfortunate but -- as far as I can tell -- necessary decision to use
lwsync, not isync, for membar_acquire and membar_consumer.

Also add membar(3) and atomic(3) man page links.
2022-04-09 23:32:51 +00:00
riastradh d49616184d membar_ops(3): Add some automatic tests.
These tests run two threads for five seconds each to try to trigger
races in the event of broken memory barriers.  They run only on
machines with at least two CPUs; on uniprocessor systems there's no
point -- the membars can correctly just be (instruction barrier)
no-ops.
2022-04-08 23:35:51 +00:00
rillig 321092b8ae lint: remove unused message 70, add some more tests 2022-04-08 21:29:29 +00:00
reinoud e997ef4acf Add fsck_udf to the debug sets 2022-04-06 14:28:44 +00:00
reinoud aaca3d49cd Add the fsck_udf(8) tool to the build and release 2022-04-06 14:20:07 +00:00
rillig e6d4541762 tests/lint: add tests for a few early messages 2022-04-05 23:09:19 +00:00
andvar 9991cde4dd Remove floppy installation instructions from sparc documentation.
Floppy generation was disabled before NetBSD 6.0 release due to size
constraints and unlikely to be restored soon or at all. PR port-sparc/56776.
ok martin.
2022-04-01 21:53:35 +00:00
pgoyette bb82a354ac Create a loaable adiantum module, and make cgd require it.
This enablees use of a loadable cgd module, rather thtan requiring
it to be built-in.

Partially resolves kern/56772
2022-04-01 21:09:24 +00:00
pgoyette 7694d68911 Split i2c_subr.c into a separate module rather than including it in
the iic module.  There are valid configurations where i2c_subr code
can be both built-in and part of a loaded module (eg, piixpm is in
the kernel, but the iic module is loaded later).  This causes the
in-kernel linker to detect a duplicate symbol.
2022-04-01 15:49:11 +00:00
christos 70ac91e3e3 Add t_link 2022-03-28 20:52:17 +00:00
christos de5bb3186c grow (for llvm) 2022-03-26 17:11:20 +00:00
christos c7671db9d6 grow 2022-03-26 17:09:53 +00:00
wiz 83aebf56b2 add more igpio man pages (cat4, html4) 2022-03-24 16:33:05 +00:00
manu 5943c0fc2c Add man page for Intel GPIO igpio.4 2022-03-24 14:04:28 +00:00
andvar 4d969a39c0 fix few typos in comments and output message. 2022-03-13 14:20:24 +00:00
mrg f3bf968556 disable compatfile for filter-aaaa.so. 2022-03-07 09:45:02 +00:00
mrg 55bbcc605b comment filter-aaaa.so.debug for now. it's not installed normally
and will need a special rule, left as an exercise to the reader.

make plugins .WAIT on everything else.
2022-03-07 09:23:20 +00:00
mrg 2bd052e5d8 enter the bind plugins library dir, and also add missing set lists.
fixes building sets for at least vax.
2022-03-07 07:07:55 +00:00
christos 859122dbc4 add filter-aaaa 2022-03-06 17:54:52 +00:00
mrg 0610295431 fix ati_drv version after switching to newer sources for everyone. 2022-02-25 17:42:59 +00:00
mrg 2104676143 enable blkdiscard(8) build. 2022-02-24 03:35:32 +00:00
christos 1362f06b78 bump libssh 2022-02-23 19:09:42 +00:00
uwe 688bac70ae libXi: Bring back manual pages. 2022-02-22 22:49:39 +00:00
uwe 739fa5515a libXxf86vm: Add missing XF86VidModeAddModeLine.3 mlink. 2022-02-22 15:42:09 +00:00
uwe 23312573e7 libXv: add missing man pages added in libXv-1.0.5
While here, split MAN and MLINKS into individual += assignments and
sort them.
2022-02-22 00:05:13 +00:00
uwe 66a03ef37b libXext: Fix MLINKS for XShape.3
XShapeQueryExtension.3 and XShapeQueryVersion.3 are not conjoined twins.
While here split XShape.3 links into separate MLINKS += src dst assignments
and sort them.
2022-02-21 02:13:47 +00:00
nia 7fb7867321 Be less optimistic about i386 system reqirements. Remove extremely outdated
list of support devices.
2022-02-20 09:40:07 +00:00
uwe 21a341520d Add missing cat pages to fix MKCATPAGES build. 2022-02-16 01:26:30 +00:00
riastradh 66d107c557 KERNEL_LOCK(9): New man page for old not-dead-yet hack.
I'm not documenting this to encourage anyone to use it.  I'm only
documenting this to remind myself what the semantics is, because it's
kind of confusing and not at all like mutex(9).
2022-02-15 22:46:29 +00:00
riastradh 59e18dd467 __cpu_simple_lock(9): New man page.
This doesn't mean you should use it!  Mostly it's to document the
semantics to help understand existing uses, which should not
proliferate, and audit definitions.
2022-02-12 17:10:20 +00:00
rillig d865043f3f tests/make: document the history of bugs in '-k' mode
Reported in PR#49720 in 2015, fixed independently in compat.c 1.199 from
2020-12-07.
2022-02-12 13:17:57 +00:00
rillig b048c4e49a tests/make: demonstrate bug for .SILENT in jobs mode (since 2003)
Reported 2011 in PR#45356.
2022-02-12 01:15:17 +00:00
rillig 1c62825e82 tests/make: demonstrate combination of .USE with transformation rule
Reported in 2003 in PR toolchain/20993.  Linking a transformation rule
with .USE or .USEBEFORE node makes the transformation rule fail.
2022-02-07 22:43:50 +00:00
nia fb47004043 Add pf(4) to the "list of features we plan to remove" (eventually)
list in the installation notes. Ironically, the only other thing here
is groff(1), which is used to generate these installation notes.
2022-02-06 07:37:29 +00:00
tsutsui 991df208a5 Use more shrinked tools in src/distrib/utils.
Saves ~24KB.
2022-02-04 17:21:56 +00:00
tsutsui 4ee8b2d39f Specify -fno-unwind-tables to shring ramdisk binaries.
Saves ~8KB.
2022-02-04 17:19:52 +00:00
andvar 34df0b3791 remove double "with" in comments and usage text. Also fix one typo. 2022-01-24 09:42:13 +00:00
rillig c556b4e908 tests/make: migrate modts to varmod-to-separator and explain 2022-01-23 18:00:53 +00:00
rillig 76f64f81d9 tests/make: rename var-class to var-scope
There is no such concept as a "variable class" in make, these tests
focus on the variable scope instead.
2022-01-23 16:25:53 +00:00
rillig 72c3edd3a3 tests/make: extend test suite, move old tests to 2020 scheme
The tests from envfirst.mk are now in opt-env.mk.
The tests from modword.mk are now in varmod-select-words.mk.
2022-01-23 16:09:38 +00:00
christos f0fde9902f PR/56657: Juraj Hercek: Add plainrsa-gen utility mentioned in racoon.conf(5)
and fix it for OpenSSL 1.1
2022-01-23 14:35:44 +00:00
skrll a8418b3e5b Add __MASK(3)
__MASK(n): first n bits all set, where __MASK(4) == 0b1111.
2022-01-22 08:58:48 +00:00
pho ec9afb4282 lib/librefuse: Implement all sorts of compat tweaks to appease various file systems
ReFUSE now supports all the FUSE API variants from FUSE 1.1 to FUSE
3.10. Sorry for the freaking giant patch. I could not break it down
any further.
2022-01-22 08:09:39 +00:00
pho a95017a87a lib/librefuse: Add support for legacy types and functions 2022-01-22 07:57:30 +00:00
pho 97dc09a69d lib/librefuse: Add stub functions for FUSE polling API 2022-01-22 07:56:15 +00:00
pho ce847e0a0b lib/librefuse: Implement data buffer API appeared on FUSE 2.9 2022-01-22 07:54:56 +00:00
pho 9f39150738 lib/librefuse: Implement FUSE session API and its signal handling functionality 2022-01-22 07:53:05 +00:00
pho 153b9c141b lib/librefuse: Implement logging API appeared on FUSE 3.7 2022-01-22 07:38:45 +00:00
rillig 12889c829b tests/make: demonstrate wrong location in diagnostic (since 2018-12-22)
When a target has multiple places where commands are defined, the
diagnostics mixed up the filename in some cases.
2022-01-19 22:10:41 +00:00
christos eadcbf2061 new vnode op ACL pages 2022-01-17 22:49:43 +00:00
christos 5967eecb18 section 9 acl related changes 2022-01-17 19:12:01 +00:00
thorpej 5eb438ad7a Re-factor and overhaul the "mcp23s17gpio" driver as "mcpgpio", and
add support for 8-bit and I2C variants of the chip:
- MCP23008 / MCP23S08: 8-bit (I2C / SPI)
- MCP23017 / MCP23S17: 16-bit (I2C / SPI)
- MCP23018 / MCP23S18: 16-bit (I2C / SPI), open-drain outputs

The MCP23x17 and MCP23x18 are essentially identical, software-wise; we
merely report different GPIO pin capabilities (no push-pull output for
MCP23x18).  Also, remove the tri-state capability that was previously
advertised by the old version of this driver; these chips have no way
to put the pin into a HI-Z mode.

All 3 I2C versions are supported, but the SPI front-end still only
supports the MCP23S17 for now (SPI autoconfiguration needs an overhaul).

mcp23s17gpio(4) remains present as a link to the new mcpgpio(4) man page.

XXX Still to-do: FDT integration, interrupt suppoort.
2022-01-17 16:31:23 +00:00
martin 9da6ce8f23 Add sysinst catalog files 2022-01-15 16:05:19 +00:00
skrll 04e9f53ab6 bump 2022-01-13 08:25:24 +00:00
martin da781f18d7 A few more sysinst message catalog adjustments 2022-01-12 15:35:51 +00:00
martin 2546ca891c Tweak some sysinst catalog files 2022-01-11 19:27:13 +00:00
martin 906a0c5ecd Add sysinst message catalogs 2022-01-10 19:23:00 +00:00
martin 6f09f6a101 Add sysinst catalogs to a few more md lists 2022-01-10 17:50:18 +00:00
martin f58928245d Add sysinst catalog files 2022-01-10 15:31:38 +00:00
martin bbebeab223 "Unobsolete" the sysinst message catalogs, now that we install them again. 2022-01-10 10:02:30 +00:00
skrll e79355da8c Fix alpha build 2022-01-10 06:00:00 +00:00
martin 9821f7a4ed First try (certainly wrong for many builds) to add sysinst catalog files. 2022-01-09 18:11:09 +00:00
skrll cee6161ff7 Use comp-sysutil-debug (not sysutils) 2022-01-09 07:45:05 +00:00
skrll 979ce140d8 Remove unnecessary machine=emips item - it was added to
distrib/sets/lists/debug/md.emips
2022-01-09 07:38:33 +00:00
christos a42fbaa6e0 fix emips 2022-01-08 14:28:14 +00:00
skrll 72735ed0c4 Attempt to fix emips build 2022-01-08 08:40:19 +00:00
nia 2e2abd82c6 Add man pages for eqos(4), mcommphy(4)
lgtm jmcneill@
2022-01-06 21:55:23 +00:00
christos 2e4c5e6fad put back the nfs ramdisk kernel for emips. 2022-01-04 14:32:21 +00:00
christos dc8e937cab the nfs kernel is only for pmax 2022-01-03 16:44:49 +00:00
christos a7e278e4d4 move the kernels for earmv5{,eb} in the ad.arm file so that they don't
override it
2022-01-03 16:43:32 +00:00
martin 348bea3af9 There is no point in putting a second sysinst binary into the install
image's root filesystem.
2022-01-03 12:10:17 +00:00
christos 42d5a646b9 fix pmax 2022-01-02 23:10:37 +00:00
christos f43fe87265 fix part of mips 2022-01-02 16:38:36 +00:00
christos a75ac3aaa9 forgot one @CONFIG@ 2021-12-31 17:51:14 +00:00
christos d08ab2c58e Grow to fit debug kernels 2021-12-31 16:43:04 +00:00
christos 5cac1204b1 Grow a little 2021-12-31 16:40:59 +00:00
christos d83e6a7379 Add kernel debug files. 2021-12-31 16:15:58 +00:00
christos 974c7c1676 change CONFIG to @CONFIG@ to indicate substitution is going to happen. 2021-12-31 16:14:44 +00:00
pgoyette 103e3da3fd Still not big enough - bump some more. 2021-12-31 04:59:15 +00:00
pgoyette 669869f4e7 With recent changees to debug kernel stuff from Christos we are
once again pushing the size limit.  Bump it again.
2021-12-30 15:01:55 +00:00
christos 6a678624a1 don't match the empty pattern 2021-12-30 02:30:53 +00:00
christos 508aca192c Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes. 2021-12-29 22:22:12 +00:00
rillig 1ed2b64416 tests/make: document inconsistencies between '!=' and '::!='
Found while trying to make the error messages from Cmd_Exec more
detailed.
2021-12-28 00:56:16 +00:00
pgoyette 4eb53ee9e8 Once again things have grown, so the install image allocation size
needs to be bumped.

XXX There's gotta be a better way to maintain this!  :-)
2021-12-26 03:07:06 +00:00
rillig e499719151 tests/make: explain the current behavior of the option '--version' 2021-12-23 11:05:58 +00:00
thorpej 3000bba86d Document PR_PSERIALIZE. Remove documentation for pool_cache_setpredestruct(). 2021-12-22 17:28:17 +00:00
thorpej 1af3a96973 Add pool_cache_setpredestruct(), which allows a pool cache to specify
a function to be called before the destructor for a batch of one or more
objects is called.  This can be used as a synchronization point by
subsystems that rely on the type-stable nature of pool cache objects or
subsystems that use other forms of passive serialization.
2021-12-21 18:59:22 +00:00
rillig d161e75752 tests/lint: test excess braces around initializers 2021-12-20 19:48:05 +00:00
maya 682f7c225a don't conditionalize the installation of nouveau directories 2021-12-14 12:13:38 +00:00
rillig 6a699af09c make: remove unreachable code for parsing the dependency operator
At the point where ParseDependencyOp is called, cp is guaranteed to
point to either ':' or '!'.

No functional change.
2021-12-14 00:02:57 +00:00
maya 8b9ca392fe Add newer nouveau firmware build goo
Symlinks inferred from linux-firmware/WHENCE and compared to a linux distro's
firmware.

Note: said linux distro appears to have some mistakes compared to the
linux-firmware repo in linking ucode_unload.bin to unload_bl.bin and vice
versa in some places.
I didn't replicate this aspect, and lack the hardware to test it.
2021-12-13 23:59:35 +00:00
rillig d37de80bd6 tests/make: extend tests for parsing makefiles 2021-12-13 23:38:54 +00:00
rillig e67aefd60c tests/make: test and document the newly added "variable" .SUFFIXES 2021-12-12 22:16:48 +00:00
maya 1eb4f57936 Add amdgpu firmware build goo (disabled) 2021-12-12 20:33:21 +00:00
mrg d914a3c1b9 remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line.  again.  (i did this in 2008 and then
did not update all of my personal templates.)
2021-12-11 19:24:18 +00:00
uwe a737087573 Make .Nx \*V happy for current builds.
I'm not sure why mdoc complains here (not the technical reason, but
the pragmatic purpose).  My best guess is that it wants to catch
mistakes like .Fx 1.6.1 (instead of .Nx 1.6.1).  I'm not entirely
convinced this doesn't create more problems that it solves.

No objections in the 15 years since this was proposed netbsd-docs.
2021-12-08 13:06:44 +00:00
uwe cbbc3947cd Punctuation in macro invocation must be a separate argument. 2021-12-08 12:54:15 +00:00
brad bf53d44167 A driver and user land utility for the Sparkfun Serial Controlled Motor
Driver module as illustrated here:

https://www.sparkfun.com/products/13911

A SCMD module is a ARM SOC simular to a Arduino in front of a motor
driver chip.  The single SCMD module can control two motors and up to
16 additional modules can be chained together using an internal I2C
bus.  One can interface with the SCMD using tty uart commands, SPI or
I2C.  The driver in this commit adds a kernel driver for the I2C and
SPI interfaces.  The command line utility provides a set of
convenience commands that support most of the functions of the SCMD
and is able to use the tty uart mode, SPI user land or the included
kernel driver in a uniform manor.

The use of the SCMD module is mostly for small robots and the like,
but it can control anything that is controllable by voltage.
2021-12-07 17:39:53 +00:00
rillig 2089b7e855 tests/lint: demonstrate wrong warning for __builtin_alloca 2021-12-06 23:20:26 +00:00
abs 9a317b44dd Add Xwsfb X server to pmax build
With the previous tweak to TURBOchannel framebuffers in sys/dev/tc this
should allows pmax to once again run X11.

TODO: Investigate pullup to -9
2021-12-06 17:51:59 +00:00
nia f6aa23ee82 armbsd.org is gone 2021-12-05 19:43:30 +00:00
rillig 412424cefd make: fix use-after-free in modifier ':@'
Without memory allocator debugging, the newly added test doesn't show
any obvious failure.

With memory allocator debugging enabled, all make versions since
2016.02.27.16.20.06 crash with a segmentation fault.
2021-12-05 15:20:13 +00:00
msaitoh cf1a0e0a8e s/progam/program/ 2021-12-05 07:18:53 +00:00
msaitoh 83cf79d6fc s/partiton/partition/ 2021-12-05 07:06:17 +00:00
msaitoh b5ffb2e0d6 s/filesytem/filesystem/ in comment. 2021-12-05 04:47:17 +00:00
rillig d15bc7b966 tests/indent: migrate token_question to lsym_question and extend it 2021-11-28 16:20:13 +00:00
rillig 2c9e62c12f tests/indent: migrate test token_case_label to lsym_case_label 2021-11-28 16:05:59 +00:00
rillig 1284b73f20 tests/indent: migrate token_comma to lsym_comma
The section on initializer values is new.
2021-11-28 15:26:22 +00:00
rillig f8e8fcdaab tests/indent: move test for ':' to lsym_token.c 2021-11-28 14:49:28 +00:00
rillig af3ccc52b1 indent: treat L"string" as a single token
There is never whitespace between the 'L' and the string literal or the
character constant. There might be a backslash-newline between them, but
that case was not handled before either.

No functional change.
2021-11-28 14:29:03 +00:00
ryo 2f5e5e7356 add support COMPAT_LINUX32 for aarch64 2021-11-25 03:08:03 +00:00
rillig 9ae26de163 tests/indent: add skeletons for testing tokens and parser symbols
The constants that were previously defined in indent_codes.h were a wild
mixture of tokens from the lexer and symbols on the parser stack.  They
were split into separate types starting at indent.h 1.49 from 2021-10-25
and finishing at 1.73 from 2021-10-31.

To match the tests with the new token names, the old tests need to be
migrated to the newly added tests.  This will take some time so first
add the skeletons and migrate them in smaller steps, cleaning them up
and extending them on the way.
2021-11-18 21:19:18 +00:00
rillig 796d49a188 distrib/sets: sort mi file 2021-11-18 18:14:47 +00:00
thorpej 4ae1bf140a Add a test case for backtrace(3) across a signal handler. 2021-11-18 15:03:19 +00:00
kre da8d42ff88 Adjust new libcurses test filenames to the ones atually installed.
Possibly the intent was that the names used here were correct, and
the error is where they're installed - if so, that can be corrected later.

Hopefully this will fix the remaining current build issue.
2021-11-17 04:33:26 +00:00
blymn ff475afa83 Add more check files for libcurses tests. 2021-11-16 21:05:33 +00:00
christos 18b914f008 Add man pages for posix_spawn_file_actions_add{f,}chdir from piyush 2021-11-15 14:01:50 +00:00
blymn dc4ea44a5a Add new check files for curses atf. 2021-11-15 06:34:05 +00:00
skrll 50e70fef69 Hook in riscv dtb build 2021-11-13 10:13:42 +00:00
jmcneill 771794bb54 regen 2021-11-12 21:55:46 +00:00
jmcneill bd16283be1 dtb: Re-generate set lists for 5.15 2021-11-07 17:11:05 +00:00
brad 1f3d8cb8fe Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humidity
sensor such as:

https://www.adafruit.com/product/2857

This is a higher priced sensor with a lot of features, including the
ability to do sub-second periodic updates.  The driver supports
everything about the sensor except for the alert pin.
2021-11-06 13:34:39 +00:00
abs 6bf98a7596 Update some distrib X11R6 references to X11R7
Some of these scripts and notes may no longer be relevant, but now
they are at least not relevant while referring to the current X
installation directory
2021-11-02 22:02:42 +00:00
martin 0a474c24d1 Use libhack and the non-widechar hacked version of curses for
the ramdisk image to save some space.
2021-11-01 19:37:32 +00:00
thorpej 02edde8aa3 Version the sigaction(2) libc wrapper. The new version uses the "siginfo"
trampoline exclusively, thus relegating "sigcontext"-style handlers (which
have not been documented for many years now) to the dustbin of the compat
library.
2021-11-01 05:53:45 +00:00
rillig dc54a6e367 lint: warn if an enum name is used for mismatched array access
This helps to keep the enum definition and the straight-forward
implementation of a to_string or name function in sync.

The test for message 241 had to be adjusted because of exactly this bug.
That test defined a bit mask enum but accessed it like a value enum
type.
2021-10-30 22:04:42 +00:00
macallan 2aad46af06 add mgxreg.h 2021-10-29 19:12:29 +00:00
christos ec46972363 fix pic build 2021-10-27 18:19:12 +00:00
rillig 19aed58afc tests/indent: migrate remaining tests from t_indent to t_options
The test types_from_file was a subset of opt_U and thus has been
removed.
2021-10-23 21:45:14 +00:00
rillig a4008d47fd tests/indent: migrate test for '-bap -sob' to t_options 2021-10-23 20:30:23 +00:00
rillig c8dfed2873 tests/indent: migrate test for '--version' to t_options 2021-10-23 20:23:27 +00:00
rillig 0938f454d8 tests/indent: migrate test for offsetof to t_options 2021-10-23 20:17:08 +00:00
rillig 206790fc56 tests/indent: remove redundant test list_head
The test cases are already in fmt_decl.c, in old_style_definition and
LIST_HEAD.
2021-10-23 20:07:03 +00:00
rillig 4271ee73ee tests/indent: migrate f_decls to using t_options, add more tests 2021-10-23 20:01:14 +00:00
thorpej 4e78a8a8af Fix a regression introduced in kern_event.c,v 1.129 that would cause
"udata" to get clobbered on ONESHOT events, and add a unit test for it.
Reported by martin@ (manifested in his case as a KASSERT() firing when
running unit tests in COMPAT_NETBSD32).
2021-10-23 18:46:26 +00:00
thorpej d5b8844629 Add support for the EVFILT_EMPTY filter, which is activated when the
write buffer associated with the file descriptor is empty.  This is
currently implemented only for sockets, and is intended primarily to
provide visibility to applications that all previously written data
has been acknowledged by the TCP layer on the receiver.  Compatible
with the same filter in FreeBSD.
2021-10-23 01:28:33 +00:00
rillig 5cf73ea1e5 tests/indent: fix file list 2021-10-22 22:31:55 +00:00
rillig e37f4fd358 tests/indent: fix file list
lex.c got renamed to lex_ident.c.
2021-10-22 21:06:21 +00:00