Go to file
kre 7aa4a7e25f Avoid a core dump if a child process that is not one of our
children happens to exit while we are waiting for another child
to exit.

This can happen with code like

	sh -c '
		sleep 5 &
		exec sh -c "sleep 10 & wait !$"
	      '

when the inner "sh" is waiting for the 10 second sleep to be
done, the 5 second sleep started earlier terminates.   It is
a child of our process, as the inner shell is the same process
as the outer one, but not a known child (the inner shell has no
idea what the outer one did before it started).

This was observed in the wild by Martijn Dekker (where the outer
shell was bash but that's irrelevant).

XXX pullup -9
2020-02-07 02:06:12 +00:00
bin Avoid a core dump if a child process that is not one of our 2020-02-07 02:06:12 +00:00
common Some boot blocks too big now, only compare in big chunks if !_STANDALONE. 2020-01-29 09:18:26 +00:00
compat 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and 2019-10-24 18:46:20 +00:00
crypto regen 2020-01-23 17:37:03 +00:00
dist/pf grammar 2019-09-21 19:48:15 +00:00
distrib Building X11 system packages by "build.sh syspkgs" 2020-02-06 12:36:38 +00:00
doc realpath(1): Ported from FreeBSD. 2020-02-02 21:50:21 +00:00
etc Enable hostapd syslog support by default. 2020-02-03 09:12:53 +00:00
external Enable syslog support for hostapd 2020-02-03 09:10:47 +00:00
extsrc
games games/battlestar: Replace snprintf(3) with strlcpy(3) for better performance. 2020-02-06 22:09:43 +00:00
include move P_tmpdir from "/var/tmp/" to "/tmp/". 2019-12-13 20:25:16 +00:00
lib Remove trailing whiteapaces and tab 2020-02-05 14:56:04 +00:00
libexec Use existing lo() and hi() macros. Same object code is generated. 2019-12-08 23:49:16 +00:00
regress Redo previous differently. 2019-11-23 20:37:49 +00:00
rescue 1. Remove all the special handling of variables (-d -p -P -s -S) that 2019-12-29 18:26:16 +00:00
sbin Stop including unused header <sys/poll.h> 2020-02-06 19:20:21 +00:00
share Redocument xc_barrier. 2020-02-01 13:35:11 +00:00
sys Use callout_setfunc() / callout_schedule(). 2020-02-07 01:19:46 +00:00
tests Add a few O_SEARCH tests, currently only run on FreeBSD. 2020-02-06 12:18:06 +00:00
tools don't try to include the library if we are building it. 2020-01-17 16:50:51 +00:00
usr.bin Add support for specifying an alternate locate.updatedb config file. 2020-02-06 08:45:44 +00:00
usr.sbin Only a single partition can ever have the "extend" flag (grow to available 2020-02-06 20:17:04 +00:00
build.sh Fix long-term broken pattern match when determining if uname -p output is 2019-06-07 15:49:20 +00:00
BUILDING Fix a typo 2019-05-08 14:03:57 +00:00
Makefile Enhance the support of LLVM sanitizers 2019-08-27 22:48:53 +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 catch-up with more ports switched to gcc-8 2019-11-18 15:42:26 +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