Commit Graph

278925 Commits

Author SHA1 Message Date
rillig
4c360672c6 make(1): add test for off-by-one error in Var_Parse 2020-07-26 22:15:36 +00:00
wiz
4fb043ce84 Minor wording improvements. 2020-07-26 21:47:16 +00:00
rillig
a732e398fd make(1): add coverage test for dynamic = TRUE in Var_Parse 2020-07-26 21:46:10 +00:00
rillig
3d8be97716 make(1): rename VarEvalFlags variables to eflags
This way, they cannot be confused with other flags, and any mismatch of
mixing eflags with constants other than VARE_* is immediately apparent.
2020-07-26 21:31:11 +00:00
christos
d2b18d3528 use the right printing function 2020-07-26 21:28:33 +00:00
rillig
0c1142b3e8 make(1): rename local variable in Var_Parse 2020-07-26 21:19:42 +00:00
rillig
549c0385d7 make(1): add test for unclosed variables 2020-07-26 21:09:49 +00:00
rillig
c3770d60e1 make(1): add test for expanding dynamic variables 2020-07-26 20:30:42 +00:00
rillig
fbc78e9beb make(1): make return value of Var_Parse constant
This return value is not supposed to be modified since it can be a string
literal.  The modifiable part is returned via freePtr, but only for
freeing, not for actually modifying anything.
2020-07-26 20:21:31 +00:00
rillig
cfbb88abcf make(1): explicitly add dependencies on headers
This prevents partial builds after changing a header.  The declared
dependencies are more than strictly necessary, but that's still better
than having inconsistent partial builds because too few dependencies are
declared.
2020-07-26 20:04:57 +00:00
rillig
323e51b4fd make(1): revert making Var_Parse return a const string
The dependencies between the C files and nonints.h are not declared
properly, which resulted in a successful partial build, but a full "make
clean && make" failed.
2020-07-26 19:55:24 +00:00
rillig
f1e905073a make(1): mark result of Var_Parse as const
Var_Parse can return either a string literal or an allocated string.  The
former must not be modified by the caller.  If the string is allocated,
it is returned in freePtr as well, but only for freeing it after use.
2020-07-26 19:44:04 +00:00
rillig
80e18a5c23 make(1): reduce scope and rename local variable in Var_Parse 2020-07-26 19:36:24 +00:00
rillig
07cf95b6b3 make(1): eliminate another local variable in Var_Parse 2020-07-26 19:16:17 +00:00
rillig
46d6386c06 make(1): split local variable into two in Var_Parse 2020-07-26 19:13:42 +00:00
rillig
4ff8ec073b make(1): split local variable into two
Reusing a const char * parameter to store a char * and later free that
string was not a good idea. It made the pretty long code of Var_Parse
more difficult to understand.
2020-07-26 19:11:06 +00:00
nia
afd659dfcd replace KDE with a desktop that's actually current in pkgsrc 2020-07-26 18:53:50 +00:00
rillig
8dcaaad152 make(1): reorder arguments of ParseModifierPart
First the input parameters, then additional data, then special arguments.
2020-07-26 18:47:02 +00:00
christos
df1af03d3a extattr.3 is obsolete 2020-07-26 18:11:43 +00:00
rillig
ae743bce00 make(1): merge VARE_NOSUBST into VARE_WANTRES
The flag VARE_NOSUBST is only a few days old. It had grown out of the
VARP_NOSUBST and VAR_NOSUBST flags, not knowing at that time that it
meant the exact opposite of VARE_WANTRES.
2020-07-26 18:11:12 +00:00
christos
a5cb7ebb06 this file contained the same information as extattr_namespace_to_string.3
and somewhat incorrect too.
2020-07-26 18:10:00 +00:00
rillig
0c7f7e41fa make(1): remove wrong comment from VarOrder 2020-07-26 17:44:54 +00:00
rillig
f2ad12c780 make(1): reorder code in ParseModifierPart to be more readable 2020-07-26 17:23:00 +00:00
rillig
65fdbe5071 make(1): in ParseModifierPart, only update length on success 2020-07-26 17:21:28 +00:00
jdolecek
08a7867f76 fix attribution - I was confused what was the correct final version 2020-07-26 17:12:41 +00:00
rillig
73ddc3cbb8 make(1): remove wrong comment for VarUniq
VarUniq is not about sorting the words.
2020-07-26 17:10:56 +00:00
rillig
4cf39e5f82 make(1): save a few bytes and cycles by comparing against 0
The comparison against ac - 1 could have been optimized by the compilers
as well, but both GCC 5 and Clang produce smaller code for the comparison
against 0.
2020-07-26 17:09:23 +00:00
rillig
a6516662ea make(1): remove unnecessary block scope 2020-07-26 16:59:08 +00:00
rillig
efe25fc5ac make(1): document the circumstances in which brk_string returns NULL 2020-07-26 16:51:53 +00:00
jdolecek
183910b65f finish sentence 2020-07-26 15:57:03 +00:00
jdolecek
73e870b5dc add note that the network initialization script needs the device nodes
to be created
2020-07-26 15:56:30 +00:00
christos
1abb353bae If Unwind_Backtrace is broken, ctx.n will still contain ~0, and we will
return that which poor behavior for the user, so return 0 instead.
We could document ~0 to be an error, but that would deviate from the
Linux behavior which is not desirable. Noted by Poul-Henning Kamp
2020-07-26 15:53:05 +00:00
rillig
40ba9bc59b make(1): avoid memory allocation for oneBigWord in modifiers 2020-07-26 15:53:01 +00:00
jdolecek
b763920b00 add support for wwanc(4) device nodes (xmm[0-9]) 2020-07-26 15:47:27 +00:00
nia
42708011d3 robots: Use arc4random_uniform for better uniform distribution 2020-07-26 15:38:22 +00:00
rillig
e11b0547a6 make(1): help the compiler to find common subexpressions 2020-07-26 15:37:44 +00:00
rillig
36f5d36082 make(1): add convenience functions for adding to a SepBuf 2020-07-26 15:26:27 +00:00
nia
e54fc04f5a random(6): Use arc4random_uniform to simplify code 2020-07-26 15:24:00 +00:00
jdolecek
04f310fb37 note new Intel XMM7360 driver 2020-07-26 15:14:23 +00:00
nia
e59dc3e7bc Revert arc4random usage for now
this is a host tool and needs to be portable

