]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoFix the fvwm desktop option (for all 3 of us who use it).
Jordan K. Hubbard [Sun, 20 Feb 2000 10:01:33 +0000 (10:01 +0000)]
Fix the fvwm desktop option (for all 3 of us who use it).

24 years agoDocfix: Note krb5 flags.
Jordan K. Hubbard [Sun, 20 Feb 2000 09:13:30 +0000 (09:13 +0000)]
Docfix: Note krb5 flags.

PR: 16818
Submitted by: martti.kuparinen@nomadiclab.com

24 years agoFix buffer overrun in pcfclock_read(). The submitter is the original
Sheldon Hearn [Sun, 20 Feb 2000 09:08:33 +0000 (09:08 +0000)]
Fix buffer overrun in pcfclock_read().  The submitter is the original
author of the affected code.

PR: 16552
Submitted by: Sascha Schumann <sascha@schumann.cx>
Approved by: jkh

24 years agoFix version # for ipfilter.
Jordan K. Hubbard [Sun, 20 Feb 2000 08:45:01 +0000 (08:45 +0000)]
Fix version # for ipfilter.

PR: 16818
Submitted by: martti.kuparinen@nomadiclab.com

24 years agoDo not conditionalize function prototype definition for functions we
Jason Evans [Sun, 20 Feb 2000 07:40:25 +0000 (07:40 +0000)]
Do not conditionalize function prototype definition for functions we
implement.

Noticed by: Thimble Smith <tim@mysql.com>
Approved by: jkh

24 years agoFix 'camcontrol inquiry'. The inquiry data structure changes (increased to
Kenneth D. Merry [Sun, 20 Feb 2000 04:42:44 +0000 (04:42 +0000)]
Fix 'camcontrol inquiry'.  The inquiry data structure changes (increased to
256 bytes) caused it to break on many devices.

The SCSI spec says that for commands with 8-bit length fields, a value of 0
means 256 bytes.  As it turns out, many devices don't deal with that
properly.  Some interpret the 0 as 0, and return no data.  Others return
more than 256 bytes of data, and cause an overrun.

The fix is to tell the device we've only allocated SHORT_INQUIRY_LENGTH (36
bytes) of inquiry data, instead of sizeof(struct scsi_inquiry_data).

camcontrol.c: Change inq_len in the call to scsi_inquiry() to
SHORT_INQUIRY_LENGTH, and add a long comment
explaining the reason for the change.

scsi_all.h: Add a comment above the definitinon of
SHORT_INQUIRY_LENGTH alerting people that it is
both the initial probe inquiry length, and the
minimum amount of data needed for scsi_print_inquiry()
to function.

scsi_all.c: Add a comment about SHORT_INQUIRY_LENGTH being the
minimum amount of data needed for
scsi_print_inquiry() to function.

Reviewed by: gibbs
Approved by: jkh
Reported by: "John W. DeBoskey" <jwd@unx.sas.com>

24 years ago- As jail(8) has been almost completely rewritten, prepend another copyright/
Robert Watson [Sun, 20 Feb 2000 02:51:11 +0000 (02:51 +0000)]
- As jail(8) has been almost completely rewritten, prepend another copyright/
  BSD-style license, as an add-on to phk's beerware license.  Please fedex
  some beer to phk.

- Add a ``make depend'' line to the jail-building, which fixes openssl,
  among other things.  Suggested by: kris

- Add ``newaliases'' to the list of things to do when setting up a new
  jail, so that the jailed sendmail doesn't complain.

- Correct references to ``kern.jail.set_hostname_allowed'' which now read
  ``jail.set_hostname_allowed''.

- Add a reference to sysctl.conf where the sysctl can easily be set in
  a persistent way.

- Add a list of cross references to the man page.

- Fix a formatting nit or two.

24 years agoDisable chflags() from within jail() so that root within jail can't make
Robert Watson [Sun, 20 Feb 2000 01:10:36 +0000 (01:10 +0000)]
Disable chflags() from within jail() so that root within jail can't make
a mess in securelevel environments.  Results in one warning during
/etc/rc as it attempts to remove file flags, but this is harmless.

Approved by: High Lord Hubbard

24 years agoIf user says they're in the USA, record that fact in /etc/make.conf
Jordan K. Hubbard [Sat, 19 Feb 2000 23:22:22 +0000 (23:22 +0000)]
If user says they're in the USA, record that fact in /etc/make.conf

24 years agoFixed a little bit strange INET6 output.
Yoshinobu Inoue [Sat, 19 Feb 2000 21:46:45 +0000 (21:46 +0000)]
Fixed a little bit strange INET6 output.

