]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoAdd a quote from Bob Schieffer's recent book about freedom of the press.
wollman [Sun, 23 Feb 2003 06:14:04 +0000 (06:14 +0000)]
Add a quote from Bob Schieffer's recent book about freedom of the press.

21 years agoFix compilation on non-i386 machines. Inconsistent conditional
marcel [Sun, 23 Feb 2003 03:39:22 +0000 (03:39 +0000)]
Fix compilation on non-i386 machines. Inconsistent conditional
compilation yielded definitions that we're used.

21 years agoAdd a paragraph on HyperThreading support.
bmah [Sun, 23 Feb 2003 02:04:12 +0000 (02:04 +0000)]
Add a paragraph on HyperThreading support.

21 years agoIPFilter has both kernel and userland components, but traditionally
bmah [Sun, 23 Feb 2003 02:01:56 +0000 (02:01 +0000)]
IPFilter has both kernel and userland components, but traditionally
we've listed updates to it in the kernel section.  Be consistent and
move its item from userland/contributed to kernel/contributed.

21 years agoFix some minor typos.
bmah [Sun, 23 Feb 2003 01:59:35 +0000 (01:59 +0000)]
Fix some minor typos.

21 years agoNew release notes: /dev/tty fix, fstat(2) bugfix, kqueue(2)
bmah [Sun, 23 Feb 2003 01:57:54 +0000 (01:57 +0000)]
New release notes:  /dev/tty fix, fstat(2) bugfix, kqueue(2)
bugfix, xl(4) bugfix, ipfw(4) skipto/log fix, non-blocking RPC fix,
mly(4) fix, smbfs bugfixes, adduser(8) passwords with special
characters, sem_open(3) multiple open fix.

All of these items are bugfixes listed in errata/article.sgml
rev. 1.27.  It seemed to me that if they were important enough to
list in the errata, they were important enough for the release notes.

21 years agoSort options.
ru [Sun, 23 Feb 2003 01:50:07 +0000 (01:50 +0000)]
Sort options.

21 years agoDeal with vestiges of d_boot[01].
ru [Sun, 23 Feb 2003 01:48:42 +0000 (01:48 +0000)]
Deal with vestiges of d_boot[01].

21 years agomdoc(7) police: markup laundry.
ru [Sun, 23 Feb 2003 01:47:49 +0000 (01:47 +0000)]
mdoc(7) police: markup laundry.

21 years agomdoc(7) police: kill unnecessary xref.
ru [Sun, 23 Feb 2003 01:46:25 +0000 (01:46 +0000)]
mdoc(7) police: kill unnecessary xref.

21 years agomdoc(7) police: expand contraction.
ru [Sun, 23 Feb 2003 01:45:51 +0000 (01:45 +0000)]
mdoc(7) police: expand contraction.

21 years agomdoc(7) police: kill self-xref.
ru [Sun, 23 Feb 2003 01:45:25 +0000 (01:45 +0000)]
mdoc(7) police: kill self-xref.

21 years agoPunctuation.
ru [Sun, 23 Feb 2003 01:44:59 +0000 (01:44 +0000)]
Punctuation.

21 years agoTypo.
ru [Sun, 23 Feb 2003 01:44:37 +0000 (01:44 +0000)]
Typo.

21 years agoFixed SYNOPSIS.
ru [Sun, 23 Feb 2003 01:44:14 +0000 (01:44 +0000)]
Fixed SYNOPSIS.
Expanded stdin/stdout definitions.
Ordered the SEE ALSO references.
Moved some chat from the BUGS section to freebsd-chat@.
Removed ``cvs log'' material from the HISTORY section.

21 years agoGrammar.
ru [Sun, 23 Feb 2003 01:43:45 +0000 (01:43 +0000)]
Grammar.

21 years agoDrop down Apple Partition Map code that has been in use by some
grehan [Sun, 23 Feb 2003 01:25:35 +0000 (01:25 +0000)]
Drop down Apple Partition Map code that has been in use by some
ppc developers for a while.

OK'd by:  phk

21 years agoFix compilation on alpha. Pointy hat to Marcel.
orion [Sun, 23 Feb 2003 01:06:58 +0000 (01:06 +0000)]
Fix compilation on alpha.  Pointy hat to Marcel.

