FreeBSD src
Go to file
jdp ab0e664bd0 Fix a range checking bug in ng_int32_parse which affected 64-bit
machines.  The code formerly read:

    long val;
    if (val < (long)-0x80000000 || ...)
            return EINVAL;

The constant 0x80000000 has type unsigned int.  The unary `-'
operator does not change the type (or the value, in this case).
Therefore the promotion to long is done by 0-extension, giving
0x0000000080000000 instead of the desired 0xffffffff80000000.  I
got rid of the `-' and changed the cast to (int32_t) to give proper
sign-extension on all architectures and to better reflect the fact
that we are range-checking a 32-bit value.

This commit also makes the analogous changes to ng_int{8,16}_parse
for consistency.

MFC after:	3 days
2001-05-19 19:36:32 +00:00
bin Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
contrib Make the PAM user-override actually override the correect thing. 2001-05-17 16:28:11 +00:00
crypto Restore the RSA host key to /etc/ssh/ssh_host_key. 2001-05-18 18:10:02 +00:00
etc Back out previous commit. digiio.h has moved to /usr/include/sys 2001-05-19 09:29:12 +00:00
games %DCL-I-FORMATRIGHT, Format VMS error messages pedantically correct. 2001-04-23 06:08:30 +00:00
gnu Add support for FreeBSD 4.4. 2001-05-15 17:04:26 +00:00
include Back out previous commit. digiio.h has moved to /usr/include/sys 2001-05-19 09:29:12 +00:00
kerberos5 use print_version from lib/vers instead of lib/roken 2001-05-14 09:24:50 +00:00
kerberosIV Fix PAMized telnet in exactly the same way as BDE did it for the other 2001-05-11 09:39:11 +00:00
lib Use CONS_GETINFO ioctl to get geometry of the current text mode instead of 2001-05-19 17:05:52 +00:00
libexec Performance improvements for the ELF dynamic linker. These 2001-05-05 23:21:05 +00:00
release Fix typo: The awi driver doesn't support PRISM cards, it supports the 2001-05-18 00:41:10 +00:00
sbin Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
secure Fixed world breakage in previous commit. -lpam must never be used 2001-05-09 14:30:49 +00:00
share Ensure the generated BPF in the example deliver the whole packet. 2001-05-19 17:47:51 +00:00
sys Fix a range checking bug in ng_int32_parse which affected 64-bit 2001-05-19 19:36:32 +00:00
tools Update this to reflect changes in config(8) usage. 2001-04-23 17:31:16 +00:00
usr.bin Move scrshot(1) functionality into vidcontrol(1). 2001-05-19 06:47:36 +00:00
usr.sbin Make /compat a relative symlink instead of an absolute symlink. 2001-05-19 19:08:56 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
Makefile Make it possible to build manpages for the entire source tree. 2001-03-27 08:43:28 +00:00
Makefile.inc1 Add kbdcontrol(1) to bootstrap-tools. 2001-05-14 17:21:02 +00:00
Makefile.upgrade $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
README Slightly improve the description of "crypto". "DES" is a subset of 2000-08-31 17:59:01 +00:00
UPDATING Note ncurses import and ata ioctl changes. 2001-05-19 06:27:16 +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
``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/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 have to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/i386/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.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

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/handbook/synching.html