dragonfly.git
16 years agoRename:
Hiten Pandya [Thu, 2 Oct 2003 21:00:20 +0000 (21:00 +0000)]
Rename:

- vm_map_pageable() -> vm_map_wire()
- vm_map_user_pageable() -> vm_map_unwire()

16 years ago * Turn on debugging options by default
David Rhodus [Thu, 2 Oct 2003 19:45:40 +0000 (19:45 +0000)]
 * Turn on debugging options by default

16 years agocorrect a comment.
Matthew Dillon [Thu, 2 Oct 2003 19:26:35 +0000 (19:26 +0000)]
correct a comment.

16 years agoDescribe the hw.physmem loader variable.
Matthew Dillon [Thu, 2 Oct 2003 19:24:10 +0000 (19:24 +0000)]
Describe the hw.physmem loader variable.

16 years ago Introduce a uiomove_frombuf helper routine that handles computing and
David Rhodus [Thu, 2 Oct 2003 19:21:06 +0000 (19:21 +0000)]
 Introduce a uiomove_frombuf helper routine that handles computing and
 validating the offset within a given memory buffer before handing the
 real work off to uiomove(9).

 Use uiomove_frombuf in procfs to correct several issues with
 integer arithmetic that could result in underflows/overflows.  As a
 side-effect, the code is significantly simplified.

 Add additional sanity checks when computing a memory allocation size
 in pfs_read.

 Reported by:    Joost Pol <joost@pine.nl>  (integer underflows/overflows)
 Originated from: FreeBSD

16 years agoK&R style function removal. Update functions to ANSI style.
Hiten Pandya [Thu, 2 Oct 2003 17:42:27 +0000 (17:42 +0000)]
K&R style function removal.  Update functions to ANSI style.

Patch has been tested.

Submitted by: Eirik Nygaard <eirikn@bluezone.no>
Reviewed by: Hiten Pandya

16 years ago Correct a case in readv(2) where the file descriptor reference count
David Rhodus [Thu, 2 Oct 2003 16:57:14 +0000 (16:57 +0000)]
  Correct a case in readv(2) where the file descriptor reference count
  should have been decremented but was not.

  Reported by:    Joost Pol <joost@pine.nl>
  Obtained from:  FreeBSD

16 years agoFix a bug in lwkt_trytoken(), it failed to exit its critical section on
Matthew Dillon [Wed, 1 Oct 2003 22:53:44 +0000 (22:53 +0000)]
Fix a bug in lwkt_trytoken(), it failed to exit its critical section on
failure.  It is supposed to return with a critical section held on success.

16 years agoFix a negative cache entry reaping bug, cache_zap() expects ncp's ref count
Matthew Dillon [Wed, 1 Oct 2003 22:51:24 +0000 (22:51 +0000)]
Fix a negative cache entry reaping bug, cache_zap() expects ncp's ref count
to be bumped on call.

16 years agoMove the pst device from dev/misc to dev/raid.
Matthew Dillon [Wed, 1 Oct 2003 18:21:44 +0000 (18:21 +0000)]
Move the pst device from dev/misc to dev/raid.

16 years agoAdd pst to the raid Makefile
Matthew Dillon [Wed, 1 Oct 2003 18:20:33 +0000 (18:20 +0000)]
Add pst to the raid Makefile

16 years agoMove pst from dev/misc to dev/raid, add a Makefile for 'pst'.
Matthew Dillon [Wed, 1 Oct 2003 18:20:07 +0000 (18:20 +0000)]
Move pst from dev/misc to dev/raid, add a Makefile for 'pst'.

16 years ago * Add the Promise Supertrack to the build
David Rhodus [Wed, 1 Oct 2003 14:32:47 +0000 (14:32 +0000)]
 * Add the Promise Supertrack to the build

16 years ago * Add #include <sys/buf2.h>
David Rhodus [Wed, 1 Oct 2003 14:17:56 +0000 (14:17 +0000)]
 * Add #include <sys/buf2.h>
