]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoAdd a regression test for wordexp() and wordfree().
tjr [Sat, 4 Jan 2003 05:50:35 +0000 (05:50 +0000)]
Add a regression test for wordexp() and wordfree().

21 years agogifconfig(8) was depricated.
ume [Sat, 4 Jan 2003 05:32:48 +0000 (05:32 +0000)]
gifconfig(8) was depricated.

Reported by: rwatson

21 years agoRename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
tjr [Sat, 4 Jan 2003 01:11:49 +0000 (01:11 +0000)]
Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
the names required by 1003.1-2001. The old names are retained for
source compatibility with FreeBSD 5.0 and will be removed before 6.0.

21 years agoBracket the prototype for ulimit() with __BEGIN_DECLS/__END_DECLS
tjr [Sat, 4 Jan 2003 00:32:18 +0000 (00:32 +0000)]
Bracket the prototype for ulimit() with __BEGIN_DECLS/__END_DECLS
so that it can be called from C++.

21 years agoRemove unused variable: sz.
tjr [Sat, 4 Jan 2003 00:24:35 +0000 (00:24 +0000)]
Remove unused variable: sz.

21 years agoRemove unused variable: size.
tjr [Sat, 4 Jan 2003 00:20:54 +0000 (00:20 +0000)]
Remove unused variable: size.

21 years ago#include <string.h> for strcmp()'s prototype.
tjr [Sat, 4 Jan 2003 00:18:50 +0000 (00:18 +0000)]
#include <string.h> for strcmp()'s prototype.

21 years agoRemove unused variable: omask.
tjr [Sat, 4 Jan 2003 00:15:15 +0000 (00:15 +0000)]
Remove unused variable: omask.

21 years ago#include <sys/linker.h> for kldload()'s prototype.
tjr [Sat, 4 Jan 2003 00:13:00 +0000 (00:13 +0000)]
#include <sys/linker.h> for kldload()'s prototype.

21 years ago#include <string.h> for strlen()'s prototype.
tjr [Sat, 4 Jan 2003 00:11:11 +0000 (00:11 +0000)]
#include <string.h> for strlen()'s prototype.

21 years ago#include <ctype.h> for isspace()'s prototype (or a macro version).
tjr [Fri, 3 Jan 2003 23:55:58 +0000 (23:55 +0000)]
#include <ctype.h> for isspace()'s prototype (or a macro version).

21 years agoAdd missing #include "namespace.h".
tjr [Fri, 3 Jan 2003 23:38:21 +0000 (23:38 +0000)]
Add missing #include "namespace.h".

21 years agoRemove unused variable: ntmp.
tjr [Fri, 3 Jan 2003 23:34:26 +0000 (23:34 +0000)]
Remove unused variable: ntmp.

21 years ago#include <string.h> for strcmp()'s prototype.
tjr [Fri, 3 Jan 2003 23:31:50 +0000 (23:31 +0000)]
#include <string.h> for strcmp()'s prototype.

21 years ago#include "local.h" to make __svfscanf()'s prototype visible.
tjr [Fri, 3 Jan 2003 23:27:27 +0000 (23:27 +0000)]
#include "local.h" to make __svfscanf()'s prototype visible.

21 years agoRemove an unused variable: `sb' in fts_read().
tjr [Fri, 3 Jan 2003 23:25:25 +0000 (23:25 +0000)]
Remove an unused variable: `sb' in fts_read().

21 years agoRemove an unused variable, `sverrno', which has not been used since 1.11.
tjr [Fri, 3 Jan 2003 23:16:55 +0000 (23:16 +0000)]
Remove an unused variable, `sverrno', which has not been used since 1.11.

21 years agoMake this build and sync-up:
marcel [Fri, 3 Jan 2003 23:10:47 +0000 (23:10 +0000)]
Make this build and sync-up:
o  Add COMPAT_FREEBSD4
o  Remove NO_GEOM
o  Remove commented out options.

