| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pkgbase splits programs and their tests into separate packages (e.g.
unifdef/yacc/indent/file2c -> toolchain, jail -> jail, etc), while their
tests always land in the generic tests package. Installing just the
tests package therefore leaves these suites unable to find the binary
they exercise, and they fail confusingly instead of skipping.
Rather than force all packages to be installed for the tests package,
make the tests cope with the missing packages. Add require.progs (or,
for TAP/PLAIN-style suites with no atf_set hook: TEST_METADATA
required_programs) for the binary under test in: bectl, certctl,
ctfconvert, dhclient, file2c, indent, ipfw, jail, lastcomm, mixer,
newsyslog, nvmecontrol, pfctl, praudit, sa, syslogd, tunefs, unifdef,
yacc, ztest.
I skipped adding data for all the binaries in the base runtime
package for simplicity.
Assisted-by: Claude Code (Sonnet 5)
Sponsored by: Netflix
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D58262
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The function used to create a backup of the input before starting work
used a static buffer and did not check that the file name it constructed
did not overflow. Switch to using asprintf(), clean up the rest of the
function, and update some comments that still referred to an earlier
version of the code.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: bnovkov
Differential Revision: https://reviews.freebsd.org/D51796
|
| |
|
|
|
|
|
|
|
|
| |
Much of the test script was concerned with working around RCS tags and
dealing with cases which don't apply to indent.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D51795
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename the existing "elftoolchain" package to "toolchain", and move
everything which is gated by MK_TOOLCHAIN (e.g. lex, yacc, ...) to the
toolchain package.
This means we have one package called "toolchain" which contains all the
development-related utilities which are not compilers or already part of
some other package (e.g., llvm).
Reviewed by: des, emaste
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50286
|
| |
|
|
|
|
|
| |
This is a residual of the $FreeBSD$ removal.
MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
|
| |
|
|
| |
is successful
|
| |
|
|
| |
Reported by: pstef
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
|
| |
|
|
|
|
|
|
| |
Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.
Sponsored by: Netflix
|
| |
|
|
| |
Remove /^\s*\$FreeBSD\$$\n/
|
| |
|
|
| |
Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
| |
|
|
| |
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| |
|
|
| |
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| |
|
|
| |
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
| |
|
|
| |
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
| |
|
|
|
|
| |
Sponsored by: Klara, Inc.
Reviewed by: pauamma_gundo.com, pstef, kevans
Differential Revision: https://reviews.freebsd.org/D40788
|
| |
|
|
|
|
|
|
|
| |
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix
|
| | |
|
| |
|
|
|
|
| |
- s/procesing/processing/
MFC after: 5 days
|
| |
|
|
|
|
|
|
|
|
| |
- skipping paragraph macro: Pp after Sh
- sections out of conventional order: Sh EXAMPLES
- whitespace at end of input line
- normalizing date format
Notes:
svn path=/head/; revision=366583
|
| |
|
|
|
|
|
|
|
|
|
| |
This silences -Wimplicit-fallthrough warnings.
Submitted by: Michael Paquier
Obtained from: postgresql.org
MFC after: 3 days
Notes:
svn path=/head/; revision=361337
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Spread the globals far and wide, hopefully to the files that make the most
sense.
-fno-common will become the default in GCC10/LLVM11.
MFC after: 3 days
Notes:
svn path=/head/; revision=359678
|
| |
|
|
|
|
|
|
|
|
| |
PR: 239727
Submitted by: gbergling@gmail.com
Reviewed by: 0mp@
MFC after: 1 week
Notes:
svn path=/head/; revision=351614
|
| |
|
|
|
|
|
| |
Use caph_{rights,ioctls,fcntls}_limit to simplify the code.
Notes:
svn path=/head/; revision=340138
|
| |
|
|
|
|
|
|
|
|
| |
The bug was that isalnum() is not exactly equivalent to previous code which
also allowed characters "$" and "_", so check for those explicitly.
Reported by: tuexen@
Notes:
svn path=/head/; revision=337862
|
| |
|
|
|
|
|
|
|
| |
While STACKSIZE macro is indeed problematic on some systems, the commits
were wrong to shrink il[] and cstk[], because they need to be of the same
size as p_stack[] as they're accessed with the same index ps.tos.
Notes:
svn path=/head/; revision=337651
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove procedural code that did the scanning, which was faulty and didn't
support complex constants such as 0x1p-61. Replace it with a finite state
machine expressed as a transition table. The table was rewritten by hand
from lx's output, given parts of grammar expressed as regular expressions.
lx is Katherine Flavel's lexer generator, currently available at
https://github.com/katef/libfsm and the parts of grammar were taken from
http://quut.com/c/ANSI-C-grammar-l-2011.html and extended to support binary
integer constants which are a popular GCC extension.
Reported by: bde
Notes:
svn path=/head/; revision=336333
|
| |
|
|
|
|
|
| |
This was missed in r334927.
Notes:
svn path=/head/; revision=336318
|
| |
|
|
|
|
|
| |
No functional change intended.
Notes:
svn path=/head/; revision=335395
|
| |
|
|
|
|
|
|
|
| |
Also update tests and the manpage.
GNU indent had the option earlier as -cs, let's not diverge unnecessarily.
Notes:
svn path=/head/; revision=334944
|
| |
|
|
|
|
|
|
|
| |
It's clearer now when a variable represents a toggable command line option.
Many options were stored in the parser's state structure, so fix also that.
Notes:
svn path=/head/; revision=334927
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix
error: comparison of integers of different signs: 'int' and 'unsigned long'
by casting nitems() to int.
Reported by: mjg
Notes:
svn path=/head/; revision=334640
|
| |
|
|
|
|
|
|
|
| |
There exist multi-platform programs that check indent's version in order to
know what they can expect from it. GNU indent provides that via --version,
so implement the same option here.
Notes:
svn path=/head/; revision=334636
|
| |
|
|
|
|
|
| |
It conflicts with a system-provided macro of the same name on another OS.
Notes:
svn path=/head/; revision=334632
|
| |
|
|
|
|
|
|
| |
It repeats what is already said in the heading comment and it's optimized out
so serves no purpose.
Notes:
svn path=/head/; revision=334630
|
| |
|
|
| |
Notes:
svn path=/head/; revision=334628
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With -lpl, code surrounded by parentheses in continuation lines is lined up
even if it would extend past the right margin.
With -nlpl (the default), such a line that would extend past the right
margin is moved left to keep it within the margin, if that does not require
placing it to the left of the prevailing indentation level.
These switches have no effect if -nlp is selected.
Submitted by: Tom Lane
Notes:
svn path=/head/; revision=334590
|
| |
|
|
|
|
|
| |
That was committed with the wrong message. Will be re-added.
Notes:
svn path=/head/; revision=334589
|
| |
|
|
|
|
|
|
|
|
|
| |
With -lp, if a line has an opening paren which is not closed on that line,
then continuation lines will be lined up to start at the character position
just after the opening paren.
Submitted by: Tom Lane
Notes:
svn path=/head/; revision=334588
|
| |
|
|
|
|
|
|
|
|
| |
Add missing options, synchronize syntax summary with the actual option list,
and other fixes.
Submitted by: Tom Lane
Notes:
svn path=/head/; revision=334587
|
| |
|
|
|
|
|
| |
member, it is taken as the latter
Notes:
svn path=/head/; revision=334583
|
| |
|
|
| |
Notes:
svn path=/head/; revision=334581
|
| |
|
|
|
|
|
| |
It's not needed and it fools pr_comment().
Notes:
svn path=/head/; revision=334580
|
| |
|
|
| |
Notes:
svn path=/head/; revision=334579
|
| |
|
|
| |
Notes:
svn path=/head/; revision=334578
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rewrite the macros so that they take a parameter. Consumers use it to signal
how much room in the buffer they need; this lets them do that once when
required space is known instead of doing the check once every loop step.
Also take the parameter value into consideration when resizing the buffer;
the requested space may be larger than the constant 400 bytes that the
previous version used - now it's the sum of those two values.
On the consumer side, don't copy strings byte by byte - use memcpy().
Deduplicate code that copied base 2, base 8 and base 16 literals.
Don't advance the e_token pointer once the token has been copied into
s_token. This allows easy calculation of the token's length.
Notes:
svn path=/head/; revision=334576
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The troff output in indent was invented at Sun and the online documentation
for some post-SunOS operating system includes this:
The usual way to get a troffed listing is with the command
indent -troff program.c | troff -mindent
The indent manual page in FreeBSD 1.0 already lacks that information and
troff -mindent complains about not being able to find the macro file.
It seems that the file did exist on SunOS and was supposed to be imported
into 4.3BSD together with the feature, but that has never happened.
Removal of troff output support simplifies a lot of indent's code.
vgrind(1) seems to be a promising replacement.
Notes:
svn path=/head/; revision=334574
|
| |
|
|
|
|
|
| |
underlying buffer
Notes:
svn path=/head/; revision=334571
|
| |
|
|
| |
Notes:
svn path=/head/; revision=334570
|