Go to file
rillig 872a77026d make(1): prepare var.c for WARNS=6
I'm unhappy with the (unsigned) casts for the enum constants, but there
is no way around that since the base type of enums is int by definition,
and there is no way in C90 to explicitly specify the base type of an
enum type.

The (size_t) casts on the pointer differences are another pain point,
but for these as well, C90 does not have a ready-made solution.  A
possible workaround would be an inline function ptr_diff that returns
size_t instead of ptrdiff_t, but that would make the code look even more
bloated than with the casts.

The remaining casts to (char), (int) and (time_t) look so suspicious
that it's easy enough to stumble upon them, as soon as someone finds the
time to fix these properly by adding a function ParseInt or
ParseSeconds.
2020-08-12 19:14:38 +00:00
bin Use the right size for several calloc calls. 2020-08-09 00:53:38 +00:00
common Part I of ad@'s performance improvements for aarch64 2020-08-12 12:59:57 +00:00
compat
crypto
dist/pf
distrib new openldap.h 2020-08-11 13:19:15 +00:00
doc sync 2020-08-11 15:35:17 +00:00
etc Fix minor typo, it's npf(7), not npf(4) 2020-08-09 23:43:58 +00:00
external delete this file; it needs to be newer than the .l file or 2020-08-12 06:42:53 +00:00
extsrc
games
include
lib
libexec
regress
rescue
sbin Find the if a device points to an active filesystem by looking at the mount 2020-08-08 11:44:55 +00:00
share update GCC 7 version to nb4 20200810, and fix the unknown GCC version 2020-08-11 09:51:57 +00:00
sys Whack-a-mole 2020-08-12 18:30:46 +00:00
tests
tools mknative-gcc is for GCC 8.4. 2020-08-12 08:53:20 +00:00
usr.bin make(1): prepare var.c for WARNS=6 2020-08-12 19:14:38 +00:00
usr.sbin Silence -Wstringop-truncation for ``name'' in disp_selected_part(). 2020-08-10 06:54:45 +00:00
build.sh
BUILDING
Makefile
Makefile.inc
README.md
UPDATING 20200811: 2020-08-12 06:48:50 +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