rillig
9cea3ffa32
lint: warn about 'char * = strchr(const char *, int)'
...
Found in findcc.c, there are about 25 other instances of this
incongruency in the whole source tree.
For more examples of functions from the C Standard Library that
implicitly remove the 'const' qualifier from an argument, see the C++
include file 'cstring'.
2021-08-09 20:07:23 +00:00
andvar
32a556f954
fix various typos in comments and messages.
2021-08-09 19:24:32 +00:00
rillig
00782fec55
tests/lint: make list of tests simpler
...
Since the file /usr/tests/usr.bin/xlint/lint2/tests has only been in the
file set for a few minutes, it is not marked as obsolete but simply
removed.
2021-08-08 00:02:02 +00:00
rillig
0d9d928d83
tests/lint: test reading of 128-bit integer types and printf
2021-08-07 23:52:32 +00:00
rillig
9a9312cf60
tests/lint: add test for reading the lint1 output
2021-08-07 21:24:13 +00:00
martin
fb69eb3d0e
Fix copy+pasto (wrong dir for t_lint2)
2021-08-06 08:44:31 +00:00
rillig
2e1c5b53fe
tests/lint: add test skeletons for messages from lint2
2021-08-05 22:36:07 +00:00
rillig
827aba3693
tests/lint: test emitting 128-bit integer types for lint2
2021-08-05 06:34:42 +00:00
rillig
a88eea7df9
tests/lint: test GCC extension for casting to union type
2021-08-03 20:34:23 +00:00
rillig
e4a7be9ba1
tests/lint: test casting a struct to another struct
2021-08-03 18:03:54 +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
rillig
c8782a7cbc
tests/lint: test the usual arithmetic conversions in traditional C
2021-08-01 16:29:28 +00:00
rillig
5489342aeb
tests/lint: test the usual arithmetic conversions
...
The function 'balance' does not mention __uint128_t and nevertheless
works as expected. Need to investigate further.
2021-08-01 13:31:48 +00:00
rillig
c790f31b75
tests/make: split tests for the variable modifier ':O'
...
The tests for parse errors are now in varmod-order, which lets the other
tests focus on the desired behavior of the modifiers.
2021-07-31 20:55:45 +00:00
rillig
d7db1322e4
tests/make: register test varmod-order-numeric
2021-07-30 21:29:00 +00:00
rillig
a3535e9c45
tests/lint: cover every code line in the grammar
2021-07-25 22:03:42 +00:00
rillig
b51ebfa06f
tests/lint: test declarators with attributes
2021-07-25 17:27:07 +00:00
rillig
8c0cb28db5
tests/lint: demonstrate missing support for GCC typeof
2021-07-25 10:57:38 +00:00
rillig
f450420d6f
tests/lint: test parse errors in statements
...
These errors are really unrealistic. Most parse errors that occur in
statements are already handled elsewhere and continue with the next
semicolon.
The tests had to be split into two separate files because lint assumes
that after the 5th parse error, it does not make sense to continue this
translation unit.
2021-07-25 09:29:20 +00:00
rillig
6201c2aa16
tests/lint: test parsing of type_name
2021-07-25 08:42:28 +00:00
nia
92e19c2b10
Add a man page for amdccp(4)
2021-07-25 07:35:55 +00:00
jmcneill
dd061977e6
amd64: liveimage: use RC_CONF_EXTRA instead of rc.conf.d
2021-07-24 16:13:44 +00:00
jmcneill
9764bcee56
evbarm: liveimage: use RC_CONF_EXTRA instead of rc.conf.d
2021-07-24 14:00:08 +00:00
jmcneill
e5de8b183d
bootimage: allow appending additional rc.conf options
...
If RC_CONF_EXTRA is defined, append the contents of this file to the
target file-system's rc.conf
2021-07-24 13:59:28 +00:00
jmcneill
bbc876812d
evbarm: Add build.sh live-image support for armv7/aarch64
2021-07-23 21:53:33 +00:00
mrg
5bb478fc82
fix typo in unused obsolete set name. noted by tnn.
2021-07-22 21:49:44 +00:00
rhialto
ad4e58736d
Extract just the random bits to feed to /dev/urandom.
...
This makes no difference in the randomness of the pool, but it improves
on the estimation (if any) of how many random bits were obtained.
Also make the ftp -q time out a bit longer since I got some time outs.
2021-07-20 19:31:23 +00:00
rhialto
7f45e8c6a2
Don't override /etc/rc.conf if it sets ec2_init.
2021-07-20 19:27:51 +00:00
rillig
ae95f90ee9
tests/lint: cover more edge cases in the parser
2021-07-15 21:00:05 +00:00
rillig
ebf03b177e
tests/lint: test struct declarations
2021-07-15 19:51:29 +00:00
rhialto
7a21ea705e
Add some OpenStack support.
...
I found that in the cloud I tried, by the time this script runs, there
is no default route in effect yet. That takes some 5 to 10 seconds
longer. So I added a retry loop, and to make that easier, changed the
order of queries. To make sure it doesn't wait ~forever for a
non-existent service I added the -q 1 option to ftp invocations.
I also added OpenStack-specific metadata which contains a different
random_seed of 512 bytes every time it is requested. See
https://github.com/openstack/nova/blob/master/nova/api/metadata/base.py#L355
It may not be trusted data but only in the strictest sense of the word.
The data can only be observed by people with access to the cloud's
overlay network for the particular VM.
2021-07-15 19:03:17 +00:00
rhialto
9e2fdf32c3
Recognize OpenStack too (it also has a metadata service).
...
Typical values for machdep.dmi are:
machdep.dmi.system-vendor = OpenStack Foundation
machdep.dmi.system-product = OpenStack Nova
machdep.dmi.system-version = 17.0.12
machdep.dmi.system-serial = c46130fb-a56e-43f2-9d98-492d24656b9c
machdep.dmi.system-uuid = 680b8119-0d74-4f78-a6fd-e79dfede905c
machdep.dmi.bios-vendor = SeaBIOS
machdep.dmi.bios-version = 1.10.2-1ubuntu1
machdep.dmi.bios-date = 20140401
machdep.dmi.chassis-vendor = QEMU
machdep.dmi.chassis-type = QEMU
machdep.dmi.chassis-version = pc-i440fx-2.8
machdep.dmi.processor-vendor = QEMU
machdep.dmi.processor-version = pc-i440fx-2.8
machdep.dmi.processor-frequency = 2000 MHz
2021-07-15 17:20:25 +00:00
rillig
60f9e3d3c0
tests/lint: test precedence of operators
2021-07-15 17:09:08 +00:00
rillig
a4bbb22780
tests/lint: add several tests for edge cases in the grammar
2021-07-14 20:39:13 +00:00
ozaki-r
83b6f2d1d3
tests: add tests for ALTQ CBQ
2021-07-14 03:22:33 +00:00
ozaki-r
58bf21983f
Rump-ify ALTQ (librumpnet_altq.so)
2021-07-14 03:19:23 +00:00
rillig
74ecc89265
tests/lint: test binary integer literals and underscores
2021-07-13 19:38:10 +00:00
mrg
ba02891dc9
move the i18n modules into libX11 directly.
...
fixes at least alacritty, and saves memory too.
2021-07-13 05:53:12 +00:00
mrg
2653f85101
remove mesa < 18 support
2021-07-11 20:48:48 +00:00
rillig
ef79d386d3
lint: support __attribute__((hot))
...
The corresponding attribute 'cold' was already added in cgram.y 1.84
from 2016-12-29.
2021-07-11 19:24:41 +00:00
rillig
c35341a502
tests/lint: test dangling else
2021-07-11 18:58:13 +00:00
tsutsui
1008de6bc8
Mention that emulated disks by HPDisk and HPDrive work.
...
Also add more HP-IB disk models per recent changes.
2021-07-11 14:17:48 +00:00
tsutsui
dbdaeffbea
HP9000/360 can have up to 16 MB RAM, not 48 MB.
...
Per Service Information Manual HP 9000 Series 300 Computers Models 360/370.
2021-07-11 13:53:48 +00:00
mrg
bca64f6d85
bump minor for for libXfixes 6.0.0's new function
2021-07-11 00:08:06 +00:00
rillig
a829c06c9c
tests/lint: test declarations
2021-07-10 18:25:57 +00:00
rillig
ae427bfb55
tests/lint: add more tests for covering the grammar
2021-07-10 09:24:26 +00:00
tsutsui
ce046ada8b
Use more shrinked binaries from distrib/utils/x_foo versions.
2021-07-10 03:19:12 +00:00
rillig
09444204eb
tests/lint: add test for unrealistic edge cases in declarations
...
The example code for triggering these grammar rules looks completely
contrived. Even if lint had not implemented these cases, hopefully
nobody would have ever noticed.
2021-07-09 20:20:03 +00:00
tsutsui
45c2ddaf52
Use more shrinked binaries from distrib/utils/x_foo versions.
2021-07-09 19:11:06 +00:00
yamaguchi
b0d413b9c0
added tests for IFF_PROMISC of vlan(4)
2021-07-09 05:54:11 +00:00