Commit Graph

301067 Commits

Author SHA1 Message Date
rillig 4fb425a29f indent: extract the output state from the parser state
The parser state depends on the preprocessing lines, the output state
shouldn't.
2023-05-20 11:53:53 +00:00
rillig 5a9a628018 indent: implement blank line above block comment 2023-05-20 11:19:17 +00:00
rillig 1764a17f2c indent: implement blank line after function body 2023-05-20 10:46:21 +00:00
rillig c7613eff0b indent: ensure that no blank lines are inserted in INDENT OFF mode
No blank lines were inserted previously, but the code looked
suspicious as if that were possible.
2023-05-20 10:25:47 +00:00
rillig 4d19140d48 indent: implement blank lines around conditional compilation 2023-05-20 10:09:02 +00:00
pgoyette 29d8ffc91f ALso fix chgrp Synopsis to include -d option 2023-05-20 09:41:34 +00:00
rillig e174834cff indent: add debug logging for brace indentation
No functional change outside debug mode, as the initialization of
di_stack[0] was redundant.
2023-05-20 02:47:35 +00:00
rillig 86c76bf510 indent: clean up lexing of word tokens
No functional change.
2023-05-20 01:28:14 +00:00
pgoyette b1c9211c1b dd -d to the Synopsis 2023-05-20 00:54:15 +00:00
rillig 182fed1007 indent: separate detection of function definitions from lexing '*'
No functional change.
2023-05-20 00:17:56 +00:00
lukem 0ab65e79ce gcc: fix build with clang++ HOST_CXX
Define HOSTPROG_CXX before .include anything that brings in bsd.own.mk.
This ensures that HOST_DBG (etc) gets assigned before HOST_CFLAGS
and HOST_CXXFLAGS is created.

backend: .include <bsd.init.mk> much earlier, as per the other directories.
Fixes backend build when using clang++ as the host compiler (e.g., macOS),
because backend host tools are now built with -O.
Inspired by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760

Note that gcc.old/Makefile.prog may be mis-used because it defines HOSTPROG_CXX
and this Makefile fragment is included after bsd.*.mk in other Makefiles,
but they seem to build ok so leaving it alone for now.

Fixes PR toolchain/57014
2023-05-19 23:28:20 +00:00
uwe 13772c7301 chflags(1): minor markup fixes 2023-05-19 19:50:59 +00:00
christos 80473f9937 vax-inate (does not have _pic, .a is pic) 2023-05-19 18:45:52 +00:00
jschauma 0102e2de2a We mention secmodel_securelevel(9) in the details, so might as well add it to
SEE ALSO.
2023-05-19 16:14:00 +00:00
mlelstv 205b0dd928 Neither limit the number of requests for the page daemon.
Otherwise you may deadlock when the backend needs to allocate
memory and the page daemon needs to flush dirty vnd buffers.

See PR 57421 for details.
2023-05-19 15:42:43 +00:00
hauke 1958a15c49 Creating Type&Creator mappings for .bin (macbinary encoded) files,
mkisofs changes files, then turns around and complains they have been
changed.

This is a self-inflicted wound, so demote the error to a warning.

Reported upstream as <https://codeberg.org/schilytools/schilytools/issues/58>.

Arguably fixes PR toolchain/42166

Request pull-ups to netbsd-{8,9,10}.

XXX What about macppc?
2023-05-19 14:47:16 +00:00
christos e44743be40 we should only need this one 2023-05-19 11:43:20 +00:00
lukem cf4db277d4 Fix passing -j NNN to gmake
Use a more restrictive pattern to extract -j NNN from MAKEFLAGS
into GMAKE_J_ARGS, to avoid false positives when the source directory
has "-j" in the path (e.g "amd64-job-000012" or "src-j9999").
Previously this could pass either -"-j" or "-j BIGNUM" to gmake
and result in "vfork: Resource temporarily unavailable" failures.

PR misc/54456
2023-05-19 10:42:34 +00:00
rillig 895746d7ed tests/indent: test multi-line comments with -ncdb 2023-05-19 07:05:26 +00:00
skrll d0ff2affc8 Add the compat calls for renamed symbols so that configure scripts
can find them. sigprocmask being the most problematic.

RISC-V doesn't need the compat syscalls, but seeing them fail in
ktrace is helpful.
2023-05-19 06:50:07 +00:00
skrll 6d1cc151b5 No need for double semi-colon
Indent END the same as ENTRY.

NFCI.
2023-05-19 06:41:41 +00:00
skrll 83b9ddad41 KNF 2023-05-19 06:31:01 +00:00
rillig f00c946f6d cat: fix misleading indentation
Found by indent, but not by GCC 10.