Specified by: Ben Smithurst <ben@scientia.demon.co.uk>
Approved by: jkh

24 years agodetect deleted tty lines in /etc/ttys.
Alfred Perlstein [Sat, 19 Feb 2000 20:28:45 +0000 (20:28 +0000)]
detect deleted tty lines in /etc/ttys.

24 years agoUse static buffer to save source route hostnames.
Yoshinobu Inoue [Sat, 19 Feb 2000 16:33:14 +0000 (16:33 +0000)]
Use static buffer to save source route hostnames.

Approved by: jkh

24 years agoPrint "Trying ..." for each host. Also cleanups for error printing.
Yoshinobu Inoue [Sat, 19 Feb 2000 16:17:41 +0000 (16:17 +0000)]
Print "Trying ..." for each host. Also cleanups for error printing.

Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>

24 years agoRemoved bogus line.
Yoshinobu Inoue [Sat, 19 Feb 2000 16:13:03 +0000 (16:13 +0000)]
Removed bogus line.

Specified by: ache
Approved by: jkh

24 years agoChange IPv6 scoped addr format again based on recent standard discussion.
Yoshinobu Inoue [Sat, 19 Feb 2000 16:10:16 +0000 (16:10 +0000)]
Change IPv6 scoped addr format again based on recent standard discussion.
Sorry for the flapping, but no change will be done for 4.0 anymore.
Official standard will be published around April or later.
If different format would be adopted at that time, then support for
the new format will be added to the succeeding FreeBSD 4.x.

Approved by: jkh

24 years agoAdded IPv6 name resolving support for utmp logging.
Yoshinobu Inoue [Sat, 19 Feb 2000 15:57:52 +0000 (15:57 +0000)]
Added IPv6 name resolving support for utmp logging.

Approved by: jkh

24 years agoPS/2 mice are a lot more common than serial mice now; use /dev/psm0
Jordan K. Hubbard [Sat, 19 Feb 2000 13:07:21 +0000 (13:07 +0000)]
PS/2 mice are a lot more common than serial mice now; use /dev/psm0
as default rather than /dev/cuaa0

24 years agono need to fix moused setting here; fix in defaults
Jordan K. Hubbard [Sat, 19 Feb 2000 13:05:14 +0000 (13:05 +0000)]
no need to fix moused setting here; fix in defaults

24 years agoWhoops, forgot to delete the ! operator in the reversed conditional
Jordan K. Hubbard [Sat, 19 Feb 2000 12:42:03 +0000 (12:42 +0000)]
Whoops, forgot to delete the ! operator in the reversed conditional
for anonftp.  Fix.

24 years agoRemove the vga-pci driver. It serves no purpose and it hides the hardware
Doug Rabson [Sat, 19 Feb 2000 09:44:06 +0000 (09:44 +0000)]
Remove the vga-pci driver. It serves no purpose and it hides the hardware
from useful drivers such as the 3D DRI drivers I will be porting for
hardware accelerated OpenGL. The hardware will still be reported during
boot using the nomatch system.

Approved by: jkh

24 years ago1. If checking for directory-ness, check "dir" and "dir/" to catch
Jordan K. Hubbard [Sat, 19 Feb 2000 08:58:54 +0000 (08:58 +0000)]
1. If checking for directory-ness, check "dir" and "dir/" to catch
   the case where we have a symlink pointing at a dir.

2. Restore stomped character before returning in make_hierarchy()

24 years ago1. If checking for directory-ness, check "dir" and "dir/" to catch
Jordan K. Hubbard [Sat, 19 Feb 2000 08:52:52 +0000 (08:52 +0000)]
1. If checking for directory-ness, check "dir" and "dir/" to catch
   the case where we have a symlink pointing at a dir.

2. Restore stomped character before returning in make_hierarchy()

24 years agoRe-add "May" to the list of dates supported.
Alfred Perlstein [Fri, 18 Feb 2000 23:41:45 +0000 (23:41 +0000)]
Re-add "May" to the list of dates supported.

Approved by: jkh

24 years agoUpdate the ata driver to take more advantage of newbus, this
Søren Schmidt [Fri, 18 Feb 2000 20:57:33 +0000 (20:57 +0000)]
Update the ata driver to take more advantage of newbus, this
was needed to make attach/detach of devices work, which is
needed for the PCCARD support.
(PCCARD support is still not working though, more to come on that)

Support the CMD646 chip which is used on many alphas, sadly only
in WDMA2 mode, as the silicon is broken beyond belief for UDMA modes.

