Go to file
rillig fa70c4fdc5 make(1): in debug mode, print GNode details in symbols
A string like OP_DEPENDS|OP_OPTIONAL|OP_PRECIOUS is much easier to read
and understand than the bit pattern 00000089.

The implementation in enum.h looks really bloated and ugly, but using
this API is as simple and natural as possible.  That's the trade-off.

In enum.h, I thought about choosing the numbers in the macros such that
it is always possible to combine two of them in order to reach an
arbitrary number, because of the "part1, part2" in the ENUM__SPEC macro.
The powers of 2 are not these numbers, as 7 cannot be expressed as the
sum of two of them.  Neither are the fibonacci numbers since 12 cannot
be expressed as the sum of 2 fibonacci numbers.  I tried to find a
general pattern to generate these minimal 2-sum numbers, but failed.
2020-08-24 20:15:51 +00:00
bin - Bump Size/Used/Avail from 10 to 12, and iUsed/iAvail from 8 to 10 for double-digit terabyte storage. 2020-08-21 16:41:06 +00:00
common Part I of ad@'s performance improvements for aarch64 2020-08-12 12:59:57 +00:00
compat 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and 2019-10-24 18:46:20 +00:00
crypto move $VERSION from Makefile.inc into the single Makefile that uses it. 2020-07-23 07:53:35 +00:00
dist/pf Externalize variables owned logically by pf_ruleset.c 2020-04-22 23:40:40 +00:00
distrib Restore obsolete entries for make's modorder tests. 2020-08-24 18:41:22 +00:00
doc 3RDPARTY janitorial service 2020-08-20 21:59:54 +00:00
etc uname -p, pointed out by various 2020-08-24 12:46:57 +00:00
external mmap MAP_FAILED audit. 2020-08-20 15:54:11 +00:00
extsrc
games s/ be be / be / 2020-08-19 02:19:06 +00:00
include nameser_compat.h: correct preprocessor error syntax 2020-06-28 02:16:19 +00:00
lib When not compiling -DSMALL permit use of names RTMIN[+n] and RTMAX[-n] 2020-08-20 22:56:56 +00:00
libexec ftpd.conf(5): remove duplicate "be" 2020-08-22 08:08:47 +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 mmap MAP_FAILED audit. 2020-08-20 15:54:11 +00:00
share Do not split for AUTHORS 2020-08-24 19:36:32 +00:00
sys Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR again... 2020-08-24 19:03:27 +00:00
tests Expect a failure to trap unaligned acesses only when running under 2020-08-24 06:55:16 +00:00
tools set MODULE to ${EXTERNAL_GCC_SUBDIR} so this actually works.. 2020-08-13 10:57:53 +00:00
usr.bin make(1): in debug mode, print GNode details in symbols 2020-08-24 20:15:51 +00:00
usr.sbin Use %zu for size_t 2020-08-21 17:51:31 +00:00
build.sh make(1): remove references to the removed lst.lib 2020-07-26 09:17:24 +00:00
BUILDING Fix a typo 2019-05-08 14:03:57 +00:00
Makefile automatically remove old debug files for modules. 2020-05-15 16:34:44 +00:00
Makefile.inc
README.md Use first-level heading for "NetBSD" title in README.md 2020-01-10 12:33:28 +00:00
UPDATING update the latest note to talk about all 3 potential ways that 2020-08-20 03:09:34 +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