Commit Graph

301767 Commits

Author SHA1 Message Date
nisimura a4ea86e72d unbreak the previous change. 2023-06-19 03:52:50 +00:00
rin e500184dfa Cherry-pick upstream fix for LibreSSL. NFC for us at the moment.
883630f76c

 Don't define BIO_get_init() for LibreSSL 3.5+

 BIO_get_init() is available in LibreSSL 3.5 and later. The BIO type
 will become opaque, so the existing macro will break the build.
2023-06-19 03:21:14 +00:00
rin 0517e95fd0 Silence wrong maybe-uninitialized raised by GCC/x86_64 10.4.0 -Os. 2023-06-19 03:03:11 +00:00
rillig 567c8efbdb strspn: fix typo in comment 2023-06-18 22:18:13 +00:00
rillig 199bee0a0b tests/make: clean up test for multiple-inclusion guards 2023-06-18 20:43:52 +00:00
rillig d82fc76045 tests/make: align variable name in test for multiple-inclusion guards 2023-06-18 19:30:31 +00:00
rillig 8f928ced6c tests/make: extend test for multiple-inclusion guards 2023-06-18 19:16:51 +00:00
gutteridge c18fdfe09e ixp425-fw.README: fix spelling: s/Cypto/Crypto/ 2023-06-18 19:08:18 +00:00
riastradh 6a95326040 sysctl(7): Note nodev,nosuid requirement for user-mounted fs.
While here, tidy up language and markup a smidge.
2023-06-18 18:16:40 +00:00
rillig c4d462617d indent: only add blank lines before actual block comments 2023-06-18 07:32:33 +00:00
rillig 62ff1c97a7 indent: test block comments and the -bbb option 2023-06-18 07:29:36 +00:00
rillig 926f8bd544 indent: remove support for backspace in code and comments
The C code in the whole tree does not contain a single literal
backspace.
2023-06-18 07:10:24 +00:00
rillig 5af61aec35 indent: untangle code for handling the statement indentation
The expression 'psyms.level-- - 2' did too much in a single line, so
extract the '--' to a separate statement, to highlight the symmetry
between the 'sym' and 'ind_level' code.

No functional change.
2023-06-18 06:56:32 +00:00
rillig 519ec34df3 indent: clean up
Extract duplicate code for handling line continuations.

Prevent theoretic undefined behavior in strspn, as inp.s is not
null-terminated.

Remove adding extra space characters when processing comments, as these
are not necessary to force a line of output.

No functional change.
2023-06-17 23:03:20 +00:00
rillig 8e0980dcd7 indent: miscellaneous cleanups
No binary change.
2023-06-17 22:28:49 +00:00
rillig 65e3242c1e tests/indent: add miscellaneous test cases found during clean up 2023-06-17 22:09:24 +00:00
christos 85e497af98 Include the OpenSSL Makefile fragment so that build_install works on each
OpenSSL subdirectory.
2023-06-17 15:47:31 +00:00
christos 4ff621cc11 Split the SUBDIR variable into a separate Makefile so it can be used
by /usr/src/lib/Makefile
2023-06-17 15:45:51 +00:00
rin 96159ac76f Fix typo... 2023-06-17 12:09:36 +00:00
rin 2cdcef7194 Rework microcode for IXP425 npe(4).
Instead of using objcopy(1), which cannot handle EABI version
embedded in e_flags of ELF header, add a dedicated asm file.

If proprietary microcode binary is present, it is incbin'ed
from that asm file.
2023-06-17 11:57:49 +00:00
rin 1316e0ed2b Relocate FFS_NO_SNAPSHOT to where it should be... 2023-06-17 11:41:11 +00:00
rin 24418783ad Sprinkle FFS_NO_SNAPSHOT and -fno-unwind-tables to reduce
memory footprint.
2023-06-17 11:39:41 +00:00
rin 031b1a2da9 Build NSLU2 kernel with NOCTF="yes" as workaround for
PR toolchain/57146, which I'm working on :).

