Go to file
rillig 791df18439 make(1): inline Targ_FindNodeImpl
The 3 callers of this function passed different flags, and these flags
led to code paths that almost did not overlap.

It's a bit strange that GCC 5 didn't get that, and even marking the
function as inline did not produce much smaller code, even though the
conditions inside that function were obviously constant.  Clang 9 did a
better job here.

But even for human readers, inlining the function and then throwing away
the dead code leads to much easier code.

This pattern of squeezing completely different code into a single
function has already occurred in a different part of make, though I
don't remember where exactly.
2020-09-26 16:18:44 +00:00
bin Remove superfluous Ed. 2020-09-18 07:21:26 +00:00
common Re-do previous aarch64eb strlen fix more simply and correctly. 2020-09-09 14:49:27 +00:00
compat
crypto build the 32 bit aesfx-sparcv9.S for sparc64 32 bit comapt libs. 2020-09-15 09:22:32 +00:00
dist/pf Externalize variables owned logically by pf_ruleset.c 2020-04-22 23:40:40 +00:00
distrib G/C arm/atomic.h 2020-09-26 10:06:25 +00:00
doc note mpc (1.2.0) and mpfr (4.1.0) have new versions and are also 2020-09-26 07:59:18 +00:00
etc GENERIC.MP is no more. GENERIC defaults to MULTIPROCESSOR now. 2020-09-19 03:29:57 +00:00
external Moving pointers could fail if realloc() allocates a new memory region 2020-09-26 11:39:17 +00:00
extsrc
games avoid uninit memory and use memmove vs strncpy for a will be 2020-09-07 00:31:11 +00:00
include remove getentropy bits 2020-09-22 21:37:47 +00:00
lib remove getentropy bits 2020-09-22 21:37:47 +00:00
libexec Correct r_ldbase valuse 2020-09-22 00:41:27 +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 ifconfig: test cases want LINK_STATE_UNKNOWN to be treated as up. 2020-09-23 10:48:12 +00:00
share Switch GDB on i386 to 1100 2020-09-23 23:39:18 +00:00
sys RCSId police 2020-09-26 14:18:06 +00:00
tests update test cases for AC-Name and Service-Name 2020-09-25 06:15:30 +00:00
tools grab the gdbserver version 2020-09-24 14:53:17 +00:00
usr.bin make(1): inline Targ_FindNodeImpl 2020-09-26 16:18:44 +00:00
usr.sbin fstyp: Sync hammer2_disk.h with DragonFly BSD 2020-09-23 14:39:23 +00:00
build.sh add "distsets" alias for "distribution sets". 2020-09-20 10:29:05 +00:00
BUILDING
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 note mpfr needs a cleaning. 2020-09-26 08:02:35 +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