21 years agoAdd a new config option IPSEC_FILTERGIF to control whether or not
sam [Sun, 23 Feb 2003 00:47:06 +0000 (00:47 +0000)]
Add a new config option IPSEC_FILTERGIF to control whether or not
packets coming out of a GIF tunnel are re-processed by ipfw, et. al.
By default they are not reprocessed.  With the option they are.

This reverts 1.214.  Prior to that change packets were not re-processed.
After they were which caused problems because packets do not have
distinguishing characteristics (like a special network if) that allows
them to be filtered specially.

This is really a stopgap measure designed for immediate MFC so that
4.8 has consistent handling to what was in 4.7.

PR: 48159
Reviewed by: Guido van Rooij <guido@gvr.org>
MFC after: 1 day

21 years agoMore changes from NetBSD:
mikeh [Sun, 23 Feb 2003 00:24:03 +0000 (00:24 +0000)]
More changes from NetBSD:

     * use correct error detection of realloc failure
     * strtol negative return check
     * use strtol to validate string instead of rolling our own
       validation code
     * terminate the command sequence correctly

21 years agoGrab some changes from NetBSD:
mikeh [Sun, 23 Feb 2003 00:06:35 +0000 (00:06 +0000)]
Grab some changes from NetBSD:

     fix const poisoning
     add cast to silence warning
     pull in unistd.h

21 years agoThe root of the splay tree maintained within the pm_pteobj always refers
alc [Sat, 22 Feb 2003 23:43:08 +0000 (23:43 +0000)]
The root of the splay tree maintained within the pm_pteobj always refers
to the last accessed pte page.  Thus, the pm_ptphint is redundant and can
be removed.

21 years agounsigned -> pt_entry_t.
jake [Sat, 22 Feb 2003 23:41:27 +0000 (23:41 +0000)]
unsigned -> pt_entry_t.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd a /a modifier to the show ktr ddb command, which prints the whole trace
jake [Sat, 22 Feb 2003 23:30:37 +0000 (23:30 +0000)]
Add a /a modifier to the show ktr ddb command, which prints the whole trace
buffer without stopping.  Useful if you just want to capture the output but
can't run ktrdump.

21 years agoo Add back support for DXS channels.
orion [Sat, 22 Feb 2003 23:28:15 +0000 (23:28 +0000)]
o Add back support for DXS channels.

o Make DXS3 the primary playback channel.  It may be the only
universally supported channel with the assorted revisions of this
chipset.

o Add sysctl and handler for enabling s/pdif output from DXS3.

21 years agoFix the -R flag so that it provides sequential "random" numbers
mckusick [Sat, 22 Feb 2003 23:26:11 +0000 (23:26 +0000)]
Fix the -R flag so that it provides sequential "random" numbers
so that the regression test will succeed.

Sponsored by:   DARPA & NAI Labs.

21 years agoExpose powerpc_mb() to user-space. Currently needed for atomic.h users,
grehan [Sat, 22 Feb 2003 22:58:13 +0000 (22:58 +0000)]
Expose powerpc_mb() to user-space. Currently needed for atomic.h users,
this may go away in the future.

21 years agoCheck to see if the TF_DELACK flag is set before returning from
jlemon [Sat, 22 Feb 2003 21:54:57 +0000 (21:54 +0000)]
Check to see if the TF_DELACK flag is set before returning from
tcp_input().  This unbreaks delack handling, while still preserving
correct T/TCP behavior

Tested by: maxim
Sponsored by: DARPA, NAI Labs

21 years agoRemove unused variable to make badsect WARNS=2 clean.
johan [Sat, 22 Feb 2003 21:33:42 +0000 (21:33 +0000)]
Remove unused variable to make badsect WARNS=2 clean.

21 years agoApple PR-2449102: getdomainname() doesn't document that it is NIS/YP specific
zarzycki [Sat, 22 Feb 2003 19:02:23 +0000 (19:02 +0000)]
Apple PR-2449102: getdomainname() doesn't document that it is NIS/YP specific

21 years agoUse strlcpy instead of strncpy.
johan [Sat, 22 Feb 2003 18:08:34 +0000 (18:08 +0000)]
Use strlcpy instead of strncpy.