future plans: add arc4random to libnbcompat
2020-07-26 15:14:09 +00:00
jdolecek
6b6d7b2ff3 add rudimentary wwanc(4) manpage 2020-07-26 15:13:09 +00:00
rillig
11360cd834 make(1): add Buffer functions for common tasks
Adding a string or a substring to a buffer are common tasks when handling
variables.  There is no need to spell out the strlen call or the pointer
subtraction at every call site.

Subtracting pointers results in a ptrdiff_t, which would have to be
converted to an int in each case for WARNS=6. Having this conversion in a
single place keeps the code clean.
2020-07-26 15:09:10 +00:00
jdolecek
d40a03f552 Add driver for Intel XMM7360 LTE modem, based upon Linux driver available
at https://github.com/xmm7360/xmm7360-pci

This version works on Linux, OpenBSD, and NetBSD.

OpenBSD port written for genua GmbH

Modem requires python script from the master site to initialize the network,
it will be added to pkgsrc shortly
2020-07-26 14:51:18 +00:00
rillig
9a9cf6b25b make(1): add tests for :!...! parse errors 2020-07-26 14:39:46 +00:00
riastradh
ddd4654428 Another /usr/libdata/usr/tests/sys/crypto/chacha set list entry.
(Why do we need this here _and_ in debug/mi?)
2020-07-26 14:22:22 +00:00
rillig
cd185c3b0e make(1): add test for missing input validation in :[123] modifier 2020-07-26 14:16:45 +00:00
riastradh
ed8eacd373 Sort includes. 2020-07-26 14:01:14 +00:00
rillig
0c293d0431 make(1): add Buf_AddInt to make the calling code simpler 2020-07-26 13:39:30 +00:00
rillig
c559461003 make(1): add basic tests for the :S modifier 2020-07-26 13:09:53 +00:00
martin
9c03d654a9 Add missing include to fix the build on architectures w/o any special
accelerated AES implementation.
2020-07-26 12:43:27 +00:00