Go to file
kamil d6a1bc3f07 Upgrade indent(1)
Merge all the changes from the recent FreeBSD HEAD snapshot
into our local copy.

FreeBSD actively maintains this program in their sources and their
repository contains over 100 commits with changes.

Keep the delta between the FreeBSD and NetBSD versions to absolute
minimum, mostly RCS Id and compatiblity fixes.

Major chages in this import:

 - Added an option -ldi<N> to control indentation of local variable names.
 - Added option -P for loading user-provided files as profiles
 - Added -tsn for setting tabsize
 - Rename -nsac/-sac ("space after cast") to -ncs/-cs
 - Added option -fbs Enables (disables) splitting the function declaration and opening brace across two lines.
 - Respect SIMPLE_BACKUP_SUFFIX environment variable in indent(1)
 - Group global option variables into an options structure
 - Use bsearch() for looking up type keywords.
 - Don't produce unneeded space character in function declarators
 - Don't unnecessarily add a blank before a comment ends.
 - Don't ignore newlines after comments that follow braces.

Merge the FreeBSD intend(1) tests with our ATF framework.
All tests pass.

Upgrade prepared by Manikishan Ghantasala.
Final polishing by myself.
2019-04-04 15:22:13 +00:00
bin Fix a logic botch that prevented "wait -n" (with no pid args) from 2019-03-26 13:32:26 +00:00
common Fix typo: __aebi_memset -> __aeabi_memset 2019-03-30 10:18:03 +00:00
compat don't build kernel grovelling tools as n64 on sgimips - we don't actually have 2018-09-20 02:51:21 +00:00
crypto regen 2019-03-13 23:37:48 +00:00
dist/pf - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
distrib Upgrade indent(1) 2019-04-04 15:22:13 +00:00
doc mention rtld vax hack 2019-04-03 21:40:24 +00:00
etc Sort ./usr/tests/usr.bin/netpgpverify 2019-04-04 15:10:58 +00:00
external Use right definitions in src/tools/llvm. 2019-04-04 12:34:31 +00:00
extsrc
games Report the users score _after_ the game has ended and the screen has 2019-03-19 00:11:34 +00:00
include remove global pointers, add get/seters. 2019-03-12 15:11:13 +00:00
lib Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes. 2019-04-03 15:21:58 +00:00
libexec Disable optimization for rtld.c on the vax with gcc-7. 2019-04-03 21:37:58 +00:00
regress Don't test call gates, they are not supported anymore. 2017-08-30 15:46:19 +00:00
rescue fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
sbin PR bin/54088: make "destroy" remove the protective MBR too. 2019-04-04 14:03:40 +00:00
share vax "cough" works, with gcc-7 2019-04-03 21:41:21 +00:00
sys Restructure so that storing of uboot args (including FDT address) and 2019-04-04 14:24:20 +00:00
tests Upgrade indent(1) 2019-04-04 15:22:13 +00:00
tools Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes. 2019-04-03 15:21:58 +00:00
usr.bin Upgrade indent(1) 2019-04-04 15:22:13 +00:00
usr.sbin Opps... Remove extra ')' 2019-03-31 11:44:11 +00:00
build.sh add aliases for evbarm without saying 'earm': 2019-02-08 02:05:32 +00:00
BUILDING regen 2018-07-29 20:53:41 +00:00
Makefile .WAIT for tools to complete. 2018-11-11 07:43:35 +00:00
Makefile.inc Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
README.md Tidy up a bit. 2018-10-23 15:44:42 +00:00
UPDATING add a quick note about gcc 7 likely causing update build failures. 2019-02-08 09:57:01 +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