Commit Graph

281608 Commits

Author SHA1 Message Date
rillig
f4ce722011 make(1): format code in arch.c 2020-10-03 10:04:34 +00:00
martin
75325bbdbe Add missing __BEGIN_DECLS/__END_DECLS to force function declarations into
the "C" namespace.
2020-10-03 09:56:00 +00:00
rillig
55fdd4871b make(1): explain the purpose of the test make-exported 2020-10-03 09:48:40 +00:00
rillig
5729ade48e make(1): add test for .export-literal 2020-10-03 09:37:04 +00:00
rillig
2090dc1c6a make(1): add test for the -dF option 2020-10-03 09:10:26 +00:00
rillig
cd39b7362f make(1): add test for the -df debug option 2020-10-03 08:29:32 +00:00
rillig
5d9145e94f make(1): add test for the -dj debug option 2020-10-03 08:16:53 +00:00
rillig
cec214a3c6 make(1): add test for the -dl command line option 2020-10-03 07:52:30 +00:00
rillig
81d3fdb276 make(1): fix indentation of code for printing enum values 2020-10-03 06:36:01 +00:00
skrll
5d0471c57b G/C 2020-10-03 05:56:26 +00:00
rillig
a2ba7e7ed3 make(1): use hash table for looking up open directories by name
As long as there are less than 20 open directories, it's perfectly fine
to use a doubly-linked list for name lookup.  A singly linked list or
even an array list would have been better, but anyway.

When the number of directories rises above 1000, which happens with
dirdeps.mk, linear list lookup becomes too expensive, especially since
each list entry is compared using a strcmp call, in a callback function
that is not inlined.

Using a hash table is much more efficient than linear lookup.  While
here, abstract all operations regarding the openDirectories list into a
new data type that provides a simple and straight-forward API.  This
strongly typed API is especially important since the current
implementation of the list and hash table is weakly typed, using void *
for the actual data, and StringList and CachedDirList refer to the
exactly same type, they just have different names to help the human
readers but don't provide any type safety.
2020-10-02 22:20:25 +00:00
rillig
6527b1ca65 make(1): add test for repeating the :L variable modifier 2020-10-02 20:48:37 +00:00
rillig
1c85acad23 make(1): add tests for parsing and exporting variables
Once again, there are a few surprises deeply hidden inside the edge
cases.
2020-10-02 20:34:59 +00:00
rillig
e2e28fa7a8 make(1): add test for the special .PATH target and variable 2020-10-02 18:46:54 +00:00
rillig
311d5aead3 make(1): in ApplyModifier_To, update pp in each branch
Before, the parsing position was updated once at the beginning, which
didn't make sense.  Updating it in each branch allows to decide for its
appropriate value in each branch individually.
2020-10-02 17:42:33 +00:00
christos
883939c9f3 undo previous for 'r' and 'e' modifiers; they should no go further than
the last '/'.
2020-10-02 17:33:13 +00:00
jmcneill
e9022974c1 Build arm64.img for aarch64eb with a LE FFS, and include GENERIC64 in
release builds.
2020-10-02 17:27:12 +00:00
rin
5daf99f3f4 Revert rev 1.5:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/fdt/dw_apb_uart.c#rev1.5

The device is capable to recognize break signal actually.
Reset cnmagic from +++++ to default.

Pointed out by jakllsch. Thanks!
2020-10-02 14:59:56 +00:00
kamil
4d7b5ca9b5 Do not assume that _lwp_getprivate() returns unbiased private pointer
Cherry-pick and adapt:

From 2a9ce60de98e53198047daaeeec3cf09ece4e693 Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Fri, 2 Oct 2020 16:13:09 +0200
Subject: [PATCH] [compiler-rt] [netbsd] Improve the portability of
 ThreadSelfTlsTcb

Use __lwp_gettcb_fast() and __lwp_getprivate_fast(), as _lwp_getprivate()
can be a biased pointer and invalid for use in this function on all CPUs.
2020-10-02 14:36:54 +00:00
nia
aa47858fae xterm: Enable SIXEL graphics support.
could also enable REGIS, it will require -lm and i suppose isn't
a default upstream yet(?)

