Commit Graph

16722 Commits

Author SHA1 Message Date
msaitoh
882c1780be - Remove obsolete cltom(9) and mtocl(9).
- Add missing manual page's link of m_adj.
2021-04-16 07:45:41 +00:00
mrg
5375303359 restore gcc-8 subdirs and mark as obsolete. oops.
noted by pgoyette.
2021-04-16 01:14:38 +00:00
rillig
b089333f2a tests/make: demonstrate handling of null bytes 2021-04-15 19:02:29 +00:00
rillig
6aa88d9625 lint: add test for newly added message about static array size 2021-04-14 18:27:11 +00:00
mrg
e0746b3fa4 various updates for GCC 10 support. remove dead gcc7/8 support
and properly mark obsolete files in gcc9/gcc10.

testing on amd64 and shark for GCC 9, and many platforms for GCC 10,
(though not arm yet.)
2021-04-12 02:08:59 +00:00
rillig
80108d8526 tests/lint: demonstrate wrong lint warning about complex variables 2021-04-09 21:07:39 +00:00
rillig
ee726345e6 lint: in code from included files, print stack trace
Previously, the standard NetBSD build generated several lint warnings in
lhash.h from OpenSSL, without providing any hint as to which file
actually included that header.  In cases like these, lint now interprets
the line number information in the preprocessor output from GCC to
reconstruct the exact include path to the file in question.

The program check-expect.lua had to be rewritten almost completely since
it assumed that all diagnostics would come from the main file.  In all
existing tests, this was true, but these tests did not cover all cases
that occurred in practice.  Now it records the complete location of the
diagnostic instead of just the line number.
2021-04-08 22:18:26 +00:00
martin
e99a5cc8d0 Add usr/include/elfdefinitions.h and usr/include/sys/elfdefinitions.h 2021-04-08 13:04:01 +00:00
simonb
a5cb771bc5 Revert the change to not build and install /usr/lib/dtrace/drti.o; this
is used by the ruby30-base package when compiled with the dtrace option
(enabled by default).

Problem found by ryoon@.
2021-04-07 09:57:02 +00:00
nia
95a019acde Update for pkgsrc README.html transition 2021-04-07 07:51:12 +00:00
christos
917f170ea8 bump libevent 2021-04-07 03:45:18 +00:00
rillig
b5bd70af56 lint: warn about for wrong type cast in argument to ctype.h functions
The argument to most of the functions from <ctype.h> "shall either be
representable as an 'unsigned char' or shall equal the value of the
macro EOF".

When confronted with the infamous warning 'array subscript has type
char', there are enough programmers who don't know the background of
that warning and thus fix it in a wrong way.  Neither GCC nor Clang
explain its warning to target these programmers.

Both GCC and Clang warn about 'array subscript has type char', but they
ignore the other requirements of the <ctype.h> functions, even though
these are in the C standard library.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177
https://stackoverflow.com/a/60696378
2021-04-05 02:05:47 +00:00
rillig
8d51d37642 tests/make: split test for modifier ':@' into separate files
The file varmod-loop.mk has grown too large to be single-purpose, plus
it combined parse-time and run-time tests.  This has the downside that
as soon as a parse-time test results in an error, the run-time tests are
not run anymore.
2021-04-04 13:20:52 +00:00
rillig
1cb2fa84ac tests/lint: prevent typo from tree.c 1.264 from happening again 2021-04-02 17:25:04 +00:00
martin
c3782d2faa named/filter-aaaa.so is unrelated to DYNAMICROOT 2021-04-02 10:06:26 +00:00
rin
791f2c453f Document DHT kernel for evbppc. 2021-04-02 07:09:11 +00:00
martin
18106545b0 Move the named filter-aaaa plugin to the shared list 2021-04-01 10:35:24 +00:00
riastradh
2c5643bbca New vax documentation, vax/covid(4) 2021-04-01 00:03:01 +00:00
christos
6c6c596627 new named plugin (simon@) 2021-03-31 04:38:30 +00:00
simonb
3747573718 Don't build or install /usr/lib/dtrace/drti.o - currently not used, may
be one day...
2021-03-29 01:57:09 +00:00
simonb
93b7e5524f Install <mips/frame.h>, now needed for dtrace. 2021-03-29 01:48:29 +00:00
rillig
034864b5d3 lint: remove wrong warning about wrong initializer type
The following code is valid:

	int valid = {{{ 3 }}};