21 years agomdoc(4) police: Markup. Fix 1 hard sentence break.
trhodes [Fri, 3 Jan 2003 23:06:10 +0000 (23:06 +0000)]
mdoc(4) police: Markup.  Fix 1 hard sentence break.

21 years agomdoc(7) police: Remove hard sentence breaks.
trhodes [Fri, 3 Jan 2003 22:39:39 +0000 (22:39 +0000)]
mdoc(7) police: Remove hard sentence breaks.

21 years agomdoc(7) police: markup nits.
trhodes [Fri, 3 Jan 2003 22:37:10 +0000 (22:37 +0000)]
mdoc(7) police: markup nits.

21 years agoWhite space fixes
julian [Fri, 3 Jan 2003 20:55:52 +0000 (20:55 +0000)]
White space fixes

21 years agoMake an explicit flag to indicate that a KSE has a reason to upcall,
julian [Fri, 3 Jan 2003 20:41:49 +0000 (20:41 +0000)]
Make an explicit flag to indicate that a KSE has a reason to upcall,
and use that flag when there is a kse_wakeup() call. It will probably
be used with signal delivery as well eventually.

Submitted by: davidxu@

21 years agoDon't need to set retvals to 0 in the non error case. They
julian [Fri, 3 Jan 2003 19:38:54 +0000 (19:38 +0000)]
Don't need to set retvals to 0 in the non error case. They
are set to a good default anyhow.

Submitted by: davidxu@

21 years agoRefine the assertion in vm_object_clear_flag() to allow operation on the
alc [Fri, 3 Jan 2003 19:19:08 +0000 (19:19 +0000)]
Refine the assertion in vm_object_clear_flag() to allow operation on the
kmem_object without Giant.  In that case, assert that the kmem_object's
mutex is held.

21 years agoRevert use of dmmax_mask, I had overlooked a '~'.
phk [Fri, 3 Jan 2003 19:16:48 +0000 (19:16 +0000)]
Revert use of dmmax_mask, I had overlooked a '~'.

Spotted by: bde

21 years agoDocument bit 31 of the cpuid features word as PBE (Pending Break Enable).
jhb [Fri, 3 Jan 2003 18:54:59 +0000 (18:54 +0000)]
Document bit 31 of the cpuid features word as PBE (Pending Break Enable).

21 years agoReenable building in share/mklocale for sparc64. It seems to work fine
tmm [Fri, 3 Jan 2003 18:06:21 +0000 (18:06 +0000)]
Reenable building in share/mklocale for sparc64. It seems to work fine
now, and probably did for quite some time already. 5.0 candidate.

Spotted by: roam

21 years agoAdd various command line options, most notably sort order.
phk [Fri, 3 Jan 2003 17:21:39 +0000 (17:21 +0000)]
Add various command line options, most notably sort order.

Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca>
Sat on for far too long: phk

21 years agoOptimize errstr() by reducing the number of times it walks a string.
mike [Fri, 3 Jan 2003 16:44:42 +0000 (16:44 +0000)]
Optimize errstr() by reducing the number of times it walks a string.
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.

Test by: strerror regression test
Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoMake struct swblock kernel only, to make vm/swap_pager.h userland includable.
phk [Fri, 3 Jan 2003 16:23:12 +0000 (16:23 +0000)]
Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.

21 years agoAvoid extern decls in .c files by putting them in the vm/swap_pager.h
phk [Fri, 3 Jan 2003 14:30:46 +0000 (14:30 +0000)]
Avoid extern decls in .c files by putting them in the vm/swap_pager.h
include file where they belong.
Share the dmmax_mask variable.

21 years agoUse correct _VM_SWAP_PAGER_H_ to check for multiple inclusion.
phk [Fri, 3 Jan 2003 14:22:52 +0000 (14:22 +0000)]
Use correct _VM_SWAP_PAGER_H_ to check for multiple inclusion.

21 years agoReset the stream orientation to 0 (unoriented) in freopen(), as required
tjr [Fri, 3 Jan 2003 12:27:19 +0000 (12:27 +0000)]
Reset the stream orientation to 0 (unoriented) in freopen(), as required
by the C standard.

