1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Konstantin Belousov e69aee3117 ttyfree() frees the cdev(). But if there are pending kevents,
filt_ttyrdetach() etc would later attempt to dereference cdev->si_tty,
causing a 0xdeadc0de dereference.  Change kn_hook value from cdev to
struct tty to avoid dereferencing freed cdev.

In ttygone(), wake up select(), sigio and kevent() users in addition
to the queue sleepers.

Return EV_EOF from kevent filters if TS_GONE is set.

Submitted by:	peter
Tested by:	Peter Holm
Approved by:	re (kensmith)
MFC after:	2 weeks
2007-07-20 09:41:54 +00:00
bin
cddl
compat/opensolaris
contrib This commit was generated by cvs2svn to compensate for changes in r171490, 2007-07-19 06:57:46 +00:00
crypto
etc Disconnect netatm from the build as it is not MPSAFE and relies on 2007-07-14 21:49:24 +00:00
games
gnu
include Disconnect netatm from the build as it is not MPSAFE and relies on 2007-07-14 21:49:24 +00:00
kerberos5
lib Fix a strict aliasing warning from GCC 4.1. 2007-07-20 01:28:50 +00:00
libexec Unbreak the dynamic linker by not creating a cache for rtld-elf 2007-07-15 22:52:15 +00:00
release Note diffutils 2.8.7 MFC. 2007-07-15 01:59:35 +00:00
rescue Disconnect netatm from the build as it is not MPSAFE and relies on 2007-07-14 21:49:24 +00:00
sbin Disconnect netatm from the build as it is not MPSAFE and relies on 2007-07-14 21:49:24 +00:00
secure
share Document support for M_NOWAIT by the new implementation of contigmalloc(9) 2007-07-19 17:23:20 +00:00
sys ttyfree() frees the cdev(). But if there are pending kevents, 2007-07-20 09:41:54 +00:00
tools Make clear that WITHOUT_TOOLCHAIN cannot be applied to build targets. 2007-07-19 08:14:28 +00:00
usr.bin Fill in some casts that are needed (according to GCC 4.1) 2007-07-20 01:27:50 +00:00
usr.sbin The wpa_passphrase(8) manual page states that it first appeared in 2007-07-17 22:28:51 +00:00
COPYRIGHT
LOCKS
MAINTAINERS
Makefile
Makefile.inc1
ObsoleteFiles.inc MFp4: Remove files that are removed during gcc 4.2 upgrade, as 2007-07-17 17:28:59 +00:00
README
UPDATING

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