FreeBSD src
Go to file
Enji Cooper 33193da27e Fix up r316081 by using nitems(cam_errbuf) instead of sizeof(cam_errbuf)
Part of my original reasoning as far as converting the snprintf
calls was to permit switching over from char[] to wchar_t[] in the
future, as well as futureproof in case cam_errbuf's size was ever
changed.

Unfortunately, my approach was bugged because it conflated the
number of items with the size of the buffer, instead of the number of
elements being a fixed size != 1 byte.

Use nitems(..) instead which counts the quantity of items of a specific
type, as opposed to an unqualified sizeof(..) (which assumes that the
number of characters is equal to the buffer size).

MFC after:	2 months
Noted by:	cem
Sponsored by:	Dell EMC Isilon
2017-03-29 08:38:31 +00:00
bin Update to tcsh 6.20.00 2017-03-25 13:32:28 +00:00
cddl MFV r315290, r315291: 7303 dynamic metaslab selection 2017-03-24 09:37:00 +00:00
contrib MFV r316124: Fix build when WITHOUT_INET6. 2017-03-29 03:36:26 +00:00
crypto Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
etc lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
gnu Temporary readd GNU diff 2017-03-19 17:19:59 +00:00
include Impelemnt ttys onifexists in init. 2017-03-22 19:00:41 +00:00
kerberos5 kerberos5: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:34:36 +00:00
lib Fix up r316081 by using nitems(cam_errbuf) instead of sizeof(cam_errbuf) 2017-03-29 08:38:31 +00:00
libexec Emply contemporary function prototypes in bootpd, rather than relying on 2017-03-26 14:37:12 +00:00
release Add cxgbe(4), ixl(4), and mlx4en(4) to the hardware release notes 2017-03-23 00:56:52 +00:00
rescue Fix linking /rescue/rescue to multiple programs in usr.bin after r315113 2017-03-20 22:33:22 +00:00
sbin Don't use K&R style prototypes; ANSIfy them 2017-03-28 20:34:02 +00:00
secure Upgrade to OpenSSH 7.4p1. 2017-03-06 01:37:05 +00:00
share DragonFly BSD 4.8.0 release added. 2017-03-28 09:02:42 +00:00
sys self_reloc.c: Pass -Wno-error=maybe-uninitialized to gcc versions greater than 4.2.1 2017-03-28 23:56:02 +00:00
targets pwait: Add a -t flag to specify a timeout before exiting, and tests. 2017-03-07 22:16:55 +00:00
tests Fix back-to-back runs of sys/netinet/fibs_test;slaac_on_nondefault_fib6 2017-03-20 23:07:34 +00:00
tools Remove the .Pa portion I added to the .An macro in AUTHORS section 2017-03-23 02:26:15 +00:00
usr.bin Add some useful examples to the sed man page. 2017-03-27 16:01:44 +00:00
usr.sbin makefs: sort roundup with the other off_t members in fsinfo_t 2017-03-27 20:24:18 +00:00
.arcconfig
.arclint
COPYRIGHT
LOCKS
MAINTAINERS As suggested by several people, note that I prefer to communicate by email. 2017-03-03 20:23:21 +00:00
Makefile Import tzdata 2017b 2017-03-27 20:57:12 +00:00
Makefile.inc1 Rename _cc to _gcc to be more clear. 2017-03-21 22:09:00 +00:00
Makefile.libcompat
ObsoleteFiles.inc Rename tests from <foo> to <foo>_test to match the FreeBSD test suite 2017-03-23 03:28:24 +00:00
README
README.md Remove hard line breaks from README.md 2017-03-01 15:39:58 +00:00
UPDATING Temporary readd GNU diff 2017-03-19 17:19:59 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

For copyright information, please see the file COPYRIGHT in this directory (additional copyright information also exists for some sources in this tree - please see the specific source directories for more information).

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7) and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html for more information, including setting make(1) variables.

The buildkernel and installkernel targets build and install the kernel and the modules (see below). Please see the top of the Makefile in this directory for more information on the standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process. See build(7), config(8), and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information.

Note: If you want to build and install the kernel with the buildkernel and installkernel targets, you might need to build world before. More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf sub-directory. GENERIC is the default configuration used in release builds. NOTES contains entries and documentation for all possible devices, not just those commonly used.

Source Roadmap:

bin				System/user commands.

cddl			Various commands and libraries under the Common Development  
				and Distribution License.

contrib			Packages contributed by 3rd parties.

crypto			Cryptography stuff (see crypto/README).

etc				Template files for /etc.

gnu				Various commands and libraries under the GNU Public License.  
				Please see gnu/COPYING* for more information.

include			System include files.

kerberos5		Kerberos5 (Heimdal) package.

lib				System libraries.

libexec			System daemons.

release			Release building Makefile & associated tools.

rescue			Build system for statically linked /rescue utilities.

sbin			System commands.

secure			Cryptographic libraries and commands.

share			Shared resources.

sys				Kernel sources.

tests			Regression tests which can be run by Kyua.  See tests/README
				for additional information.

tools			Utilities for regression testing and miscellaneous tasks.

usr.bin			User commands.

usr.sbin		System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html