Lots of cosmetic fixes here and there.

Sorry for the size of this megapatchfromhell but it was not
possible otherwise...

newbus patches based on work from: dfr (Doug Rabson)

24 years agoFix up a few documentation nits in jail(8), as well as improve the
Robert Watson [Fri, 18 Feb 2000 19:02:22 +0000 (19:02 +0000)]
Fix up a few documentation nits in jail(8), as well as improve the
instructions so as to reduce warnings during jail startup, etc.
Add a somewhat bolder warning recommending the use of
kern.jail.set_hostname to limit jail renamining.

24 years agoInvert the meaning of two questions in the Standard installation so just
Jordan K. Hubbard [Fri, 18 Feb 2000 18:33:15 +0000 (18:33 +0000)]
Invert the meaning of two questions in the Standard installation so just
whapping "Yes" by default does not turn you into an anonymous FTP-supporting
gateway machine.  Those aren't the right "defaults."

24 years agoCorrect an error message presumably as a result of cut/paste.
Peter Wemm [Fri, 18 Feb 2000 16:39:00 +0000 (16:39 +0000)]
Correct an error message presumably as a result of cut/paste.
kvm_getfiles() referred to itself as kvm_getprocs().

24 years agoDont allow burn when format not selected.
Søren Schmidt [Fri, 18 Feb 2000 16:36:28 +0000 (16:36 +0000)]
Dont allow burn when format not selected.

Use the right format in printfs.

Fix the partial write error (the res variable).

Reminder by: (Bill Fumerola <billf@FreeBSD.org>)

24 years agoFix the installworld breakage from rev 1.9.
Ruslan Ermilov [Fri, 18 Feb 2000 13:21:16 +0000 (13:21 +0000)]
Fix the installworld breakage from rev 1.9.

Submitted by: reg
Reviewed by: ru
Approved by: jasone (rev 1.9)
Pointy hat to: unfurl

24 years agoHBH hdr len correction.
Yoshinobu Inoue [Fri, 18 Feb 2000 11:48:04 +0000 (11:48 +0000)]
HBH hdr len correction.

  Without this fix, MLD query to all nodes fails to send.
  Merge from recent KAME bug fix.

Approved by: jkh

24 years agoComplete the make-over to transform Novice to Standard install.
Jordan K. Hubbard [Fri, 18 Feb 2000 07:11:40 +0000 (07:11 +0000)]
Complete the make-over to transform Novice to Standard install.

24 years agoDon't call it a Novice install, call it Standard.
Jordan K. Hubbard [Fri, 18 Feb 2000 07:09:45 +0000 (07:09 +0000)]
Don't call it a Novice install, call it Standard.
Also say thousands of packages, not hundreds.

24 years agoSupport logging for IPv6 remote host.
Yoshinobu Inoue [Fri, 18 Feb 2000 07:08:03 +0000 (07:08 +0000)]
Support logging for IPv6 remote host.

Approved by: jkh

PR: bin/16789
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk

24 years agoDon't try EPSV once it failed.
Yoshinobu Inoue [Fri, 18 Feb 2000 07:02:48 +0000 (07:02 +0000)]
Don't try EPSV once it failed.

Specified by: Andrey A. Chernov" <ache@nagual.pp.ru>
Approved by: jkh

24 years agoWhile looking for a bug, tripped over style issues with added
Jordan K. Hubbard [Fri, 18 Feb 2000 07:00:01 +0000 (07:00 +0000)]
While looking for a bug, tripped over style issues with added
code.  Fix them.

24 years agoModify MAKEDEV to create four bpf devices instead of one when doing a
Robert Watson [Fri, 18 Feb 2000 05:49:08 +0000 (05:49 +0000)]
Modify MAKEDEV to create four bpf devices instead of one when doing a
MAKEDEV all, making DHCP on multiple interfaces happier, and allowing use
of tcpdump to to debug DHCP, without creating more devices.
(we need devfs)

Modify MAKEDEV to create four tun devices in MAKEDEV all as well, since
we're being gratuitous with network pseudo-devices.
(we need devfs)

Approved by: The Hubbard

24 years agofixed missing trailing \
Bill Swingle [Fri, 18 Feb 2000 05:31:26 +0000 (05:31 +0000)]
fixed missing trailing \

Submitted by: Thimble Smith <tim@mysql.com>

