Go to file
brad 5749545531 For /dev/ reads against gpioirq(4) implement the following:
o O_NONBLOCK on reads

o Add a d_poll function and associated sel[init|notify|record|destroy]
  calls to the driver so that select(2) and poll(2) work as expected.


With these in place async use cases work against /dev/gpioirqN
2023-11-10 13:17:17 +00:00
bin Work around a probably gcc12 bug in detecting "potentially clobbered" 2023-10-20 22:08:52 +00:00
common Define __HAVE_ATOMIC_CAS_64_UP and provide __sync_val_compare_and_swap_8 2023-10-29 08:04:18 +00:00
compat compat: Disable relro in 32-bit arm compat. 2023-05-13 10:56:54 +00:00
crypto Put back module from 9.5p1 2023-10-26 15:10:14 +00:00
dist/pf Don't write random data to the header. 2023-08-19 14:56:22 +00:00
distrib More conservative umask 2023-11-08 13:02:47 +00:00
doc Simple simulated interrupts for the simulated GPIO device gpiosim(4) 2023-11-08 23:46:54 +00:00
etc add umask for kernel creation consistency 2023-11-08 13:02:03 +00:00
external Fix some comments. 2023-11-08 14:25:13 +00:00
games Drop -O[01] hacks for vax; no longer necessary for patched GCC 10 2023-10-07 12:15:49 +00:00
include sync with tzcode 2023c 2023-09-16 18:19:30 +00:00
lib libc/compiler_rt: Consistently use LIBC_MACHINE_{ARCH,CPU} 2023-11-09 07:29:26 +00:00
libexec Drop -O[01] hacks for vax; no longer necessary for patched GCC 10 2023-10-07 12:15:49 +00:00
regress A dumb test that calling close() on a pipe/socket fd dislodges another 2023-10-13 18:46:22 +00:00
rescue remove threads; size constraints and behavioral change 2022-05-16 14:55:56 +00:00
sbin gpt.8: fix grammar in a sentence 2023-11-07 00:53:39 +00:00
share Simple simulated interrupts for the simulated GPIO device gpiosim(4) 2023-11-08 23:46:54 +00:00
sys For /dev/ reads against gpioirq(4) implement the following: 2023-11-10 13:17:17 +00:00
tests t_fenv: Factor checks out of switch in checkrounding. 2023-11-06 13:48:12 +00:00
tools bump the netbsd gcc 10 version to "nb3 20231008" for all the vax updates. 2023-10-08 21:52:34 +00:00
usr.bin Back out the following revisions on behalf of core: 2023-11-02 10:31:55 +00:00
usr.sbin Print the inode numbers of persistent snapshots. 2023-11-06 12:18:59 +00:00
BUILDING BUILDING: list known mk.conf vars. tweak section headers 2023-07-22 18:50:04 +00:00
Makefile Makefile: Run `postinstall -d /', not `postinstall -d //'. 2023-09-08 12:01:56 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING UPDATING: fix a couple of spelling mistakes 2023-09-24 16:33:41 +00:00
build.sh build.sh: add support for git worktree 2023-09-04 02:21:17 +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