No binary change.
2023-05-19 05:28:54 +00:00
jschauma 7abe1e38c4 Note that the ability to change certain flags depends on the current securelevel. 2023-05-18 19:08:16 +00:00
lukem 23c02a696a BUILDING: TMPDIR must not be noexec
Describe $TMPDIR as used by build.sh, and
add a note that it can't be mounted noexec.

PR toolchain/44459
2023-05-18 14:22:53 +00:00
martin 9432c75c29 Make "shadow" warnings non-fatal for now (triggered by lots BN_* macros). 2023-05-18 12:01:58 +00:00
rillig d46fdfe393 indent: document the funcname token 2023-05-18 08:09:28 +00:00
rillig 4cc242ff56 indent: remove detailed rules for blank before comment 2023-05-18 07:13:05 +00:00
rillig 7a108102a1 indent: rename a few functions
No functional change.
2023-05-18 06:01:39 +00:00
rillig 2d18db1bfc indent: manually wrap overly long lines
No functional change.
2023-05-18 05:33:27 +00:00
rillig 3bf5120b21 indent: switch to standard code style
Taken from share/misc/indent.pro.

Indent does not wrap code to fit into the line width, it only does so
for comments.  The 'INDENT OFF' sections and too long lines will be
addressed in a follow-up commit.

No functional change.
2023-05-18 04:23:03 +00:00
rillig 31b88f5f5a indent: remove unnecessary variable size optimization
Due to the enum that follows in the struct, the short variable was
padded to 4 bytes anyway.

No functional change.
2023-05-18 03:38:34 +00:00
christos 4dce0d564d add compat OpenSSL 2023-05-18 00:28:37 +00:00
christos f64148b9a8 fix riscv32 2023-05-18 00:27:08 +00:00
christos f5345a0b77 mark things compat 2023-05-18 00:24:22 +00:00
christos 9a21710e02 enable (and disable) warnings centrally 2023-05-17 19:10:04 +00:00
christos c80c2c5435 add missing assembly stub macro, remove WARNS=0 2023-05-17 19:09:41 +00:00
tsutsui 2a15d9a398 Update URL of the technical manual. 2023-05-17 18:20:30 +00:00
rillig 00fa12d4c2 indent: fix indentation in preprocessor line
No binary change.
2023-05-17 18:03:25 +00:00
christos 7b56c6d54e fix mips OpenSSL-3.x compat 2023-05-17 15:01:17 +00:00
tsutsui 2b88da67b5 Use https for Ext2 documentation URLs. 2023-05-17 09:54:59 +00:00
tkusumi d24b947ae2 sys/fs/autofs: Remove unused APRINTF macro
Remove a debug print macro (originates from DragonFly autofs)
I had intentionally kept at the time.
2023-05-17 06:44:38 +00:00
gutteridge b1f970ed17 t_ptm.c: add a test case that passes extra flags
Validate that O_NONBLOCK and O_CLOEXEC are actually set by
posix_openpt(3), as until circa 9.99.101 they were not.

If/when other flags are added like close-on-fork, this test could be
adjusted. The current concern is with supporting the expectations of
components like vte3, used by various graphical terminal clients.
2023-05-17 03:16:11 +00:00
uwe fb04e69cea installboot(8): fix up markup
Don't overuse .Sy - when everything is highlighted, nothing is.  Use
.Ic for options &c to get correct PostScript output (both are bold in
plain text).

Use Aq Ar inside .Pa, as both Pa and Ar are rendered as underscored
text in plain text output, and the distinction is lost.

Don't set examples in bold, but give them .Pp space around - they are
much easier to read this way.

Use consistent -width in FILES.
2023-05-17 01:35:00 +00:00
lukem b8a22b4ebe ftp 20230516 for openssl 3.0 compat SSL_OP_IGNORE_UNEXPECTED_EOF 2023-05-16 22:00:23 +00:00
lukem 979e90aeb0 installboot(8): formatting improvements
Use Ar foo instead of <foo>; this is mdoc.
Other formatting tweaks.
2023-05-16 21:52:42 +00:00
lukem 9d6c4a2602 build.sh, BUILDING: consistency improvements
Consistently use "show", instead of sometimes using "display" or "print".
Fix mdoc markup (even though BUILDING is raw text).
Document help, -P, -?
2023-05-16 21:39:26 +00:00
lukem b9abc1c511 BUILDING: update upstream, regen
doc/BUILDING.mdoc is the upstream for BUILDING, so add recent changes
in the latter to the former, formatting correctly.

Move INSTALLBOOT_UBOOT_PATHS to Environment variables.
Move INSTALLBOOT_BOARDS to "make" variables for full builds.
Add installboot(8) cross-reference.
2023-05-16 21:21:38 +00:00
christos c78b7b8064 try to fix powerpc compat 2023-05-16 19:25:06 +00:00
christos e866d5f23c include earm to <=5 2023-05-16 19:22:58 +00:00