freebsd kernel with SKQ
Go to file
jilles 74d9b02bb0 sh: Don't do optimized command substitution if expansions have side effects.
Before considering to execute a command substitution in the same process,
check if any of the expansions may have a side effect; if so, execute it in
a new process just like happens if it is not a single simple command.

Although the check happens at run time, it is a static check that does not
depend on current state. It is triggered by:
- expanding $! (which may cause the job to be remembered)
- ${var=value} default value assignment
- assignment operators in arithmetic
- parameter substitutions in arithmetic except ${#param}, $$, $# and $?
- command substitutions in arithmetic

This means that $((v+1)) does not prevent optimized command substitution,
whereas $(($v+1)) does, because $v might expand to something containing
assignment operators.

Scripts should not depend on these exact details for correctness. It is also
imaginable to have the shell fork if and when a side effect is encountered
or to create a new temporary namespace for variables.

Due to the $! change, the construct $(jobs $!) no longer works. The value of
$! should be stored in a variable outside command substitution first.
2010-12-28 21:27:08 +00:00
bin sh: Don't do optimized command substitution if expansions have side effects. 2010-12-28 21:27:08 +00:00
cddl Print message with information about updating the boot code if a new 2010-12-08 13:51:25 +00:00
contrib Unbreak the build by temprorarily not using include directives in 2010-12-20 22:56:50 +00:00
crypto Merge OpenSSL 0.9.8q into head. 2010-12-03 22:59:54 +00:00
etc Add pidfile [1] 2010-12-27 22:52:47 +00:00
games factor(6): Check return values of BN_* functions. 2010-12-20 19:07:56 +00:00
gnu Unbreak amd64<->i386 cross builds. 2010-12-02 17:36:47 +00:00
include rpc.lockd(8) WARNS cleanup 2010-12-20 21:12:18 +00:00
kerberos5
lib Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
libexec Fix an apparent cop-and-paste mistake in previous commit. 2010-12-27 00:30:29 +00:00
release Fix the overflowing livefs ISO by removing man pages from the HFS part of 2010-12-15 23:43:25 +00:00
rescue
sbin Fix deprecated warning about -L which said -i was deprecated. 2010-12-26 22:29:44 +00:00
secure Regenerate manual pages for OpenSSL 0.9.8q. 2010-12-03 23:07:45 +00:00
share Fix date, broken in r216667. 2010-12-22 17:12:58 +00:00
sys Comment out npx and isa from NOTES file. We don't need them here 2010-12-28 21:22:08 +00:00
tools sh: Don't do optimized command substitution if expansions have side effects. 2010-12-28 21:27:08 +00:00
usr.bin Start sentences on a new line to ease life for translators. Tweak the 2010-12-28 18:58:15 +00:00
usr.sbin Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
COPYRIGHT
LOCKS
MAINTAINERS
Makefile Redirect stderr from config to /dev/null. config -m is printing lots 2010-12-24 04:55:56 +00:00
Makefile.inc1 Do not lint code beyond necessity (with apologies to Wiliam of Ockham). 2010-11-18 16:32:52 +00:00
Makefile.mips
ObsoleteFiles.inc libbsnmp was moved to usr/lib 2010-12-16 11:58:50 +00:00
README Add the cddl/ directory. 2010-11-14 11:32:56 +00:00
UPDATING - Add some helper hook points to the TCP stack. The hooks allow Khelp modules to 2010-12-28 12:13:30 +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.

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.

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