so as to fix the build

16 years agoCleanup: get rid of the CNP_NOFOLLOW pseudo-flag. #define 0'd flags are a
Matthew Dillon [Mon, 29 Sep 2003 18:52:16 +0000 (18:52 +0000)]
Cleanup: get rid of the CNP_NOFOLLOW pseudo-flag.  #define 0'd flags are a
really bad idea.

16 years agoFix L2 internal cache reporting when it is an AMD Duron rev. A0 chip.
Hiten Pandya [Mon, 29 Sep 2003 15:56:42 +0000 (15:56 +0000)]
Fix L2 internal cache reporting when it is an AMD Duron rev. A0 chip.

Obtained from: FreeBSD GNATS (PR #21672)

16 years agoSort Copyright order.
Hiten Pandya [Mon, 29 Sep 2003 15:44:47 +0000 (15:44 +0000)]
Sort Copyright order.

16 years agoSplit getsockopt() and setsockopt().
David P. Reese, Jr. [Mon, 29 Sep 2003 05:34:08 +0000 (05:34 +0000)]
Split getsockopt() and setsockopt().

16 years agoHash the link-check data to improve performance on filesystems containing a
Matthew Dillon [Sun, 28 Sep 2003 17:24:30 +0000 (17:24 +0000)]
Hash the link-check data to improve performance on filesystems containing a
lot of hard links.

Submitted-by: Hiten Pandya <hmp@backplane.com>
16 years agoK&R style function removal. Update functions to ANSI style.
Hiten Pandya [Sun, 28 Sep 2003 14:39:22 +0000 (14:39 +0000)]
K&R style function removal.  Update functions to ANSI style.

Patch has been tested.

Submitted by: Eirik Nygaard
Reviewed by: Hiten Pandya

16 years agonamecache work stage 2: move struct namecache to its own header file and
Matthew Dillon [Sun, 28 Sep 2003 03:44:09 +0000 (03:44 +0000)]
namecache work stage 2: move struct namecache to its own header file and
have vnode.h include it for now.  Re-engineer the namecache topology to make
it possible to track different parent directories and to make it possible
to namei/lookup paths using the namecache structure as the primary placeholder
rather then a directory vnode.  Add a few minor hacks to stabilize the system
that will be removed (no longer be necessary) in stage 3.  Get rid of the
leafonly sysctl and make its effect the default, but in order to avoid
doing too much in this stage it is still possible to disassociate a vnode
from its namecache entry, which a lot of filesystems (e.g. NFS) depend on
as a poor-man's way of invalidating entries.  The namecache topology itself,
however, will be left intact even if a vnode is disassociated in the middle
of a path.

16 years agoTry to generate more debugging information when the critical nesting count
Matthew Dillon [Sun, 28 Sep 2003 03:37:32 +0000 (03:37 +0000)]
Try to generate more debugging information when the critical nesting count
gets too deep (which indicates a crit_enter/exit or lwkt_gettoken/reltoken
mismatch somewhere).

16 years agoRemove the NO_KMEM_MAP and USE_SLAB_ALLOCATOR kernel options. Temporarily
Matthew Dillon [Fri, 26 Sep 2003 19:23:35 +0000 (19:23 +0000)]
Remove the NO_KMEM_MAP and USE_SLAB_ALLOCATOR kernel options.  Temporarily
add the USE_KMEM_MAP and NO_SLAB_ALLOCATOR kernel options, which developers
should generally not use.

We now use the slab allocator (and no kmem_map) by default.

16 years agoRemove the NO_KMEM_MAP and USE_SLAB_ALLOCATOR kernel options. Temporarily
Matthew Dillon [Fri, 26 Sep 2003 19:23:34 +0000 (19:23 +0000)]
Remove the NO_KMEM_MAP and USE_SLAB_ALLOCATOR kernel options.  Temporarily
add the USE_KMEM_MAP and NO_SLAB_ALLOCATOR kernel options, which developers
should generally not use.

We now use the slab allocator (and no kmem_map) by default.

16 years agoAllow unlock and non-blocking lock operations from FAST interrupts.
Matthew Dillon [Thu, 25 Sep 2003 23:52:28 +0000 (23:52 +0000)]
Allow unlock and non-blocking lock operations from FAST interrupts.
For now generate a warning for other operations.  The warning will
turn into a panic in a later commit.

16 years agoFix a number of mp_lock issues. I had outsmarted myself trying to deal with
Matthew Dillon [Thu, 25 Sep 2003 23:49:09 +0000 (23:49 +0000)]
Fix a number of mp_lock issues.  I had outsmarted myself trying to deal with
td->td_mpcount / mp_lock races.  The new rule is: you first modify
td->td_mpcount, then you deal with mp_lock assuming that an interrupt might
have already dealt with it for you, and various other pieces of code
deal with the race if an interrupt occurs in the middle of the above two
data accesses.

16 years agoDo not attempt to access kernel_map in free(). It's a bad idea, and doubly
Matthew Dillon [Thu, 25 Sep 2003 23:44:07 +0000 (23:44 +0000)]
Do not attempt to access kernel_map in free().  It's a bad idea, and doubly
so because free() can be called through a remote IPI.  Instead the slab's
freelist hysteresis has been moved into malloc().

This fixes a number of reported panics.

16 years agoApply FreeBSD Security Advisory FreeBSD-SA-03:14.arp. Fix DOS crash due
Matthew Dillon [Thu, 25 Sep 2003 02:22:23 +0000 (02:22 +0000)]
Apply FreeBSD Security Advisory FreeBSD-SA-03:14.arp.  Fix DOS crash due
to arp starvation.

16 years agoCleanup td_wmesg after a tsleep completes for easier debugging.
Matthew Dillon [Thu, 25 Sep 2003 01:47:56 +0000 (01:47 +0000)]
Cleanup td_wmesg after a tsleep completes for easier debugging.

16 years agooops, remove some namecache leakage that is not ready for prime time yet.
Matthew Dillon [Wed, 24 Sep 2003 18:38:51 +0000 (18:38 +0000)]
oops, remove some namecache leakage that is not ready for prime time yet.

16 years agoClean up thread priority and critical section handling during boot. The
Matthew Dillon [Wed, 24 Sep 2003 18:37:54 +0000 (18:37 +0000)]
Clean up thread priority and critical section handling during boot.  The
initial kernel threads (e.g. thread0/proc0) had a priority lower then userland!
Default them to the minimum kernel thread priority.

Thread0 was also unnecessarily left in a critical section, which prevented
certain device probes, such as the APIC 8254 timer test code, from working.

16 years ago Looks like we can't have comments on the same
David Rhodus [Wed, 24 Sep 2003 04:39:46 +0000 (04:39 +0000)]
Looks like we can't have comments on the same
lines that are being parsed.

16 years agoForgot another one.
David Rhodus [Wed, 24 Sep 2003 03:51:59 +0000 (03:51 +0000)]
Forgot another one.

16 years ago* Finish up last commit.
David Rhodus [Wed, 24 Sep 2003 03:46:00 +0000 (03:46 +0000)]
* Finish up last commit.

16 years ago* Intel ACPI 20030228 distribution with local DragonFly changes.
David Rhodus [Wed, 24 Sep 2003 03:32:17 +0000 (03:32 +0000)]
*  Intel ACPI 20030228 distribution with local DragonFly changes.

*  OSPM ACPI driver.  Note that this driver does not include
   support for PCI interrupt routing or enumeration of ISA bridges or
   Host to PCI bridges.  While functional on some machines, this driver
   should be considered experimental and should be tested prior to being
   deployed in a production environment.

Original work done by John Baldwin
  Sponsored by:   The Weather Channel

16 years agonamecache work stage 1: namespace cleanups. Add a NAMEI_ prefix to
Matthew Dillon [Tue, 23 Sep 2003 05:03:54 +0000 (05:03 +0000)]
namecache work stage 1: namespace cleanups.  Add a NAMEI_ prefix to
CREATE, LOOKUP, DELETE, and RENAME.  Add a CNP_ prefix too all the name
lookup flags (nd_flags) e.g. ISDOTDOT->CNP_ISDOTDOT.

16 years agoAdd notation on the alignment requirement for the twe driver.
Matthew Dillon [Mon, 22 Sep 2003 21:45:44 +0000 (21:45 +0000)]
Add notation on the alignment requirement for the twe driver.

16 years agoThe twe driver requires all requests, including non-data requests, to be
Matthew Dillon [Mon, 22 Sep 2003 21:45:22 +0000 (21:45 +0000)]
The twe driver requires all requests, including non-data requests, to be
512-byte aligned.  The old malloc() code only did this incidentally.  We
have to explicitly size the request to a power-of-2 to get the required
alignment out of the slab allocator.

Report-by: David Rhodus <drhodus@catpa.com>
16 years agoFor performance reasons, kernel sends should not be subject to sockbuf
Jeffrey Hsu [Mon, 22 Sep 2003 20:04:33 +0000 (20:04 +0000)]
For performance reasons, kernel sends should not be subject to sockbuf
limit checks.  This revert FreeBSD rev 1.111.

16 years ago* de-__P()
David Rhodus [Sun, 21 Sep 2003 04:27:16 +0000 (04:27 +0000)]
* de-__P()

16 years ago* de- __P()
David Rhodus [Sun, 21 Sep 2003 04:18:34 +0000 (04:18 +0000)]
* de- __P()

16 years ago* de- __P()
David Rhodus [Sun, 21 Sep 2003 04:13:50 +0000 (04:13 +0000)]
* de- __P()

16 years agoFix IPFW2 build.
Hiten Pandya [Sat, 20 Sep 2003 15:17:45 +0000 (15:17 +0000)]
Fix IPFW2 build.

Submitted by: qhwt@myrealbox.com

16 years agoSeparate all of the send{to,msg} and recv{from,msg} syscalls and create
David P. Reese, Jr. [Fri, 19 Sep 2003 08:02:27 +0000 (08:02 +0000)]
Separate all of the send{to,msg} and recv{from,msg} syscalls and create
kern_sendmsg() and kern_recvmsg().  The functions sendit() and recvit()
are now no more.

Rewrite the related legacy syscalls and place them in the 43bsd emulation
directory.  Also move the definition of omsghdr to the emulation directory.

16 years agoImport prebinding code into DragonFly, based on Matthew N. Dodd's
Matthew Dillon [Thu, 18 Sep 2003 21:23:06 +0000 (21:23 +0000)]
Import prebinding code into DragonFly, based on Matthew N. Dodd's
patch for FreeBSD-5.

Submitted-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Minor-Security-Additions-by: dillon
16 years agoOptimize out an unneeded bzero().
Jeffrey Hsu [Thu, 18 Sep 2003 20:05:00 +0000 (20:05 +0000)]
Optimize out an unneeded bzero().

16 years agoReset the retransmit counter when setting the timer on a failed
Jeffrey Hsu [Thu, 18 Sep 2003 18:32:55 +0000 (18:32 +0000)]
Reset the retransmit counter when setting the timer on a failed
ip_output().  This prevents ENOBUFS errors from later inadvertently
timing out a connection prematurely.

Switch over to the persist timer while we're at it.

Problem reported by: Jayanth Vijayaraghavan <jayanth@yahoo-inc.com>
Obtained from: BSD/OS

16 years agoAdd the linux(4) manual page.
Hiten Pandya [Wed, 17 Sep 2003 23:08:13 +0000 (23:08 +0000)]
Add the linux(4) manual page.

Obtained from:    FreeBSD

16 years agoCorrect address parsing bug that is believed to be remotely exploitable.
David Rhodus [Wed, 17 Sep 2003 15:58:48 +0000 (15:58 +0000)]
Correct address parsing bug that is believed to be remotely exploitable.

16 years agoClean up.
David Rhodus [Wed, 17 Sep 2003 02:07:42 +0000 (02:07 +0000)]
Clean up.

s/^$/\n\/g inside of strings

16 years agoAdditional ssh patches relating to the same fatal() cleanup issue. They
Matthew Dillon [Wed, 17 Sep 2003 02:01:05 +0000 (02:01 +0000)]
Additional ssh patches relating to the same fatal() cleanup issue.  They
should just fix 'fatal' to not try to clean things up but, oh well.  This
is a slightly modified security fix from 3.7.1.

16 years agoFix a DIAGNOSTIC check in the heavy-weight switch code. A thread's process is
Matthew Dillon [Tue, 16 Sep 2003 20:03:35 +0000 (20:03 +0000)]
Fix a DIAGNOSTIC check in the heavy-weight switch code.  A thread's process is
normally in the SRUN state but can also be preempted while moving into
the SZOMB (zombie) state.

Report-by: "David P. Reese, Jr." <daver@gomerbud.com>
16 years agoLeftover netisr consolidation cleanups.
Jeffrey Hsu [Tue, 16 Sep 2003 18:05:17 +0000 (18:05 +0000)]
Leftover netisr consolidation cleanups.

Submitted by: hmp

16 years agoAdditional comments: ssh may attempt to zero and free the buffer from
Matthew Dillon [Tue, 16 Sep 2003 16:59:41 +0000 (16:59 +0000)]
Additional comments: ssh may attempt to zero and free the buffer from
fatal().  The incorrect buffer size at the time fatal() is called will
cause it to zero an area larger then has actually been allocated.  Since
meta-data is not inline with the allocation on FreeBSD (and hence DragonFly)
systems it is believed that the worst that can happen is a crash.  On linux
systems, however, it may be possible to exploit the flaw to gain elevated
privs.

16 years agoupdate version to match FreeBSD after buffer security fix.
Matthew Dillon [Tue, 16 Sep 2003 16:46:28 +0000 (16:46 +0000)]
update version to match FreeBSD after buffer security fix.

16 years ago Do not record expanded size before attempting to reallocate
David Rhodus [Tue, 16 Sep 2003 16:12:00 +0000 (16:12 +0000)]
 Do not record expanded size before attempting to reallocate
 associated memory.

16 years agoLeftover netisr consolidation cleanups.
Jeffrey Hsu [Tue, 16 Sep 2003 09:14:40 +0000 (09:14 +0000)]
Leftover netisr consolidation cleanups.

16 years agoLeftover netisr consolidation cleanups.
Jeffrey Hsu [Tue, 16 Sep 2003 06:25:35 +0000 (06:25 +0000)]
Leftover netisr consolidation cleanups.

16 years agoLeftover netisr consolidation cleanups.
Jeffrey Hsu [Tue, 16 Sep 2003 05:03:13 +0000 (05:03 +0000)]
Leftover netisr consolidation cleanups.

16 years agoAdd missing interface queue.
Jeffrey Hsu [Tue, 16 Sep 2003 01:58:00 +0000 (01:58 +0000)]
Add missing interface queue.

16 years agoCentralize if queue handling.
Jeffrey Hsu [Mon, 15 Sep 2003 23:38:15 +0000 (23:38 +0000)]
Centralize if queue handling.

Original patch against FreeBSD submitted by Jonathan Lemon.
Reviewed by Matt Dillon.

16 years agoPermanently fix the 'allocating low physmem in early boot' problem which
Matthew Dillon [Sun, 14 Sep 2003 21:14:53 +0000 (21:14 +0000)]
Permanently fix the 'allocating low physmem in early boot' problem which
can prevent device drivers from attaching ISA DMAable memory.  New pages
are added bottom-up, alternating between the head and the tail of the
VM page free list, so both normal and zero'd-page requests allocate
free pages with higher physical memory addresses first.  This allows
contigmalloc*() to locate free memory at lower physical addresses.

16 years agoRemove unused thread pointers.
Matthew Dillon [Sun, 14 Sep 2003 16:38:48 +0000 (16:38 +0000)]
Remove unused thread pointers.

16 years agoChange argument from proc to td.
Matthew Dillon [Sun, 14 Sep 2003 16:35:58 +0000 (16:35 +0000)]
Change argument from proc to td.

16 years agoCleanup. Remove unused variable.
Matthew Dillon [Sat, 13 Sep 2003 18:35:20 +0000 (18:35 +0000)]
Cleanup.  Remove unused variable.

16 years agoNon-semantic changing cleanups:
Jeffrey Hsu [Fri, 12 Sep 2003 12:26:04 +0000 (12:26 +0000)]
Non-semantic changing cleanups:
  remove used variable
  remove unneeded splnets
  use a stack variable instead of dynamically allocating it.

Request room for one more syncache entry to guarantee
successful allocation later.

Consulted with:  Jonathan Lemon <jlemon@flugsvamp.com>
Tested by:  drhodus

16 years agoCreate an emulation/43bsd directory and move the recently modified
David P. Reese, Jr. [Fri, 12 Sep 2003 00:43:31 +0000 (00:43 +0000)]
Create an emulation/43bsd directory and move the recently modified
compatibility syscalls there. Any future work on the COMPAT_43 code
should be split from the rest of the kernel and moved here.

Everything in the kernel that explicity uses the osockaddr structure
has been modified to include "emulation/43bsd/43bsd_socket.h".

There was one case where struct osockaddr was used in userland,
talk/talkd.  This commit has a temporary fix for talk/talkd.

16 years agoallow this to compile
Robert Garrett [Wed, 10 Sep 2003 22:45:50 +0000 (22:45 +0000)]
allow this to compile
From Joerg Sonnenbergh

16 years agoThe first a bug in pax and should be commited to FBSD, too.
Robert Garrett [Wed, 10 Sep 2003 22:43:54 +0000 (22:43 +0000)]
The first a bug in pax and should be commited to FBSD, too.
Further info in OpenBSD's system/3455.

From: Joerg Sonnenberg

16 years agoThe second fixes a dependency problem if compiling kernels
Robert Garrett [Wed, 10 Sep 2003 21:35:42 +0000 (21:35 +0000)]
The second fixes a dependency problem if compiling kernels
with ppp after "make depend".

from Joerg Sonnenberger

16 years agoAdd a cvsup tag, cvs-dfports
Matthew Dillon [Tue, 9 Sep 2003 17:02:07 +0000 (17:02 +0000)]
Add a cvsup tag, cvs-dfports

16 years agorename dport -> dfport
Matthew Dillon [Tue, 9 Sep 2003 16:59:26 +0000 (16:59 +0000)]
rename dport -> dfport

16 years agorename /usr/dports to /usr/dfports. Includes some CVS surgery.
Matthew Dillon [Tue, 9 Sep 2003 16:49:31 +0000 (16:49 +0000)]
rename /usr/dports to /usr/dfports.  Includes some CVS surgery.

16 years agoLinux emulation has been working well for a while now, remove notice.
Jeroen Ruigrok/asmodai [Tue, 9 Sep 2003 05:40:58 +0000 (05:40 +0000)]
Linux emulation has been working well for a while now, remove notice.

16 years agoAdd UPDATING note on /usr/dports
Matthew Dillon [Mon, 8 Sep 2003 23:50:34 +0000 (23:50 +0000)]
Add UPDATING note on /usr/dports

16 years agoadd relpath to the build Makefile
Matthew Dillon [Mon, 8 Sep 2003 23:47:21 +0000 (23:47 +0000)]
add relpath to the build Makefile

16 years agoAdd bsd.dport.mk, which Makefile's in /usr/dports will use instead of
Matthew Dillon [Mon, 8 Sep 2003 23:39:23 +0000 (23:39 +0000)]
Add bsd.dport.mk, which Makefile's in /usr/dports will use instead of
bsd.port.mk.  Modify bsd.port.mk to check for the existance of the same
port in /usr/dports and, if found, to cd into the dport and run the target
there.

NOTE: /usr/bin/relpath is required (see /usr/src/usr.bin/relpath).

16 years agoAdd the relpath utility which /usr/share/mk/bsd.port.mk will use to
Matthew Dillon [Mon, 8 Sep 2003 23:38:44 +0000 (23:38 +0000)]
Add the relpath utility which /usr/share/mk/bsd.port.mk will use to
figure out the relative port path so it can check for an override in
/usr/dports/

16 years agoCleanup some broken #include's for VESA.
Matthew Dillon [Mon, 8 Sep 2003 18:36:04 +0000 (18:36 +0000)]
Cleanup some broken #include's for VESA.

16 years agoAdd DIRECTIO to LINT
Matthew Dillon [Mon, 8 Sep 2003 18:35:44 +0000 (18:35 +0000)]
Add DIRECTIO to LINT

16 years agoConvert DIRECTIO code to DragonFly.
Matthew Dillon [Mon, 8 Sep 2003 18:26:39 +0000 (18:26 +0000)]
Convert DIRECTIO code to DragonFly.

16 years agoMake the linux emulator use the newly split listen(), getsockname(),
David P. Reese, Jr. [Sun, 7 Sep 2003 21:40:58 +0000 (21:40 +0000)]
Make the linux emulator use the newly split listen(), getsockname(),
getpeername(), and socketpair() syscalls.

Add a linux_copyout_sockaddr() function to make translation and copyout
of sockaddr structures painless.

16 years agoChange the split syscall naming convention from syscall1() to kern_syscall()
David P. Reese, Jr. [Sun, 7 Sep 2003 20:36:11 +0000 (20:36 +0000)]
Change the split syscall naming convention from syscall1() to kern_syscall()
while moving the prototypes from sys/syscall1.h to sys/kern_syscall.h.

Split the listen(), getsockname(), getpeername(), and socketpair() syscalls.

16 years agoMake sure a DiskOnKey never sends a sync_cache. This fixes the error
Jeroen Ruigrok/asmodai [Sun, 7 Sep 2003 17:43:12 +0000 (17:43 +0000)]
Make sure a DiskOnKey never sends a sync_cache.  This fixes the error
message when using my DiskOnKey.

Incidentally it also fixes FreeBSD/PR: 47793

16 years agoMdoc cleanup of section 4:
Hiten Pandya [Sun, 7 Sep 2003 17:04:00 +0000 (17:04 +0000)]
Mdoc cleanup of section 4:

- Remove hard sentence breaks

- Order sections per mdoc(7) manual page

- Correct spellings

16 years agoMake bind1() and accept1() non-static for linux emulator use.
Matthew Dillon [Sat, 6 Sep 2003 22:45:08 +0000 (22:45 +0000)]
Make bind1() and accept1() non-static for linux emulator use.
Matt: added fix to long standing bug in getsockaddr() that could allocate
too little space and overrun the structure.

Submitted-by: "David P. Reese Jr." <daver@gomerbud.com>
16 years agoAdd NETNS to the LINT config file.
David Rhodus [Sat, 6 Sep 2003 21:56:30 +0000 (21:56 +0000)]
Add NETNS to the LINT config file.

16 years agoInital cleanup work to make NETNS compile again
David Rhodus [Sat, 6 Sep 2003 21:51:12 +0000 (21:51 +0000)]
Inital cleanup work to make NETNS compile again
before someone tries to remove it. 8-)
Also fix a few small bugs and try to make
the code do the right thing.