24 years agoReflect that dd accepts octal and hexadecimal numbers (in addition to decimal).
Gregory Sutter [Fri, 18 Feb 2000 04:55:40 +0000 (04:55 +0000)]
Reflect that dd accepts octal and hexadecimal numbers (in addition to decimal).

PR: 16750
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>

24 years agoack. Ignore me. Log should read:
Bill Swingle [Fri, 18 Feb 2000 03:36:52 +0000 (03:36 +0000)]
ack. Ignore me. Log should read:

Added references to related man pages that should be under the
"See Also" section. The related PR mentions some missing man pages
that Jason has added to his to do list.

24 years agoHide more debugging behind isDebug(); what's currently
Jordan K. Hubbard [Fri, 18 Feb 2000 03:06:43 +0000 (03:06 +0000)]
Hide more debugging behind isDebug(); what's currently
spewing out will only alarm people.

24 years agoadd missing newline to previous cosmetic fixes.
Jordan K. Hubbard [Fri, 18 Feb 2000 03:02:32 +0000 (03:02 +0000)]
add missing newline to previous cosmetic fixes.

24 years agoForced commit to correct log message of previous commit: create
Satoshi Asami [Fri, 18 Feb 2000 02:35:24 +0000 (02:35 +0000)]
Forced commit to correct log message of previous commit: create
${X11BASE}/lib/X11/fonts/local.

24 years agoAdds missing symlinks for pthread related manpages.
Bill Swingle [Fri, 18 Feb 2000 02:26:27 +0000 (02:26 +0000)]
Adds missing symlinks for pthread related manpages.

PR: 16537
Submitted by: AnarCat <beaupran@iro.umontreal.ca>
Approved by: jasone

24 years agoRemoved pthread(3) references to non-existant pthread related manpages.
Bill Swingle [Fri, 18 Feb 2000 02:10:38 +0000 (02:10 +0000)]
Removed pthread(3) references to non-existant pthread related manpages.
I discussed this with Jason Evans and he's put these on his to-do list.

PR: 16537
Submitted by: AnarCat <beaupran@iro.umontreal.ca>
Approved by: jasone

24 years agoAdd ${X11BASE}/lib/X11/local -- this directory is created by the X
Satoshi Asami [Fri, 18 Feb 2000 01:20:12 +0000 (01:20 +0000)]
Add ${X11BASE}/lib/X11/local -- this directory is created by the X
installation, so it should be in this file too.

Approved by: jkh

24 years agoTypo fix: s/replace/replaced/
Jordan K. Hubbard [Fri, 18 Feb 2000 00:12:25 +0000 (00:12 +0000)]
Typo fix: s/replace/replaced/

Submitted by: Adam <bsdx@looksharp.net>

24 years agoIncrease the time we spend waiting for the controller to become ready to
Mike Smith [Thu, 17 Feb 2000 23:33:57 +0000 (23:33 +0000)]
Increase the time we spend waiting for the controller to become ready to
accept a new command; in high load cases it may be too busy for the old
value.

This loop needs something to tie it to real time, rather than just the CPU's
ability to fetch from the L1 data cache, but this hack works for now.

Approved by: jkh

24 years agoChange the mountroot prompt to something that doesn't look at all like a
Mike Smith [Thu, 17 Feb 2000 23:32:08 +0000 (23:32 +0000)]
Change the mountroot prompt to something that doesn't look at all like a
firmware prompt.  Several sleepy folk mistook the '>>>' for the SRM
prompt, which was never the desired idea.

Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Approved by: jkh

24 years agoDon't include <machine/ipl.h> in <sys/systm.h> in the i386 case. This
Bruce Evans [Thu, 17 Feb 2000 18:37:45 +0000 (18:37 +0000)]
Don't include <machine/ipl.h> in <sys/systm.h> in the i386 case.  This
fixes some namespace pollution in general and breakage of modules that
aren't in the sys tree in particular (<machine/ipl.h> includes further
headers that aren't installed under /usr/include).

Reimplemented SPLASSERT() so that it is more machine independent and
less bloated and doesn't require the <machine/ipl.h> include spam.
In particular, don't assume that `cpl' can be printed using %08x
format.  The alpha arch doesn't even have `cpl'.  SPLASSERT() was
harmless on alphas because it isn't actually used.

24 years agoIf no distribution file is found, abort the installation. Previous
Daniel C. Sobral [Thu, 17 Feb 2000 17:59:41 +0000 (17:59 +0000)]
If no distribution file is found, abort the installation. Previous
behavior silently ignored the problem. This affects installations
from a filesystem, and possible other types of media.

Approved by: jkh

