Marcel Moolenaar [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 Moolenaar [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Akinori MUSHA [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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 Moolenaar [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.
Greg Lehey [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.
Greg Lehey [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 Moolenaar [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.
Greg Lehey [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.
Greg Lehey [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.
Greg Lehey [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 Moolenaar [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.
Tim J. Robbins [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
John Baldwin [Sun, 19 May 2002 00:14:50 +0000 (00:14 +0000)]
Change p_can{debug,see,sched,signal}()'s first argument to be a thread
pointer instead of a proc pointer and require the process pointed to
by the second argument to be locked. We now use the thread ucred reference
for the credential checks in p_can*() as a result. p_canfoo() should now
no longer need Giant.
Robert Watson [Sun, 19 May 2002 00:11:08 +0000 (00:11 +0000)]
Remove IFS from 5.0-CURRENT. This facilitates introducing UFS2 as
IFS had its fingers deep in the belly of the UFS/FFS split. IFS
will be reimplemented by the maintainer at a later date.
Robert Watson [Sun, 19 May 2002 00:09:30 +0000 (00:09 +0000)]
Remove IFS from 5.0-CURRENT. This facilitates introducing UFS2 as
IFS had its fingers deep in the belly of the UFS/FFS split. IFS
will be reimplemented by the maintainer at a later date once the UFS
implementation is in place.
Ian Dowse [Sat, 18 May 2002 22:18:17 +0000 (22:18 +0000)]
Add an ext2_uninit() routine that undoes the actions performed by
ext2_init(). This permits the ext2fs module to be unloaded without
causing panics and leaking memory.
Ian Dowse [Sat, 18 May 2002 21:33:07 +0000 (21:33 +0000)]
Fix two off-by-one errors when sanity-checking inode numbers. In
ext2fs, inode numbers start at 1, so the maximum valid inode number
is (s_inodes_per_group * s_groups_count), not one less. This is
just a minimal change to avoid unnecessary panics and errors; some
other related bugs that Bruce Evans mentioned to me are not addressed.
Ian Dowse [Sat, 18 May 2002 21:10:40 +0000 (21:10 +0000)]
Unconditionally update the maximum field width statistics when we
refetch the filesystem information in MNT_WAIT mode. This avoids
incorrect column alignment that sometimes occurs with NFS filesystems.
Ian Dowse [Sat, 18 May 2002 18:58:27 +0000 (18:58 +0000)]
Fix a typo where sizeof(daddr_t) was specified instead of sizeof(doff_t).
Now that daddr_t is 64-bit, this caused hash blocks to be allocated
twice as large as they need to be.
Bruce A. Mah [Sat, 18 May 2002 18:44:24 +0000 (18:44 +0000)]
New release notes: Perl deletion (along with a caution that some work
is still ongoing), catman(1) rewrite, makewhatis(1) rewrite,
spkrtest(8) rewrite.
Modified release note: killall(1) for markup.
Deleted release notes: Perl upgrade, style.perl(7) manpage, one note
about killall(1) was obsolete.