21 years agoIt is no longer necessary to include sys/types.h before wordexp.h.
tjr [Fri, 3 Jan 2003 12:04:36 +0000 (12:04 +0000)]
It is no longer necessary to include sys/types.h before wordexp.h.

21 years agoDescribe WRDE_NOCMD in the same way that we describe the rest of the flags.
tjr [Fri, 3 Jan 2003 12:03:38 +0000 (12:03 +0000)]
Describe WRDE_NOCMD in the same way that we describe the rest of the flags.

21 years agoRetire sys/dmap.h by including the two lines of it which matters
phk [Fri, 3 Jan 2003 09:55:05 +0000 (09:55 +0000)]
Retire sys/dmap.h by including the two lines of it which matters
directly in vm/vm_swap.c.

21 years agoLock the vm object when performing vm_object_clear_flag().
alc [Fri, 3 Jan 2003 09:15:43 +0000 (09:15 +0000)]
Lock the vm object when performing vm_object_clear_flag().

21 years agoRemove CCDF_SWAP and CCDF_PARITY, they have never been implemented.
phk [Fri, 3 Jan 2003 08:57:40 +0000 (08:57 +0000)]
Remove CCDF_SWAP and CCDF_PARITY, they have never been implemented.

21 years agoRemove CCDF_SWAP and CCDF_PARITY. They have never been implemented.
phk [Fri, 3 Jan 2003 08:56:54 +0000 (08:56 +0000)]
Remove CCDF_SWAP and CCDF_PARITY.  They have never been implemented.

21 years agoMFMBR: Add ioctls for writing an IPL and a boot menu.
nyan [Fri, 3 Jan 2003 07:13:36 +0000 (07:13 +0000)]
MFMBR: Add ioctls for writing an IPL and a boot menu.

21 years agoMerged from sys/isa/fd.c revision 1.243.
nyan [Fri, 3 Jan 2003 06:40:54 +0000 (06:40 +0000)]
Merged from sys/isa/fd.c revision 1.243.

21 years agoConvert calls to BUF_STRATEGY to VOP_STRATEGY calls. This is a no-op since
phk [Fri, 3 Jan 2003 06:32:15 +0000 (06:32 +0000)]
Convert calls to BUF_STRATEGY to VOP_STRATEGY calls.  This is a no-op since
all BUF_STRATEGY did in the first place was call VOP_STRATEGY.

21 years agomanage kernel threads properly; especially shutting them down on module unload
sam [Fri, 3 Jan 2003 06:23:46 +0000 (06:23 +0000)]
manage kernel threads properly; especially shutting them down on module unload

Reviewed by: jhb

