Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (3h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 06:57:18 UTC Now

2021-10-31 09:41:48 UTC MAIN commitmail json YAML

indent: condense lexi_alnum

No functional change.

(rillig)

2021-10-31 09:16:08 UTC MAIN commitmail json YAML

libcrypt: Compile with USE_FORT, for this is cryptographic software.

(nia)

2021-10-31 08:21:25 UTC MAIN commitmail json YAML

Annotate some cpu_info members

(skrll)

2021-10-31 08:19:29 UTC MAIN commitmail json YAML

Update networking roadmap.

(nia)

2021-10-31 08:11:13 UTC MAIN commitmail json YAML

2021-10-31 07:56:55 UTC MAIN commitmail json YAML

2021-10-31 05:31:12 UTC MAIN commitmail json YAML

remove accidentially committed debug goop
thanks ryo@

(macallan)

2021-10-31 02:12:08 UTC MAIN commitmail json YAML

PR bin/45390

Be explicit about what happens to PWD after a successful cd command.
Also be very clear  that "cd" and "cd -P" are the same thing, and
the only cd variant implemented.

Also, when it is appropriate to print the new directory after a cd
command, note that it happens if interactive (as it always has here)
and also if the posix option is set (for POSIX compat, where "interactive"
is irrelevant).  Mention that "cd -" is a case where the new directory
is printed (along with paths relative to a non-empty CDPATH entry,
and where the "cd old new" (string replacement in curdir) is used.

While here document the new -e option to cd.

XXX pullup -9

(kre)

2021-10-31 02:12:01 UTC MAIN commitmail json YAML

PR bin/45390 - fix for folly four

In the pwd builtin, verify that curdir names '.' before
simply printing it.  Never alter PWD or OLDPWD in the
pwd command.

Also while here, implement the (new: coming in POSIX, but has existed
for a while in several other shells) -e option to cd (with -e, cd -P
will exit(1) if the chdir() succeeds, but PWD cannot be discovered).

cd now prints the directory name used (if different from that given,
or cdprint is on) if interactive or (the new bit)in posix mode.

Some additional/changed comments added, and a DEBUG mode trace call
that was accidentally put inside an #if 0 block moved to where it
can do some good.

XXX pullup -9

(kre)

2021-10-31 00:31:48 UTC MAIN commitmail json YAML

2021-10-30 23:27:33 UTC MAIN commitmail json YAML

indent: push down variable comment_buffered

No functional change.

(rillig)

2021-10-30 22:41:18 UTC MAIN commitmail json YAML

indent: move debugging functions to a separate section

(rillig)

2021-10-30 22:36:07 UTC MAIN commitmail json YAML

indent: rename prev_newline and prev_col_1 to curr

These two flags describe the token that is currently processed.

In process_binary_op, curr_newline can never be true since newline is
not a binary operator, so remove that condition.

No functional change.

(rillig)

2021-10-30 22:25:11 UTC MAIN commitmail json YAML

indent: in debug output, list the new token first

(rillig)

2021-10-30 22:15:51 UTC MAIN commitmail json YAML

indent: clean up lexical analyzer

Use traditional type for small unsigned numbers instead of uint8_t; the
required header was not included.

Remove assertion for debug mode; lint takes care of ensuring that the
enum constants match the length of the names array.

Constify a name array.

Move the comparison function for bsearch closer to its caller.

No functional change.

(rillig)

2021-10-30 22:04:42 UTC MAIN commitmail json YAML

lint: warn if an enum name is used for mismatched array access

This helps to keep the enum definition and the straight-forward
implementation of a to_string or name function in sync.

The test for message 241 had to be adjusted because of exactly this bug.
That test defined a bit mask enum but accessed it like a value enum
type.

(rillig)

2021-10-30 21:39:28 UTC MAIN commitmail json YAML

2021-10-30 21:08:58 UTC MAIN commitmail json YAML

"no affect" -> "no effect" in man pages and comments.

(andvar)

2021-10-30 20:23:12 UTC MAIN commitmail json YAML

Add __HAVE_PREEMPTION support to gic_splfuncs asm funcs.

"looks right to me" - thorpej

(jmcneill)

2021-10-30 20:01:46 UTC MAIN commitmail json YAML

indent: reorder assignments in switch_buffer

No functional change.

(rillig)

2021-10-30 19:54:58 UTC MAIN commitmail json YAML

Fix the previous to only apply to the non-AArch64 case.

(thorpej)

2021-10-30 19:44:56 UTC MAIN commitmail json YAML

- In vec_restore_from_mcontext() and vec_save_to_mcontext(), allows the
  mcontext argument to be NULL.
- In sendsig_sigcontext(), don't set PSL_VEC in the saved MSR; we can't
  actually round-trip the AltiVec registers.  At least get them saved
  into the PCB by calling vec_save_to_mcontext() (with a NULL mcontext
  argument).
- In compat_16_sys___sigreturn14(), call vec_restore_from_mcontext()
  with a NULL mcontext argument, which will force any subsequent use
  of AltiVec to re-load the AltiVec registers from the PCB.

This isn't ideal, but it's the best we can do with the limited capability
of sigcontext.

Fixes PR port-powerpc/56471.

(thorpej)

2021-10-30 19:28:40 UTC MAIN commitmail json YAML

Enable GIC_SPLFUNCS again. Hopefully stable now.

(jmcneill)

2021-10-30 18:58:05 UTC MAIN commitmail json YAML

indent: move buffer functions further up

No functional change.

(rillig)

2021-10-30 18:49:47 UTC MAIN commitmail json YAML

Add CI_SPLX_SAVEDIPL and CI_HWPL

(jmcneill)

2021-10-30 18:47:36 UTC MAIN commitmail json YAML

indent: group variables by topic

No functional change.

(rillig)

2021-10-30 18:44:24 UTC MAIN commitmail json YAML

2021-10-30 18:23:17 UTC MAIN commitmail json YAML

indent: fix bounds check for sc_buf

Some years ago, save_com was an array of characters, used as temporary
storage. When sc_buf was added, this code was forgotten. The bounds
check must be on the array itself, not on an iterator that points
somewhere in that array.

(rillig)

2021-10-30 17:55:45 UTC MAIN commitmail json YAML

indent: prevent buffer overflow in search_stmt_comment

printf '{ if (%010000d) /*comment*/ ; }' '0' | indent

(rillig)

2021-10-30 17:18:26 UTC MAIN commitmail json YAML

indent: add debug logging for save_com

This will help in finding the proper fix for the assertion failure in
search_stmt_comment.

Add an assertion in search_stmt_lbrace to prevent the previous,
incomplete fix from being applied again.

(rillig)

2021-10-30 16:57:18 UTC MAIN commitmail json YAML

2021-10-30 16:43:23 UTC MAIN commitmail json YAML

tests/indent: demonstrate assertion failure in fits_in_one_line

(rillig)

2021-10-30 16:18:51 UTC MAIN commitmail json YAML

indent: prevent buffer overflows in 'if (expr) ... stmt'

(rillig)

2021-10-30 15:51:52 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-30 15:26:58 UTC MAIN commitmail json YAML

indent: revert previous fix of assertion failure

The strange code with the out of bounds memory access is needed to
transform 'if (expr) /* comment */ {' to 'if (expr) { /* comment */',
that is, to move the comment to the right.

Add a test that prevents "repairing" this code again.

(rillig)

2021-10-30 14:05:40 UTC MAIN commitmail json YAML

Adjust the rules for sigcontext visibility on MIPS:
- Define __HAVE_STRUCT_SIGCONTEXT if _KERNEL (because it's needed for
  32-bit binary compatibility) or if the O32 ABI is active (because
  that's the only ABI that ever used sigcontext for signal delivery).
- For _KERNEL, define a "struct sigcontext" suitable only for 32-bit
  compatible signal delivery.
- For userspace, define a "struct sigcontext" appropriate for any ABI
  if _LIBC is defined (it's used for setjmp / longjmp) or if O32 is
  the active ABI (because it was part of the old BSD signal API).

(thorpej)

2021-10-30 13:50:12 UTC MAIN commitmail json YAML

Delete trailing whitespace

(gson)

2021-10-30 13:43:40 UTC MAIN commitmail json YAML

Obvious typo ':' -> ';'.

(hannken)

2021-10-30 13:30:26 UTC MAIN commitmail json YAML

indent: fix assertion failure in search_stmt_comment

I have no idea why the code was written in such a convoluted way before.
By removing all the code that didn't make sense, everything just works
as expected, and the existing tests all pass, especially those in
token_comment.c that mention search_stmt_comment.

(rillig)

2021-10-30 13:06:43 UTC MAIN commitmail json YAML

tests/indent: add more tests for the assertion in search_stmt_comment

(rillig)

2021-10-30 12:28:42 UTC MAIN commitmail json YAML

tests/indent: test preserving the internal layout of box comments

(rillig)

2021-10-30 12:24:03 UTC MAIN commitmail json YAML

tests/lint: explain and extend the tests for box comments

These tests are in preparation of removing the magic number 4 from
search_stmt_comment.

(rillig)

2021-10-30 11:49:38 UTC MAIN commitmail json YAML

indent: inline macro label_offset

No functional change.

(rillig)

2021-10-30 11:43:17 UTC MAIN commitmail json YAML

For the DW APB busy bit workaround, only attempt to re-apply LCR and DLB
settings for non-console devices. In the console case, simply clear the
busy bit and continue. Fixes an interrupt storm observed on Macchiatobin.

(jmcneill)

2021-10-30 11:41:49 UTC MAIN commitmail json YAML

tests/indent: document why declaration lines are broken unnecessarily

(rillig)

2021-10-30 11:41:45 UTC MAIN commitmail json YAML

rpcbind(8): restore previous behaviour. Wait instead of breaking from
the loop if svc_fdset_getmax fails.

thanks rin.

(nia)

2021-10-30 11:37:38 UTC MAIN commitmail json YAML

indent: replace tabsize with hardcoded 8 in process_comma

On 2018-07-25, FreeBSD added the option '-ts' to make the tabulator size
configurable, replacing several constants 7, 8, 9 with tabsize. The 8 in
the expression 'max_col - 8' was not related to the tabulator size but
instead represents the typical width of a variable name. Subtracting a
tab from the right margin doesn't make sense since the right margin need
not be aligned on a tabstop.

See the test fmt_decl.c, where the declaration 'struct s0 a,b;' is split
into several lines because the estimate for the variable name following
the comma is too high. There would have been plenty of space to the
right to keep the whole declaration in a single line.

No functional change.

(rillig)

2021-10-30 11:37:18 UTC MAIN commitmail json YAML

telnet(1): use reallocarr instead of malloc(x * y)

(nia)

2021-10-30 11:34:59 UTC MAIN commitmail json YAML

pam_exec: Convert realloc(x * y) to reallocarr.

Eliminate a now-redundant temporary variable.

(nia)

2021-10-30 11:31:51 UTC MAIN commitmail json YAML

netstat(1): use reallocarr instead of realloc(x * y)

(nia)

2021-10-30 11:25:30 UTC MAIN commitmail json YAML

su(1): use reallocarr instead of malloc(x * y)

(nia)

2021-10-30 11:23:07 UTC MAIN commitmail json YAML

netstat(1): convert malloc(x * y) and realloc(x * y) to reallocarr

(nia)

2021-10-30 11:18:51 UTC MAIN commitmail json YAML

If a path is not specified, assume /. This makes "ls" and "ls hd0b:" work
as expected.

(jmcneill)

2021-10-30 11:10:36 UTC MAIN commitmail json YAML

indent: don't risk a buffer overflow in code_add_decl_indent

The buffers have a safety margin of 5 characters, so the bounds check is
not strictly necessary. It makes the code more uniform though.

No functional change.

(rillig)

2021-10-30 11:05:26 UTC MAIN commitmail json YAML

indent: clean up code_add_decl_indent

In layout computations, it is helpful for human readers to list the
summands in logical order. In this case, the expression 'code_len +
base_ind' was rather confusing, so replace it with 'base_ind +
code_len'. This makes the code straight-forward enough that it doesn't
need any comments anymore.

No functional change.

(rillig)

2021-10-30 11:04:48 UTC MAIN commitmail json YAML

rpcbind(8): Use reallocarr, fix reallocation logic.

In my_svc_run(), only update the fd count _after_ the allocation
succeeds (which may be after waiting in the loop). This function
previously tried to go to a label that doesn't exist. I wonder why
GCC didn't catch this before but does now.

(nia)

2021-10-30 10:59:07 UTC MAIN commitmail json YAML

indent: remove confusing modulo from code_add_decl_indent

The only effects of the modulo operation was to make indent slower and
to confuse human readers.

During the computation of the indentation, the main focus is on the
difference between the current indentation, as computed from the base
indentation and the current code, and the target indentation. All these
computations take opt.tabsize into account. When looking only at the
difference, whether or not a multiple of opt.tabsize is added does not
matter.

No functional change.

(rillig)

2021-10-30 10:52:43 UTC MAIN commitmail json YAML

tests/indent: test variable indentation with exotic options

(rillig)

2021-10-30 10:47:03 UTC MAIN commitmail json YAML

G/C MD_CPU_HATCH. It's old evbarm (<= armv7)

(skrll)

2021-10-30 10:46:57 UTC MAIN commitmail json YAML

libtelnet: convert malloc(x * y) to reallocarr

(nia)

2021-10-30 10:44:25 UTC MAIN commitmail json YAML

ndbootd(8): Rework allocation macros to add integer overflow checking.

(nia)

2021-10-30 10:34:19 UTC MAIN commitmail json YAML

puffs(3): Replace realloc(x * y) with reallocarr

(nia)

2021-10-30 10:01:31 UTC MAIN commitmail json YAML

indent: inline bloated call to 'parse' during initialization

No functional change.

(rillig)

2021-10-30 09:53:47 UTC MAIN commitmail json YAML

With the recent "centralize vnode kevent handling" kevent(2) no
longer raises NOTE_LINK when removing a hard linked node.

It now behaves as FreeBSD and raises NOTE_DELETE.

Adapt the test to the new behaviour.

(hannken)

2021-10-30 09:51:23 UTC MAIN commitmail json YAML

indent: condense code for parsing command line arguments

Previously, the cascade of 'if' statements suggested that there were 6
different cases to be handled when in reality there are only 3: no
arguments, 1 argument, 2 arguments. Let the code express this directly.

No functional change.

(rillig)

2021-10-30 09:42:31 UTC MAIN commitmail json YAML

indent: extract main_load_profiles from main_parse_command_line

No functional change.

(rillig)

2021-10-30 09:42:27 UTC MAIN commitmail json YAML

2021-10-30 09:42:01 UTC MAIN commitmail json YAML

2021-10-30 09:32:46 UTC MAIN commitmail json YAML

tests/indent: test several options '-P'

(rillig)

2021-10-30 09:26:11 UTC MAIN commitmail json YAML

traceroute(8): Convert realloc usage to reallocarr.

Eliminate a temporary variable.

(nia)

2021-10-30 09:23:10 UTC MAIN commitmail json YAML

2021-10-30 09:12:09 UTC MAIN commitmail json YAML

finger(1): convert malloc(x * y) to reallocarr

(nia)

2021-10-30 09:06:34 UTC MAIN commitmail json YAML

refuse(3): Simplify reallocation logic with reallocarr.

(nia)

2021-10-30 08:56:54 UTC MAIN commitmail json YAML

ypcat(1): Convert realloc(x * y) to reallocarr.

We can eliminate a temporary variable here too.

(nia)

2021-10-30 08:20:35 UTC MAIN commitmail json YAML

KNF and remove (some) unnecessary #includes

(skrll)

2021-10-30 08:10:49 UTC MAIN commitmail json YAML

Use designated initialisers for static handlers and reduce the kernel size
a little.

(skrll)

2021-10-30 07:18:47 UTC MAIN commitmail json YAML

Fix thinko in tlb_record_asids memset size calculation.

(skrll)

2021-10-30 05:37:39 UTC MAIN commitmail json YAML

actually mmap() the blitter registers when asked to, while there do some
magic number reduction

(macallan)

2021-10-29 23:48:50 UTC MAIN commitmail json YAML

indent: remove redundant comments, remove punctuation from debug log

The comment about 'null stmt' between braces probably meant 'no
statements between braces'.

The comments at psym_switch_expr only repeated what the code says or had
been outdated 29 years ago already since opt.case_indent does not have
to be 'one level down'.

In the debug log, the quotes around the symbol names are not necessary
after a ':'. The parse stack also does not need this much punctuation.

Reducing a do-while loop to nothing instead of a statement saves a few
CPU cycles. It works because after each lbrace, a stmt is pushed to the
parser stack. This stmt can only ever be reduced to a stmt_list but
never be removed.

(rillig)

2021-10-29 23:23:33 UTC MAIN commitmail json YAML

Correct an off by one degree error in the temperature conversion.

(brad)

2021-10-29 23:03:53 UTC MAIN commitmail json YAML

indent: remove redundant comments

The comments only repeated what the constants for the parser symbols
already express in their names. In the past, the names of these
constants were inconsistent and misleading; back then, it made sense to
make the comments express the actual meaning of the constants.

(rillig)

2021-10-29 22:52:50 UTC MAIN commitmail json YAML

indent: reduce indentation in parse, extract decl_level

No functional change.

(rillig)

2021-10-29 22:37:25 UTC MAIN commitmail json YAML

tests/indent: test binary operators for tokens in column 1

(rillig)

2021-10-29 21:56:37 UTC MAIN commitmail json YAML

2021-10-29 21:42:02 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-29 21:31:29 UTC MAIN commitmail json YAML

indent: in debug mode, log only differences for most ps members

(rillig)

2021-10-29 21:22:06 UTC MAIN commitmail json YAML

indent: add detailed debug logging for the parser state

(rillig)

2021-10-29 20:27:42 UTC MAIN commitmail json YAML

2021-10-29 20:05:58 UTC MAIN commitmail json YAML

indent: replace segmentation fault with assertion

(rillig)

2021-10-29 19:52:59 UTC MAIN commitmail json YAML

indent: parse options in a platform-independent way

Previously, on an ILP32 platform, the option '-ts30000000000000000'
resulted in the error message 'must be an integer', on LP64 platforms it
resulted in the error message 'must be between 1 and 80'. Remove this
unnecessary difference.

(rillig)

2021-10-29 19:39:32 UTC MAIN commitmail json YAML

tests/indent: demonstrate segmentation fault in search_stmt_comment

(rillig)

2021-10-29 19:31:24 UTC MAIN commitmail json YAML

indent: initialize 'ps' via code

This saves 3 kB of binary size since the parser state is rather large
and only very few members are initialized to non-zero values.

No functional change.

(rillig)

2021-10-29 19:27:07 UTC MAIN commitmail json YAML

Add "--" 'options end' parameter to the sh -c call that runs the
command, so that the command cannot appear to be more options
(which always then fails, as there would be no arg for "-c" to
treat as the command string in that case).

For the full (LONG) explanation, see:
  http://mail-index.netbsd.org/current-users/2021/10/29/msg041629.html

(kre)

2021-10-29 19:22:55 UTC MAIN commitmail json YAML

indent: clean up main_init_globals

No functional change.

(rillig)

2021-10-29 19:12:49 UTC MAIN commitmail json YAML

indent: fix undefined behavior in buffer handling

Adding an arbitrary integer to a pointer may result in an out of bounds
pointer, so replace the addition with a pointer subtraction.

In the buffer handling functions, handle 'buf' and 'l' before 's' and
'e', since they are pairs.

In inbuf_read_line, use 's' instead of 'buf' to make the code easier to
understand for human readers.

No functional change.

(rillig)

2021-10-29 19:12:30 UTC MAIN commitmail json YAML

2021-10-29 19:10:14 UTC MAIN commitmail json YAML

install mgxreg.h so we can use it from Xorg

(macallan)

2021-10-29 18:50:52 UTC MAIN commitmail json YAML

indent: mark obviously broken code

(rillig)

2021-10-29 18:18:03 UTC MAIN commitmail json YAML

indent: reorder global variables to be more intuitive

The buffer 'inp' comes first. From there, a single token is read into
the buffer 'token'. From there, it usually ends up in 'code'. The buffer
'token' does not belong to the group of the other 3 buffers, which
together make up a line of formatted output.

No functional change.

(rillig)

2021-10-29 17:50:38 UTC MAIN commitmail json YAML

2021-10-29 17:41:56 UTC MAIN commitmail json YAML

indent: group members of parser_state by topic

No functional change.

(rillig)

2021-10-29 17:32:22 UTC MAIN commitmail json YAML

indent: rename ps.dumped_decl_indent and indent_declaration

The word 'dump' in 'ps.dumped_decl_indent' was too close to dump_line,
which led to confusion since the variable controls whether the
indentation has been added to the code buffer, which happens way before
actually dumping the current line to the output file.

The function name 'indent_declaration' was too unspecific, it did not
reveal where the indentation of the declaration actually happened.

No functional change.

(rillig)

2021-10-29 17:29:45 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-29 16:59:35 UTC MAIN commitmail json YAML

indent: keep p_l_follow nonnegative, use consistent comparison

No functional change.

(rillig)

2021-10-29 16:54:52 UTC MAIN commitmail json YAML

2021-10-29 16:49:46 UTC MAIN commitmail json YAML

tests/indent: provoke the third occurrence of 'unbalanced parens'

(rillig)

2021-10-29 16:43:05 UTC MAIN commitmail json YAML

tests/indent: provoke error messages for unbalanced parentheses

(rillig)

2021-10-29 13:22:08 UTC MAIN commitmail json YAML

libcrypt: Fix a floating point exception when a low number of HMAC-SHA1
iterations are specified.

(nia)

2021-10-29 11:45:39 UTC MAIN commitmail json YAML

cgram(6): realloc(x * y) -> reallocarr

(nia)

2021-10-29 11:44:22 UTC MAIN commitmail json YAML

atc(6): simplify reallocation logic

(nia)

2021-10-29 11:42:34 UTC MAIN commitmail json YAML

sail(6): convert realloc(x * y) to reallocarr

(nia)

2021-10-29 11:40:23 UTC MAIN commitmail json YAML

huntd(6): convert malloc(x * y) and realloc(x * y) to reallocarr

(nia)

2021-10-29 11:03:46 UTC MAIN commitmail json YAML

2021-10-29 10:54:56 UTC MAIN commitmail json YAML

citrus: Use calloc instead of malloc'ing and clearing the array manually

(nia)

2021-10-29 10:40:00 UTC MAIN commitmail json YAML

scandir(3): Convert malloc(x * y) and realloc(x * y) to reallocarr

(nia)

2021-10-29 10:29:51 UTC MAIN commitmail json YAML

radixsort(3): use reallocarr instead of malloc(x * y)

(nia)

2021-10-29 10:26:10 UTC MAIN commitmail json YAML

pdcsata.4: Add HISTORY section, fix stray space.

(nia)

2021-10-29 10:21:28 UTC MAIN commitmail json YAML

Add some missing device drivers to the lists.

From bobs at thelibertytree.org, thanks!

(nia)

2021-10-29 10:11:57 UTC MAIN commitmail json YAML

wcsdup(3): use reallocarr to catch integer overflow

(nia)

2021-10-29 07:55:04 UTC MAIN commitmail json YAML

Fix length of memset in tlb_record_asids

(skrll)

2021-10-29 04:14:44 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-29 04:13:39 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-29 01:49:26 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-29 01:04:53 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

(thorpej)

2021-10-28 23:41:06 UTC MAIN commitmail json YAML

Making "struct sigcontext" visible only to _LIBC || _KERNEL is too
restrictive for sparc (it's accessed by libasan).

(thorpej)

2021-10-28 22:20:08 UTC MAIN commitmail json YAML

2021-10-28 22:06:23 UTC MAIN commitmail json YAML

indent: remove unused local variable in lexi

Since the previous commit, lexi is always called with the same argument,
so remove that parameter.

The previous commit broke the debug logging by not printing "transient
state" anymore. Replace this with "rolled back parser state" at the
caller's site.

No functional change.

(rillig)

2021-10-28 21:56:26 UTC MAIN commitmail json YAML

indent: reduce negations in search_stmt_lookahead

No functional change.

(rillig)

2021-10-28 21:51:43 UTC MAIN commitmail json YAML

indent: clean up comments and function names

Having accurate names for the lexer symbols and the parser symbols makes
most of the comments redundant. Remove these.

Rename process_decl to process_type, to match the name of the
corresponding lexer symbol. In this phase, it's just a single type
token, not a whole declaration.

No functional change.

(rillig)

2021-10-28 21:35:57 UTC MAIN commitmail json YAML

indent: fix error message for buffer overflow during option parsing

At this early time, the input file has not been opened yet, so there is
no reason to output either the input file name or the line number.

(rillig)

2021-10-28 21:32:49 UTC MAIN commitmail json YAML

2021-10-28 21:02:05 UTC MAIN commitmail json YAML

2021-10-28 20:56:32 UTC MAIN commitmail json YAML

Fix typo in comment: allows, not alows.

I don't know what an alow is, maybe some cousin of the alot.
Awaiting a nature documentary by Allie Brosh about these perhaps more
elusive beasts.

PR misc/56473, from jschauma

(riastradh)

2021-10-28 20:49:36 UTC MAIN commitmail json YAML

indent: topologically sort functions

No functional change.

(rillig)

2021-10-28 20:31:17 UTC MAIN commitmail json YAML

indent: change product name, update version number

NetBSD's indent has deviated enough from FreeBSD's indent to warrant a
different product name. When indent was copied from FreeBSD in 2019,
that update introduced several new bugs, some of which have been fixed
in the NetBSD version.

NetBSD indent, unlike FreeBSD indent, supports C99 comments and C99
initializer designators.

(rillig)

2021-10-28 15:09:08 UTC MAIN commitmail json YAML

Use defined constant instead of direct value (Etienne Brateau)

(christos)

2021-10-28 15:08:05 UTC MAIN commitmail json YAML

Fix build with -Werror=array-parameter (Etienne Brateau)

(christos)

2021-10-28 14:54:32 UTC MAIN commitmail json YAML

2021-10-28 14:53:09 UTC MAIN commitmail json YAML

2021-10-28 14:31:20 UTC MAIN commitmail json YAML

2021-10-28 11:25:02 UTC MAIN commitmail json YAML

Finish restoring the compat code.

(christos)

2021-10-28 11:22:41 UTC MAIN commitmail json YAML

2021-10-28 11:13:27 UTC MAIN commitmail json YAML

The genassym code in libc also needs struct sigcontext13

(christos)

2021-10-28 11:11:11 UTC MAIN commitmail json YAML

put back the compat signal code; still have the stubs for it in libc

(christos)

2021-10-28 11:07:08 UTC MAIN commitmail json YAML

We still need struct sigcontext for longjmp.

(christos)

2021-10-28 10:46:05 UTC MAIN commitmail json YAML

x86: Move RNG initialization to after consinit.

This ensures we have the opportunity to get feedback about early
entropy.

(riastradh)

2021-10-28 10:45:49 UTC MAIN commitmail json YAML

2021-10-28 09:51:39 UTC MAIN commitmail json YAML

Use .Sq instead of a dangling .So

(kim)

2021-10-28 09:15:36 UTC MAIN commitmail json YAML

Support devices that the PCI subclass is not PCI_SUBCLASS_MULTIMEDIA_HDAUDIO.

- Not tested well.
- If audioX is not attached, add HDAUDIO_ENABLE_DISPLAYPORT and
  HDAUDIO_ENABLE_HDMI to your kernel config.

(msaitoh)

2021-10-28 07:24:40 UTC MAIN commitmail json YAML

Fix grammar in comment (affect vs. effect)

(kim)

2021-10-28 06:13:13 UTC MAIN commitmail json YAML

Make "0 seconds" overwrite the countdown also when enter is pressed

Fixes PR misc/56486.

(kim)

2021-10-28 01:36:43 UTC MAIN commitmail json YAML

2021-10-27 21:42:58 UTC MAIN commitmail json YAML

@thorpej wrote that sigcontext was never used on hppa; remove kernel handling
signal code. discussed also with @skrll

(christos)

2021-10-27 19:24:38 UTC MAIN commitmail json YAML

getaddrinfo(3): malloc + memset -> calloc

(nia)

2021-10-27 19:04:04 UTC MAIN commitmail json YAML

Add more Jasper Lake and Elkhart Lake devices.

(msaitoh)

2021-10-27 18:52:51 UTC netbsd-8 commitmail json YAML

Fix merge mishap from previous (ticket #1704)

(martin)

2021-10-27 18:50:57 UTC MAIN commitmail json YAML

Add Elkhart Lake support.

(msaitoh)

2021-10-27 18:26:06 UTC MAIN commitmail json YAML

2021-10-27 18:25:31 UTC MAIN commitmail json YAML

Add Intel Elkhart Lake devices.

(msaitoh)

2021-10-27 18:20:23 UTC MAIN commitmail json YAML

2021-10-27 18:20:08 UTC MAIN commitmail json YAML

There is no sigcontext in ppc64

(christos)

2021-10-27 18:19:12 UTC MAIN commitmail json YAML

2021-10-27 16:40:05 UTC MAIN commitmail json YAML

2021-10-27 14:53:12 UTC MAIN commitmail json YAML

Add many Intel I2C devices.

(msaitoh)

2021-10-27 11:35:23 UTC MAIN commitmail json YAML

Hacks to get zdb working on NetBSD:
- Force accessing raw device but we're passed the block device.
- Deal with wedges not returning their size on a stat(2) and use
  the DIOCGMEDIASIZE ioctl instead.

Ok chs@.

(simonb)

2021-10-27 11:27:26 UTC MAIN commitmail json YAML

fix problem with uninitialized variable on malformed 32 bit time.

(christos)

2021-10-27 11:18:56 UTC MAIN commitmail json YAML

2021-10-27 11:18:23 UTC MAIN commitmail json YAML

Add Intel Gemini Lake TXE HECI 1.

(msaitoh)

2021-10-27 06:54:15 UTC MAIN commitmail json YAML

2021-10-27 06:50:02 UTC MAIN commitmail json YAML

t_pwhash: Don't assume default cipher is SHA1. Add Argon2 tests.

(nia)

2021-10-27 05:33:59 UTC MAIN commitmail json YAML

When adjusting the max ASID count, check if ti->ti_asid_max == 0 as
well.  This defaults to 0 for the non-PMAP_TLB_NUM_PIDS case, so would
skip the updated test.

Fix for port-pmax/56466 (which affects all MIPS).

ok srkll@

(simonb)

2021-10-27 05:18:51 UTC MAIN commitmail json YAML

The stupid CPP has proven me too clever by half.

(thorpej)

2021-10-27 04:48:34 UTC MAIN commitmail json YAML

- Use the signal trampoline version constants from <sys/signal.h>.
- Declare the sigtramp externs as as char arrays, not int arrays; not all
  platforms have fixed-sized 32-bit instructions.

(thorpej)

2021-10-27 04:45:42 UTC MAIN commitmail json YAML

- In sendsig() and sigaction1(), don't hard-code signal trampoline
  versions.  Instead, use the version constants from <sys/signal.h>
  and automatically (and correctly) handle cases where multiple versions
  of a particular trampoline flavor exist.  Conditionalize support
  for sigcontext trampolines on __HAVE_STRUCT_SIGCONTEXT.
- aarch64 and amd64 don't use sigcontext natively, but do need to
  support it for 32-bit compatibility; define __HAVE_STRUCT_SIGCONTEXT
  conditionally on _KERNEL.

(thorpej)

2021-10-27 04:15:42 UTC MAIN commitmail json YAML

decode SMT parts for AMD family >= 0x17, not just 0x17.

now zen3 systems are properly identified by cpu topology for the
scheduler and cpuctl identify.

(mrg)

2021-10-27 04:15:00 UTC MAIN commitmail json YAML

2021-10-27 04:10:48 UTC MAIN commitmail json YAML

Centrally define constants that define the signal return trampoline
versioning scheme, and add a big block comment describing how it works.

(thorpej)

2021-10-27 03:06:59 UTC MAIN commitmail json YAML

2021-10-27 02:34:00 UTC MAIN commitmail json YAML

"struct sigcontext" has never been used on NetBSD/hppa; garbage-collect
it and other related definitions.

(thorpej)

2021-10-27 02:00:46 UTC MAIN commitmail json YAML

Define __HAVE_STRUCT_SIGCONTEXT for _KERNEL in addition to _LIBC.

(thorpej)

2021-10-27 01:13:22 UTC MAIN commitmail json YAML

Make sigcontext13 visible only to _KERNEL.  Make sigcontext visible only
to _LIBC and _KERNEL.

(thorpej)

2021-10-27 01:12:23 UTC MAIN commitmail json YAML

Make sigcontext13 visible only to _KERNEL.  Make sigcontext visible only
to _LIBC and _KERNEL.

(thorpej)

2021-10-27 01:11:35 UTC MAIN commitmail json YAML

Make sigcontext13 visible only to _KERNEL.  Make sigcontext visible only
to _LIBC and _KERNEL.

(thorpej)

2021-10-27 01:11:03 UTC MAIN commitmail json YAML

Make sigcontext13 visible only to _KERNEL.  Make sigcontext visible only
to _LIBC and _KERNEL.

(thorpej)

2021-10-27 01:10:06 UTC MAIN commitmail json YAML

Make sigcontext13 visible only to _KERNEL.

(thorpej)

2021-10-27 01:09:36 UTC MAIN commitmail json YAML

Make sigcontext13 visible only to _KERNEL.  Make sigcontext visible only
to _LIBC and _KERNEL.

(thorpej)

2021-10-27 01:06:39 UTC MAIN commitmail json YAML

Remove a superflouous comment.

(thorpej)

2021-10-27 01:05:34 UTC MAIN commitmail json YAML

2021-10-27 00:04:51 UTC MAIN commitmail json YAML

indent: fix indentation of local variable declarations

This had been broken since the import of FreeBSD indent in 2019.

(rillig)

2021-10-26 23:58:40 UTC MAIN commitmail json YAML

tests/indent: demonstrate another example of wrong formatting

(rillig)

2021-10-26 23:37:40 UTC MAIN commitmail json YAML

tests/indent: demonstrate wrong indentation of local declarations

Reported by RVP via private mail. Importing FreeBSD indent in 2019 fixed
the trailing space in line 1, at the cost of lots of other bugs.

indent-2000.10.11.14.46.04
| int <-- trailing space
| main(void)
| {
| char            (*f1) () = NULL;
| char          *(*f1) () = NULL;
| char          *(*f2) ();
| }
indent-2019.02.03.03.19.29

indent-2019.04.04.15.27.35
| int
| main(void)
| {
| char (*f1) () = NULL;
| char *(* f1) () = NULL;
| char *(* f2) ();
| }
indent-2021.09.30.21.38.43

indent-2021.09.30.21.48.12
| int
| main(void)
| {
| char (*f1)() = NULL;
| char *(* f1)() = NULL;
| char *(* f2)();
| }

(rillig)

2021-10-26 22:00:38 UTC MAIN commitmail json YAML

tests/indent: document cause for missing space between ')' and '='

(rillig)

2021-10-26 21:45:16 UTC MAIN commitmail json YAML

tests/indent: demonstrate missing space before '='

Reported by RVP via private mail. Broken since the import of FreeBSD
indent in 2019.

indent-2000.10.11.14.46.04
| char          *(*fn) (int) = NULL;
indent-2019.02.03.03.19.29

indent-2019.04.04.15.27.35
| char *(*      fn) (int)= NULL;
indent-2021.09.30.21.38.43

indent-2021.09.30.21.48.12
| char *(*      fn)(int)= NULL;

(rillig)

2021-10-26 21:37:27 UTC MAIN commitmail json YAML

indent: clean up process_comment

There is no undefined behavior since the compared characters are always
from the basic execution character set. All other cases are covered by
the condition above for now_len.

Fix debug logging for non-ASCII characters, previously a character was
output as \xffffffc3.

(rillig)

2021-10-26 21:23:52 UTC MAIN commitmail json YAML

indent: reduce indentation in process_comment

No functional change.

(rillig)

2021-10-26 21:18:51 UTC MAIN commitmail json YAML

doc: password hash changes

(nia)

2021-10-26 21:04:03 UTC MAIN commitmail json YAML

indent: make reformatting of comments simpler

No functional change.

(rillig)

2021-10-26 20:44:46 UTC MAIN commitmail json YAML

passwd.conf(5): switch default cipher for new user accounts to Argon2id

As well as offering a dynamic amount of iterations and memory usage,
which fits well with NetBSD's goal of running on a diverse range of
hardware devices, Argon2id offers improved resistance to GPU-based
password cracking and side channel attacks.

(nia)

2021-10-26 20:43:35 UTC MAIN commitmail json YAML

indent: make ps.keyword easier to understand

Previously, ps.keyword did not have any documentation and was not
straight-forward. In some cases it was reset to kw_0, in others it was
set to an interesting value. The idea behind it was to remember the kind
of word of the previous token, to decide whether to have a space between
sizeof or offsetof and a following '('.

No functional change.

(rillig)

2021-10-26 20:37:26 UTC MAIN commitmail json YAML

tests/indent: test edge cases for blank after sizeof

(rillig)