]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoUnifdef -UDEBUG on the CCD driver. The debugging is mostly useless
phk [Sun, 19 Jan 2003 14:35:38 +0000 (14:35 +0000)]
Unifdef -UDEBUG on the CCD driver.  The debugging is mostly useless
and can be added back selectively, should anybody start to interest
themselves for the internal workings of ccd.

This commit will make the diffs for the following commits much more
readable.

21 years agoAdd support for the ServerWorks CSB6.
sos [Sun, 19 Jan 2003 13:03:20 +0000 (13:03 +0000)]
Add support for the ServerWorks CSB6.
The support for the 3'rd channel is only experimental.

21 years agoKill initialisation and shadow warnings. Half-hearted cleanup (e.g. only the
jmallett [Sun, 19 Jan 2003 12:13:47 +0000 (12:13 +0000)]
Kill initialisation and shadow warnings.  Half-hearted cleanup (e.g. only the
more important ones) of format warnings.  XXX Lots of this assumes int32 can
be printed with %d.  Yuck.

Reviewed by: bde

21 years ago#ifdef NO_GEOM these files entirely. When NO_GEOM is removed as an
phk [Sun, 19 Jan 2003 11:51:35 +0000 (11:51 +0000)]
#ifdef NO_GEOM these files entirely.   When NO_GEOM is removed as an
option the files can be removed.

21 years agoRemove the last stray NO_GEOM option in our example kernel config files.
phk [Sun, 19 Jan 2003 11:50:45 +0000 (11:50 +0000)]
Remove the last stray NO_GEOM option in our example kernel config files.

21 years agoFix the 48bit access support for the older Promise 66/100 controllers, the
sos [Sun, 19 Jan 2003 11:47:32 +0000 (11:47 +0000)]
Fix the 48bit access support for the older Promise 66/100 controllers, the
first attempt was wrong and could cause r/w timeouts.

Add yet another Promise PCI id.

21 years agoRemove unnecessary locking of Giant around nanotime() in clock_gettime().
tjr [Sun, 19 Jan 2003 11:28:22 +0000 (11:28 +0000)]
Remove unnecessary locking of Giant around nanotime() in clock_gettime().

21 years agoMark more code #ifdef NODEVFS
phk [Sun, 19 Jan 2003 11:26:13 +0000 (11:26 +0000)]
Mark more code #ifdef NODEVFS

21 years agoOriginally when DEVFS was added, a global variable "devfs_present"
phk [Sun, 19 Jan 2003 11:03:07 +0000 (11:03 +0000)]
Originally when DEVFS was added, a global variable "devfs_present"
was used to control code which were conditional on DEVFS' precense
since this avoided the need for large-scale source pollution with
#include "opt_geom.h"

Now that we approach making DEVFS standard, replace these tests
with an #ifdef to facilitate mechanical removal once DEVFS becomes
non-optional.

No functional change by this commit.

21 years agoAdd support to marshal a filesystem to a newfs(8) command that could be used
jmallett [Sun, 19 Jan 2003 10:25:11 +0000 (10:25 +0000)]
Add support to marshal a filesystem to a newfs(8) command that could be used
to create it.  A small number of options are not marshalled as they are things
it would be dumb to spit out, as they are used by internal computations, and
newfs may change them, or they may not be directly apparent.

21 years agoWhen we use DEVFS, we don't need the /dev/tty pseudo-driver to do
phk [Sun, 19 Jan 2003 10:23:47 +0000 (10:23 +0000)]
When we use DEVFS, we don't need the /dev/tty pseudo-driver to do
more than return ENXIO from its open routine, so most of this file
is unneeded.

A straight #ifdef'ing would look quite messy, and make the file
quite unreadable, so instead I have simply added the DEVFS version
of the file at the top, protected by #ifndef NODEVFS.

Once we have removed NODEVFS option, we can retain 86 the 86 lines at
the top and drop the other 287 lines.

21 years agoMove NODEVFS and NO_GEOM to opt_global.h.
phk [Sun, 19 Jan 2003 10:02:47 +0000 (10:02 +0000)]
Move NODEVFS and NO_GEOM to opt_global.h.

This allows me to mark code which they control with #ifdef without
polluting files with #includes of opt_devfs.h and opt_geom.h.

Once these two options are removed, this will allow mechanical removal
of the bits their removal makes obsolete.

21 years agofix ioctl handling for setting wep keys
sam [Sun, 19 Jan 2003 07:08:03 +0000 (07:08 +0000)]
fix ioctl handling for setting wep keys

21 years agouseracc() is mpsafe so we only need to hold Giant
alfred [Sun, 19 Jan 2003 06:51:10 +0000 (06:51 +0000)]
useracc() is mpsafe so we only need to hold Giant
over the call to nanosleep1()

Pointed out by: tjr

21 years agoo Move the contents of <machine/floatingpoint.h> over to
marcel [Sun, 19 Jan 2003 06:01:33 +0000 (06:01 +0000)]
o  Move the contents of <machine/floatingpoint.h> over to
   <machine/ieeefp.h> where it belongs.
o  Remove the i386 specific inclusion of <machine/floatingpoint.h>
   from <ieeefp.h>, now that including <machine/ieeefp.h> is enough
   for all architectures.
o  Allow <machine/ieeefp.h> to inline the functions exposed by the
   headers by checking for _IEEEFP_INLINED_ in the MI header. When
   defined, prototypes are not given and it is assumed that the MD
   headers, when inlining only a subset of the functions provide
   prototypes for the functions not being inlined.

Based on patch from: Terry Lambert <tlambert2@mindspring.com>
Tested with: make release.

21 years agoLet libufs handle all the work with regard to going through a list of cgs, now.
jmallett [Sun, 19 Jan 2003 05:51:36 +0000 (05:51 +0000)]
Let libufs handle all the work with regard to going through a list of cgs, now.

21 years agoStore not only the current cylinder group in the series (i.e. next that needs
jmallett [Sun, 19 Jan 2003 05:46:23 +0000 (05:46 +0000)]
Store not only the current cylinder group in the series (i.e. next that needs
to be read in) but also the last cylinder group in the series (i.e. what is
stored in the structure).

21 years agoComplete the support of the on-board xl(4) on nVidia nForce2 mobo's.
obrien [Sun, 19 Jan 2003 04:47:54 +0000 (04:47 +0000)]
Complete the support of the on-board xl(4) on nVidia nForce2 mobo's.

Submitted by: Mikko S. Hyvarinen <morphy@morphy.iki.fi>

21 years agoUse checksum-recursive rather than fetch-recursive-list in PREFETCHDISTFILES
obrien [Sun, 19 Jan 2003 04:31:53 +0000 (04:31 +0000)]
Use checksum-recursive rather than fetch-recursive-list in PREFETCHDISTFILES
so as to catch errors ASAP rather than later between the ports cvs checkout
and docs cvs checkout.  If a distfile doesn't checksum OK, it is very
hard to restart the release with "make rerelease" as that target assumes
all the cvs checkout's happened OK, and if that is not the case the cvs
update that is attempted fails..

21 years agoAdd (unsigned char) cast to ctype macros
ache [Sun, 19 Jan 2003 03:05:01 +0000 (03:05 +0000)]
Add (unsigned char) cast to ctype macros
Handle NULL return from malloc and strdup

21 years agoRemove miidevs.h and generate it from miidevs at compile time.
obrien [Sun, 19 Jan 2003 02:59:34 +0000 (02:59 +0000)]
Remove miidevs.h and generate it from miidevs at compile time.
The devlist2h.awk tool to do this has been repocopied to sys/tools/.

21 years agoMake xl sparc64 too.
jake [Sun, 19 Jan 2003 02:54:10 +0000 (02:54 +0000)]
Make xl sparc64 too.

21 years agoKill whitespace at EOL.
mtm [Sun, 19 Jan 2003 01:49:31 +0000 (01:49 +0000)]
Kill whitespace at EOL.

Approved by: markm (mentor)
Noticed by:  ru

21 years agoDon't crash when utilities are dumb and try to read less than the disk block
jmallett [Sun, 19 Jan 2003 01:39:53 +0000 (01:39 +0000)]
Don't crash when utilities are dumb and try to read less than the disk block
size (dumpfs may try to read the cylinder size (or is is sector size?) by way
of bread).  Prevents a bounds error.

21 years agoUse libufs to read one cylinder group from the disk at a time.
jmallett [Sun, 19 Jan 2003 01:31:49 +0000 (01:31 +0000)]
Use libufs to read one cylinder group from the disk at a time.

21 years agoAdd facility to read one, or a string of, cylinger groups.
jmallett [Sun, 19 Jan 2003 01:31:26 +0000 (01:31 +0000)]
Add facility to read one, or a string of, cylinger groups.

21 years agoSync with NetBSD -- sl_add() now returns an int.
obrien [Sun, 19 Jan 2003 01:16:01 +0000 (01:16 +0000)]
Sync with NetBSD -- sl_add() now returns an int.

21 years agoSimplify the main function now that libufs will hunt for the disk for us.
jmallett [Sun, 19 Jan 2003 01:02:25 +0000 (01:02 +0000)]
Simplify the main function now that libufs will hunt for the disk for us.

21 years agoHunt for a disk to operate on, if we're passed a partition mountpoint, etc.
jmallett [Sun, 19 Jan 2003 00:43:17 +0000 (00:43 +0000)]
Hunt for a disk to operate on, if we're passed a partition mountpoint, etc.

Concept reviewed by: phk

21 years agoFix comment about what we do when there are no listeners.
imp [Sun, 19 Jan 2003 00:34:17 +0000 (00:34 +0000)]
Fix comment about what we do when there are no listeners.

21 years agoPer-variable\ entry headers, to allow the 'ps -otime -otime=FOO' or similar
jmallett [Sun, 19 Jan 2003 00:31:16 +0000 (00:31 +0000)]
Per-variable\ entry headers, to allow the 'ps -otime -otime=FOO' or similar
case to do the right thing and affect exactly one column.  This is consistent
with GNU ps(1) in BSD mode, and POLA.

21 years agoMake the xl driver work on sparc64:
tmm [Sun, 19 Jan 2003 00:23:59 +0000 (00:23 +0000)]
Make the xl driver work on sparc64:
- Add conversions to/from little endian for fields that the NIC accesses
  by DMA as required.
- Add some bus_dmamap_sync() calls, and correct some existing ones.
- Read the receiver information from the EEPROM in an endian-neutral
  manner.
- Load all RX and TX descriptors in a single DMA map up front, and
  get the bus addresses of individual descriptors by address arithmetic;
  this fixes multiple use of the descriptor tags, which would have
  undesired effects.
It seems that xl still does not work on e250 boxen, for reasons which
are not clear yet.

Reviewed by: mux

21 years agoWhen inserting a non-user-specified (e.g. not via -o or -O) format, don't dupe
jmallett [Sun, 19 Jan 2003 00:22:34 +0000 (00:22 +0000)]
When inserting a non-user-specified (e.g. not via -o or -O) format, don't dupe
one that is already there.  This is consistent with GNU ps(1)'s BSD mode, and
POLA.

Reported by: Andy Farkas <andyf@speednet.com.au>
Tested by: Andy Farkas <andyf@speednet.com.au>

21 years agoUse __FBSDID.
obrien [Sun, 19 Jan 2003 00:17:03 +0000 (00:17 +0000)]
Use __FBSDID.

21 years agoProtect against multiple inclusions.
obrien [Sat, 18 Jan 2003 23:43:12 +0000 (23:43 +0000)]
Protect against multiple inclusions.

21 years agoWe don't need our own personal definition of __CONCAT.
obrien [Sat, 18 Jan 2003 23:26:04 +0000 (23:26 +0000)]
We don't need our own personal definition of __CONCAT.

21 years agoSimplify the Makefile by just using our standard PROG variable.
obrien [Sat, 18 Jan 2003 23:09:56 +0000 (23:09 +0000)]
Simplify the Makefile by just using our standard PROG variable.

21 years agoNote that Wisecom's PCI adapter works.
tom [Sat, 18 Jan 2003 21:47:48 +0000 (21:47 +0000)]
Note that Wisecom's PCI adapter works.

21 years agoRev 1.16 renamed VM_METER to VM_TOTAL. This is breaking 3rd-party apps.
obrien [Sat, 18 Jan 2003 21:14:02 +0000 (21:14 +0000)]
Rev 1.16 renamed VM_METER to VM_TOTAL.  This is breaking 3rd-party apps.
So add a VM_METER compat define.

Submitted by: Andy Fawcett <andy@athame.co.uk>

21 years agoAdd a missing word
ue [Sat, 18 Jan 2003 20:03:48 +0000 (20:03 +0000)]
Add a missing word

21 years agoDocument lock order reversals possible when calling allocation functions
alfred [Sat, 18 Jan 2003 19:51:52 +0000 (19:51 +0000)]
Document lock order reversals possible when calling allocation functions
with vnode interlocks held.

Emphasize that users need to be careful with malloc flags versus mbuf
flags.

Remove stale portion in vnode.9 about v_tag.  We don't have it anylonger.

Submitted by: Hiten Pandya <hiten@unixdaemons.com>

21 years agoOptimize away call to bzero() in the common case by directly checking
hsu [Sat, 18 Jan 2003 19:03:26 +0000 (19:03 +0000)]
Optimize away call to bzero() in the common case by directly checking
if a connection has any cached TAO information.

21 years agoDon't try to free() map in bus_dmamap_destroy() when it's
mux [Sat, 18 Jan 2003 18:33:56 +0000 (18:33 +0000)]
Don't try to free() map in bus_dmamap_destroy() when it's
set to &nobounce_dmamap.  A similar bug was fixed by wpaul
in revision 1.19 of sys/alpha/alpha/busdma_machdep.c.

21 years agoAllow French releases notes to be build correctly
gioria [Sat, 18 Jan 2003 18:03:01 +0000 (18:03 +0000)]
Allow French releases notes to be build correctly

Hat To:  Hiroki SATO  <hrs@eos.ocn.ne.jp>

21 years agoMFbed: translation updates and fixes
ue [Sat, 18 Jan 2003 16:42:18 +0000 (16:42 +0000)]
MFbed: translation updates and fixes
early-adopter/article.sgml: fixes only
errata/article.sgml: 1.17 -> 1.18

21 years agoInline now trivial functions getccdbuf() and putccdbuf().
phk [Sat, 18 Jan 2003 12:23:49 +0000 (12:23 +0000)]
Inline now trivial functions getccdbuf() and putccdbuf().
Fix another trivial memory-leak.

21 years agoDon't truncate lines if an error occurred.
des [Sat, 18 Jan 2003 12:15:34 +0000 (12:15 +0000)]
Don't truncate lines if an error occurred.

21 years agoIndentation cleanup.
des [Sat, 18 Jan 2003 12:12:49 +0000 (12:12 +0000)]
Indentation cleanup.

21 years agoRemoved unnecessary includes and brought up to date with ata
grehan [Sat, 18 Jan 2003 11:46:50 +0000 (11:46 +0000)]
Removed unnecessary includes and brought up to date with ata
common code by adding lock functions.

21 years agoFix minor memory-leak.
phk [Sat, 18 Jan 2003 11:33:06 +0000 (11:33 +0000)]
Fix minor memory-leak.

21 years agoStub profile.h, required for userland builds.
grehan [Sat, 18 Jan 2003 11:31:58 +0000 (11:31 +0000)]
Stub profile.h, required for userland builds.

Approved by:  Benno

21 years ago<machine/ieee.h>, taken from sparc64
grehan [Sat, 18 Jan 2003 11:30:59 +0000 (11:30 +0000)]
<machine/ieee.h>, taken from sparc64

Approved by:  Benno

21 years agoFix bugs with operand ordering and unnecessary sync/eieio ops. Mostly
grehan [Sat, 18 Jan 2003 11:28:36 +0000 (11:28 +0000)]
Fix bugs with operand ordering and unnecessary sync/eieio ops. Mostly
obtained from Alpha atomic.h

Approved by:  Benno

21 years agoAllow the MD frame definition to be seen in. Required for truss/ptrace.
grehan [Sat, 18 Jan 2003 11:25:21 +0000 (11:25 +0000)]
Allow the MD frame definition to be seen in. Required for truss/ptrace.

Approved by:  Benno

21 years agoRAIDframe requires LONG_BIT
grehan [Sat, 18 Jan 2003 11:23:42 +0000 (11:23 +0000)]
RAIDframe requires LONG_BIT

Approved by:  Benno

21 years agoPrepended underscores to macro local vars, avoiding gcc "declaration
grehan [Sat, 18 Jan 2003 11:20:06 +0000 (11:20 +0000)]
Prepended underscores to macro local vars, avoiding gcc "declaration
shadows global" warning

Approved by:  benno

21 years agoChange definition of int64 to avoid gcc3.2.1 complaints. Taken from i386
grehan [Sat, 18 Jan 2003 11:18:42 +0000 (11:18 +0000)]
Change definition of int64 to avoid gcc3.2.1 complaints. Taken from i386

Approved by:  benno

21 years agoUse the M_CCD malloc bucket instead of M_DEVBUF.
phk [Sat, 18 Jan 2003 11:04:41 +0000 (11:04 +0000)]
Use the M_CCD malloc bucket instead of M_DEVBUF.
Don't keep a private freelist of a low number of trivially small structures.

21 years agoInline trivial function ccdintr() into its one caller ccdiodone().
phk [Sat, 18 Jan 2003 10:44:17 +0000 (10:44 +0000)]
Inline trivial function ccdintr() into its one caller ccdiodone().
Only call ccdfind() once in ccdiodone() and cache the result.

21 years agoFix two errorchecks to check for negative error returns.
phk [Sat, 18 Jan 2003 10:29:24 +0000 (10:29 +0000)]
Fix two errorchecks to check for negative error returns.

21 years agoSanitize the copyright section a bit: We do not need two copies of the
phk [Sat, 18 Jan 2003 10:08:27 +0000 (10:08 +0000)]
Sanitize the copyright section a bit:  We do not need two copies of the
four-clause BSD license in the file, one will do.

21 years agoRemove unneeded entries.
nyan [Sat, 18 Jan 2003 08:29:10 +0000 (08:29 +0000)]
Remove unneeded entries.

21 years agoFixed comment.
nyan [Sat, 18 Jan 2003 08:26:42 +0000 (08:26 +0000)]
Fixed comment.

21 years agoConsistentify output whitespace.
jmallett [Sat, 18 Jan 2003 06:29:15 +0000 (06:29 +0000)]
Consistentify output whitespace.

21 years agoMFCrypto: update RFC assigned telnet options (r1.9)
billf [Sat, 18 Jan 2003 06:13:57 +0000 (06:13 +0000)]
MFCrypto: update RFC assigned telnet options (r1.9)

21 years agoadd more RFC defined telnet options
billf [Sat, 18 Jan 2003 06:10:21 +0000 (06:10 +0000)]
add more RFC defined telnet options

Reviewed by: ps

21 years agoMake the debug messages, for when a script rolls its own start routine,
mtm [Sat, 18 Jan 2003 05:25:59 +0000 (05:25 +0000)]
Make the debug messages, for when a script rolls its own start routine,
more usefull. Currently it just says 'xxx_cmd'; whereas with this
change it will name the routine that's being run.

Approved by: markm (mentor)

21 years agoFix typo.
jmallett [Sat, 18 Jan 2003 05:06:07 +0000 (05:06 +0000)]
Fix typo.

21 years ago- Removed unecesary code.
mdodd [Sat, 18 Jan 2003 04:36:12 +0000 (04:36 +0000)]
- Removed unecesary code.
- Correct smapi32_new() asm (still doesn't work.)
- Attach to mainboard not isa.

21 years agoNuke dumb error reporting code, people can just use disk::d_error. Unify the
jmallett [Sat, 18 Jan 2003 04:22:14 +0000 (04:22 +0000)]
Nuke dumb error reporting code, people can just use disk::d_error.  Unify the
DEBUG and d_error initialisation into an ERROR macro, which can both trace and
set the d_error field.  Much a more meaningful thing, I should say.

21 years agoSimplify conditional.
jmallett [Sat, 18 Jan 2003 04:20:20 +0000 (04:20 +0000)]
Simplify conditional.

21 years agoRefer to the process label as proclabel, as there is a function called label,
jmallett [Sat, 18 Jan 2003 03:31:30 +0000 (03:31 +0000)]
Refer to the process label as proclabel, as there is a function called label,
and that's what these locals were called before.

21 years agoCaution programmers not to confuse M_DONTWAIT with M_NOWAIT. They
rwatson [Sat, 18 Jan 2003 03:25:40 +0000 (03:25 +0000)]
Caution programmers not to confuse M_DONTWAIT with M_NOWAIT.  They
are not the same.

Suggested by: Hiten Pandya <hiten@unixdaemons.com>

21 years agoMFp4: Add support for memory mapped UARTs, but don't add any devices
marcel [Sat, 18 Jan 2003 02:54:16 +0000 (02:54 +0000)]
MFp4: Add support for memory mapped UARTs, but don't add any devices
yet that depend on it because sio(4) needs support for it before it
can be used. There's no reason why zs(4) couldn't attach to puc(4)
in the (near?) future (in principle), so don't make memory mapped I/O
support in sio(4) a precondition for this change.

21 years agoIf we're going to build and install this on ia64, we might as well
marcel [Sat, 18 Jan 2003 02:33:49 +0000 (02:33 +0000)]
If we're going to build and install this on ia64, we might as well
teach it about ia64 specific section types, dynamic tags and machine
type. This is a mostly insignificant change given the amount of
work that this tool obviously needs...

21 years agoAdd BUFFALO LPC-CF-CLT(10Base-T Compact Flash Ether Card).
shiba [Sat, 18 Jan 2003 02:14:23 +0000 (02:14 +0000)]
Add BUFFALO LPC-CF-CLT(10Base-T Compact Flash Ether Card).

21 years agoRegen.
shiba [Sat, 18 Jan 2003 02:13:10 +0000 (02:13 +0000)]
Regen.

21 years agoAdd Accton EN2216.
shiba [Sat, 18 Jan 2003 01:14:48 +0000 (01:14 +0000)]
Add Accton EN2216.

21 years agoRegen.
shiba [Sat, 18 Jan 2003 01:14:01 +0000 (01:14 +0000)]
Regen.

21 years agoFix long-standing bug predating FreeBSD where calling connect() twice
hsu [Sat, 18 Jan 2003 01:10:55 +0000 (01:10 +0000)]
Fix long-standing bug predating FreeBSD where calling connect() twice
on a raw ip socket will crash the system with a null-dereference.

21 years agoFake up a struct componentname to pass to VOP_WHITEOUT instead of passing
tjr [Sat, 18 Jan 2003 01:01:20 +0000 (01:01 +0000)]
Fake up a struct componentname to pass to VOP_WHITEOUT instead of passing
NULL. union_whiteout() expects the componentname argument to be non-NULL.
Fixes a NULL dereference panic when an existing union mount becomes the
upper layer of a new union mount.

21 years agoRemove subr_diskslice.c and subr_diskmbr.c which I can see no traces off
phk [Fri, 17 Jan 2003 23:02:13 +0000 (23:02 +0000)]
Remove subr_diskslice.c and subr_diskmbr.c which I can see no traces off
a need for in the x86_64 files.  Not compile tested.

21 years agoRemove subr_diskslice.c and subr_diskmbr.c which I can find no trace of
phk [Fri, 17 Jan 2003 23:01:09 +0000 (23:01 +0000)]
Remove subr_diskslice.c and subr_diskmbr.c which I can find no trace of
why should be needed in the powerpc files.  Not compile tested.

21 years ago- Style fixes.
mdodd [Fri, 17 Jan 2003 22:58:32 +0000 (22:58 +0000)]
- Style fixes.
- llabs() -> qabs(); long long isn't valid for the kernel.

Submitted by:  bde

21 years agoia64 didn't need subr_diskslice.c and subr_diskmbr.c either.
phk [Fri, 17 Jan 2003 22:09:12 +0000 (22:09 +0000)]
ia64 didn't need subr_diskslice.c and subr_diskmbr.c either.

21 years agoWe do not need subr_diskslice.c and subr_diskmbr.c any more on alpha.
phk [Fri, 17 Jan 2003 20:02:46 +0000 (20:02 +0000)]
We do not need subr_diskslice.c and subr_diskmbr.c any more on alpha.

21 years agoMove alpha_fix_srm_checksum() from subr_diskmbr.c to subr_disklabel.c
phk [Fri, 17 Jan 2003 19:37:55 +0000 (19:37 +0000)]
Move alpha_fix_srm_checksum() from subr_diskmbr.c to subr_disklabel.c

21 years agoRemove the unused DSO_* options.
phk [Fri, 17 Jan 2003 19:36:14 +0000 (19:36 +0000)]
Remove the unused DSO_* options.

21 years agoDocument that listen() can return EINVAL now.
tmm [Fri, 17 Jan 2003 19:25:27 +0000 (19:25 +0000)]
Document that listen() can return EINVAL now.

21 years agoDisallow listen() on sockets which are in the SS_ISCONNECTED or
tmm [Fri, 17 Jan 2003 19:20:00 +0000 (19:20 +0000)]
Disallow listen() on sockets which are in the SS_ISCONNECTED or
SS_ISCONNECTING state, returning EINVAL (which is what POSIX mandates
in this case).
listen() on connected or connecting sockets would cause them to enter
a bad state; in the TCP case, this could cause sockets to go
catatonic or panics, depending on how the socket was connected.

Reviewed by: -net
MFC after: 2 weeks

21 years agoSparc64 does not need subr_diskslice.c and subr_mbr.c now.
phk [Fri, 17 Jan 2003 19:15:26 +0000 (19:15 +0000)]
Sparc64 does not need subr_diskslice.c and subr_mbr.c now.

21 years agoStyle fixes: brackets around the argument of return, and removal of
fanf [Fri, 17 Jan 2003 19:12:02 +0000 (19:12 +0000)]
Style fixes: brackets around the argument of return, and removal of
excess space.

Obtained from: OpenBSD

21 years agoAdd a necessary cast, because ptrdiff_t isn't necessarily the same as int.
fanf [Fri, 17 Jan 2003 19:10:18 +0000 (19:10 +0000)]
Add a necessary cast, because ptrdiff_t isn't necessarily the same as int.

Obtained from: OpenBSD

21 years agoMove dkmodpart() from subr_diskslice.c to subr_disklabel.c.
phk [Fri, 17 Jan 2003 19:05:58 +0000 (19:05 +0000)]
Move dkmodpart() from subr_diskslice.c to subr_disklabel.c.

21 years ago- Rename installFixupBin to installFixupBase to finish up the 'bin' to
jhb [Fri, 17 Jan 2003 19:05:32 +0000 (19:05 +0000)]
- Rename installFixupBin to installFixupBase to finish up the 'bin' to
  'base' dist rename.
- Rework struct dist to allow for different types of dists.  There are
  currently three types of dists: DT_TARBALL, the traditonal gzipped and
  split tar file; DT_PACKAGE, a package; and DT_SUBDIST, a meta-dist in
  the tree that has its own array of dists as its contents.  For example,
  the 'base' dist is a DT_TARBALL dist, the 'perl' dist is a DT_PACKAGE
  dist, and the 'src' dist is a DT_SUBDIST dist with its own dist table
  that contains 'sbase', 'ssys', etc.
- Add helper macros for defining array entries for the different types of
  dists to try and make the statically defined dist table in dist.c more
  readable.
- Split the logic to deal with a DT_TARBALL dist out of distExtract()
  and into its own distExtractTarball() function.  distExtract() now
  calls other functions to extract each dist.
- Tweak the percentage complete calculation in distExtractTarball() to
  do the multiply prior to the divide so it doesn't have to use floating
  point.
- Axe the installPackage() function along with the special handling for
  the perl and XFree86 dists in distExtractAll() since distExtract()
  handles package dists directly now.
- Add back in subdists for the X packages based on the split up packages
  that XFree86-4 uses that as closely map to the X dists we used with
  X 3.3.x.
- Lots of things like distSetX() and the X dist masks are no longer
  #ifndef X_AS_PKG since we use them in both cases now.
- Make the entire installFixupXFree() function #ifndef X_AS_PKG, we only
  call it in that case anyways, and it's not suitable for the X_AS_PKG
  case.
- Add in X dist menus for the X_AS_PKG case.

Approved by: re

21 years agoAdd 'vlan' as a network device.
jhb [Fri, 17 Jan 2003 18:51:21 +0000 (18:51 +0000)]
Add 'vlan' as a network device.

Tested by: dcs

21 years agoAdd Allied Telesis WR211PCM.
shiba [Fri, 17 Jan 2003 18:50:00 +0000 (18:50 +0000)]
Add Allied Telesis WR211PCM.

21 years agoAdd Allied Telesis WR211PCM.
shiba [Fri, 17 Jan 2003 18:41:32 +0000 (18:41 +0000)]
Add Allied Telesis WR211PCM.

21 years agoRegen.
shiba [Fri, 17 Jan 2003 18:40:31 +0000 (18:40 +0000)]
Regen.

21 years agoMove subr_disklabel.c and subr_diskslice.c from being MI to MD files,
phk [Fri, 17 Jan 2003 18:32:39 +0000 (18:32 +0000)]
Move subr_disklabel.c and subr_diskslice.c from being MI to MD files,
so that they can be left out where they are unneeded.