Commit Graph

282432 Commits

Author SHA1 Message Date
christos 8ab41b6ec3 c99 struct initializers 2020-10-30 22:20:38 +00:00
christos 0c5f517c54 fix indentation 2020-10-30 22:19:00 +00:00
uwe ed38e3002e ddb(9) - first cut at the documentation for writing and adding new DDB
commands.  Not yet complete and not hooked into the build.
2020-10-30 22:14:03 +00:00
kre 74ce69e5d7 Update the test a little so that is possible to pass
(if date fails, because of bad or out of range input
to parsedate, it cannot be expected to output the
expected result).

Remove the atf-expect-fail now that parsedate() should
detect overflows, and fail, causing date to fail, rather
than simply producing bogus results.
2020-10-30 22:03:35 +00:00
kre 84c54a935f PR lib/46542
Add checks to detect overflow, and also detect other invalid
(out of range) inputs for parsedate().

There could be more, and some of what is being added is not
perfect, but many calculation overflows will be detected now
(and cause an error return) and some of the most bizarre
inputs that were previously accepted no longer will be.
2020-10-30 22:03:11 +00:00
nia 2ea12967a0 ossaudio(3): Simplify setting rate (try to supply the nearest one possible) 2020-10-30 21:44:49 +00:00
reinoud cfe6ea549d Implement missing (REPE) CMPS instruction support in NVMMs x86_decode().
In apparently rare cases the (REPE) CMPS instruction can trigger an memory
assist. NVMM wouldn't recognize the instruction and thus couldn't assist and
Qemu would abort.
2020-10-30 21:06:13 +00:00
rillig 7c6ef7101c make(1): demonstrate double expansion when appending to a variable 2020-10-30 20:36:33 +00:00
rillig e8b104bf6c make(1): change char * to void * in Var_Value
The only purpose of the parameter freeIt is to free the memory
associated with the return value.  To do this, no pointer arithmetic is
needed.  Therefore, change to a void pointer, to catch accidental use of
that pointer.
2020-10-30 20:30:44 +00:00
rillig 5a14d4c6bd install(1): copy metachar table from usr.bin/make
It is not worth having a dependency on usr.bin/make just for including
this small table.  The header file usr.bin/make/make.h, which is
included for consistency with the rest of the usr.bin/make code, is
using inline functions a lot and refers to several parts of make that
are completely irrelevant to usr.bin/install.
2020-10-30 20:05:00 +00:00
rillig 6ebc03095a make(1): remove comment about adding is_shell_metachar to ctype.h
This function is so specialized that it would be wrong to have it in a
general-purpose C header.
2020-10-30 19:14:20 +00:00
skrll ce993bccb4 Retire arm_[di]sb in favour of the isb() and dsb(sy) macro invocations. 2020-10-30 18:54:35 +00:00
martin bfb6e5613b PR 55769: avoid the module set if we do not build any 2020-10-30 18:47:38 +00:00
rillig 9c79d422c7 make(1): add test for an edge case of .unexport 2020-10-30 17:55:10 +00:00
rillig d77fa9d968 make(1): clean up comments and local variables in var.c 2020-10-30 17:10:48 +00:00
rillig ee54d7cb83 make(1): fix documentation for VARP_SUB_ONE
The pattern is only replaced a single time, not everywhere in the first
matching word.
2020-10-30 16:54:38 +00:00
rillig e5b34c0dd3 make(1): make iterating over HashTable simpler 2020-10-30 16:48:58 +00:00
rillig 67a5c1284c make(1): rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME
The "yes" sounded too much like "all".
2020-10-30 16:45:37 +00:00
skrll d20ab3a0c2 Remove "also;" 2020-10-30 16:29:49 +00:00
rillig ae1844ccbf make(1): document VAR_READONLY, now that it is really read-only 2020-10-30 16:16:16 +00:00
rillig 4101604022 make(1): prevent appending to read-only variables 2020-10-30 16:09:56 +00:00
skrll 155f2770cc Add a "show fdt" ddb command 2020-10-30 16:08:44 +00:00
rillig 09c6b7ecfa make(1): fix indentation in source code 2020-10-30 15:39:17 +00:00
macallan 62e8427cc0 support screen blanking of r5xx
somewhat crude but works
2020-10-30 15:30:43 +00:00
rillig c732986825 make(1): extract MayExport from Var_Export1 2020-10-30 15:28:38 +00:00
rillig 7ea3353967 make(1): demonstrate how to append to a read-only variable 2020-10-30 15:09:13 +00:00
rillig c7027624f4 make(1): move test flags for varname-dot-shell to the test itself 2020-10-30 15:03:58 +00:00
rillig e9e700d52d make(1): clean up is_separator 2020-10-30 14:56:23 +00:00
rillig ae6cbdfbf6 make(1): fix comments in test for string literals in conditions 2020-10-30 14:53:31 +00:00
rillig b7162792f5 make(1): fix parse error in string literal in conditional
The string literal "${VAR} " had produced a "Malformed conditional", at
least since 2003.  (That's the oldest make I have available for testing.)
Strange that nobody else noticed that in the last 17 years.
2020-10-30 14:51:47 +00:00
rillig 7a1a7e6d8e make(1): add more test cases that fail in condition string literals 2020-10-30 14:46:01 +00:00
rillig 7a930d5d32 make(1): add test for two variable expressions in a string literal 2020-10-30 13:41:14 +00:00
maya 209c610114 Use the same macro used before for avoiding too large floats on vax.
This has the advantage of not changing the number for non-vax, so is a
safer change for those architectures.
(Might not actually matter).
2020-10-30 12:32:04 +00:00
rin 1b60b20de6 Add bigger console font for modern displays. 2020-10-30 11:02:50 +00:00
rin 36b9c926bf Add smscphy(4). 2020-10-30 11:02:09 +00:00
abs c30a39f078 Fix tcpdump example from "‐i npflog0.pcap" to "‐i npflog0" 2020-10-30 09:23:36 +00:00
martin 5d507f2d93 libsqlite3 now requires -lm 2020-10-30 08:41:58 +00:00
rillig 9b4bcdd1d9 make(1): demonstrate parse error in string interpolation in condition 2020-10-30 08:13:17 +00:00
rillig c743b1bd9f make(1): remove redundant evaluations in VarFind 2020-10-30 07:47:11 +00:00
rillig 2b9fde3816 make(1): replace VarFindFlags with a simple Boolean
Either all flags had been given or none.  Except in Var_Append, but
since the ctxt was VAR_GLOBAL anyway, adding FIND_GLOBAL there did not
make a difference.
2020-10-30 07:37:30 +00:00
rillig 73681006aa make(1): rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE
While here, use a consistent order for the enum constants.  This is both
the declaration order and at the same time the usual lookup order,
unless the -e option is given.
2020-10-30 07:30:29 +00:00
rillig 3980a47eda make(1): rename VAR_CMD to VAR_CMDLINE
Since make has to do with both the command line and child commands, the
former name was confusing.
2020-10-30 07:19:30 +00:00
skrll 3d56dc6d58 Sort the db_show_cmd entries 2020-10-30 07:17:29 +00:00
skrll 9fe75a0d78 Put the 'added from all sub cmds' comment above the four commands that
were added as part of the work in r1.98
2020-10-30 07:03:50 +00:00
skrll 0bdfd0c319 Whitespace 2020-10-30 06:59:43 +00:00
rillig 7c8c77b04a make(1): rename SAVE_DOLLARS to follow the naming conventions 2020-10-30 06:59:12 +00:00
skrll f157d2e256 Trailing whitespace 2020-10-30 06:57:08 +00:00
rillig 55c1bccc50 make(1): clean up and update module comment in var.c 2020-10-30 06:44:57 +00:00
jdc 917f667b0e Add pcagpio and pcf8574io - hardware status monitors on V210/V240 and E250. 2020-10-30 06:44:37 +00:00
msaitoh 8057105e49 Add WMPHY_I350. Not used yet. 2020-10-30 06:29:47 +00:00