Submitted by: imp
Reviewed by: silence on -audit

21 years agoDon't panic when enumerating SYSCTL_NODE() nodes without any children
rwatson [Sat, 22 Feb 2003 17:58:06 +0000 (17:58 +0000)]
Don't panic when enumerating SYSCTL_NODE() nodes without any children
nodes.

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

21 years agoMake xl use m_getcl() to allocate an mbuf and a cluster in one shot,
bmilekic [Sat, 22 Feb 2003 14:46:31 +0000 (14:46 +0000)]
Make xl use m_getcl() to allocate an mbuf and a cluster in one shot,
as opposed to one after the other.  This is faster in both -CURRENT
and -STABLE.  Additionally, there is less code duplication for
error-checking.

One thing to note is that this code seems to return(1) when no buffers
are available; perhaps ENOBUFS should be the correct return value?

Partially submitted & tested by: Hiten Pandya <hiten@unixdaemons.com>
MFC after: 1 week

21 years agoIt is pretty evident that nobody loves this file anymore, so retire it
phk [Sat, 22 Feb 2003 13:52:38 +0000 (13:52 +0000)]
It is pretty evident that nobody loves this file anymore, so retire it
to the Attic from where it can be picked up again, should it ever again
become fashionable to run an alpha simulator.

21 years agoPackages have been in .tbz format for some time now, thus s/tgz/tbz/
brueffer [Sat, 22 Feb 2003 11:57:09 +0000 (11:57 +0000)]
Packages have been in .tbz format for some time now, thus s/tgz/tbz/

X-MFC after: re-approval

21 years agoUse DISKFLAG_OPEN rather than maintaining our own flag.
phk [Sat, 22 Feb 2003 10:42:21 +0000 (10:42 +0000)]
Use DISKFLAG_OPEN rather than maintaining our own flag.
Use nullclose() rather than now empty twed_close().

21 years agoUse nullclose(), not noclose().
phk [Sat, 22 Feb 2003 10:40:36 +0000 (10:40 +0000)]
Use nullclose(), not noclose().

21 years agoDon't use mbuf allocator flags for malloc(9).
phk [Sat, 22 Feb 2003 10:35:37 +0000 (10:35 +0000)]
Don't use mbuf allocator flags for malloc(9).

21 years agoUse the standard DISKFLAG_OPEN instead of implementing our own.
phk [Sat, 22 Feb 2003 10:10:12 +0000 (10:10 +0000)]
Use the standard DISKFLAG_OPEN instead of implementing our own.
Use noclose() instead now that our close method is empty.

21 years agoUse system noioctl() instead of homerolled.
phk [Sat, 22 Feb 2003 10:02:05 +0000 (10:02 +0000)]
Use system noioctl() instead of homerolled.

21 years agoNO_GEOM cleanup: unifdef -UNO_GEOM
phk [Sat, 22 Feb 2003 09:36:40 +0000 (09:36 +0000)]
NO_GEOM cleanup:  unifdef -UNO_GEOM

21 years agoNO_GEOM cleanup:
phk [Sat, 22 Feb 2003 09:32:57 +0000 (09:32 +0000)]
NO_GEOM cleanup:

Move to "struct disk *" centric use of disk_* API.

Remove NOOP ioctl, spl*() and some debug printfs.

21 years agoAdd the ability to limit the number of IP fragments allowed per packet,
silby [Sat, 22 Feb 2003 06:41:47 +0000 (06:41 +0000)]
Add the ability to limit the number of IP fragments allowed per packet,
and enable it by default, with a limit of 16.

At the same time, tweak maxfragpackets downward so that in the worst
possible case, IP reassembly can use only 1/2 of all mbuf clusters.

MFC after:  3 days
Reviewed by: hsu
Liked by: bmah

21 years agoRemove a comment which hasn't been true since rev. 1.158
mtm [Sat, 22 Feb 2003 05:59:48 +0000 (05:59 +0000)]
Remove a comment which hasn't been true since rev. 1.158

Approved by: jhb, markm (mentor)(implicit)

