Jonathan Lemon
fe96e26dd0
Fix another callout_init() that I missed.
2000-11-26 21:59:30 +00:00
Jonathan Lemon
9ba20c3119
Unbreak world; #include <sys/mutex.h> instead of <machine/mutex.h>
...
Only include <sys/mbuf.h> when building kernel sources. This should
probably be changed to require callers to include it themselves.
2000-11-26 21:47:01 +00:00
Kris Kennaway
f6fd83ed27
Correct definition of MAXHOSTNAMELEN in ifdef'ed code.
...
Submitted by: Edwin Groothuis <mavetju@chello.nl>
PR: bin/22787
2000-11-26 21:37:51 +00:00
David E. O'Brien
d352c316d4
Information on how I did the import and upgrade instructions.
2000-11-26 21:29:25 +00:00
David E. O'Brien
200f92ce8d
This commit was generated by cvs2svn to compensate for changes in r69216,
...
which included commits to RCS files with non-trunk default branches.
2000-11-26 21:26:20 +00:00
David E. O'Brien
ebb4cbb2d0
Virgin import of Christos Zoulas FILE 3.33.
2000-11-26 21:26:20 +00:00
Alfred Perlstein
0931dcefb3
Move the #define of _KERN_MUTEX_C_ so that it's before any system headers
...
are included. System headers can include sys/mutex.h and then certain
macros do not get defined.
Reviewed by: jake
2000-11-26 21:14:17 +00:00
Poul-Henning Kamp
a52585d77e
Simplify the tprintf() API.
...
Loose the special <sys/tprintf.h> #include file.
2000-11-26 20:35:21 +00:00
Poul-Henning Kamp
4d88c4598f
Make log(-1, ...) do what addlog(...) did.
...
Replace all uses of addlog(...) with log(-1, ...)
Remove bogus "register" keywords in subr_prf.c
Make log() return void.
2000-11-26 19:34:06 +00:00
Poul-Henning Kamp
cb7e609a3c
Make diskerr() always log with printf.
2000-11-26 19:29:15 +00:00
Poul-Henning Kamp
a1bb9fabb1
unhook netgraph/bridge until somebody makes it compile in LINT
2000-11-26 16:40:00 +00:00
Jake Burkholder
a5d5c61c12
Add uidinfo hash and uidinfo struct to the witness order list.
2000-11-26 15:05:46 +00:00
Jonathan Lemon
9528be94e8
Add 'mpsafe' parameter to callout_init() in MD bits.
...
Reminded by: jake
2000-11-26 13:52:17 +00:00
Alfred Perlstein
9c19bcddf0
Make uidinfo subsystem mpsafe
...
use a mutex lock when looking up/deleting entries on the hashlist
use a mutex lock on each uidinfo when updating fields
make uifree() a void function rather than 'int' since no one cares
allocate uidinfo structs with the M_ZERO flag and don't explicitly initialize
them
Assisted by: eivind, jhb, jakeb
2000-11-26 12:08:17 +00:00
Kris Kennaway
cca0db7e7e
Constify
2000-11-26 11:07:45 +00:00
Kris Kennaway
82b449c6a3
sprintf -> snprintf
2000-11-26 11:04:45 +00:00
Kris Kennaway
a64c25acc6
Constify
2000-11-26 10:56:12 +00:00
Poul-Henning Kamp
798c1fd885
Make it possible to override the function which writes messages to
...
stderr in case of warnings and errors.
Rename malloc_options to have a leading underscore, I belive I have been
told that is more correct namespace wise.
2000-11-26 10:30:18 +00:00
Kris Kennaway
a16f31237a
Constify
2000-11-26 10:21:54 +00:00
Kris Kennaway
18fdc5893a
Don't hard-code a buffer size
2000-11-26 10:05:06 +00:00
Mark Murray
17c9715049
Fix safety-net code. While technically a bug, I'm delighted to see
...
that it has never (apparently) been invoked.
Submitted by: ache
2000-11-26 09:58:18 +00:00
Kris Kennaway
45459ea3bd
Format string auditing
2000-11-26 09:51:46 +00:00
Kris Kennaway
4b5e6561d3
sprintf -> snprintf
2000-11-26 09:05:40 +00:00
Kris Kennaway
0ab378def6
Don't call err() with user data and without a format string
2000-11-26 08:50:12 +00:00
Kris Kennaway
da4cd46eac
vsprintf() -> vsnprintf()
2000-11-26 08:14:55 +00:00
KATO Takenori
69c963801b
Merged from sys/i386/i386/machdep.c revision 1.422.
2000-11-26 06:29:33 +00:00
Doug Barton
7039987dc4
Add the remaining pseudo-users as aliases to root
...
PR: conf/23105
Submitted by: Matthew West, mwest@uct.ac.za
2000-11-26 05:28:22 +00:00
Kris Kennaway
a3125484c9
Properly fix the temporary file creation in the case of multiple
...
command-line arguments.
Noticed by: dynamo <dynamo@ime.net>
2000-11-26 03:37:34 +00:00
David E. O'Brien
8949746149
This commit was generated by cvs2svn to compensate for changes in r69180,
...
which included commits to RCS files with non-trunk default branches.
2000-11-26 01:21:09 +00:00
David E. O'Brien
bf9a5db426
Import a virgin (but trimed) Binutils 2.10 release.
2000-11-26 01:21:09 +00:00
Poul-Henning Kamp
ea250e5b03
Add the "LOG_CONSOLE" facility and tell syslogd to not log it on
...
console devices.
2000-11-25 21:00:58 +00:00
Mark Murray
5d4e386e64
D'uh. The explicit reseed was happening at the wrong security/privelige
...
levels.
2000-11-25 20:08:07 +00:00
Alan Cox
badfcb1bef
Undo rev 1.8: This commit actually added a second declaration
...
of aio_error() to the same file.
2000-11-25 19:35:49 +00:00
Mark Murray
5063615923
Greatly improve the boot-up unblocking time of the entropy device.
2000-11-25 19:13:29 +00:00
Mark Murray
caccf5c400
More comment changing. Keep documentation in one place.
2000-11-25 18:00:54 +00:00
Mark Murray
24242537f8
Correct a comment. This represents a very minor policy change of my
...
intentions with this code.
2000-11-25 17:58:11 +00:00
Mark Murray
e73a42f8fb
Stop explicitly using nanotime(9) and use the new get_cyclecounter(9)
...
call instead.
This makes a pretty dramatic difference to the amount of work that
the harvester needs to do - it is much friendlier on the system.
(80386 and 80486 class machines will notice little, as the new
get_cyclecounter() call is a wrapper round nanotime(9) for them).
2000-11-25 17:09:01 +00:00
Mark Murray
89c2809e65
Add a constant for the (to be committed at a later time) irq-entropy
...
harvester.
2000-11-25 16:51:16 +00:00
David E. O'Brien
3726c08892
Deal with a real PITA in that GDB 4.18 (as we imported it) requires a
...
`wait.h' that was in contrib/binutils/, however this wait.h went away with
bintuils 2.10.0 so I `cvs rm'ed it. Now we find gdb will not build. This
binutils wait.h contained nothing we didn't already have in <sys/wait.h>.
So just hack a symlink to it.
2000-11-25 13:59:49 +00:00
David E. O'Brien
5ce16708c7
stringify.sed' has been replaced by
astring.sed' [on ANSI-C systems].
2000-11-25 13:56:28 +00:00
David E. O'Brien
07ec877253
Don't compile libgcc_r twice.
2000-11-25 13:04:08 +00:00
David E. O'Brien
1c58bf46ba
Import of GNU Binutils version 2.10.1.
...
Believe it or not, this is heavily stripped down.
2000-11-25 10:29:36 +00:00
David E. O'Brien
abe1ff27c1
This commit was generated by cvs2svn to compensate for changes in r69159,
...
which included commits to RCS files with non-trunk default branches.
2000-11-25 10:29:36 +00:00
David E. O'Brien
04fa5c9c88
Remove binutils 2.9.1 files that are not part of 2.10.x.
2000-11-25 10:23:21 +00:00
David E. O'Brien
b068880df6
Remove binutils 2.9.1 files that are not part of 2.10.x.
2000-11-25 09:57:13 +00:00
Peter Wemm
f6b2bce285
Fix a mangled $Id string
2000-11-25 09:10:55 +00:00
Peter Wemm
bc7425f5f2
GC some defunct prototypes
2000-11-25 08:13:33 +00:00
Jonathan Lemon
b50c63121d
Change the driver to allocate its own callout structure, and modify
...
the interface to use callout_* instead of timeout(). Also add an
IS_MPSAFE #define (currently off) which will mark the driver as mpsafe
to the upper layers.
2000-11-25 08:00:10 +00:00
Jonathan Lemon
4851f97cf1
Remove unused variable, spl() manipulation isn't done for the ifq now.
2000-11-25 07:50:27 +00:00
Jonathan Lemon
df5e198723
Lock down the network interface queues. The queue mutex must be obtained
...
before adding/removing packets from the queue. Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.
IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue. An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.
Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.
2000-11-25 07:35:38 +00:00