test with "-ti vt340".
2020-10-02 13:08:07 +00:00
rillig
1173b48fe5 make(1): clean up documentation of Main_ParseArgLine
The previous documentation contained lots of irrelevant implementation
details.
2020-10-01 23:52:51 +00:00
rillig
2e1094d852 make(1): add missing const for Parse_AddIncludeDir 2020-10-01 23:44:36 +00:00
rillig
63a1802d8a make(1): clean up option handling
The test for argvalue == NULL for the individual options was unnecessary
since that is already done in the common part.
2020-10-01 23:42:22 +00:00
rillig
0912219df3 make(1): format code in MainParseArgs 2020-10-01 23:28:01 +00:00
rillig
88855abb8c make(1): extract handling of the -m option into separate function 2020-10-01 23:20:48 +00:00
rillig
29ec43aa5e make(1): extract option handling for -j/-J into separate functions 2020-10-01 23:14:07 +00:00
rillig
c66c049945 make(1): extract MainParseArgChdir into separate function
This removes the struct stat from MainParseArg.
2020-10-01 23:06:56 +00:00
rillig
2e26bd4a68 make(1): extract MainParseArg into separate function
That part of the code is long enough and independent enough to get its
own function.  Having a struct stat in MainParseArgs just didn't feel
like a correct abstraction level.
2020-10-01 23:02:07 +00:00
rillig
ef0b5be0ac make(1): remove redundant function prototypes 2020-10-01 22:42:00 +00:00
nia
618a5a1ff2 xeyes: Enable anti-aliasing with XRENDER
If you prefer the "classic" look, "xeyes +render"
2020-10-01 21:22:47 +00:00
rillig
a6badb282d make(1): add note about "..." with duplicate shell commands 2020-10-01 21:00:55 +00:00
kamil
b02045bad0 Reset the entries for drochner and dsl
i386 and amd64 are now maintained by core.
2020-10-01 18:34:06 +00:00
kamil
9d68f742b6 Remove 2020-10-01 18:23:29 +00:00
kamil
07aee10b44 Drop TODO.ptrace
The remaining issues are mostly tracked in the ATF ptrace tests and GDB
or LLDB test-suite.
2020-10-01 18:21:11 +00:00
kamil
2164a614c5 Drop TODO.sanitizers
The LLVM work is merged mostly to GCC.
The remaining work is not worth tracking here and is restricted mostly to
fixing bugs from various 'make check-*' targets in LLVM.
2020-10-01 18:19:20 +00:00
nia
9c80624b1c synaptics: Emulate scrolling when the middle button is held with TrackPoints
idea stolen from various other operating systems.

this configurable with a sysctl in case somebody wants to hold the middle
button, e.g.  with old window managers that close menus when a button is
released.
2020-10-01 17:13:19 +00:00
nia
cd04adbbd6 erect a signpost for weary travellers 2020-10-01 15:08:11 +00:00
nia
3810cfde80 comment was likely true in 2007 but no longer reflects the reality of hw 2020-10-01 14:33:26 +00:00
rin
8674cb4654 Link librumpclient explicitly. Fix sun2, i.e., MKPIC=no build. 2020-10-01 13:49:18 +00:00
skrll
e37c28423f Fix evbarmv5 build 2020-10-01 08:27:20 +00:00
skrll
2af808c89b KNF (and some newlines) 2020-10-01 07:31:27 +00:00
skrll
0d76088d86 Fix build 2020-10-01 07:21:36 +00:00
skrll
3d703e4464 KNF 2020-10-01 06:59:34 +00:00
ryo
4237298128 fix build error with LLVM 2020-10-01 06:40:16 +00:00
pgoyette
055829b56d Fix up the debug stuff for if_tap and if_vether 2020-10-01 02:00:04 +00:00
jmcneill
a6247e1ae1 Fix off-by-one in channel count, from Mark Millard. 2020-09-30 23:58:13 +00:00
roy
bb8258cab8 Add if_tap directory for DEBUG builds. 2020-09-30 20:20:53 +00:00
christos
e06f645ac3 Fix
% set x='a/b c/d.e'
% echo $x:q:h
2020-09-30 17:51:10 +00:00
roy
d1817bc062 Be like other tests and speciy the binary name we install 2020-09-30 17:14:11 +00:00
christos
9b07800afe Add missing lint library 2020-09-30 17:11:31 +00:00