24 years agoIf the installation media disappears in the process of installing
Daniel C. Sobral [Thu, 17 Feb 2000 17:57:40 +0000 (17:57 +0000)]
If the installation media disappears in the process of installing
a distribution, recognize it and treat as fatal media error. This
happens in the case of a timeout on FTP installations where the
user chooses not to select another FTP site, and resulted in
segmentation fault.

Approved by: jkh

24 years agoMerged from sys/isa/sio.c rev 1.288.
KATO Takenori [Thu, 17 Feb 2000 15:09:12 +0000 (15:09 +0000)]
Merged from sys/isa/sio.c rev 1.288.

24 years agoSynced with sys/i386/i386/userconfig.c rev 1.173.
KATO Takenori [Thu, 17 Feb 2000 14:45:05 +0000 (14:45 +0000)]
Synced with sys/i386/i386/userconfig.c rev 1.173.

24 years agoNote SA_SIGINFO, FPE trapcodes and sh fixes.
Martin Cracauer [Thu, 17 Feb 2000 07:59:37 +0000 (07:59 +0000)]
Note SA_SIGINFO, FPE trapcodes and sh fixes.
Fix whitespace, use two blank lines before new chapters.

Approved by: jkh

24 years agoVarious cosmetic fixes, stop saying "DES" when we really mean "crypto",
Jordan K. Hubbard [Thu, 17 Feb 2000 06:15:11 +0000 (06:15 +0000)]
Various cosmetic fixes, stop saying "DES" when we really mean "crypto",
go for more sensible defaults in a couple of menus.

24 years agoAdd the VIA 82C596B PCI ISA south bridge on my ASUS P3V133.
Warner Losh [Thu, 17 Feb 2000 06:12:16 +0000 (06:12 +0000)]
Add the VIA 82C596B PCI ISA south bridge on my ASUS P3V133.

Approved by: jkh

24 years agoFix previous commit to not use the PAO 'any' keyword.
Warner Losh [Thu, 17 Feb 2000 06:02:21 +0000 (06:02 +0000)]
Fix previous commit to not use the PAO 'any' keyword.

Approved: Prior commit approved by jkh

24 years agoThe default rule in this file actually sent mail to root as its default
Jordan K. Hubbard [Thu, 17 Feb 2000 04:52:23 +0000 (04:52 +0000)]
The default rule in this file actually sent mail to root as its default
action when denying access to a service.  Unfortunately, this also makes
a dandy denial-of-service attack possible.  Change to just log the event
and shoot a "go away" response back down the socket.

24 years agos/wd/ad/ - new ATA code
Jordan K. Hubbard [Thu, 17 Feb 2000 04:40:11 +0000 (04:40 +0000)]
s/wd/ad/ - new ATA code

24 years agoFrom the PR:
Bill Swingle [Thu, 17 Feb 2000 03:40:21 +0000 (03:40 +0000)]
From the PR:

  The description of -X option in csh(1) manpage uses a wording
  that references the descriptions of -x, -v and -V.  This might
  be a little confusing.  Changed this to a complete description
  that does not reference other paragraphs.

PR: 16762
Submitted: Giorgos Keramidas <keramida@ceid.upatras.gr>

24 years agoFix nybble-order bug in PIM printer.
Bill Fenner [Thu, 17 Feb 2000 03:30:04 +0000 (03:30 +0000)]
Fix nybble-order bug in PIM printer.

Approved by: jkh

24 years agoFrom the PR:
Bill Swingle [Thu, 17 Feb 2000 03:23:39 +0000 (03:23 +0000)]
From the PR:

  The first paragraph of "Argument list processing" says that an
  argument of - will make csh be a login shell.  However, running
  csh with only a - as an argument fails with the error message.

csh(1) corrected to reflect this.

PR: 16754
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>

24 years agoFrom the PR:
Bill Swingle [Thu, 17 Feb 2000 03:17:03 +0000 (03:17 +0000)]
From the PR:

  Three minor changes to the manpage of chmod(1).

  1. At the description of -H option, I added that symlinks are
  not followed _by default_ to show that links can be followed,
  but the default chmod behavior is not to do so.

  2. Moved a misplaced .Va file command up to the place it belongs.

  3. Simplified the grammar that describes symbolic modes.

PR: 16749
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>

24 years agoupdates the vidcontrol man page to include mention of the new -M flag
Bill Swingle [Thu, 17 Feb 2000 03:00:38 +0000 (03:00 +0000)]
updates the vidcontrol man page to include mention of the new -M flag

PR: 16221
Submitted by: Kelly Yancey <kbyanc@posi.net>

