Commit Graph

279481 Commits

Author SHA1 Message Date
rillig 7c691c5e79 make(1): add test for null byte in the output of a command 2020-08-09 09:17:19 +00:00
skrll 6b437b00d5 Fix another UVMHIST so it doesn't use %s 2020-08-09 09:11:41 +00:00
rillig 088c26ed6d make(1): remove redundant assignment from Cmd_Exec
A Buffer is always null-terminated.
2020-08-09 09:07:54 +00:00
rillig ef3f5c5505 make(1): split local variable in Cmd_Exec into two
This avoids a mismatch between signed and unsigned types.
2020-08-09 09:01:29 +00:00
skrll 32d85e66e4 More whitespace 2020-08-09 08:49:00 +00:00
skrll 7677265e90 defflag foo on each line to make searching easier.
sort some lines and fix some indentation while I'm here.
2020-08-09 08:48:25 +00:00
skrll ae934c0d96 This file is only ever used when MULTIPROCESSOR so unifdef MULTIPROCESSOR 2020-08-09 08:33:52 +00:00
skrll e827fdfc5f Use compiler defines to determine which LLSCSYNC, et al
to provide.

This should fix mips builds.
2020-08-09 08:13:09 +00:00
rillig 07ed21c3eb make(1): add test that demonstrates possible delimiters for :S 2020-08-09 08:03:31 +00:00
rillig 90ed8de9a0 make(1): explain the mod-subst-dollar test 2020-08-09 07:41:14 +00:00
skrll f338a15af7 Don't use %s in UVMHIST_PRINT. Remove an unnecessary #ifdef UVMHIST while
I'm here
2020-08-09 07:26:20 +00:00
rillig 8f9a497161 make(1): add another test case for mod-subst-dollar
Having only 8 dollar signs does not prove anything.  It might still be
the result of 3 substitutions in a row.  Having 5 substitutions in a row
is less likely though.
2020-08-09 07:18:03 +00:00
rillig c68da31cf3 make(1): restrict the type of startc and endc to char 2020-08-09 07:09:57 +00:00
skrll f10dba68fc Add a comment 2020-08-09 07:09:35 +00:00
skrll 888326d52b Type consistency 2020-08-09 07:08:29 +00:00
rillig e594674bca make(1): use fixed-size arrays for Enum_ToString
Declaring the ToStringSize as "static const size_t" made it an ordinary
integer expression.  To avoid variable length arrays, the commonly
accepted way is to declare the length as an enum constant, as that is
considered an integer constant expression, which in turn makes the
declaration a fixed-size array.
2020-08-09 07:03:06 +00:00
skrll b9d042f677 KNF 2020-08-09 06:43:29 +00:00
skrll 8b177c3504 Don't kcpuset_clone every pmap_tlb_shootdown_bystanders. Instead allocate
a kcpuset_t per cpu_info and use that.
2020-08-09 06:26:49 +00:00
rillig 5f58857059 make(1): allow to build using GCC 9 during development 2020-08-09 05:51:04 +00:00
christos f645bd71ad Fix build; gcc does not like VLA's, so hard code the boundary
Use c99 initializers
2020-08-09 02:53:21 +00:00
riastradh 062ecd5ff2 Fix some clang neon intrinsics.
Compile-tested only, with -Wno-nonportable-vector-initializers.  Need
to address -- and test -- this stuff properly but this is progress.
2020-08-09 02:49:38 +00:00
riastradh 6e727d4c03 Use vshlq_n_s32 rather than vsliq_n_s32 with zero destination.
Not sure why I reached for vsliq_n_s32 at first -- probably so I
wouldn't have to deal with a new intrinsic in arm_neon.h!
2020-08-09 02:48:38 +00:00
riastradh da4b946081 Nix outdated comment.
I implemented this parallelism a couple weeks ago.
2020-08-09 02:00:57 +00:00
riastradh 43f5649092 Fix mistake in big-endian arm clang.
Swapped the two halves (only gcc does that, I think) and wrote j,i
backwards, oops.

(I don't have a big-endian arm clang build handy to test; hoping this
works.)
2020-08-09 01:59:04 +00:00
tsutsui 53f2f1c5b1 Add missed bpf(4) node for dhcpcd(8) in INSTALL floppies.
Should be pulled up to netbsd-9.
2020-08-09 00:56:44 +00:00
dholland 00826baa83 Use the right size for several calloc calls.
When allocating for a Char **, it should use sizeof(Char *), not
sizeof(Char **). This doesn't actually affect the results except
on DS9000 though :-)

