Go to file
rillig e50dbdf451 lint: fix handling of unnamed struct/union members
The support for unnamed struct/union members that was added in decl.c
1.60 from 2015-10-13 was simple but wrong. It didn't cover initializers
of these structures and computed wrong sizes for structures containing
anonymous unions. At that time, the handling of initializers was broken
as well, it was fixed 6 years later in init.c 1.229 from 2021-12-22.

Real-life examples for code that lint couldn't handle are:

	* external/bsd/jemalloc/dist/src/jemalloc.c
	* external/mit/xorg/lib/dri.old/Makefile
2023-06-30 21:06:18 +00:00
bin Fix typo in a debug message. 2023-06-24 05:17:02 +00:00
common strspn: fix typo in comment 2023-06-18 22:18:13 +00:00
compat compat: Disable relro in 32-bit arm compat. 2023-05-13 10:56:54 +00:00
crypto PR 57472: adjust the BIGNUM configuration for sparc64 to match a native 2023-06-27 07:31:36 +00:00
dist/pf
distrib Add npflog.4 to sets 2023-06-30 00:48:03 +00:00
doc 3RDPARTY: note latest version of mDNSResponder 2023-06-29 23:52:50 +00:00
etc pam: Disable pam_krb5, pam_ksu by default. 2023-06-20 22:00:00 +00:00
external PosixDaemon.c: restore NetBSD logging additions lost in merges 2023-06-30 02:03:58 +00:00
games bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
include s/configuratin/configuration/ in comment, from Brad Harder (bch) by email. 2023-05-23 10:22:42 +00:00
lib vis(3): Avoid nonportable MIN in portable code. 2023-06-29 16:11:31 +00:00
libexec add a note about how to setup http -> https redirection. 2023-06-07 20:22:22 +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 remove threads; size constraints and behavioral change 2022-05-16 14:55:56 +00:00
sbin adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} 2023-06-03 21:26:27 +00:00
share Add npflog.4 to sets 2023-06-30 00:48:03 +00:00
sys s/determin /determine / in comment. 2023-06-29 21:01:21 +00:00
tests lint: fix handling of unnamed struct/union members 2023-06-30 21:06:18 +00:00
tools tools: revert use of <bsd.hostinit.mk> 2023-06-04 16:53:59 +00:00
usr.bin lint: fix handling of unnamed struct/union members 2023-06-30 21:06:18 +00:00
usr.sbin Fix typo. 2023-06-24 05:26:01 +00:00
BUILDING BUILDING: remove duplication from mk.conf(5) 2023-06-11 20:34:14 +00:00
Makefile more NBUILDJOBS deprecation 2023-06-11 10:43:51 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING Note kernel build lossage in an unsupported build configuration 2023-06-04 16:14:59 +00:00
build.sh fix build.sh wrong variable use that caused nbmake to be always rebult 2023-06-13 16:56:00 +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