24 years agoTypo in example: 'vn0' should be 'vn1'
Gregory Sutter [Thu, 17 Feb 2000 02:54:36 +0000 (02:54 +0000)]
Typo in example: 'vn0' should be 'vn1'
'boundry' -->  'boundary'
'seperated' --> 'separated'

PR: 16623
Submitted by: Munehiro Matsuda <haro@tk.kubota.co.jp>

24 years agoClose a file descriptor leak in the code which loads file objects.
Mike Smith [Thu, 17 Feb 2000 02:19:19 +0000 (02:19 +0000)]
Close a file descriptor leak in the code which loads file objects.

Submitted by: Paul Saab <paul@mu.org>
Approved by: jkh

24 years agoCommitted changes to restore(8) for previously undocumented -N option.
Bill Swingle [Thu, 17 Feb 2000 02:15:18 +0000 (02:15 +0000)]
Committed changes to restore(8) for previously undocumented -N option.

PR: 15600
Reviewed by: jim

24 years agoDoc fix: remove references to ~ftp/bin/ls as we have FTPD_INTERNAL_LS
Peter Wemm [Thu, 17 Feb 2000 02:14:11 +0000 (02:14 +0000)]
Doc fix: remove references to ~ftp/bin/ls as we have FTPD_INTERNAL_LS
unconditionally active already.

Noticed by: obrien

24 years ago/tmp --> /var/tmp, for consistency with the rest of the example.
Gregory Sutter [Thu, 17 Feb 2000 00:43:04 +0000 (00:43 +0000)]
/tmp --> /var/tmp, for consistency with the rest of the example.

PR: 16463
Submitted by: Mike Heffner <spock@techfour.net>
Reviewed by: jim

24 years agoModified jail.8 to correct a typo (inetd_flas vs. inetd_flags), and add
Robert Watson [Wed, 16 Feb 2000 23:50:43 +0000 (23:50 +0000)]
Modified jail.8 to correct a typo (inetd_flas vs. inetd_flags), and add
a comment to the effect that I'm responsible for the additional
documentation, et al, so that phk gets fewer messages about my errors.

24 years agoFix a typo (simple --> simply).
Jason Evans [Wed, 16 Feb 2000 22:45:51 +0000 (22:45 +0000)]
Fix a typo (simple --> simply).

24 years ago Fix null-pointer dereference crash when the system is intentionally
Matthew Dillon [Wed, 16 Feb 2000 21:11:33 +0000 (21:11 +0000)]
Fix null-pointer dereference crash when the system is intentionally
    run out of KVM through a mmap()/fork() bomb that allocates hundreds
    of thousands of vm_map_entry structures.

    Add panic to make null-pointer dereference crash a little more verbose.

    Add a new sysctl, vm.max_proc_mmap, which specifies the maximum number
    of mmap()'d spaces (discrete vm_map_entry's in the process).  The value
    defaults to around 9000 for a 128MB machine.  The test is scaled for the
    number of processes sharing a vmspace (aka linux threads).  Setting
    the value to 0 disables the feature.

PR: kern/16573
Approved by: jkh

24 years agoAdd short entries about the state of threads support.
Jason Evans [Wed, 16 Feb 2000 19:38:20 +0000 (19:38 +0000)]
Add short entries about the state of threads support.

i386/RELNOTES.TXT: Remove an alpha-specific comment with regard to gdb.

Approved by: jkh

24 years agoFor errors, return -1 and set errno to indicate the error type, rather than
Jason Evans [Wed, 16 Feb 2000 19:34:53 +0000 (19:34 +0000)]
For errors, return -1 and set errno to indicate the error type, rather than
returning the error directly.

For sem_post(), make sure that the correct thread is woken up.  This has
unfortunate performance implications, but is necessary for POSIX compliance.

Approved by: jkh

24 years agoAdd man pages for the sem_*() functions.
Jason Evans [Wed, 16 Feb 2000 19:31:53 +0000 (19:31 +0000)]
Add man pages for the sem_*() functions.

Approved by: jkh

24 years agoRemove a diagnostic printf.
Justin T. Gibbs [Wed, 16 Feb 2000 18:41:00 +0000 (18:41 +0000)]
Remove a diagnostic printf.

Noticed by:  imp@FreeBSD.org

24 years agoThese are regression tests for the P1003.1B scheduler.
Peter Dufault [Wed, 16 Feb 2000 14:28:42 +0000 (14:28 +0000)]
These are regression tests for the P1003.1B scheduler.

Approved by: jkh

