Commit Graph

278280 Commits

Author SHA1 Message Date
roy f8262fcce8 unbreak build, put /var/db/dhcpcd into the set lists 2020-07-03 12:53:27 +00:00
isaki bebda9f2a3 Fix an argument passes to auixp_intr().
This is rest of rev 1.39 (split device_t/softc) in 2012.
Problem reported and tested by Riccardo Mottola.
2020-07-03 12:39:54 +00:00
roy 1580d06b1a Add /var/db/dhcpcd back 2020-07-03 11:03:42 +00:00
roy ec10befd40 Note import of dhcpcd-9.1.4 2020-07-03 10:47:29 +00:00
roy 61fe7a6beb Sync 2020-07-03 10:46:45 +00:00
roy 1d3a3c99fc Update to dhcpcd-9.1.4 with the following changes:
* Fix SMALL builds
 * Ensure DBDIR exists at startup
2020-07-03 10:45:43 +00:00
jmcneill 7c5cd4a6aa Move db_reset_cmd prototype to db_machdep.h (forgot to commit this file) 2020-07-03 10:19:18 +00:00
rillig 90a4c7d338 make(1): remove redundant parentheses around return value 2020-07-03 08:37:56 +00:00
skrll b6d64ab7ab Make this compile/work on 32-bit archs. OK'ed my maxv
I thought about uintptr_t, but didn't change from Elf_Addr
2020-07-03 08:19:20 +00:00
rillig 820b5caede make(1): remove trailing whitespace 2020-07-03 08:13:23 +00:00
rillig 44d841d2c5 make(1): remove redundant parentheses around return values 2020-07-03 08:02:55 +00:00
rillig 12b3007c76 make(1): refactor Str_Match
- use shorter variable names to avoid line breaks
- eliminate c2 variable
- change return type to Boolean
2020-07-03 07:40:13 +00:00
jruoho 7b69662fe9 Skip these also for Qemu runs as they cause panics. Point to PR kern/55451. 2020-07-03 07:03:14 +00:00
skrll 1328297211 Consistency...#define<tab> 2020-07-03 06:49:26 +00:00
skrll 467df8a73e KNF (sort #includes) 2020-07-03 06:35:05 +00:00
skrll d084c0fc75 Style and share a debug string 2020-07-03 06:33:39 +00:00
rillig 76ed5386c9 make(1): clean up Str_Match
- removed unnecessary parentheses
- uniform test for end of string
2020-07-03 06:30:02 +00:00
skrll bebb61e6d8 Use howmany() 2020-07-03 06:26:41 +00:00
rillig 001c9f20c0 make(1): clean up documentation of Str_Match 2020-07-03 06:25:23 +00:00
skrll cba5346832 Whitespace 2020-07-03 06:22:48 +00:00
skrll 7369e038e0 Wrap a comment 2020-07-03 06:15:27 +00:00
skrll 88a427068b Provide a db_reset_cmd prototype 2020-07-03 06:13:00 +00:00
jruoho 9cb1df3cd3 Add a check for PR bin/54692. 2020-07-03 04:25:28 +00:00
jruoho 7bd1b83147 Add a check for the overflow noted in PR lib/46542. 2020-07-03 03:59:18 +00:00
jruoho 04c087f823 Verify that PR lib/55041 is no longer an issue. 2020-07-03 03:13:10 +00:00
jruoho f62e6216a7 Expect a timeout for evbarm-aarch64, as seen in the recent Qemu runs. 2020-07-03 02:51:13 +00:00
uwe 939fb589cb setcchar - don't lose combining marks to a typo.
We copy len wchars but set the length field to 1, instead of len.
From Naman Jain in PR lib/55443
2020-07-02 23:43:01 +00:00
rillig e8699354fb cgram(6): use standard cursor keys, use standard shuffle algorithm
The previous shuffle algorithm asked for 100 random numbers, on average.
The new algorithm asks exactly for 26 random numbers.

Curses predefines numeric constants for keys, and there is no apparent
reason not to use these standard keys for cursor movement.
2020-07-02 19:11:01 +00:00
roy 95af55eb59 dhcpcd: Fix SMALL build 2020-07-02 17:15:00 +00:00
rillig ebbfad8f2d make(1): fix unnecessary evaluation of variables in :@var@ modifier 2020-07-02 16:52:34 +00:00
rillig fcdc2c38f9 make(1): fix unnecessary evaluation for :S :C := modifiers 2020-07-02 16:46:57 +00:00
rillig 935e957525 make(1): demonstrate some more cases for unintended evaluation 2020-07-02 16:37:56 +00:00
rillig ac48a45be5 make(1): clean up code in var.c
- remove redundant parentheses in return statements
- add missing space after comma
- remove some redundant parentheses around comparisons
- use hexadecimal numbers for bit mask constants
- remove Var_GetTail and Var_GetHead, which had been unused for 19 years
2020-07-02 16:14:50 +00:00
rillig 91643e7541 make(1): remove useless parameter from Var_Set
The enum corresponding to this int parameter is only defined in var.c,
which makes it impractical for the outside to set this parameter to
anything but 0.

On x86_64, this reduces the size of the resulting executable by 5 kB.
2020-07-02 15:47:38 +00:00
rillig 3b9ed0c6b7 make(1): use enum instead of #define for VarPattern flags 2020-07-02 15:26:21 +00:00
rillig e42ab321d5 make(1): add more type safety for enums
There are several types of flags for variables, and these cannot be
mixed.  To prevent accidental typos, these are defined in separate enum
types.  Clang warns about direct assignments between distinct types, but
not about mixing distinct types in binary expressions like A | B.  GCC
does not warn at all.
2020-07-02 15:14:38 +00:00
lukem 46b85cbbd3 kyua-cli: convert auto_ptr to unique_ptr
Update kyua-cli to C++11 and use unique_ptr instead of auto_ptr,
(with std::move() where appropriate), to avoid deprecated warning by g++ 8.

(I didn't change some of the code that could arguably be refactored
to use unique_ptr or shared_ptr instead of raw pointers
and therefore remove the special case destructor handling).
2020-07-02 14:04:00 +00:00
roy 6ae10ac187 Note import of dhcpcd-9.1.3 2020-07-02 14:02:04 +00:00
roy 2fc7a081d2 Sync 2020-07-02 13:59:19 +00:00
roy a43a146444 Update to dhcpcd-9.1.3 with the following changes:
* inet6: Add support for reporting Mobile IPv6 RA's
 * inet6: Report RA Proxy flag if set
 * BSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF
 * privsep: Don't handle any signals meant for the main process
 * eloop: Try and survive a signal storm
 * dhcpcd: Add an option to poll the interface carrier state
 * script: Make visible some link level parameters to lease dumping
 * inet6: Don't regen temp addresses we didn't add
 * privsep: Don't limit file writes if logging to a file
 * DHCP6: Fix lease timings with nodelay option
2020-07-02 13:57:40 +00:00
lukem e60d5634a2 lutok: auto_ptr replaced; remove build workaround 2020-07-02 13:56:10 +00:00
lukem 8665e60721 lutok: use unique_ptr not auto_ptr 2020-07-02 13:54:19 +00:00
rin c9e3efd544 Add support of ptrace(2) for COMPAT_NETBSD32.
Now, GDB for arm32 is usable for debugging 32bit applications.

OK ryo@
2020-07-02 13:04:46 +00:00
rillig f5d9ab301a make(1): fix unnecessary evaluation of :M and :N modifiers 2020-07-02 13:04:09 +00:00
rin ed24610792 pmap_procwr(): sync icache even if p != curproc. This fixes applications
like GDB for arm32, that rewrite text of other process.

Thanks to ryo@ for discussion.
2020-07-02 13:01:11 +00:00
rin 864ad9df8e Set uvmexp.ncolors appropriately, which is required for some CPU
models with VIPT icache.

Otherwise, alias in virtual address results in inconsistent results,
at least for applications that rewrite text of other process, e.g.,
GDB for arm32.

Also, this hopefully fixes other unexpected failures due to alias.

Confirmed that there's no observable regression in performance;
difference in ``time make -j8'' for GENERIC64 kernel on BCM2837
with and without setting uvmexp.ncolors is within 0.1%.

Thanks to ryo@ for discussion.
2020-07-02 12:59:31 +00:00
macallan b7d8551aa7 add $NetBSD: 2020-07-02 12:47:19 +00:00
macallan 14909839c0 proplib API catchup 2020-07-02 12:45:27 +00:00
rillig 4f4f969a98 make(1): demonstrate another unintended variable evaluation 2020-07-02 12:37:18 +00:00
rillig b8b3ace20a make(1): fix edge case for evaluating unnecessary conditions 2020-07-02 12:34:30 +00:00