(part 2, the instance in this file was as far as I can tell
inexplicably missed by CVS on the first go...)
2020-08-09 00:53:38 +00:00
dholland eadef030c6 Clarify some comments. 2020-08-09 00:51:12 +00:00
dholland 7f63690a47 Use the right size for several calloc calls.
When allocating for a Char **, it should use sizeof(Char *), not
sizeof(Char **). This doesn't actually affect the results except
on DS9000 though :-)
2020-08-09 00:34:21 +00:00
dholland 85bd10cb24 Don't cast the value returned from *malloc. No change to compiler output. 2020-08-09 00:22:53 +00:00
macallan efa54c4ea4 add commented out entries for onewire at snapper, and document what they're for 2020-08-08 22:41:14 +00:00
macallan 275e310708 add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.
2020-08-08 22:37:19 +00:00
jnemeth 005b97c872 make this compile without bio(4) 2020-08-08 19:39:28 +00:00
christos d913e2166f regen for a.out vectors 2020-08-08 19:26:33 +00:00
christos 51b06f7eb5 Put back the a.out netbsd and bsd vector. They are useful for debugging
old a.out binaries and take ~0 space.
2020-08-08 19:26:09 +00:00
rillig bfa281f42c make(1): merge duplicate code for the :H :T :R :E modifiers
By setting modifyWord first, the rest of the code becomes exactly the
same and is merged by the compiler.
2020-08-08 19:13:39 +00:00
christos c988d5c135 PR/55547: Dan Plassche: Fix BSD/OS binary emulation.
Centralize lcall sniffer and recognize the BSD/OS flavor.
2020-08-08 19:08:48 +00:00
christos bed7e9544b Fix the OTIOCGETD emulation. Line discipline 0 is NTTYDISC. 2020-08-08 19:04:58 +00:00
rillig 26e41a6045 make(1): remove trailing Z from buffer functions
This Z had been useful during the migration from int to size_t.  This
migration is finished, at least for the Buffer type, so the Z is no
longer necessary.
2020-08-08 18:54:04 +00:00
rillig c0a52e2708 make(1): add debug logging for Var_Parse
This will hopefully help with tracking down why the "Undefined variable"
error message is not triggered.

There is some other non-obvious behavior nearby.  In Parse_DoVar, the !=
assignment operator evaluates the variable using VARE_UNDEFERR, but
there is not even a warning for the following line:

!= echo err ${UNDEFINED} 1>&2
2020-08-08 18:50:11 +00:00
rillig 9c9b5925c3 make(1): mark condition strings as constant 2020-08-08 17:03:04 +00:00
rillig 18055fbc3e make(1): remove redundant documentation from cond.c
Many of the functions in cond.c are so small that it's faster to read
their code instead of a large block of documentation.

There are other functions that actually need a detailed description.
These have been left as-is.
2020-08-08 16:57:59 +00:00
rillig dd52f493a2 make(1): remove redundant function prototypes from cond.c 2020-08-08 16:31:37 +00:00
christos 22a44214b9 PR/55551 Soumendra Ganguly: Simplify tcgetattr error handling. 2020-08-08 16:01:35 +00:00
rillig a14f58a6ae make(1): fix typo in test 2020-08-08 14:59:59 +00:00
riastradh 18ff0ad8d5 Fix ARM NEON implementations of AES and ChaCha on big-endian ARM.
New macros such as VQ_N_U32(a,b,c,d) for NEON vector initializers.
Needed because GCC and Clang disagree on the ordering of lanes,
depending on whether it's 64-bit big-endian, 32-bit big-endian, or
little-endian -- and, bizarrely, both of them disagree with the
architectural numbering of lanes.

Experimented with using

static const uint8_t x8[16] = {...};

        uint8x16_t x = vld1q_u8(x8);

which doesn't require knowing anything about the ordering of lanes,
but this generates considerably worse code and apparently confuses
GCC into not recognizing the constant value of x8.

Fix some clang mistakes while here too.
2020-08-08 14:47:01 +00:00
rillig 472afa9e32 make(1): fix CRLF line endings in newly added files 2020-08-08 14:43:28 +00:00
rillig 9975bed5cd make(1): extend debug logging to error values
The error marker var_Error is just an empty string.  In the debug log
this empty string was not distinguishable from an otherwise empty
string.

Having this distinction helps in understanding the exact data flow.
2020-08-08 14:28:46 +00:00
rillig 619278f158 make(1): add more detailed debug logging for variable modifiers
Before a modifier is applied to a variable, it is not yet parsed,
therefore it is only possible to log a rough estimate of the modifier.
But after applying it, the parsing position has advanced, and the full
modifier can be logged.

In addition, to fully understand how the modifiers work, it's not enough
to just know the variable names and values, there are also some flags
that influence how the modifiers behave.  The most influential is
VARE_WANTRES.

Thanks to sjg for the extensive review and valuable feedback on the
first drafts.
2020-08-08 13:50:23 +00:00
rillig 2b496df1e1 make(1): improve documentation of Var_Parse and reorder conditions 2020-08-08 13:31:24 +00:00
rillig 888302c1be make(1): fixup for "Unfinished modifier" 2020-08-08 13:29:09 +00:00