John Baldwin
5d3e8edac4
Use the 'slp' local variable that was otherwise unused instead of casting
...
the driver softc under the assumption that the first part of it was a
struct scsi_low_softc.
2001-01-23 22:05:07 +00:00
John Baldwin
5928fa5cc7
#if 0 out local variables only used in #if 0'd code and remove unused
...
local variables.
2001-01-23 22:02:08 +00:00
John Baldwin
e54e93e21a
Add curly braces ({}) around each struct speedtab to quiet warnings.
2001-01-23 22:00:05 +00:00
John Baldwin
14c3599a2d
Proc locking in the form of using the proc lock to protect p_ucred while
...
we obtain another reference to it for vnode operations.
2001-01-23 21:58:44 +00:00
John Baldwin
d1a147af8b
Axe unused local variable.
2001-01-23 21:53:44 +00:00
John Baldwin
4cd9657860
- Mark an unused function with __unused.
...
- Temporarily #if 0 some unused local variables.
2001-01-23 21:52:34 +00:00
John Baldwin
705a513a29
Axe an unused static softc.
2001-01-23 21:51:26 +00:00
John Baldwin
9697124fc8
Move a temporary #ifdef of code (just the #ifdef part) up so that it is
...
above the local variable declaration to quiet warnings about unused
variables.
2001-01-23 21:45:05 +00:00
John Baldwin
65baa27ce6
Kill a warning by marking an unused function with __unused.
2001-01-23 21:43:47 +00:00
Jacques Vidrine
8ad2668439
Call pam_setcred.
...
Reviewed by: markm, months ago
2001-01-23 21:43:32 +00:00
John Baldwin
97eba215ac
Argh, atomic_store_rel -> atomic_store_rel_int.
2001-01-23 21:40:07 +00:00
John Baldwin
505eb4d591
Woops, add in missing headers.
2001-01-23 21:39:15 +00:00
John Baldwin
1fed5f0326
Proc locking.
2001-01-23 21:33:55 +00:00
John Baldwin
c41e968cbd
Use queue macros.
2001-01-23 21:32:02 +00:00
John Baldwin
bc4afa1f45
- Add proc locking.
...
- Fix several bugs in the wait syscall, including freeing the actual
proc start, freeing the args, freeing the prison, and other minor
nits.
- Use appropriate queue(3) macros.
- Use zpfind() instead of walking zombproc ourselves.
2001-01-23 21:30:25 +00:00
Kris Kennaway
1b2556e4a4
Fix the vulnerability with TCP ECE packets recently fixed in ipfw.
...
This is untested, but believed to work.
2001-01-23 21:11:28 +00:00
John Baldwin
48f8ca448a
- Use proper atomic operations to make the run time initialization
...
controlled by svr_str_initialized be MP safe.
2001-01-23 21:07:16 +00:00
John Baldwin
f843c385b1
- Add necessary proc locking.
...
- Use proper atomic operations to make the run time initialization
controlled by svr_str_initialized be MP safe.
- Use appropriate queue(3) macros where needed.
2001-01-23 21:06:30 +00:00
John Baldwin
37bf0fc1f8
FreeBSD doesn't have p_emuldata, and our stackgap_init() doesn't take an
...
argument.
2001-01-23 21:02:44 +00:00
John Baldwin
07a1f31cd0
Use proc lock to safely obtain references to p_ucred before vnode
...
operations.
2001-01-23 20:52:50 +00:00
John Baldwin
fb29c3e083
Protect calcru() with sched_lock.
2001-01-23 20:50:40 +00:00
John Baldwin
ef7b803dcd
- Activate runqueue.9, scheduler.9, and sleepqueue.9 along with appropriate
...
MLINKS.
- Update MLINKS for mi_switch.9.
2001-01-23 19:38:45 +00:00
John Baldwin
8861ba5bc8
Catch up to the new way that the scheduling code works since the original
...
SMPng commit. Also document the new cpu_throw function (currently only
on i386).
Reviewed by: sheldonh
2001-01-23 19:28:14 +00:00
John Baldwin
969843e476
Document the various functions and variables used by the current
...
scheduler code. Includes a rough description of the various priority
values stored in struct proc as well as priority propagation.
Reviewed by: chris
2001-01-23 19:26:21 +00:00
John Baldwin
533ef7852a
Document the current organization and helper functions used to implement
...
the sleep queues used by msleep/wakeup and friends.
Submitted by: sheldonh
2001-01-23 19:24:35 +00:00
John Baldwin
40abbce7a6
Document the current organization of the run queues and the various
...
functions used to manage them.
Reviewed by: sheldonh
2001-01-23 19:23:42 +00:00
Garrett Wollman
24b11d6ec6
I made a last-minute change before the last commit which broke
...
the errno semantics. Get it (closer to) right this time.
2001-01-23 17:36:07 +00:00
Hajimu UMEMOTO
1167992be6
zero-cleared allocated prefix information when configured.
...
Obtained from: KAME
2001-01-23 17:29:12 +00:00
Matt Jacob
15516f16d2
Do not do the commenting out the way that saves bytes and looks cleaner
...
to you. Do it the way Vox Populi wants it.
2001-01-23 16:35:33 +00:00
Takanori Watanabe
fd8433ab80
Map BSS section in PECOFF executable.
...
Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp>
2001-01-23 16:19:37 +00:00
Hajimu UMEMOTO
5d22597f3a
Add mibs to hold the number of forks since boot. New mibs are:
...
vm.stats.vm.v_forks
vm.stats.vm.v_vforks
vm.stats.vm.v_rforks
vm.stats.vm.v_kthreads
vm.stats.vm.v_forkpages
vm.stats.vm.v_vforkpages
vm.stats.vm.v_rforkpages
vm.stats.vm.v_kthreadpages
Submitted by: Paul Herman <pherman@frenchfries.net>
Reviewed by: alfred
2001-01-23 14:32:01 +00:00
Yoshihiro Takahashi
f2334c4082
Added pc98 apm driver.
...
Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>
2001-01-23 12:37:15 +00:00
Peter Wemm
ed1a4621a2
Add the -empty flag, from OpenBSD. It returns true if the directory
...
is empty. There doesn't appear to be another easy way to do this.
mobile# mkdir foo
mobile# mkdir foo/bar
mobile# mkdir bar
mobile# find . -empty
./foo/bar
./bar
2001-01-23 11:16:50 +00:00
Joerg Wunsch
3b9d81dc1a
Mark the (ancient) MaxOptix Tahiti 1 drive as a known rogue that would
...
respond to all LUNs.
Reviewed by: ken
2001-01-23 10:49:30 +00:00
Hellmuth Michaelis
74acef9ae7
Remove useless variable vjlen.
...
Submitted by: Sergio de Souza Prallon <prallon@tmp.com.br>
2001-01-23 10:01:55 +00:00
Peter Wemm
2f74661cc7
Provide backwards compatable recognition of ${KERNEL}. You should be
...
able to use KERNEL= again with buildkernel, but it will point you at
KERNCONF= and press on regardless.
2001-01-23 09:52:50 +00:00
Peter Wemm
9f3e2250ca
In answer to the comment: /* XXX is it OK to block here? */, the answer
...
is definately NO! as we are in interrupt context and malloc() does a
KASSERT() to be sure.
2001-01-23 09:43:23 +00:00
Ruslan Ermilov
9715c87b3b
mdoc(7) police: replaced empty line with .Pp, updated document date.
2001-01-23 08:41:38 +00:00
Wes Peters
550b151850
When attempting to bind to an ephemeral port, if no such port is
...
available, the error return should be EADDRNOTAVAIL rather than
EAGAIN.
PR: 14181
Submitted by: Dima Dorfman <dima@unixfreak.org>
Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
2001-01-23 07:27:56 +00:00
Garrett Wollman
08f825912f
Add a couple of new library interfaces (will be activated when the
...
relavant header file changes are committed) for POSIX support.
2001-01-23 04:49:39 +00:00
Garrett Wollman
e8f5d21723
This file declares `struct timespec' so that we can have a single,
...
centralized declaration (this will become useful later when we declare
struct timespec in all the places it is supposed to be).
2001-01-23 04:44:04 +00:00
Garrett Wollman
a25e45d40c
Synchronize with some of my local changes. To quote:
...
* This file must be kept synchronized with <sys/timespec.h>.
* It defines a structure which must be a type pun for
* `struct timespec'; this structure is used in header files where
* the ABI uses a `struct timespec' but standards prohibit its
* definition. (Currently only <sys/stat.h>.)
2001-01-23 04:40:54 +00:00
Robert Watson
02b65ffb64
o The move to using VADMIN under vaccess() resulted in some system
...
calls returning EACCES instead of EPERM. This patch modifies vaccess()
to return EPERM instead of EACCES if VADMIN is among the requested
rights. This affects functions normally limited to the owners of
a file, such as chmod(), as EPERM is the error indicating that
privilege would allow the operation, rather than a chance in mandatory
or discretionary rights.
Reported by: bde
2001-01-23 04:15:19 +00:00
Kirk McKusick
64d9f3b982
Add function prototype for libc function sysctlnametomib()
2001-01-23 03:42:20 +00:00
Kirk McKusick
a9dc3bacfa
Add the function sysctlnametomib to libc. Details on the semantics
...
and use of this function have been added to the sysctl.3 manual page.
2001-01-23 03:40:32 +00:00
Jake Burkholder
43be6e2fa2
Sigh. atomic_add_int takes a pointer, not an integer.
...
Pointy-hat-to: des
2001-01-23 03:40:27 +00:00
Sergey Babkin
6548bd5646
Backed out the DST support changes.
2001-01-23 01:17:40 +00:00
Dag-Erling Smørgrav
ac2e223868
Use atomic operations to update the stat counters.
2001-01-23 01:11:11 +00:00
Dag-Erling Smørgrav
0b5c9ae2f3
Document that the -z option is equivalent to 'sysctl vm.zone'.
2001-01-23 00:37:54 +00:00
Dag-Erling Smørgrav
bec62dd817
Use the vm.zone sysctl rather that grope through the zone allocator's
...
internal data structures.
2001-01-23 00:31:56 +00:00