Go to file
kre ff46268c6a PR bin/54743
If a builtin command or function is the final command intended to be
executed, and is interrupted by a caught signal, the trap handler for
that signal was not executed - the shell simply exited (an exit trap
handler would still have been run - if there was one the handler
for the signal may have been invoked during the execution of the
exit trap handler, which, if it happened, is incorrect sequencing).

Now, if we're exiting, and there are pending signals, run their handlers
just before running the EXIT trap handler, if any.

There are almost certainly plenty more issues with traps that need
solving.   Later,

XXX pullup -9

(-8 is too different in this area, and this problem suitably obscure,
that we won't bother)     (the -7 sh is simply obsolete).
2019-12-09 00:14:30 +00:00
bin PR bin/54743 2019-12-09 00:14:30 +00:00
common Formalize that the printf formats should be uintmax_t so we can 2019-12-06 19:36:21 +00:00
compat 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and 2019-10-24 18:46:20 +00:00
crypto need pfilter.h 2019-12-07 16:38:42 +00:00
dist/pf grammar 2019-09-21 19:48:15 +00:00
distrib Add missing MLINK for membar_datadep_consumer(3). 2019-12-07 15:13:59 +00:00
doc Add another issue that I just remembered, from the time working on the 2019-12-08 15:51:49 +00:00
etc This script just makes sure that the ZFS module loads and unloads, mountall 2019-12-09 00:11:32 +00:00
external Switch proc_getlwpstatus from PT_LWPINFO to PT_GET_SIGINFO for NetBSD 2019-12-07 19:38:29 +00:00
extsrc
games Introspection. From "Surely You're Joking, Mr. Feynman!" 2019-12-03 22:42:29 +00:00
include PR lib/54744 (bruno@haible.de) 2019-12-08 02:15:02 +00:00
lib Add missing MLINK for membar_datadep_consumer(3). 2019-12-07 15:13:59 +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 Remove ldconfig from /rescue, and mark it MI obsolete. 2019-10-02 09:45:10 +00:00
sbin Remove superfluous Pp. 2019-12-07 12:35:27 +00:00
share Drop comment about dk_lookup being in the wrong place. 2019-12-08 12:23:00 +00:00
sys Fix typo in the definition of #ha() in a comment. 2019-12-08 21:46:03 +00:00
tests Adjust tests for 0 hex values printing 0 instead of 0x0 2019-12-08 17:37:16 +00:00
tools Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
usr.bin Sync usage with man page, merge single letter options. 2019-12-07 12:34:17 +00:00
usr.sbin PR install/54745: fix confusion about absolut and NetBSD-partition 2019-12-08 15:09:33 +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 Tidy up a bit. 2018-10-23 15:44:42 +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