24 years agoAdd libhistory.so.3 from 3.4-RELEASE.
David E. O'Brien [Wed, 16 Feb 2000 11:02:16 +0000 (11:02 +0000)]
Add libhistory.so.3 from 3.4-RELEASE.

Approved by: JKH

24 years agoFix typo's.
Jeroen Ruigrok van der Werven [Wed, 16 Feb 2000 07:40:23 +0000 (07:40 +0000)]
Fix typo's.

Submitted by: George Cox <gjvc@extremis.demon.co.uk>

24 years agoThis patch to BTX fixes several small things:
John Baldwin [Wed, 16 Feb 2000 07:00:16 +0000 (07:00 +0000)]
This patch to BTX fixes several small things:

1) Fix a bug in the int15 function 87 emulation where we only copied half
   of what the BIOS asked for.  This caused the Mylex RAID adapter to go
   haywire and start trashing memory when you tried to boot from it.
2) Don't use interrupt 19 to reboot.  Instead, set the reboot flag to a warm
   boot and jump to the BIOS's reboot handler.  int 19 doesn't clear memory
   or restore the interrupt vector table, and thus really isn't safe.  For
   example, when booting off of PXE, the PXE BIOS eats up a chunk of memory
   for its internal data and structures.  Since we rebooted via int 19,
   using the 'reboot' command in the loader resulted in that memory not
   being reclaimed by the BIOS.  Thus, after a few PXE boots, the system
   was out of lower memory.
3) Catch any int 19 calls made by a BTX client or a user pressing
   Ctrl-Alt-Delete and shutdown BTX and reboot the machine cleanly.  This
   fixes Ctrl-Alt-Delete in the loader and in boot2 instead of presenting
   the user with a BTX fault.

Approved by: jkh
Found by: 1) by msmith

24 years agoFix coredump in gethostbyaddr() when the returned answer is too large to
Bill Fenner [Wed, 16 Feb 2000 04:39:00 +0000 (04:39 +0000)]
Fix coredump in gethostbyaddr() when the returned answer is too large to
 fit in the static buffer.  This fix causes it to look like there is no
 data available, which is also wrong but is better than dumping core.

PR: bin/10344
Reviewed by: billf
Approved by: jkh

24 years agoMake it clear that 'options XSERVER' is for pcvt and not for syscons.
Kazutaka YOKOTA [Wed, 16 Feb 2000 04:27:04 +0000 (04:27 +0000)]
Make it clear that 'options XSERVER' is for pcvt and not for syscons.

Submitted by: Doug Barton <Doug@gorean.org>
Approved by: jkh

24 years agoTrack if_i{bytes,packets,errors}.
Matthew N. Dodd [Wed, 16 Feb 2000 04:04:36 +0000 (04:04 +0000)]
Track if_i{bytes,packets,errors}.

Approved by:  jkh

24 years agoInclude the file that defines PCIM_CMD_BUSMASTEREN.
Matt Jacob [Wed, 16 Feb 2000 02:22:37 +0000 (02:22 +0000)]
Include the file that defines PCIM_CMD_BUSMASTEREN.

24 years agoEnsure that the busmaster enable bit is set; we can't assume that all
Mike Smith [Wed, 16 Feb 2000 01:12:09 +0000 (01:12 +0000)]
Ensure that the busmaster enable bit is set; we can't assume that all
BIOS code will get this right (and some certainly doesn't).

Submitted by: W. Gerald Hicks <jhix@mindspring.com>
Approved by: jkh

24 years agoFix a leak. (Thanks Bruce, this was a bonehead mistake on my part :).)
Sean Eric Fagan [Tue, 15 Feb 2000 20:25:47 +0000 (20:25 +0000)]
Fix a leak.  (Thanks Bruce, this was a bonehead mistake on my part :).)

Submitted by: Bruce Evans

24 years agoHide the boring ``not probed (disabled)'' messages behind `bootverbose'.
Joerg Wunsch [Tue, 15 Feb 2000 19:23:34 +0000 (19:23 +0000)]
Hide the boring ``not probed (disabled)'' messages behind `bootverbose'.
This unspams the boot messages, concentrating on the drivers that have
actually been probed.

This basically resurrects revision 1.106 from old /sys/i386/isa/isa.c.

Reviewed by: jkh, dfr

24 years agoThe AlphaServer 1000A is now known to work. Remove mentions of it
Andrew Gallatin [Tue, 15 Feb 2000 18:49:27 +0000 (18:49 +0000)]
The AlphaServer 1000A is now known to work.  Remove mentions of it
being untested.

