deischen [Tue, 19 Mar 2002 22:58:56 +0000 (22:58 +0000)]
Add the ability to recognize old references to keys, and return NULL
when old keys are referenced (after pthread_key_delete()) via
pthread_getspecific().
iedowse [Tue, 19 Mar 2002 17:03:14 +0000 (17:03 +0000)]
The FSIRAND code is always compiled in, and it is unlikely that
anyone needs a newfs without it. Remove the #ifdef's from around
the code and the -DFSIRAND from the Makefile. Also remove redundant
declarations of random() and srandomdev().
darrenr [Tue, 19 Mar 2002 15:07:30 +0000 (15:07 +0000)]
both ipnat and ipfstat now use libkvm rather than their own home-rolled
kmem accessors, allowing them to be used with crash dumps as well as live
systems, now.
peter [Tue, 19 Mar 2002 12:14:14 +0000 (12:14 +0000)]
Add some break's after default: in the end of switch statements to
keep gcc-3.1+ happy:
ata-all.c:410: warning: deprecated use of label at end of compound statement
ata-all.c:587: warning: deprecated use of label at end of compound statement
ata-raid.c:99: warning: deprecated use of label at end of compound statement
ata-raid.c:151: warning: deprecated use of label at end of compound statement
peter [Tue, 19 Mar 2002 12:07:27 +0000 (12:07 +0000)]
Move savecore build enable to MD section of Makefile, currently enabled
for i386 and alpha. Although it builds on sparc64, it does not yet work.
A similar hack as what is used on the sparc64 MD macros can be used to
make ia64 build too, but there doesn't seem to be much point.
peter [Tue, 19 Mar 2002 11:18:47 +0000 (11:18 +0000)]
My ia64 box for some reason likes to fragment the beginning/end of memory
a bit before handing it over to the OS. I occasionally have 11
segments with several 8K or so fragments depending on nvram settings and
what I have done under loader(8) before booting. This needs to be
revisited.
peter [Tue, 19 Mar 2002 11:09:24 +0000 (11:09 +0000)]
Work around an apparent compiler bug with gcc-3.1, although it might be
a language feature that I do not know about. gcc is complaining about
a left shift >= sizeof type, even when shifting a (cast) 64 bit type left
by 43 bits.
peter [Tue, 19 Mar 2002 11:03:48 +0000 (11:03 +0000)]
Turn off the ia64 ITC timecounter when SMP is present since it has the
same problem as the TSC on the x86 - ie: it is not synchronized.
#if 0 out some unused functions, ia64 doesn't calibrate clocks yet.
bde [Tue, 19 Mar 2002 08:20:44 +0000 (08:20 +0000)]
Backed out the part of the previous commit related to xargs. It just
broke things, since "name=value ... cmd ..." only works for simple
commands (not for pipelines).
bde [Tue, 19 Mar 2002 06:30:24 +0000 (06:30 +0000)]
Removed env(1) commands. make(1) uses a real shell, and
"env name=value ... cmd ..." is just a pessimized way of doing
"name=value ... cmd ..." in real shells. Set the environment
(without using env(1)) before starting xargs so that env(1)
is not needed in "xargs env name=value ... cmd ..."
bde [Tue, 19 Mar 2002 06:11:43 +0000 (06:11 +0000)]
Removed bogus env(1) commands. make(1) uses a real shell, so
"env name=value ... cmd ..." was just a pessimized way of doing
"name=value ... cmd ...". Note that make(1) can't optimize
either of these to an exec of env(1) or "cmd" even if the second
"..." is simple, since it can't tell that the shell metacharacter
in "name=value" is actually handled by env(1).
alc [Tue, 19 Mar 2002 04:54:30 +0000 (04:54 +0000)]
Eliminate unnecessary calls to grow_stack() and useracc() from linux_sendsig()
and linux_rt_sendsig(). (See i386/i386/machdep.c revisions 1.503 and 1.504.)
bde [Tue, 19 Mar 2002 04:09:21 +0000 (04:09 +0000)]
Fixed some printf format errors (hopefully all of the remaining daddr64_t
ones for GENERIC, and all others on the same line as those). Reformat
the printfs if necessary to avoid new long lones or old format printf
errors.
jmallett [Tue, 19 Mar 2002 02:05:27 +0000 (02:05 +0000)]
Fix handling of filenames with spaces in them in the input file to
uudecode(1), as this behaviour was explicitly added in revision 1.12 as
the result of PR 2882. Remove space (' ') from the delimiter characters
handed to strtok(3).
Reviewed by: mike
Approved by: mike
Pointy hat to: me
cjc [Tue, 19 Mar 2002 01:56:04 +0000 (01:56 +0000)]
IPFilter may need to be re-sync'ed even if we are not filtering, but
only doing ipnat(8). Go back to using $ipfilter_active, but turn off
$ipfilter_active when loading ipl.ko has failed.
Submitted by: devet@devet.org (Arjan de Vet)
MFC after: 3 days
jmallett [Tue, 19 Mar 2002 00:44:07 +0000 (00:44 +0000)]
Make uudecode(1) use setmode(3) and getmode(3) instead of just blindly
chmodding using an octal mode, as uudecode needs to handle symbolic modes
as chmod and such do.
Suggested by: Tim J. Robbins <tim@robbins.id.au>
Also move meta-character (~ in this case) globbing to only if we are reading
the filename from the encoded file, as otherwise it is the shell's job.