Now kernel image fits within its reserved VA range again.
2023-06-17 11:35:24 +00:00
rin de8b6af3e8 Panic if kernel image is not fit within its VA range,
rather than silently freeze later.
2023-06-17 11:28:13 +00:00
rin f1141e9e73 Missing #endif for the previous... 2023-06-17 11:24:20 +00:00
rin 6e679ce82d Catch up with new pmap_devmap implementation.
Now, hardcoded VA's should be aligned to L1 section (1M) boundaries.
Rather, just disable ones if there's no need for statically mapping.
2023-06-17 11:22:20 +00:00
rillig abc3274d3a indent: merge lexer symbols for type in/outside parentheses 2023-06-16 23:51:31 +00:00
wiz f31c8e4c6d Fix memory leak
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
2023-06-16 23:36:26 +00:00
wiz 0fb1b87aad Remove trailing whitespace. 2023-06-16 23:32:37 +00:00
wiz a874c40b0c Comment out variable assignations that are not used.
Remove trailing whitespace.
2023-06-16 23:31:53 +00:00
rillig 95820b5370 tests/indent: format stderr output as end-of-line comments
This generates fewer error markers in syntax-aware editors.
2023-06-16 23:19:01 +00:00
rillig c4d54aec81 indent: add debug output for typedef declarations 2023-06-16 23:17:22 +00:00
rillig 398514d353 indent: fix spacing between postfix operator and left parenthesis 2023-06-16 23:07:52 +00:00
sjg 0e97aaa549 make: do not allow delete of readOnly variable.
Sometimes we mark a variable readOnly to guard against .undef
2023-06-16 22:30:35 +00:00
wiz 0fa172738f add missing 'obsolete' keyword 2023-06-16 22:18:02 +00:00
wiz b6deb17d6b mark some openssl 1.1 files as obsolete with openssl 3 2023-06-16 20:38:18 +00:00
andvar afc0aa83d8 fix typos in comments. 2023-06-16 20:01:20 +00:00
andvar ff4253031e s/curent/current/ in comment. 2023-06-16 19:40:46 +00:00
rillig 2fbaf64cd1 indent: improve heuristics for cast expressions 2023-06-16 14:26:26 +00:00
rillig 12ea422e44 indent: improve heuristics for cast expressions 2023-06-16 14:12:10 +00:00
rillig 961876df93 tests/indent: add a few code snippets from usr.bin/xlint 2023-06-16 13:43:30 +00:00
rillig 44e3c9f8ad indent: improve heuristics for casts 2023-06-16 12:55:57 +00:00
rillig 7983032213 indent: fix indentation and linebreaks in typedef declarations 2023-06-16 12:30:45 +00:00
rillig 128159d42b tests/indent: demonstrate wrong tokenization after typedef
Since 2023-06-10 06:52, which fixed the indentation of C11 _Generic
expressions.
2023-06-16 11:58:33 +00:00
rillig 8535e877f0 indent: don't force a blank line between '}' and preprocessing line 2023-06-16 11:48:32 +00:00
rillig 37a177106a indent: rename a field of the parser state
The previous name 'comment_in_first_line' was misleading, as it could
mean that there was a comment in the first line of the file.

No functional change.
2023-06-16 11:27:49 +00:00
wiz 66c213d6e4 patch: add --backup-if-mismatch and --no-backup-if-mismatch for GNU patch compatibility
These options only make sense in POSIX mode, since NetBSD's patch
has --backup enabled by default and GNU patch doesn't.

In POSIX mode, GNU patch and NetBSD patch now behave the same for these
two options.
2023-06-16 11:27:00 +00:00
rillig 13e8698351 tests/make: add test for multiple-inclusion guards 2023-06-16 09:25:13 +00:00
rillig 1d0b121ff3 tests/make: clean up tests for the ':M' and ':S' modifiers 2023-06-16 07:20:45 +00:00
rillig e4579d87bb make: remove parameter names from function declarations
No binary change.
2023-06-16 07:12:46 +00:00