Go to file
gutteridge 003e1c9a2d nameser_compat.h: simplify logic to determine byte order
There's really no need for all the complex #ifdefs present and, on top
of that, it didn't even work correctly for all NetBSD architectures.
Simply use endian.h and drop the rest. (Since there is no upstream for
this code anymore, there's no concern about complicating future merges,
either. This change is also consistent with what FreeBSD and OpenBSD
did years ago.)

Addresses PR toolchain/53880 (reported by maya@, originally encountered
by me on macppc when building a package that pulls in nameser_compat.h
before nameser.h by necessity -- necessity, that is, on another OS).
2022-04-21 04:03:54 +00:00
bin Introduce a new macro JNUM to replace the idiom jp-jobtab+1 2022-04-18 06:02:27 +00:00
common libc/atomic: Fix membars in __atomic_load/store_* stubs. 2022-04-09 23:38:57 +00:00
compat remove obsolete files. 2021-06-18 06:34:00 +00:00
crypto libcrypto: remove lint hack for __int128 2022-04-15 23:21:33 +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 Add test and check file for bkgrndset 2022-04-20 07:41:04 +00:00
doc new OpenSSH 2022-04-15 14:02:08 +00:00
etc fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
external sqlite: suppress a few lint warnings 2022-04-19 22:40:45 +00:00
extsrc
games fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
include nameser_compat.h: simplify logic to determine byte order 2022-04-21 04:03:54 +00:00
lib fix for PR 55496 2022-04-19 22:26:57 +00:00
libexec fix various typos in comments. 2022-04-17 21:24:52 +00:00
regress fix various typos, mainly in comments, but also log messages, docs, game text. 2022-04-08 10:17:52 +00:00
rescue smb is no more. 2020-04-04 17:57:16 +00:00
sbin fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
share fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
sys #if 0 now unused audio_track_is_record() to appease clang 2022-04-21 01:15:24 +00:00
tests tests/lint: fix test for message 132 to be platform-independent 2022-04-20 22:50:56 +00:00
tools Disconnect 'tools/lib{elf,dwarf}' from the build. 2022-04-18 19:46:35 +00:00
usr.bin lint: fix integer overflow on seeing -(uint64_t)INT64_MIN 2022-04-19 23:16:14 +00:00
usr.sbin fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
BUILDING Rename: 2021-12-20 20:33:20 +00:00
Makefile Makefile: fix location of postinstall program for MAKEVERBOSE > 2 2022-03-19 14:35:13 +00:00
Makefile.inc
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