21 years agoExport the name of the device used to mount the root file system as
rwatson [Sat, 22 Feb 2003 05:01:12 +0000 (05:01 +0000)]
Export the name of the device used to mount the root file system as
kern.rootdev.  If rootdev is undefined (NFS mount, etc), export an
empty string.

Desired by: peter

21 years agoThis patch fixes a deadlock between the bufdaemon and a process taking
mckusick [Sat, 22 Feb 2003 00:59:34 +0000 (00:59 +0000)]
This patch fixes a deadlock between the bufdaemon and a process taking
a snapshot. As part of taking a snapshot of a filesystem, the kernel
builds up a list of the filesystem metadata (such as the cylinder
group bitmaps) that are contained in the snapshot. When doing a
copy-on-write check, the list is first consulted. If the block being
written is found on the list, then the full snapshot lookup can be
avoided. Besides providing an important performance speedup this
check also avoids a potential deadlock between the code creating
the snapshot and the bufdaemon trying to cleanup snapshot related
buffers. This fix creates a temporary list containing the key
metadata blocks that can cause the deadlock. This temporary list
is used between the time that the snapshot is first enabled and the
time that the fully complete list is built.

Reported by: Attila Nagy <bra@fsn.hu>
Sponsored by:   DARPA & NAI Labs.

21 years agoThis patch fixes a bug on an active filesystem on which a snapshot
mckusick [Sat, 22 Feb 2003 00:29:51 +0000 (00:29 +0000)]
This patch fixes a bug on an active filesystem on which a snapshot
is being taken from panicing with either "freeing free block" or
"freeing free inode". The problem arises when the snapshot code
is scanning the filesystem looking for inodes with a reference
count of zero (e.g., unlinked but still open) so that it can
expunge them from its view. If it encounters a reclaimed vnode
and has to restart its scan, then it will panic if it encounters
and tries to free an inode that it has already processed. The fix
is to check each candidate inode to see if it has already been
processed before trying to delete it from the snapshot image.

Sponsored by:   DARPA & NAI Labs.

21 years agoThis patch fixes a bug in the logical block calculation macros so
mckusick [Sat, 22 Feb 2003 00:19:26 +0000 (00:19 +0000)]
This patch fixes a bug in the logical block calculation macros so
that they convert to 64-bit values before shifting rather than
afterwards. Once fixed, they can be used rather than inline expanded.

Sponsored by:   DARPA & NAI Labs.

21 years agoFix a bad free() call that would occur if some #if 0'd code was used.
tjr [Sat, 22 Feb 2003 00:06:05 +0000 (00:06 +0000)]
Fix a bad free() call that would occur if some #if 0'd code was used.

21 years agoAdd a variety of new devices culled from recent (?) commits, affecting
bmah [Fri, 21 Feb 2003 23:36:00 +0000 (23:36 +0000)]
Add a variety of new devices culled from recent (?) commits, affecting
the ata(4), asr(4), aac(4), trm(4), and vr(4) drivers.

21 years agoNew release notes: i386 HTT (+MFC) [1], privileged port sysctls,
bmah [Fri, 21 Feb 2003 23:34:41 +0000 (23:34 +0000)]
New release notes:  i386 HTT (+MFC) [1], privileged port sysctls,
ata(4) has more SiS support, cd(4) update, rand(3) bugfix [2],
srandom(3) better seeding [2], sysinstall(8) can install XFree86
components again.

Clues provided by: jhb [1], kris [2]

21 years agoNO_GEOM cleanup: Convert CCD(4) to be use "struct disk*" instead of "dev_t"
phk [Fri, 21 Feb 2003 23:25:43 +0000 (23:25 +0000)]
NO_GEOM cleanup: Convert CCD(4) to be use "struct disk*" instead of "dev_t"
as "this" handle.

21 years ago- m = m_gethdr(M_NOWAIT, MT_HEADER);
phk [Fri, 21 Feb 2003 23:17:12 +0000 (23:17 +0000)]
-       m = m_gethdr(M_NOWAIT, MT_HEADER);
+       m = m_gethdr(M_DONTWAIT, MT_HEADER);

'nuff said.

