Go to file
ryo 843ce00650 In some arch, _mcount() would be called recursively when built with COPTS=-O0.
Normally, functions called from mcount.c are expected to be expanded inline,
so _mcount() will never be called recursively. But when build with COPTS=-O0,
`static inline' functions aren't inlined, and _mcount() will be called
recursively.

Even if _mcount() has `__attribute__((__no_ instrument_function__))',
it has no effect on the calling external (no-inlined) function.

To avoid this, PROF.<fn> is added can be set the profiling flag of any file.
"PROF.mcount.c" is set to blank by default, mcount.c itself is compiled
without -pg.
2021-10-25 07:54:44 +00:00
bin echo: clean up, increase WARNS to 6 2021-10-10 19:07:19 +00:00
common remove duplicate the article in comments. 2021-10-04 21:02:39 +00:00
compat remove obsolete files. 2021-06-18 06:34:00 +00:00
crypto Merge conflicts between OpenSSH 8.7 and 8.8 2021-09-27 17:03:13 +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 tests/indent: migrate remaining tests from t_indent to t_options 2021-10-23 21:45:14 +00:00
doc Note tzdata2021e update. 2021-10-22 21:03:50 +00:00
etc PR/56452: RVP: MAKEDEV should also create /dev/dri/renderD* devices 2021-10-12 17:19:20 +00:00
external Update to tzdata2021e (with much of 2020b still omitted) 2021-10-22 21:01:06 +00:00
extsrc
games fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
include fix typos in comments. 2021-10-15 22:32:28 +00:00
lib Fix for PR lib/47398 2021-10-25 06:25:18 +00:00
libexec getty: Remove 2 second sleep before opening tty 2021-10-12 23:40:38 +00:00
regress introduce a SOL_LOCAL for unix-domain socket level socket options 2021-08-08 20:54:48 +00:00
rescue
sbin Allow getty to exit quickly a few times before deciding that it is exiting 2021-10-11 20:23:25 +00:00
share In some arch, _mcount() would be called recursively when built with COPTS=-O0. 2021-10-25 07:54:44 +00:00
sys In some arch, _mcount() would be called recursively when built with COPTS=-O0. 2021-10-25 07:54:44 +00:00
tests indent: rename form_feed to tt_lex_form_feed 2021-10-24 22:44:13 +00:00
tools Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +00:00
usr.bin indent: rename local variable sp_sw to spaced_expr 2021-10-25 01:06:13 +00:00
usr.sbin fix various typos in comments, mainly copypasta. 2021-10-24 20:00:11 +00:00
BUILDING Reintroduce the support of MKCATPAGES 2020-11-10 21:47:40 +00:00
Makefile G/c spurious whitespace. 2020-10-29 20:26:24 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING aarch64 needs a clean build after MKRELRO default has changed. 2021-10-14 15:40:00 +00:00
build.sh remove duplicate the article in comments. 2021-10-04 21:02:39 +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