Go to file
riastradh c95d2b6372 libstdc++: Don't try to fflush stdin.
It doesn't work.  It's undefined behaviour.  On NetBSD, it will fail
with EBADF, if fd 0 isn't open for write, or if fd 0 is open for
write, it will write heap garbage to fd 0.

   If stream points to an output stream or an update stream in which
   the most recent operation was not input, the fflush function causes
   any unwritten data for that stream to be delivered to the host
   environment to be written to the file; otherwise, the behavior is
   undefined.

   (ISO C11 and ISO C17, Sec. 7.21.5.2 `The fflush function')

PR lib/58206
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879
2024-05-20 11:20:53 +00:00
bin echo.1: borrow advice about printf(1) from the OpenBSD man page 2024-05-14 01:32:24 +00:00
common s/descriminated/discriminated/ in comment. 2024-05-12 23:52:57 +00:00
compat update my email address. 2024-02-04 05:43:05 +00:00
crypto libcrypto: Add expected symbol list to check at build-time. 2024-03-20 13:50:51 +00:00
dist/pf Don't write random data to the header. 2023-08-19 14:56:22 +00:00
distrib Use native cd9660 blocksize to specify block numbers in cd9660.c. 2024-05-19 15:52:34 +00:00
doc doc: we've been busy 2024-05-13 08:58:59 +00:00
etc Allow specific subdirectories to be added to the list 2024-05-14 14:57:08 +00:00
external libstdc++: Don't try to fflush stdin. 2024-05-20 11:20:53 +00:00
games Fix DEBUG build. 2024-04-02 14:24:26 +00:00
include Rename dup3110 to dup3100 to match historical practice for NetBSD-11, 2024-05-20 01:30:33 +00:00
lib Use double quotes to include the local ./Makefile.hash 2024-05-20 09:48:42 +00:00
libexec Bump bozohttpd version to today for mobile-friendly directory listing 2024-04-28 17:12:30 +00:00
regress s/multipies/multiplies/. 2023-12-06 22:23:11 +00:00
rescue remove threads; size constraints and behavioral change 2022-05-16 14:55:56 +00:00
sbin Fix an old bug in NATIVELABEL_ONLY case in PR/50729 by me. (sigh) 2024-05-15 12:47:22 +00:00
share acronyms.comp: add SBI 2024-05-19 15:47:38 +00:00
sys Fix a few oversights from the renaming of dup3110 to dup3100 2024-05-20 09:37:34 +00:00
tests libstdc++: Don't try to fflush stdin. 2024-05-20 11:20:53 +00:00
tools Install cd9660 related system headers for tools installboot(8) builds. 2024-05-19 15:43:24 +00:00
usr.bin make: use separate function to include makefiles. 2024-05-19 20:09:40 +00:00
usr.sbin Add cd9660 support to search a bootloader file in the target file system. 2024-05-19 15:48:57 +00:00
BUILDING BUILDING: fix typo 2024-04-26 17:38:44 +00:00
Makefile Makefile: Run `postinstall -d /', not `postinstall -d //'. 2023-09-08 12:01:56 +00:00
Makefile.inc
README.md
UPDATING libm: New s_rintl.S for x86. 2024-05-05 02:50:11 +00:00
build.sh For consistency, check MKREPRO_TIMESTAMP always numerically (not as string) 2024-04-23 07:47:36 +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