21 years agoAllow for boolean make options (``makeoptions NO_MODULES'').
ru [Fri, 21 Feb 2003 23:17:00 +0000 (23:17 +0000)]
Allow for boolean make options (``makeoptions NO_MODULES'').
Fixed the potential bug in rmopt().

21 years agoNuke EPIC_MGETCLUSTER entirely. Since 1.60 we don't use it anymore and
bmilekic [Fri, 21 Feb 2003 23:12:32 +0000 (23:12 +0000)]
Nuke EPIC_MGETCLUSTER entirely.  Since 1.60 we don't use it anymore and
instead use our optimized m_getcl().

Submitted by: Hiten Pandya <hiten@unixdaemons.com>
MFC After: 1 week

21 years agoFixed synopsis.
ru [Fri, 21 Feb 2003 22:37:18 +0000 (22:37 +0000)]
Fixed synopsis.
Mention that md(4) should be active (from release(7)).
Yet, this has nothing to do with bsd.prog.mk.

21 years agoMissing M_TRYWAIT from so_upcall third argument.
peter [Fri, 21 Feb 2003 22:23:40 +0000 (22:23 +0000)]
Missing M_TRYWAIT from so_upcall third argument.

21 years agoDocument the net.inet.ip.portrange.reserved{high,low} sysctl knobs
cjc [Fri, 21 Feb 2003 21:09:35 +0000 (21:09 +0000)]
Document the net.inet.ip.portrange.reserved{high,low} sysctl knobs
added in sys/netinet/in_pcb.c 1.120.

Prodded by: ru

21 years agoMerge the following from the English version:
hrs [Fri, 21 Feb 2003 21:06:28 +0000 (21:06 +0000)]
Merge the following from the English version:

1.496 -> 1.500 relnotes/common/new.sgml

21 years agoLet everyone know when to send the gifts.
das [Fri, 21 Feb 2003 19:25:39 +0000 (19:25 +0000)]
Let everyone know when to send the gifts.

Reviewed by: mike (mentor)

21 years agoHostname specifications must allow commas in the value. They are
thomas [Fri, 21 Feb 2003 19:02:31 +0000 (19:02 +0000)]
Hostname specifications must allow commas in the value. They are
used to separate multiple host names.

Noted by: Dan Nelson <dnelson@allantgroup.com>
Reviewed by: roberto

21 years agoNO_GEOM cleanup:
phk [Fri, 21 Feb 2003 19:00:48 +0000 (19:00 +0000)]
NO_GEOM cleanup:

Retire the "d_dump_t" and use the "dumper_t" type instead.

Dumper_t takes a void * as first arg which is more general than the
dev_t taken by d_dump_t.  (Remember: we could have net-dumpers if
somebody wrote us one!)

Define the convention for GEOM controlled disk devices to be that the
first argument to the dumper function is the struct disk pointer.

Change device drivers accordingly.

21 years agoPush UFS_ACL back for i386. We have 11kbytes of free space on kern.flp.
matusita [Fri, 21 Feb 2003 18:07:24 +0000 (18:07 +0000)]
Push UFS_ACL back for i386.  We have 11kbytes of free space on kern.flp.
If we have no UFS_ACL kernel, users who already uses UFS1/2 attributes
get confused since no access control is performed for an update install.

Still, pc98 and alpha doesn't have UFS_ACL since I don't know about them.

Nyan-san, if kern.flp on tatsu has enough spaces (4k or more spaces),
please back UFS_ACL for pc98 also.

Data collected from: 5.0-CURRENT-20030221-JPSNAP on snapshots.jp.FreeBSD.org

21 years agoSome style fixes.
bmilekic [Fri, 21 Feb 2003 16:24:49 +0000 (16:24 +0000)]
Some style fixes.

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

21 years agoNO_GEOM cleanup:
phk [Fri, 21 Feb 2003 15:13:26 +0000 (15:13 +0000)]
NO_GEOM cleanup:

Change the argument to disk_destroy() to be the same struct disk * as
disk_create() takes.

This enables drivers to ignore the (now) bogus dev_t which disk_create()
returns.

21 years agoMention that dlerror() is also applicable to retrieve error message after
phantom [Fri, 21 Feb 2003 13:43:41 +0000 (13:43 +0000)]
Mention that dlerror() is also applicable to retrieve error message after
dladdr() and dlinfo() functions calls.

