Go to file
kamil 8ac77c305d Add initial pthread(3) tests in ATF t_prace_wait* tests
There were tested few scenarios with native _lwp_create(2) functions, using
this interface is not needed and it's easier to manage tests with
high-level pthread(3) API.

Rewrite original lwpinfo1 and lwpinfo2 tests into 8 new tests:
 - traceme_lwpinfo0 (0 spawned additional threads)
 - traceme_lwpinfo1 (1 spawned additional thread)
 - traceme_lwpinfo2 (2 spawned additional threads)
 - traceme_lwpinfo3 (3 spawned additional threads)
 - attach_lwpinfo0 (0 spawned additional threads)
 - attach_lwpinfo1 (1 spawned additional thread)
 - attach_lwpinfo2 (2 spawned additional threads)
 - attach_lwpinfo3 (3 spawned additional threads)

These tests verify primarily the PT_LWPINFO interface.

Build the t_ptrace_wait* tests with -pthread.

All tests pass.
2019-02-10 02:04:06 +00:00
bin Add a check that the file descriptor mentioned in a N> or N< type 2019-02-09 09:50:31 +00:00
common - atomic_*_{8,16}_nv() must return a new value, not an old value. 2019-02-08 06:56:56 +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 - bump buffer sizes to avoid potential truncation issues 2019-02-04 04:36:41 +00:00
dist/pf - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
distrib run this through sort -u. removes a few duplicates and fixes order. 2019-02-09 23:26:35 +00:00
doc note GCC 6.5 and 7.4 imports. 2019-02-08 09:39:14 +00:00
etc separate out the arch-specific and compat-specific subdirs. 2019-02-09 21:43:23 +00:00
external Fake mknative for riscv64, enough to complete a tools build. 2019-02-09 21:03:24 +00:00
extsrc
games apply -Wno-error=implicit-fallthrough on files that have fallthru 2019-02-04 09:51:47 +00:00
include Provide global variables with C linkage, otherwise they will create 2019-01-08 17:35:42 +00:00
lib Fix directory filehandle usage with libufse. Fix lookup count 2019-02-09 02:22:45 +00:00
libexec - bump buffer sizes to avoid potential truncation issues 2019-02-04 04:36:41 +00:00
regress
rescue fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
sbin Correct printed IOCTL name that was incorrect since rev 1.5. 2019-02-06 22:38:10 +00:00
share Use GCC 7 on riscv, it is not supported on 6. 2019-02-09 21:05:48 +00:00
sys - expand the comment about what netbsd32_machdep.h should provide. 2019-02-09 11:30:13 +00:00
tests Add initial pthread(3) tests in ATF t_prace_wait* tests 2019-02-10 02:04:06 +00:00
tools - build the gthr*.h files to be installed on the fly, instead of 2019-02-09 03:57:00 +00:00
usr.bin Provide an accessor for the menu description structure by manu identifier. 2019-02-06 20:08:15 +00:00
usr.sbin Add missing newline. 2019-02-09 16:00:41 +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
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
build.sh add aliases for evbarm without saying 'earm': 2019-02-08 02:05:32 +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