Go to file
rillig 3ec10f8db6 make: use shortcut functions Global_SetExpand and Global_AppendExpand
There are many places where global variables are set or appended to.  To
reduce clutter and code size, encode the VAR_GLOBAL in the function
name.

The word Expand in the function names says that the variable name is
expanded.  In most of the cases, this is not necessary, but there are no
corresponding functions Global_Set or Global_Append yet.

Encoding the information whether the name is expanded or not in the
function name will make inconsistencies obvious in future manual code
reviews. Letting the compiler check this by using different types for
unexpanded and expanded variable names is probably not worth the effort.
There are still a few bugs to be fixed, such as in SetVar, which expands
the variable name twice in a row.
2021-02-03 08:00:36 +00:00
bin df: bump man page date 2021-01-06 20:38:09 +00:00
common arm bswap32: fix fatal typo in thumb code (PR 55854) 2020-12-11 09:02:33 +00:00
compat Use the compat machinery to build "native" IPF binaries as ipfilter 2021-01-05 11:07:59 +00:00
crypto merge conflicts, regen 2020-12-10 00:33:08 +00:00
dist/pf Externalize variables owned logically by pf_ruleset.c 2020-04-22 23:40:40 +00:00
distrib make: add test for reading from make's stdin 2021-02-01 20:31:41 +00:00
doc binutils-2.36 out. 2021-01-27 15:29:27 +00:00
etc llvmlockdir -> lvmlockdir 2021-01-26 15:08:02 +00:00
external Fix typo in the comments of local binutils patches: s/Servguard/Segvguard. 2021-02-02 21:45:39 +00:00
extsrc
games - Don't allocate memory dynamically on the stack (for SSP) 2021-01-08 15:16:04 +00:00
include Correct typo in previous. 2020-12-04 23:04:58 +00:00
lib for fread(3) and fwrite(3) check for (size * nmemb) size_t overflow, and 2021-02-01 17:50:53 +00:00
libexec also set -D_DEFAULT_SOURCE to open up more headers. 2021-01-17 00:15:14 +00:00
regress citrus SUBDIR is gone 2020-06-27 11:06:43 +00:00
rescue smb is no more. 2020-04-04 17:57:16 +00:00
sbin Use 32K as the default NFSv3 read and write data sizes on aarch64, matching 2021-01-24 12:51:32 +00:00
share Add a few network interface offload feature initialisms 2021-01-30 19:20:44 +00:00
sys Remove __packed from various network structures 2021-02-03 05:51:40 +00:00
tests lint: document that message 108 doesn't abort anymore 2021-01-31 16:00:05 +00:00
tools lint: make path to lint data configurable 2021-01-24 16:55:09 +00:00
usr.bin make: use shortcut functions Global_SetExpand and Global_AppendExpand 2021-02-03 08:00:36 +00:00
usr.sbin rtadvd: no longer need packed member warning 2021-02-03 06:50:07 +00:00
build.sh Modify the generated make wrapper to avoid complaints about 2021-01-28 10:36:27 +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 UPDATING: lint1/ops.c may require OBJDIR to be cleaned 2021-01-09 20:51:08 +00:00

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