Go to file
rillig 6892e0dc50 indent: remove strange debugging code that went in the output file
Whenever the code to be output contained the magic byte 0x80, instead of
writing this byte, indent wrote the column number at the beginning of
the code snippet, times 7.  Especially the 'times 7' does not make any
sense at all.

In ISO-8859-1, this character position is not assigned.  In Microsoft
Codepage 1252 it is the Euro sign.  In UTF-8 (which was probably not on
the author's list when the code was originally written) it occurs as the
middle byte for code points like U+2026 (horizontal ellipsis) from the
block General Punctuation.

Remove this strange code, thereby fixing indent for UTF-8 code.  The
code had been there since at least 1993-04-09, when it was first
imported to NetBSD.
2021-03-13 09:06:12 +00:00
bin PR/56007: Greg A. Woods: ksh unable to execute ERR traps 2021-02-23 01:31:30 +00:00
common arm bswap32: fix fatal typo in thumb code (PR 55854) 2020-12-11 09:02:33 +00:00
compat Use the compat machinery to build "native" IPF binaries as ipfilter 2021-01-05 11:07:59 +00:00
crypto remove __UNCONST, initialize 2021-03-05 17:53:51 +00:00
dist/pf Externalize variables owned logically by pf_ruleset.c 2020-04-22 23:40:40 +00:00
distrib tests/indent: add test templates for testing specific parser symbols 2021-03-12 00:13:06 +00:00
doc new OpenSSH 2021-03-05 18:04:18 +00:00
etc Need to explicitly load value of zfs variable as zfs=YES may be set in 2021-03-09 12:42:46 +00:00
external Update to upstream elftoolchain revision r3933. 2021-03-10 21:36:29 +00:00
extsrc
games cgram: don't beep if the window is resized 2021-02-26 15:18:40 +00:00
include - Replace REG_ENOSYS (unused) with REG_ILLSEQ. 2021-02-23 17:14:42 +00:00
lib Underscore is a word character (thanks uwe@) 2021-03-11 18:49:18 +00:00
libexec Don't or the got object in, just assign it. Fixes cc -mabi=64 hello.c -lcrypto 2021-03-06 20:11:08 +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 s/skiping/skipping/ 2021-03-11 01:13:11 +00:00
share Update Spleen wscons fonts to version 1.9.0, bringing the following 2021-03-12 21:07:08 +00:00
sys Fix paste-o in last. 2021-03-12 18:10:00 +00:00
tests tests/indent: add test for preprocessor lines 2021-03-12 22:53:18 +00:00
tools Add reallocarray; this is used by the new regex code and we don't want to 2021-02-25 13:41:58 +00:00
usr.bin indent: remove strange debugging code that went in the output file 2021-03-13 09:06:12 +00:00
usr.sbin Add blocklist support to libwrap which enables all programs using libwrap 2021-03-07 15:09:12 +00:00
build.sh Modify the generated make wrapper to avoid complaints about 2021-01-28 10:36:27 +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 Use first-level heading for "NetBSD" title in README.md 2020-01-10 12:33:28 +00:00
UPDATING UPDATING: lint1/ops.c may require OBJDIR to be cleaned 2021-01-09 20:51:08 +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