16 years agoAdjust linux emulation calls for bind and listen to use the new broken-out
Matthew Dillon [Sat, 6 Sep 2003 20:36:42 +0000 (20:36 +0000)]
Adjust linux emulation calls for bind and listen to use the new broken-out
kernel-available syscalls rather then simulating BSD syscalls.

Submitted-by: "David P. Reese Jr." <daver@gomerbud.com>
16 years agoMake bind1() and accept1() non-static for linux emulator use.
Matthew Dillon [Sat, 6 Sep 2003 20:34:35 +0000 (20:34 +0000)]
Make bind1() and accept1() non-static for linux emulator use.
Matt: added fix to long standing bug in getsockaddr() that could allocate
too little space and overrun the structure.

Submitted-by: "David P. Reese Jr." <daver@gomerbud.com>
16 years agoAdd MLINK mount_ufs(8) to mount(8).
Hiten Pandya [Sat, 6 Sep 2003 18:27:57 +0000 (18:27 +0000)]
Add MLINK mount_ufs(8) to mount(8).

16 years agoGet rid of __P, the days of K&R support are long past.
Jeroen Ruigrok/asmodai [Sat, 6 Sep 2003 08:19:16 +0000 (08:19 +0000)]
Get rid of __P, the days of K&R support are long past.

