FreeBSD src
Go to file
Ed Schouten 6bfa9a2d66 Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
bin Remove redundant close(2). 2008-09-09 12:31:42 +00:00
cddl Mips doesn't have a long double that's different in size from double. 2008-09-18 19:54:02 +00:00
contrib Implement zero-copy bpf(4) buffer or "zbuf" support for libpcap. A slightly 2008-09-16 20:32:29 +00:00
crypto MFV "xmalloc: zero size" fix. 2008-09-24 21:20:44 +00:00
etc Allow a jail's IP alias to be created with an arbitrary netmask. 2008-09-24 15:18:27 +00:00
games Suggections from bde@ 2008-08-11 23:24:42 +00:00
gnu Add -D_OSRELDATE_H to CFLAGS to prevent the declaration of 2008-09-26 15:00:18 +00:00
include Move getosreldate(3) prototype from the machine generated <osreldate.h> 2008-09-26 19:23:22 +00:00
kerberos5 Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This 2008-08-06 14:02:05 +00:00
lib Fix some ifdef logic in the libc syncicache() bit that I somehow missed in the 2008-09-24 01:06:11 +00:00
libexec add new build knobs and jigger some existing controls to improve 2008-09-21 22:02:26 +00:00
release - Add libbsdxml and libsbuf required by bsdlabel. 2008-09-25 12:25:54 +00:00
rescue Take a moment to tidy some white space while I'm here. No functional 2008-09-13 19:56:37 +00:00
sbin Static-ify procedures in init(8). 2008-09-27 00:09:10 +00:00
secure Upgrade to OpenSSH 5.1p1. 2008-08-01 02:48:36 +00:00
share Rename the minor' argument of make_dev(9) to unit'. 2008-09-26 14:31:24 +00:00
sys Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
tools In cust_install_files() we ignore CVS directories. In a similar way now 2008-09-23 18:54:56 +00:00
usr.bin Add back ar(1) which was accidentally decoupled in r183242. 2008-09-24 20:41:35 +00:00
usr.sbin The previous commit re-introduced sade on platforms 2008-09-26 18:28:54 +00:00
COPYRIGHT Happy new year 2008! 2007-12-31 22:09:19 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Update description text 2008-06-06 21:32:01 +00:00
Makefile Back out rev. 1.352 (SVN rev 179842) as phk pointed out that 2008-06-17 11:08:49 +00:00
Makefile.inc1 Rescue is "not yet" for MIPS. 2008-09-19 16:14:42 +00:00
ObsoleteFiles.inc Correct suser(9) entry. 2008-09-21 16:11:11 +00:00
README Simply running ``make world'' will bomb unless you dig up the 2006-06-07 03:33:48 +00:00
UPDATING The si(4) and ufoma(4) drivers have been ported to the new TTY layer. 2008-09-14 19:25:57 +00:00

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, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
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, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
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 sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

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.

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