21 years agoMFS: crypto timing support; purge usercrypto sysctl (just don't config
sam [Fri, 3 Jan 2003 06:16:59 +0000 (06:16 +0000)]
MFS: crypto timing support; purge usercrypto sysctl (just don't config
cryptodev or kldunload cryptodev module); crypto statistcs; remove
unused alloctype field from crypto op to offset addition of the
performance time stamp

Supported by: Vernier Networks

21 years agoRemove unused second argument from DEV_STRATEGY().
phk [Fri, 3 Jan 2003 05:57:35 +0000 (05:57 +0000)]
Remove unused second argument from DEV_STRATEGY().

21 years agoAdd vm map and vm object locking to vmtotal().
alc [Fri, 3 Jan 2003 05:52:02 +0000 (05:52 +0000)]
Add vm map and vm object locking to vmtotal().

21 years agoRemove unused second argument from BIO_STRATEGY()
phk [Fri, 3 Jan 2003 05:51:11 +0000 (05:51 +0000)]
Remove unused second argument from BIO_STRATEGY()

21 years agopopen() is a function, not an argument.
tjr [Fri, 3 Jan 2003 05:21:59 +0000 (05:21 +0000)]
popen() is a function, not an argument.

21 years agoProtect pidlist with a mutex to avoid a race causing a duplicate free()
tjr [Fri, 3 Jan 2003 04:35:04 +0000 (04:35 +0000)]
Protect pidlist with a mutex to avoid a race causing a duplicate free()
when the same pipe FILE is pclosed()'d in different threads, and to avoid
corrupting the linked list when adding or removing items. The symptoms of
the linked list getting corrupted were pclose() either not finding the pipe
on the list, or the list becoming circular and pclose() looping infinitely.

21 years agoSet auto-retry mode to avoid some spurious errors.
des [Fri, 3 Jan 2003 02:45:10 +0000 (02:45 +0000)]
Set auto-retry mode to avoid some spurious errors.

Submitted by: Andre Albsmeier <andre.albsmeier@siemens.com>
MFC after: 7 days

21 years agoThis commit was generated by cvs2svn to compensate for changes in r108577,
des [Fri, 3 Jan 2003 02:18:53 +0000 (02:18 +0000)]
This commit was generated by cvs2svn to compensate for changes in r108577,
which included commits to RCS files with non-trunk default branches.

21 years agoFix typo in debugging macro (perforce change 23072)
des [Fri, 3 Jan 2003 02:18:53 +0000 (02:18 +0000)]
Fix typo in debugging macro (perforce change 23072)

21 years agoApproved by: gallatin (mentor)
ticso [Fri, 3 Jan 2003 00:19:54 +0000 (00:19 +0000)]
Approved by:    gallatin (mentor)

Sync with i386.
Don't write crashdumps outside partition boundaries.

21 years agoo Introduce a new external mbuf type, EXT_EXTREF.
gallatin [Thu, 2 Jan 2003 21:16:50 +0000 (21:16 +0000)]
o Introduce a new external mbuf type, EXT_EXTREF.

o Allow callers of m_extadd() to allocate their own reference
m_ext.ref_cnt pointer, rather than having the mbuf system allocate it
with a malloc() in the critical path.  This speeds m_extadd() up, and
also simplifies locking (malloc() may need Giant).

A driver or subsystem wishing to take use its own ref counter must
initialize m_ext.ref_cnt to point to its ref counter prior to
calling m_extadd(), and it must use EXT_EXTREF as its external type.

Eg:
 m->m_ext.ref_cnt =  my_ref_cnt_ptr;
 m_extadd(.....,EXT_EXTREF);

Reviewed by: bosko

21 years agoImplement POSIX grantpt(3) functionality, and add a pt_chown utility (akin
jmallett [Thu, 2 Jan 2003 20:44:41 +0000 (20:44 +0000)]
Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin
to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes
to the user being granted the pty.

Submitted by: Ryan Younce <ryany@pobox.com>
Reviewed by: security-officer@, standards@, mike@

21 years agoBackout phk's backout of obrien's change.
imp [Thu, 2 Jan 2003 20:18:42 +0000 (20:18 +0000)]
Backout phk's backout of obrien's change.

Hat: core

21 years ago- The ahc and ahd drivers should work on sparc64 now thanks to scottl.
jake [Thu, 2 Jan 2003 20:14:58 +0000 (20:14 +0000)]
- The ahc and ahd drivers should work on sparc64 now thanks to scottl.
- Add zs.

21 years agoOptimize the size of the work-items by letting the mapping function
phk [Thu, 2 Jan 2003 19:29:49 +0000 (19:29 +0000)]
Optimize the size of the work-items by letting the mapping function
decide the largest size which stays inside the zone and does not
collide with a lock sector.

21 years ago- This damnable chip only has 1 status register for both ports, so the bit
jake [Thu, 2 Jan 2003 19:04:35 +0000 (19:04 +0000)]
- This damnable chip only has 1 status register for both ports, so the bit
  positions for the status bits of port a and port b are different.  To
  avoid needing to know which channel the interrupt handler is working on,
  shift the status bits for port a into the port b bit positions, and always
  check the port b status bits.  This fixes using port b, which I neglected
  to test before.
- Remember to update the channel's tty structure from the passed in termios
  in the param routine.
- Minor style.

21 years agoLock the vm object when performing back-to-back vm_object_clear_flag() and
alc [Thu, 2 Jan 2003 18:32:13 +0000 (18:32 +0000)]
Lock the vm object when performing back-to-back vm_object_clear_flag() and
vm_object_set_flag().

21 years agoIn cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.
thomas [Thu, 2 Jan 2003 10:19:43 +0000 (10:19 +0000)]
In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.
This situation most notably arises in chkprintcap, when a /etc/printcap
entry has an empty rp= attribute. In that case, cgetmatch would enter
an infinite loop if any entry in the file has multiple names.

This causes lpd to hang at boot time on 5.0-DP2 when both conditions
are met (:rp=: and multiple names -- not necessarily on the same entry).

Reviewed by: roberto

21 years agoUpdate si_bsize_phys on open.
phk [Thu, 2 Jan 2003 09:38:22 +0000 (09:38 +0000)]
Update si_bsize_phys on open.

MFC candidate.

21 years agoLock the vm object when performing vm_object_clear_flag().
alc [Thu, 2 Jan 2003 09:09:27 +0000 (09:09 +0000)]
Lock the vm object when performing vm_object_clear_flag().

21 years agoUpdate to correct NetBSD Id
imp [Thu, 2 Jan 2003 04:22:44 +0000 (04:22 +0000)]
Update to correct NetBSD Id

21 years agoMake compiles (LINT and/or ISP_TARGET_MODE options) happier by making sure
mjacob [Thu, 2 Jan 2003 04:21:52 +0000 (04:21 +0000)]
Make compiles (LINT and/or ISP_TARGET_MODE options) happier by making sure
printf type format args and actual args match.

Reviewed by: Sam Leffler <sam@errno.com>

21 years agoSync to 1.104 of usbdevs
imp [Thu, 2 Jan 2003 04:21:38 +0000 (04:21 +0000)]
Sync to 1.104 of usbdevs

21 years agoAdd NEODIO TURBOCONNECT (from NetBSD)
imp [Thu, 2 Jan 2003 04:21:04 +0000 (04:21 +0000)]
Add NEODIO TURBOCONNECT (from NetBSD)

21 years agoMFNetBSD through 1.42 (to be committed in a moment by me).
imp [Thu, 2 Jan 2003 04:15:55 +0000 (04:15 +0000)]
MFNetBSD through 1.42 (to be committed in a moment by me).
o Whitespace nits
o NEODIO added

21 years agoAdjust code for Julian's last commit. use td_mailbox to detect if
davidxu [Thu, 2 Jan 2003 02:48:03 +0000 (02:48 +0000)]
Adjust code for Julian's last commit. use td_mailbox to detect if
a syscall is from UTS kernel.

21 years agoDo not print the value of sc pointer before is has been ininialized.
kan [Thu, 2 Jan 2003 02:46:13 +0000 (02:46 +0000)]
Do not print the value of sc pointer before is has been ininialized.

21 years agoCreate debug sysctl nodes if USB_DEBUG is defined.
kan [Thu, 2 Jan 2003 02:38:57 +0000 (02:38 +0000)]
Create debug sysctl nodes if USB_DEBUG is defined.
UBSA_DEBUG is inconsistent with other drivers.

21 years agoAdd function linux_msg() for regulating output from the linux emulation
alfred [Thu, 2 Jan 2003 02:19:10 +0000 (02:19 +0000)]
Add function linux_msg() for regulating output from the linux emulation
code, make the emulator use it.

Rename unsupported_msg() to unimplemented_syscall().  Rename some arguments
for clarity

Fixup grammar.

Requested by: bde

21 years agoIt appears that the SANYO SCP-4900 needs similar quirks to the
imp [Wed, 1 Jan 2003 20:21:48 +0000 (20:21 +0000)]
It appears that the SANYO SCP-4900 needs similar quirks to the
Metricom Ricochet GS modem.  Add them here.

# A new umodem appears to be needed to make the sanyo phone work, but that's
# more extensive and will come after coordination.

21 years agoSync to usbdevs 1.103
imp [Wed, 1 Jan 2003 20:18:58 +0000 (20:18 +0000)]
Sync to usbdevs 1.103

21 years agoAdd Sanyo SCP-4900 phone. It needs quirks.
imp [Wed, 1 Jan 2003 20:18:15 +0000 (20:18 +0000)]
Add Sanyo SCP-4900 phone.  It needs quirks.

21 years agoNow that we've 'branched' 5.0, desupport FreeBSD 3.x in this driver. It
imp [Wed, 1 Jan 2003 20:15:42 +0000 (20:15 +0000)]
Now that we've 'branched' 5.0, desupport FreeBSD 3.x in this driver.  It
appears that NetBSD has already done this in their tree.

21 years agoAdd a driver for the Zilog 8530 dual uart found in Ultra 1s and Ultra 2s.
jake [Wed, 1 Jan 2003 19:49:30 +0000 (19:49 +0000)]
Add a driver for the Zilog 8530 dual uart found in Ultra 1s and Ultra 2s.
With a 1 byte transmit fifo, 3 byte receive fifo, and wierd multiplexed I/O
designed for a Z80 cpu, this chip redefines suckage.

Based on the openbsd and netbsd drivers.  Only really works as a console,
modem support is not complete since I can't test it.

21 years agoUpdate the assertions in vm_page_insert() and vm_page_lookup() to reflect
alc [Wed, 1 Jan 2003 19:45:36 +0000 (19:45 +0000)]
Update the assertions in vm_page_insert() and vm_page_lookup() to reflect
locking of the kmem_object.

21 years agoCorrect typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
schweikh [Wed, 1 Jan 2003 18:49:04 +0000 (18:49 +0000)]
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.

21 years agoFix typos; add FreeBSD Id where missing.
schweikh [Wed, 1 Jan 2003 18:13:45 +0000 (18:13 +0000)]
Fix typos; add FreeBSD Id where missing.

21 years agoHappy 2003.
imp [Wed, 1 Jan 2003 13:31:12 +0000 (13:31 +0000)]
Happy 2003.

21 years agoExperimental support for suspend/resume, not finished yet.
simokawa [Wed, 1 Jan 2003 08:25:32 +0000 (08:25 +0000)]
Experimental support for suspend/resume, not finished yet.

21 years agoReduce debug message.
simokawa [Wed, 1 Jan 2003 08:22:29 +0000 (08:22 +0000)]
Reduce debug message.

21 years ago- Retry phy access when the wait-loop count is exhausted.
simokawa [Wed, 1 Jan 2003 04:23:54 +0000 (04:23 +0000)]
- Retry phy access when the wait-loop count is exhausted.
- Free allocated memory when detaching.
- Detect contigmalloc failure.

21 years agoUse 0600 for permissions for /dev/devctl until it is cloneable.
imp [Wed, 1 Jan 2003 03:43:58 +0000 (03:43 +0000)]
Use 0600 for permissions for /dev/devctl until it is cloneable.
Use UID_ROOT and GID_WHEEL rather than 0.

Prompted by: rwatson

21 years ago'wepmode on' is needed to turn on wep.
imp [Wed, 1 Jan 2003 02:53:41 +0000 (02:53 +0000)]
'wepmode on' is needed to turn on wep.

Submitted by: blackend

21 years agoWhen compiling the kernel do not implicitly include filedesc.h from proc.h,
alfred [Wed, 1 Jan 2003 01:56:19 +0000 (01:56 +0000)]
When compiling the kernel do not implicitly include filedesc.h from proc.h,
this was causing filedesc work to be very painful.
In order to make this work split out sigio definitions to thier own header
(sigio.h) which is included from proc.h for the time being.

21 years agoWhen complaining about obsolete/unimplemented syscalls output the process
alfred [Wed, 1 Jan 2003 01:42:57 +0000 (01:42 +0000)]
When complaining about obsolete/unimplemented syscalls output the process
name to make things more clear for the user.

PR: 46661
MFC After: 3 days

21 years agofdcopy() only needs a filedesc pointer.
alfred [Wed, 1 Jan 2003 01:19:31 +0000 (01:19 +0000)]
fdcopy() only needs a filedesc pointer.

21 years agopurge 'register'.
alfred [Wed, 1 Jan 2003 01:05:54 +0000 (01:05 +0000)]
purge 'register'.

21 years agoSince fdshare() and fdinit() only operate on filedescs, make them
alfred [Wed, 1 Jan 2003 01:01:14 +0000 (01:01 +0000)]
Since fdshare() and fdinit() only operate on filedescs, make them
take pointers to filedesc structures instead of threads.  This makes
it more clear that they do not do any voodoo with the thread/proc
or anything other than the filedesc passed in or returned.

Remove some XXX KSE's as this resolves the issue.

21 years agofdinit() does not need to lock the filedesc it is creating as no one
alfred [Wed, 1 Jan 2003 00:35:46 +0000 (00:35 +0000)]
fdinit() does not need to lock the filedesc it is creating as no one
besideds itself has access until the function returns.

21 years agoAdd a needed #include.
alc [Wed, 1 Jan 2003 00:13:01 +0000 (00:13 +0000)]
Add a needed #include.

Reported by: ia64 tinderbox

21 years agoReturn an error when r/w is requested on an unsupported device instead of
njl [Tue, 31 Dec 2002 21:44:38 +0000 (21:44 +0000)]
Return an error when r/w is requested on an unsupported device instead of
looping.

Submitted by: Sean Kelly <smkelly@zombie.org>
Pointed out by: bde

21 years agoAdd a COMPATIBILITY section. Note what is not supported.
trhodes [Tue, 31 Dec 2002 20:09:31 +0000 (20:09 +0000)]
Add a COMPATIBILITY section.  Note what is not supported.

Prompted by: olgeni

21 years agoImplement a variant locking scheme for vm maps: Access to system maps
alc [Tue, 31 Dec 2002 19:38:04 +0000 (19:38 +0000)]
Implement a variant locking scheme for vm maps: Access to system maps
is now synchronized by a mutex, whereas access to user maps is still
synchronized by a lockmgr()-based lock.  Why?  No single type of lock,
including sx locks, meets the requirements of both types of vm map.
Sometimes we sleep while holding the lock on a user map.  Thus, a
a mutex isn't appropriate.  On the other hand, both lockmgr()-based
and sx locks release Giant when a thread/process blocks during
contention for a lock.  This could lead to a race condition in a legacy
driver (that relies on Giant for synchronization) if it attempts to
kmem_malloc() and fails to immediately obtain the lock.  Fortunately,
we never sleep while holding a system map lock.

21 years agoRevert previous and move the prototype for db_alt_break to ddb.h.
jake [Tue, 31 Dec 2002 18:30:53 +0000 (18:30 +0000)]
Revert previous and move the prototype for db_alt_break to ddb.h.

Requested by: bde (I think)

21 years agoo reduce the overhead of calling ppsratecheck by using ticks instead of
sam [Tue, 31 Dec 2002 18:22:12 +0000 (18:22 +0000)]
o reduce the overhead of calling ppsratecheck by using ticks instead of
  calling getmicrouptime (but maintain the struct timeval-based calling
  convention for compatibility)
o eliminate the use of timersub in ratecheck

Note that flood ping tests indicate ppsratecheck is inaccurate (but on the
conservative side) with this revised implementation.  If more accuracy is
needed we'll have to introduce an alternate interface or increase the
overhead.

Reviewed by: silby, dillon, bde

21 years agos/arn't/are not/
trhodes [Tue, 31 Dec 2002 17:53:04 +0000 (17:53 +0000)]
s/arn't/are not/
Reword the AUTHORS section to make more sense.