21 years agoRespect ``makeoptions NO_MODULES'' specified in the kernel config file.
ru [Fri, 21 Feb 2003 11:19:25 +0000 (11:19 +0000)]
Respect ``makeoptions NO_MODULES'' specified in the kernel config file.

21 years agoOverhaul the targets and hope this is now much more readable.
ru [Fri, 21 Feb 2003 11:02:49 +0000 (11:02 +0000)]
Overhaul the targets and hope this is now much more readable.

This adds some orthodox kernel-* and modules-* targets and
retires harmful ``clobber''.

Now, do we really want to keep the ``modules'' target here?

21 years agoDon't try to deal with vi.recover if the directory doesn't exist
dougb [Fri, 21 Feb 2003 09:37:20 +0000 (09:37 +0000)]
Don't try to deal with vi.recover if the directory doesn't exist

PR: conf/24515
Submitted by: Jeroen C. van Gelderen <jeroen@systemics.com>

21 years agoRemove "sleeper" nonsense.
tjr [Fri, 21 Feb 2003 08:46:44 +0000 (08:46 +0000)]
Remove "sleeper" nonsense.

21 years agoDon't omit --update on 9ball.
des [Fri, 21 Feb 2003 07:33:41 +0000 (07:33 +0000)]
Don't omit --update on 9ball.

21 years agoIf UTS kernel is calling kse_wakeup for itself, do nothing.
davidxu [Fri, 21 Feb 2003 07:11:38 +0000 (07:11 +0000)]
If UTS kernel is calling kse_wakeup for itself, do nothing.

21 years agoFix ATAPI/USB/Firewire CDROM drive handling in cd(4) and hopefully fix
ken [Fri, 21 Feb 2003 06:19:38 +0000 (06:19 +0000)]
Fix ATAPI/USB/Firewire CDROM drive handling in cd(4) and hopefully fix
a number of related problems along the way.

 - Automatically detect CDROM drives that can't handle 6 byte mode
   sense and mode select, and adjust our command size accordingly.
   We have to handle this in the cd(4) driver (where the buffers are
   allocated), since the parameter list length is different for the
   6 and 10 byte mode sense commands.

 - Remove MODE_SENSE and MODE_SELECT translation removed in ATAPICAM
   and in the umass(4) driver, since there's no way for that to work
   properly.

 - Add a quirk entry for CDROM drives that just hang when they get a 6
   byte mode sense or mode select.  The reason for the quirk must be
   documented in a PR, and all quirks must be approved by
   ken@FreeBSD.org.  This is to make sure that we fully understand why
   each quirk is needed.  Once the CAM_NEW_TRAN_CODE is finished, we
   should be able to remove any such quirks, since we'll know what
   protocol the drive speaks (SCSI, ATAPI, etc.) and therefore whether
   we should use 6 or 10 byte mode sense/select commands.

 - Change the way the da(4) handles the no_6_byte sysctl.  There is
   now a per-drive sysctl to set the minimum command size for that
   particular disk.  (Since you could have multiple disks with
   multiple requirements in one system.)

 - Loader tunable support for all the sysctls in the da(4) and cd(4)
   drivers.

 - Add a CDIOCCLOSE ioctl for cd(4) (bde pointed this out a long
   time ago).

 - Add a media validation routine (cdcheckmedia()) to the cd(4)
   driver, to fix some problems bde pointed out a long time ago.  We
   now allow open() to succeed no matter what, but if we don't detect
   valid media, the user can only issue CDIOCCLOSE or CDIOCEJECT
   ioctls.

 - The media validation routine also reads the table of contents off
   the drive.  We use the table of contents to implement the
   CDIOCPLAYTRACKS ioctl using the PLAY AUDIO MSF command.  The
   PLAY AUDIO TRACK INDEX command that we previously used was
   deprecated after SCSI-2.  It works in every SCSI CDROM I've tried,
   but doesn't seem to work on ATAPI CDROM drives.  We still use the
   play audio track index command if we don't have a valid TOC, but
   I suppose it'll fail anyway in that case.

 - Add _len() versions of scsi_mode_sense() and scsi_mode_select() so
   that we can specify the minimum command length.

 - Fix a couple of formatting problems in the sense printing code.

