Go to file
maxv ca08b3e761 Make copystr() a MI C function, part of libkern and shared on all
architectures.

Notes:

 - On alpha and ia64 the function is kept but gets renamed locally to avoid
   symbol collision. This is because on these two arches, I am not sure
   whether the ASM callers do not rely on fixed registers, so I prefer to
   keep the ASM body for now.
 - On Vax, only the symbol is removed, because the body is used from other
   functions.
 - On RISC-V, this change fixes a bug: copystr() was just a wrapper around
   strlcpy(), but strlcpy() makes the operation less safe (strlen on the
   source beyond its size).
 - The kASan, kCSan and kMSan wrappers are removed, because now that
   copystr() is in C, the compiler transformations are applied to it,
   without the need for manual wrappers.

Could test on amd64 only, but should be fine.
2020-06-30 16:20:00 +00:00
bin Note that -h is an extension to POSIX. Bump date. 2020-06-24 17:00:58 +00:00
common Fix lint 2020-06-20 00:16:50 +00:00
compat 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and 2019-10-24 18:46:20 +00:00
crypto remove unneeded ifdefs 2020-06-22 22:43:56 +00:00
dist/pf Externalize variables owned logically by pf_ruleset.c 2020-04-22 23:40:40 +00:00
distrib After a comedy of errors, move t_mbtowc to its final resting place. 2020-06-30 16:09:40 +00:00
doc www.lua.org uses https. 2020-06-30 07:37:32 +00:00
etc Check that DTrace's execsnoop and opensnoop work (cf. PR kern/53417). 2020-06-30 14:30:49 +00:00
external kyua-cli: fix build of .cpp files 2020-06-29 08:54:58 +00:00
extsrc
games A revision of "The purpose of computing is insight, not numbers" by 2020-06-15 12:57:51 +00:00
include nameser_compat.h: correct preprocessor error syntax 2020-06-28 02:16:19 +00:00
lib Remove Xr to extattr(2) which we don't have. 2020-06-28 21:37:05 +00:00
libexec R_ARM_TLS_TPOFF32 needs to adjust the existing value, not blindly 2020-06-16 21:02:20 +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 Use Nm. 2020-06-23 14:08:01 +00:00
share Update Spleen wscons fonts to version 1.8.0, bringing the following 2020-06-29 09:57:46 +00:00
sys Make copystr() a MI C function, part of libkern and shared on all 2020-06-30 16:20:00 +00:00
tests After a comedy of errors, move t_mbtowc to its final resting place. 2020-06-30 16:09:40 +00:00
tools Regen: Add AC_MSG_RESULT yes/no to the uio checks. 2020-06-24 14:44:44 +00:00
usr.bin Remove local domain always, not just when looking up addresses 2020-06-30 15:02:55 +00:00
usr.sbin Nix trailing whitespace. 2020-06-29 23:04:56 +00:00
build.sh Nix trailing whitespace. 2020-06-13 18:00:29 +00:00
BUILDING Fix a typo 2019-05-08 14:03:57 +00:00
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 blocklist migration has been automated. 2020-06-15 21:52:03 +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