Go to file
riastradh b2097dd8cd kern: Fix synchronization of clearing LP_RUNNING and lwp_free.
1. membar_sync is not necessary here -- only a store-release is
   required.

2. membar_consumer _before_ loading l->l_pflag is not enough; a
   load-acquire is required.

Actually it's not really clear to me why any barriers are needed, since
the store-release and load-acquire should be implied by releasing and
acquiring the lwp lock (and maybe we could spin with the lock instead
of reading l->l_pflag unlocked).  But maybe there's something subtle
about access to l->l_mutex that's not obvious here.
2022-03-10 12:21:25 +00:00
bin sh: fix typo in comment 2022-02-08 20:39:59 +00:00
common mips: Membar audit. 2022-02-27 19:21:53 +00:00
compat remove obsolete files. 2021-06-18 06:34:00 +00:00
crypto fix merge botch and reduce diff from upstream. 2022-02-26 13:30:19 +00:00
dist/pf Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. 2021-07-24 21:31:31 +00:00
distrib disable compatfile for filter-aaaa.so. 2022-03-07 09:45:02 +00:00
doc Add note on optical media lockup fix for UDF 2022-03-09 22:55:32 +00:00
etc add named plugins directory. 2022-03-06 17:51:42 +00:00
external comment filter-aaaa.so.debug for now. it's not installed normally 2022-03-07 09:23:20 +00:00
extsrc
games s/totaled/totalled/ 2021-12-31 12:42:24 +00:00
include err.h: dead once is dead enough 2022-01-06 00:16:47 +00:00
lib Add constrain arguments 2022-02-24 00:26:26 +00:00
libexec bozohttpd: remove obsolete .bzdirect handling 2022-01-04 06:08:14 +00:00
regress introduce a SOL_LOCAL for unix-domain socket level socket options 2021-08-08 20:54:48 +00:00
rescue smb is no more. 2020-04-04 17:57:16 +00:00
sbin fix typo 2022-02-27 21:05:11 +00:00
share s/sarch/search/ in commented part. 2022-03-06 23:36:01 +00:00
sys kern: Fix synchronization of clearing LP_RUNNING and lwp_free. 2022-03-10 12:21:25 +00:00
tests Add the -F flag to the getopt string, it was there in the help and 2022-03-01 06:41:27 +00:00
tools tools: allow tools to use C99 2022-02-03 20:32:38 +00:00
usr.bin lint: fix indentation in C grammar 2022-03-09 00:20:48 +00:00
usr.sbin Make sure daddr_t is a 64 bit type when building tools. 2022-03-06 08:31:54 +00:00
BUILDING Rename: 2021-12-20 20:33:20 +00:00
Makefile G/c spurious whitespace. 2020-10-29 20:26:24 +00:00
Makefile.inc Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING s/dissallow/disallow/ 2021-12-07 21:45:31 +00:00
build.sh Don't try to install netbsd-CONFIG.debug files build with kernel= 2021-12-31 15:43:35 +00:00

README.md

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