MFC after:  4 weeks

21 years agoThe ancient and outdated concept of "privileged ports" in UNIX-type
cjc [Fri, 21 Feb 2003 05:28:27 +0000 (05:28 +0000)]
The ancient and outdated concept of "privileged ports" in UNIX-type
OSes has probably caused more problems than it ever solved. Allow the
user to retire the old behavior by specifying their own privileged
range with,

  net.inet.ip.portrange.reservedhigh  default = IPPORT_RESERVED - 1
  net.inet.ip.portrange.reservedlo    default = 0

Now you can run that webserver without ever needing root at all. Or
just imagine, an ftpd that can really drop privileges, rather than
just set the euid, and still do PORT data transfers from 20/tcp.

Two edge cases to note,

  # sysctl net.inet.ip.portrange.reservedhigh=0

Opens all ports to everyone, and,

  # sysctl net.inet.ip.portrange.reservedhigh=65535

Locks all network activity to root only (which could actually have
been achieved before with ipfw(8), but is somewhat more
complicated).

For those who stick to the old religion that 0-1023 belong to root and
root alone, don't touch the knobs (or even lock them by raising
securelevel(8)), and nothing changes.

21 years agoSome things don't build for PowerPC yet.
obrien [Fri, 21 Feb 2003 02:30:51 +0000 (02:30 +0000)]
Some things don't build for PowerPC yet.

List from: benno

21 years agoOops, forgot to put back debug level.
simokawa [Fri, 21 Feb 2003 02:27:13 +0000 (02:27 +0000)]
Oops, forgot to put back debug level.

21 years agoDon't try to build devd when NO_CXX is set.
obrien [Fri, 21 Feb 2003 02:16:35 +0000 (02:16 +0000)]
Don't try to build devd when NO_CXX is set.

21 years agoremove unused code.
simokawa [Fri, 21 Feb 2003 02:14:00 +0000 (02:14 +0000)]
remove unused code.

21 years agoFix typo
simokawa [Fri, 21 Feb 2003 02:09:39 +0000 (02:09 +0000)]
Fix typo

Submitted by: Masahiro Ito <m_itoh@mub.biglobe.ne.jp>

21 years agoDon't scan lun by myself while boot process leave it CAM to scan the bus.
simokawa [Fri, 21 Feb 2003 02:09:04 +0000 (02:09 +0000)]
Don't scan lun by myself while boot process leave it CAM to scan the bus.
Some drives seem to be confused by simultaneous probes.

Tested by: marcel

As a side effect, logical units whose lun is greater than 0 might not be
probed correctly if the lun of 0 doesn't exist in the target because
CAM doesn't scan such luns.
I have a SCSI-FireWire bridge which maps SCSI-ID to LUN and it is an
example of such targets.

21 years agoClean up viachan_init.
orion [Fri, 21 Feb 2003 01:47:59 +0000 (01:47 +0000)]
Clean up viachan_init.

21 years agoFix assignment of record sgd_addr and clean up via8233chan_init.
orion [Fri, 21 Feb 2003 01:47:17 +0000 (01:47 +0000)]
Fix assignment of record sgd_addr and clean up via8233chan_init.

21 years agoOn detach, don't remove the child from our list of children unless it has
scottl [Thu, 20 Feb 2003 23:13:48 +0000 (23:13 +0000)]
On detach, don't remove the child from our list of children unless it has
successfully detached.

21 years agoMake camcontrol WARNS=2 clean.
johan [Thu, 20 Feb 2003 21:07:59 +0000 (21:07 +0000)]
Make camcontrol WARNS=2 clean.

Approved by: ken

21 years agoChange the console interface to pass a "struct consdev *" instead of a
phk [Thu, 20 Feb 2003 20:54:45 +0000 (20:54 +0000)]
Change the console interface to pass a "struct consdev *" instead of a
dev_t to the method functions.

The dev_t can still be found at struct consdev *->cn_dev.

Add a void *cn_arg element to struct consdev which the drivers can use
for retrieving their softc.