Approved by: jkh

24 years agoo Wilko Bulte has tested our AlphaServer 1000A ("Noritake") support
Andrew Gallatin [Tue, 15 Feb 2000 18:47:51 +0000 (18:47 +0000)]
o Wilko Bulte has tested our AlphaServer 1000A ("Noritake") support
  code & it survives a buildworld.  So remove the dire warnings about
  Noritake support being untested.

o Remove a disconserting printf() left over from NetBSD

Approved by:  jkh

24 years agoAdd userconfig entries for the new atapi devices.
Jordan K. Hubbard [Tue, 15 Feb 2000 18:33:25 +0000 (18:33 +0000)]
Add userconfig entries for the new atapi devices.
Submitted by: Dan Papasian <bugg@bugg.strangled.net>

24 years agoFix pathname of pim6sd.conf from /usr/local/v6/etc to /etc.
Yoshinobu Inoue [Tue, 15 Feb 2000 18:33:22 +0000 (18:33 +0000)]
Fix pathname of pim6sd.conf from /usr/local/v6/etc to /etc.

Approved by: jkh

24 years agoFix pathname of pim6dd.conf from /usr/local/v6/etc to /etc.
Yoshinobu Inoue [Tue, 15 Feb 2000 18:30:24 +0000 (18:30 +0000)]
Fix pathname of pim6dd.conf from /usr/local/v6/etc to /etc.

Approved by: jkh

24 years ago-P option was not enabled, so enable it
Yoshinobu Inoue [Tue, 15 Feb 2000 18:24:27 +0000 (18:24 +0000)]
-P option was not enabled, so enable it
(The option specify IPsec policy for rtadvd to receive Router Renumbering
messages.)

Approved by: jkh

24 years agoCorrect pathname of rtadvd.conf from /usr/local/v6/etc to /etc.
Yoshinobu Inoue [Tue, 15 Feb 2000 18:21:38 +0000 (18:21 +0000)]
Correct pathname of rtadvd.conf from /usr/local/v6/etc to /etc.

Approved by: jkh

24 years agoInclude /usr/libexec in the list of upgrade targets by chflags'ing it first.
Jordan K. Hubbard [Tue, 15 Feb 2000 18:13:56 +0000 (18:13 +0000)]
Include /usr/libexec in the list of upgrade targets by chflags'ing it first.

24 years agoFixed regressions in rev.1.274:
Bruce Evans [Tue, 15 Feb 2000 17:29:09 +0000 (17:29 +0000)]
Fixed regressions in rev.1.274:
1) Non-AST4 multiport cards were broken by bypassing the code that changes
   `idev' to the multiport master device.
2) AST4 multiport cards apparently were broken by inverting the test for
   the master device having an irq.
3) Error handling for nonexistent master devices was broken by removing a
   check for a null pointer.
4) `int' error codes returned by bus_get_resource() were assigned directly
   to the boolean variable com->no_irq.  Probably harmless, since the
   boolean is implemented as a u_char.

Submitted by: part 1) by Chris Radek <cradek@in221.inetnebr.com>
part 2) by yokota
Approved by: jkh

24 years agoFix bugs in telnet.
Yoshinobu Inoue [Tue, 15 Feb 2000 15:59:12 +0000 (15:59 +0000)]
Fix bugs in telnet.

  Sorry there were still several bugs.
   -error retry at af missmatch was incomplete.
   -af matching for source addr option was wrong
   -socket was not freed at retry.

Approved by: jkh

24 years agoAdd -4 and -6 options.
Yoshinobu Inoue [Tue, 15 Feb 2000 15:11:40 +0000 (15:11 +0000)]
Add -4 and -6 options.

 Current getaddrinfo() implemetation has a problem of too much resolving
 waiting time on INET6 enabled systems.
 -4 and -6 options can limit name resolving address family and is a possible
 workaround for the problem.

Approved by: jkh

24 years agoAdd IPv6 loopback entry into src/etc/hosts.
Yoshinobu Inoue [Tue, 15 Feb 2000 14:59:16 +0000 (14:59 +0000)]
Add IPv6 loopback entry into src/etc/hosts.

  Missing IPv6 loopback name record cause name resolving lock
  on INET6 enabled systems in some cases.
  So define it.

Approved by: jkh

24 years agoNo arguments needed for fore_dnld any longer.
Poul-Henning Kamp [Tue, 15 Feb 2000 13:21:43 +0000 (13:21 +0000)]
No arguments needed for fore_dnld any longer.

Approved by: jkh