ume [Mon, 20 May 2002 15:01:19 +0000 (15:01 +0000)]
Try to guess prefixlen for guessable cases.
- /0 if matches ::/128
- /64 if matches 2000::/3 and lowermost 64 bit is all 0
- /128 if matches 2000::/3 and lowermost 64 bit is non-zero 0
phk [Mon, 20 May 2002 10:03:15 +0000 (10:03 +0000)]
Don't grab Giant around malloc(9) and free(9).
Don't grab Giant around wakeup(9).
Don't print verbose messages about each device found in geom_dev.
Various cleanups.
tanimura [Mon, 20 May 2002 05:41:09 +0000 (05:41 +0000)]
Lock down a socket, milestone 1.
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
socket buffer. The mutex in the receive buffer also protects the data
in struct socket.
o Determine the lock strategy for each members in struct socket.
o Lock down the following members:
- so_count
- so_options
- so_linger
- so_state
o Remove *_locked() socket APIs. Make the following socket APIs
touching the members above now require a locked socket:
gordon [Mon, 20 May 2002 05:26:44 +0000 (05:26 +0000)]
Explictly set kerberos_stash to NO instead of blank. While we are at it,
fix a comment that suggested setting ipv6_ipv4mapping to blank. This
will aid in merging with rcng which requires all veriables to be
explicitly set.
rwatson [Mon, 20 May 2002 05:04:41 +0000 (05:04 +0000)]
Bump the rc driver a little bit closer to the 21st century: use
make_dev() to create device nodes for each of the serial port channels
(ttym%d and cuam%d respectively, as borrowed from MAKEDEV). This allows
the rc driver to work in 5.0. I've tested it with only one card, but
will try sticking in a second card tomorrow and see what happens.
marcel [Sun, 19 May 2002 22:28:57 +0000 (22:28 +0000)]
Fix a kernel page fault when accessing user memory. We were
combining too much conditions and as such ended up with the
kernel map instead of the corresponding process map. While
here, remove code to allow access to the stackgap and restyle
slightly to improve readability.
This fix specifically fixes the procfs failure we're having
when reading the process map (cat /proc/curproc/map)
dillon [Sun, 19 May 2002 21:59:28 +0000 (21:59 +0000)]
Add a Quirk entry for the USB SimpleTech UCF-100 compact flash reader.
Note that even with the quirk entry the reader typically only works if
the USB device is recognized by UHCI instead of the generic OHCI driver.
marcel [Sun, 19 May 2002 20:19:07 +0000 (20:19 +0000)]
Simplify IA64_CMPXCHG to avoid having braced-groups in expressions.
As a minor positive side-effect, code at -O0 is more optimal. As a
minor negative side-effect, certain boundary cases yield no better
code than non-boundary cases. For example, atomic_set_acq_32(p, 0)
does a useless logical OR with value 0. This was previously elimina-
ted as part of if/while optimizations. Non-boundary cases yield
identical code at -O1 and -O2.
marcel [Sun, 19 May 2002 19:35:36 +0000 (19:35 +0000)]
o Fix race condition caused by doing ptrace() for permission
checking, followed by a lookup of the process. Do not call
ptrace() for permission checking, but do it inline.
Spotted by: rwatson
o While here, copy-in arguments before we lock. This fixes
a possible permanent lock.
Some of these produce a number of warnings. I don't want to remove
them yet, because some noble soul may decide to remove the cause of
the warnings, but they won't if it doesn't bite them.
grog [Sun, 19 May 2002 07:35:00 +0000 (07:35 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 07:30:18 +0000 (07:30 +0000)]
Remove original license disclaimer.
Add Caldera license.
Approved by: David Taylor <davidt@caldera.com>
Make buildable under FreeBSD.
This one's a real mess. It's full of undefined macros, and in one
place deliberately causes syntax warnings. I've decided against
taking out the undefined macros: they don't alter the format of the
output document, and maybe one day somebody will put in the macro
definitions.
Note that this file corrects a number of format errors which appear in
the O'Reilly 4.4BSD manual set.
grog [Sun, 19 May 2002 07:00:28 +0000 (07:00 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 06:55:13 +0000 (06:55 +0000)]
Remove original license disclaimer.
Add Caldera license.
Approved by: David Taylor <davidt@caldera.com>
Make buildable under FreeBSD. This was relatively complicated: the
original text used the msU macros, which are available in a number of
different kinds. This version uses a number of mm-like macros,
including AL and BL, which just aren't available in ms, and the msU
macros I've found (even the ones in 4.4BSD) don't have them either. I
replaced them with ms constructs, which makes it format better than
the O'Reilly document, but I wasn't able to get the table of contents
(ms doesn't have that facility).
Add a prominent comment that this is not a reference for any modern
version of C.
knu [Sun, 19 May 2002 06:53:20 +0000 (06:53 +0000)]
Work around a code generation bug of GCC 3.1 by replacing
`/2' with `>>1'. In the context `>>1' is more appropriate
because it looks like the division is used to restore a
shifted value.
GCC GNATS PR: c/6677
This fixes a problem where wheel-up movement is taken as wheel-down
in the sysmouse protocol.
Do not assume the plain char's are signed; use `signed char' where
char's need to be signed.
grog [Sun, 19 May 2002 06:17:52 +0000 (06:17 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 06:11:50 +0000 (06:11 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 05:57:43 +0000 (05:57 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 05:52:57 +0000 (05:52 +0000)]
Remove original license disclaimer.
Add Caldera license.
Approved by: David Taylor <davidt@caldera.com>
Make roughly buildable under FreeBSD.
The results are not perfect: the original Makefile referred to a refer
file papers/Ind, which doesn't seem to have been kept, so the
references to other publications are missing.
grog [Sun, 19 May 2002 05:49:13 +0000 (05:49 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 05:41:35 +0000 (05:41 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 05:39:56 +0000 (05:39 +0000)]
Remove original license disclaimer.
Add Caldera license.
Approved by: David Taylor <davidt@caldera.com>
Make roughly buildable under FreeBSD.
The results are not perfect: the original Makefile referred to a refer
file papers/Ind, which doesn't seem to have been kept, so the
references to other publications are missing.
grog [Sun, 19 May 2002 05:31:37 +0000 (05:31 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 05:14:02 +0000 (05:14 +0000)]
Remove original license disclaimer.
Add Caldera license.
Approved by: David Taylor <davidt@caldera.com>
Make roughly buildable under FreeBSD.
The results are not perfect: the original Makefile referred to a refer
file papers/Ind, which doesn't seem to have been kept, so the
references to other publications are missing. In addition, the
pagination is not correct, with the result that some .DS/.DE blocks
leave large amounts of white space empty before them. Possibly this
could be fixed by putting the (blank) footnotes at the end.
PR: 35345
Requested by: Tony Finch <fanf@dotat.at>
marcel [Sun, 19 May 2002 04:42:19 +0000 (04:42 +0000)]
o Remove namespace pollution from param.h:
- Don't include ia64_cpu.h and cpu.h
- Guard definitions by _NO_NAMESPACE_POLLUTION
- Move definition of KERNBASE to vmparam.h
o Move definitions of IA64_RR_{BASE|MASK} to vmparam.h
o Move definitions of IA64_PHYS_TO_RR{6|7} to vmparam.h
o While here, remove some left-over Alpha references.
grog [Sun, 19 May 2002 04:37:39 +0000 (04:37 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 03:57:58 +0000 (03:57 +0000)]
Make the documentation build.
This does not use the standard build macros for two reasons:
1. There's more than one document (paper and appendix).
2. The standard build macros need revision anyway (we shouldn't need
to set variables to get PostScript output, it should be a separate
target).
If anybody feels offended by this breach of style, feel free to fix
it.
marcel [Sun, 19 May 2002 03:41:48 +0000 (03:41 +0000)]
Remove CWARNFLAGS and add GCC3. We handle GCC3.x specific flags
centrally now that we have GCC3 in the tree. The GCC3 variable
is a helper during the switch.
grog [Sun, 19 May 2002 03:33:24 +0000 (03:33 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 03:30:02 +0000 (03:30 +0000)]
Initial checkin: 4.4BSD version. These files need to be updated with
current license information and adapted to the FreeBSD build
environment before they will build.
grog [Sun, 19 May 2002 03:25:02 +0000 (03:25 +0000)]
Remove comment about encumbered sources. All these sources have now
been released under a BSD-style license by Caldera, the current owner
of the UNIX source code.
marcel [Sun, 19 May 2002 03:17:22 +0000 (03:17 +0000)]
An almost mechanical sweep to replace C++ style comments with C
style comments. This is not an attempt to conform to style(9).
Such has lower priority.
tjr [Sun, 19 May 2002 02:51:36 +0000 (02:51 +0000)]
Add missing options required by SUSv3:
-m List files across the page, separated by commas.
-p Print a slash after directory names
-x Same as -C but sort across the columns rather than down