21 years agomdoc(7) police: tidy up.
ru [Thu, 20 Feb 2003 20:22:20 +0000 (20:22 +0000)]
mdoc(7) police: tidy up.

21 years agoInitialize sign to NULL so that we don't attempt to free() it in case
mikeh [Thu, 20 Feb 2003 20:13:07 +0000 (20:13 +0000)]
Initialize sign to NULL so that we don't attempt to free() it in case
of failure.

MFC after: 1 week

21 years agoFirst round off updates/fixes to the ATA driver.
sos [Thu, 20 Feb 2003 20:02:32 +0000 (20:02 +0000)]
First round off updates/fixes to the ATA driver.

This moves all chipset specific code to a new file 'ata-chipset.c'.
Extensive use of tables and pointers to avoid having the same switch
on chipset type in several places, and to allow substituting various
functions for different HW arch needs.
Added PIO mode setup and all DMA modes.
Support for all known SiS chipsets. Thanks to Christoph Kukulies for
sponsoring a nice ASUS P4S8X SiS648 based board for this work!

Tested on: i386, PC98, alpha and sparc64

21 years agoFirst round off updates/fixes to the ATA driver.
sos [Thu, 20 Feb 2003 19:55:45 +0000 (19:55 +0000)]
First round off updates/fixes to the ATA driver.

This moves all chipset specific code to a new file 'ata-chipset.c'.
Extensive use of tables and pointers to avoid having the same switch
on chipset type in several places, and to allow substituting various
functions for different HW arch needs.
Added PIO mode setup and all DMA modes.
Support for all known SiS chipsets. Thanks to Christoph Kukulies for
sponsoring a nice ASUS P4S8X SiS648 based board for this work!

Tested on: i386, PC98, alpha and sparc64

21 years agoRemove unused variables in the IPSEC case.
jlemon [Thu, 20 Feb 2003 18:22:21 +0000 (18:22 +0000)]
Remove unused variables in the IPSEC case.

Submitted by:  Lars Eggert <larse@ISI.EDU>

21 years agoRemove extraneous word.
ceri [Thu, 20 Feb 2003 17:32:26 +0000 (17:32 +0000)]
Remove extraneous word.

21 years agoImplement a "sndbuf_getbufaddr" function and use it instead of vtophys().
cognet [Thu, 20 Feb 2003 17:31:12 +0000 (17:31 +0000)]
Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().

Reviewed by: orion

21 years agoModified release notes: OpenSSL-0.9.7a.
bmah [Thu, 20 Feb 2003 17:26:11 +0000 (17:26 +0000)]
Modified release notes:  OpenSSL-0.9.7a.

While here, fix a minor markup bogon.

21 years agoUncomment the xl(4) driver since it's now working properly
mux [Thu, 20 Feb 2003 17:08:42 +0000 (17:08 +0000)]
Uncomment the xl(4) driver since it's now working properly
on sparc64.

21 years agoAdd a dead_cdevsw which does its best to return ENXIO if at all possible.
phk [Thu, 20 Feb 2003 15:35:54 +0000 (15:35 +0000)]
Add a dead_cdevsw which does its best to return ENXIO if at all possible.

In devsw() return dead_cdevsw instead of NULL in case the dev_t does not
have a si_devsw.

This may improve our survival chances with devices which go away unexpectedly.

21 years agoRemoved extra parentheses.
ru [Thu, 20 Feb 2003 15:09:52 +0000 (15:09 +0000)]
Removed extra parentheses.

21 years agoFixed comment.
ru [Thu, 20 Feb 2003 15:05:39 +0000 (15:05 +0000)]
Fixed comment.

21 years agoRegen from syscalls.master 1.50.
tjr [Thu, 20 Feb 2003 13:34:15 +0000 (13:34 +0000)]
Regen from syscalls.master 1.50.

21 years agoMark linux_getpid(), linux_getuid() and linux_getgid() as MPSAFE.
tjr [Thu, 20 Feb 2003 13:32:48 +0000 (13:32 +0000)]
Mark linux_getpid(), linux_getuid() and linux_getgid() as MPSAFE.

21 years agoAdd M_WAITOK
ume [Thu, 20 Feb 2003 11:24:55 +0000 (11:24 +0000)]
Add M_WAITOK