Go to file
rillig c48d8a0ff1 lint: fix bugs in dprint_node in debug mode (since today)
The node was dereferenced before the null check.  GCC 5.5 didn't warn
about this obvious bug, not even with -Wall -Wextra -O2.  Such a case
didn't occur though in the few tests that this function was used in.

The indentation for the nested nodes only needs to be set for a few
lines of code, make this region as small as possible.

There are nodes that use both tn_left and tn_right, even though they are
not defined as binary operators.  An example is CALL, for which tn_left
is the address of the function name and tn_right, which are the
arguments, linked via PUSH nodes.  CALL is not a binary operator since
it doesn't do any calculations with its arguments.
2021-01-04 21:30:06 +00:00
bin df: add grand total option 2021-01-03 01:43:12 +00:00
common arm bswap32: fix fatal typo in thumb code (PR 55854) 2020-12-11 09:02:33 +00:00
compat
crypto merge conflicts, regen 2020-12-10 00:33:08 +00:00
dist/pf
distrib add dts for odroid-N2 plus 2021-01-02 11:36:36 +00:00
doc evbarm: Add support for Amlogic G12 family SoCs 2021-01-01 10:12:25 +00:00
etc If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling. 2020-12-29 16:46:44 +00:00
external ntp: respect user's wishes to disable interface scanning 2021-01-03 15:33:05 +00:00
extsrc
games set the cursor to invisible 2021-01-02 12:12:26 +00:00
include Correct typo in previous. 2020-12-04 23:04:58 +00:00
lib Implement support for trapping REP CMPS instructions in NVMM. 2020-12-27 20:56:14 +00:00
libexec Bozohttpd clobbers files greater than 4GB on 32bit archs. 2020-11-19 10:45:36 +00:00
regress
rescue
sbin route(8): group RTF_GATEWAY and ~RTF_GATEWAY (-iface). 2021-01-02 22:02:27 +00:00
share Better grammar. 2021-01-04 18:27:46 +00:00
sys dev/ic/tpm: Take advantage of entropy source if available. 2021-01-04 18:26:59 +00:00
tests lint: add test for "precedence confusion possible [169]" 2021-01-04 15:52:51 +00:00
tools Don't bother with gdbserver for archs that don't build it. 2020-12-05 21:27:31 +00:00
usr.bin lint: fix bugs in dprint_node in debug mode (since today) 2021-01-04 21:30:06 +00:00
usr.sbin sync cpuids[] of sys/arch/aarch64/aarch64/cpu.c r1.43 2021-01-04 05:35:14 +00:00
BUILDING Reintroduce the support of MKCATPAGES 2020-11-10 21:47:40 +00:00
Makefile G/c spurious whitespace. 2020-10-29 20:26:24 +00:00
Makefile.inc
README.md
UPDATING note about mips kernel modules breaking update builds 2020-10-17 07:41:25 +00:00
build.sh add "distsets" alias for "distribution sets". 2020-09-20 10:29:05 +00:00

README.md

NetBSD

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Building

You can cross-build NetBSD from most UNIX-like operating systems. To build for amd64 (x86_64), in the src directory:

./build.sh -U -u -j4 -m amd64 -O ~/obj release

Additional build information available in the BUILDING file.

Binaries

Testing

On a running NetBSD system:

cd /usr/tests; atf-run | atf-report

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P src

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/src.git