C90 3.5.7 and C99 6.7.8 both say that the "initializer for a scalar
shall be a single expression, optionally enclosed in braces".  They
don't put any upper bound on the amount of braces, not even in the
"Translation limits" section.
2021-03-28 14:01:49 +00:00
pgoyette
4bf31dd43a The install-image has grown a bit recently, and at least amd64 has
outgrown the previous size specification when the system was built
with all of MKDEBUG, MKKDEBUG, and MKDEBUGLIB set to "yes" (and
also when in-tree X11 is included).

So, bump the size a bit.
2021-03-26 21:18:29 +00:00
nia
bc4ec85324 Move pad module to MI debug set lists 2021-03-25 21:37:10 +00:00
nia
aca4a8ff12 don't restrict pad module to i386 and amd64.
- module build tested on amiga, vax, i386, amd64, evbarm.
- build.sh release tested on i386.
- pad module functionality tested on aarch64.
2021-03-25 09:49:00 +00:00
rillig
a0407258e3 tests/lint: test initialization using string literals
The errors in line 74 and 75 of the test are wrong.  Everything is fine
there.  The bug lies in init_array_using_string, try to see if you can
spot it, neither GCC 9.3.0 nor Clang 8.0.1 could.
2021-03-23 21:19:08 +00:00
christos
05c935db2f bump libunbound 2021-03-15 20:17:04 +00:00
rillig
63e8f1e660 tests/make: add test for short-circuit evaluation of modifiers 2021-03-14 11:49:37 +00:00
rillig
3530c7d28f tests/indent: add test templates for testing specific parser symbols
The basic idea of indent is to split the input into tokens and then
reassemble them, reformatting them on the way.  These tokens determine
how the output is formatted, therefore add tests for each of the
terminal tokens and nonterminal parser symbols, to cover more common
cases, and edge cases as well.
2021-03-12 00:13:06 +00:00
simonb
b2de856f1a Add manpage links for asysctl(3) and asysctlbyname(3), already described
in sysctl(3).
2021-03-10 13:30:34 +00:00
simonb
996bea5137 Add printf_nostamp(9), kernel printf() without prepending a timestamp. 2021-03-10 13:27:51 +00:00
rillig
c280f5e623 tests/indent: demonstrate strange alignment for global variables 2021-03-09 20:43:19 +00:00
christos
baa2f24833 We don't need libwrap anymore; libhack replaces it. 2021-03-09 00:08:04 +00:00
christos
58e21b67a6 Add a stubbed version of libwrap (tcpwrappers) 2021-03-09 00:06:44 +00:00
rillig
6abe7eedca tests/indent: demonstrate wrong removed empty line before '//' 2021-03-08 22:13:05 +00:00
rillig
09aa491484 tests/indent: demonstrate another bug in nested blocks 2021-03-08 20:55:34 +00:00
rillig
548d705b04 tests/indent: add test for output line counting 2021-03-08 20:12:04 +00:00
rillig
7bd1775519 lint: in strict C mode, warn about initialization with '[a ... b]'
https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html
2021-03-07 19:42:54 +00:00
nia
18c61bbc00 G12 2021-03-07 16:25:06 +00:00
rin
e31cf72b5a Build Xorg server for evbppc with minimum wsfb(4) support for Explora. 2021-03-07 10:42:26 +00:00
dbj
787ef1221e distrib/amd64/cdroms: honor CDBOOTOPTIONS when installing EFI bootloader 2021-03-07 03:55:47 +00:00
rillig
1a656e3597 tests/indent: add templates for options tests
Given that indent "has even more switches than ls(1)", there are far too
few tests.  To make it easier to add meaningful tests for each of the
options, add the templates for the tests right now, ready to be filled
in.
2021-03-06 17:56:33 +00:00
christos
d0f77c4d4c bump libssh 2021-03-05 18:08:21 +00:00
jakllsch
9c8ef71e39 and the html for rge(4)... 2021-03-01 21:01:39 +00:00
jakllsch
dc78acc9bb install rge(4) manual 2021-03-01 18:01:05 +00:00
martin
6390772e1b Drop IEEE802.11 support from the ramdisk's ifconfig(8) 2021-03-01 16:50:01 +00:00
martin
7ea81546f1 Now that we use the "hacked" (non-widechar) curses, drop -lcurses 2021-03-01 16:49:07 +00:00
martin
5fe518b10d Drop wide char support to save space 2021-03-01 09:24:27 +00:00
rillig
523633c84d lint: fix null pointer dereference on parse error
Fixes PR bin/22119.
2021-02-28 22:12:16 +00:00
rillig
3594934372 lint: add test to demonstrate that PR bin/20264 has been fixed 2021-02-28 20:17:13 +00:00