16 years agoRemove 'register' keyword while I am here.
Jeroen Ruigrok/asmodai [Sat, 6 Sep 2003 08:10:46 +0000 (08:10 +0000)]
Remove 'register' keyword while I am here.
The days that we could make better guesses about its use than a compiler are
long past us.

Add DragonFly ID to getsubopt.c, heapsort.c, and radixsort.c.

16 years agoFix dependency that long is always 32 bits. This does not work on (I)LP64
Jeroen Ruigrok/asmodai [Sat, 6 Sep 2003 08:00:07 +0000 (08:00 +0000)]
Fix dependency that long is always 32 bits.  This does not work on (I)LP64
platforms.

This works for Itanium and i386, but on x86-64 and sparc64 it gives corrupted
values.

Submitted by: Hiroki Sato, FreeBSD PR 56502

16 years agoIntroduce the DDB_TRACE kernel config option to automatically print a stack
Jeffrey Hsu [Fri, 5 Sep 2003 17:46:54 +0000 (17:46 +0000)]
Introduce the DDB_TRACE kernel config option to automatically print a stack
trace on panic.  Use this in conjuction with DDB_UNATTENDED on machines
with a serial console to get a stack trace and immediately reboot the
machine on a panic.

Merged from FreeBSD-current.

16 years agoAdd a few more build options.
David Rhodus [Fri, 5 Sep 2003 17:44:58 +0000 (17:44 +0000)]
Add a few more build options.

16 years agoOK, fix build, while I am there, I will get some screw for my head
Hiten Pandya [Thu, 4 Sep 2003 23:46:59 +0000 (23:46 +0000)]
OK, fix build, while I am there, I will get some screw for my head
as well...

Reported by: DragonFly BuildBox

Reminded by: David Rhodus

16 years agoFix logic, flow and comments for previous (rev 1.9) change.
Hiten Pandya [Thu, 4 Sep 2003 19:42:12 +0000 (19:42 +0000)]
Fix logic, flow and comments for previous (rev 1.9) change.

Reminded by: Bruce Evans and Alfred Perlstein

16 years agoChange my e-mail.
Hiten Pandya [Thu, 4 Sep 2003 18:56:35 +0000 (18:56 +0000)]
Change my e-mail.

16 years agoI am not certain but I believe this is what was intended, this I do know
Robert Garrett [Wed, 3 Sep 2003 23:51:48 +0000 (23:51 +0000)]
I am not certain but I believe this is what was intended, this I do know
it fixes the generic kernel build.

basically changed

-       events = ap_events &
+       events = ap->a_events &