]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoRemove variables no longer used.
yar [Tue, 27 Aug 2002 09:05:03 +0000 (09:05 +0000)]
Remove variables no longer used.

21 years agoMore inithosts() fixes:
yar [Tue, 27 Aug 2002 09:02:52 +0000 (09:02 +0000)]
More inithosts() fixes:
o Don't free(3) memory occupied by host structures
  already in the host list.
o Set hrp->hostinfo to NULL if a host record has to stay in
  the host list, but is to be ignored.  Selecthost() knows that.
o Reduce the pollution with excessive NULL checks.
o Close a couple of memory leaks.

MFC after: 1 week

21 years agoAdd the -A flag to the usage line.
iedowse [Tue, 27 Aug 2002 08:09:37 +0000 (08:09 +0000)]
Add the -A flag to the usage line.

Submitted by: Yutaka KAWASE <yutaka@mailhost.net>
MFC after: 3 days

21 years agoFix a bug about the cooling system controlling in acpi_thermal driver.
iwasaki [Tue, 27 Aug 2002 07:53:55 +0000 (07:53 +0000)]
Fix a bug about the cooling system controlling in acpi_thermal driver.
Recent version of ACPI CA returns the package object which contains
object reference elements if the elements are named objects.
We need to be careful when you use acpi_ForeachPackageObject() in new
code...

21 years agoFix an inconsistency between a printf-like format and its argument list.
yar [Tue, 27 Aug 2002 07:38:55 +0000 (07:38 +0000)]
Fix an inconsistency between a printf-like format and its argument list.

Submitted by: kris
MFC after: 3 days

21 years agoUse _BSD_VA_LIST_ rather than __va_list if it's defined
brian [Tue, 27 Aug 2002 04:37:04 +0000 (04:37 +0000)]
Use _BSD_VA_LIST_ rather than __va_list if it's defined

21 years agoWhitespace fix from last commit.
trhodes [Tue, 27 Aug 2002 01:02:56 +0000 (01:02 +0000)]
Whitespace fix from last commit.

21 years agoFix some grammar errors in loader.conf.5
trhodes [Tue, 27 Aug 2002 01:01:31 +0000 (01:01 +0000)]
Fix some grammar errors in loader.conf.5

PR: 40237
Submitted by: Chris Pepper <pepper@rockefeller.edu>

21 years agoFix some 'SYNOPSIS' and 'usage' messages.
trhodes [Tue, 27 Aug 2002 00:49:27 +0000 (00:49 +0000)]
Fix some 'SYNOPSIS' and 'usage' messages.

21 years agoHave to create opt_bus.h for sys/bus.h to be happy. *sigh*
jhb [Mon, 26 Aug 2002 21:11:56 +0000 (21:11 +0000)]
Have to create opt_bus.h for sys/bus.h to be happy.  *sigh*

Noticed by: imp and others

21 years agoCorrect the FAQ url
brian [Mon, 26 Aug 2002 20:48:07 +0000 (20:48 +0000)]
Correct the FAQ url

Submitted by: Olivier Tharan <olive@oban.frmug.org>

21 years agoOops, forgot to hook up the ACPI PCI bus in the module.
jhb [Mon, 26 Aug 2002 19:00:36 +0000 (19:00 +0000)]
Oops, forgot to hook up the ACPI PCI bus in the module.

Noticed by: imp

21 years agoBack out TX/RX descriptor/buffer management changes from earier commit.
pdeuskar [Mon, 26 Aug 2002 18:59:16 +0000 (18:59 +0000)]
Back out TX/RX descriptor/buffer management changes from earier commit.
We are having panics with the driver under stress with jumbo frames.
Unfortunately we didnot catch it during our regular test cycle.
I am going to MFC the backout immediately.

21 years agoAdd a new KTR type KTR_CONTENTION, and use it in the mutex code to
iedowse [Mon, 26 Aug 2002 18:39:38 +0000 (18:39 +0000)]
Add a new KTR type KTR_CONTENTION, and use it in the mutex code to
log the start and end of periods during which mtx_lock() is waiting
to acquire a sleep mutex. The log message includes the file and
line of both the waiter and the holder.

Reviewed by: jhb, jake

21 years agoHook up the new ACPI PCI bus and catch up to ACPI PCI bridge driver changes.
jhb [Mon, 26 Aug 2002 18:32:00 +0000 (18:32 +0000)]
Hook up the new ACPI PCI bus and catch up to ACPI PCI bridge driver changes.

21 years agoAdd WITNESS_FILE() and WITNESS_LINE(), which allow users of witness
iedowse [Mon, 26 Aug 2002 18:31:26 +0000 (18:31 +0000)]
Add WITNESS_FILE() and WITNESS_LINE(), which allow users of witness
to print out the file and line from the lock object. These will be
used shortly by CTR() calls in the mutex code.

Reviewed by: jhb, jake

21 years agoOverhaul the ACPI PCI bridge driver a bit:
jhb [Mon, 26 Aug 2002 18:30:27 +0000 (18:30 +0000)]
Overhaul the ACPI PCI bridge driver a bit:
- Add an ACPI PCI-PCI bridge driver (the previous driver just handled
  Host-PCI bridges) that is a PCI driver that is a subclass of the generic
  PCI-PCI bridge driver.  It overrides probe, attach, read_ivar, and
  pci_route_interrupt.
  - The probe routine only succeeds if our parent is an ACPI PCI bus which
    we test for by seeing if we can read our ACPI_HANDLE as an ivar.
  - The attach routine saves a copy of our handle and calls the new
    acpi_pcib_attach_common() function described below.
  - The read_ivar routine handles normal PCI-PCI bridge ivars and adds an
    ivar to return the ACPI_HANDLE of the bus this bridge represents.
  - The route_interrupt routine fetches the _PRT (PCI Interrupt Routing
    Table) from the bridge device's softc and passes it off to
    acpi_pcib_route_interrupt() to route the interrupt.
- Split the old ACPI Host-PCI bridge driver into two pieces.  Part of
  the attach routine and most of the route_interrupt routine remain in
  acpi_pcib.c and are shared by both ACPI PCI bridge drivers.
  - The attach routine verifies the PCI bridge is present, reads in
    the _PRT for the bridge, and attaches the child PCI bus.
  - The route_interrupt routine uses the passed in _PRT to route a PCI
    interrupt.
  The rest of the driver is the ACPI Host-PCI bridge specific bits that
  live in acpi_pcib_acpi.c.
  - We no longer duplicate pcib_maxslots but use it directly.
  - The driver now uses the pcib devclass instead of its own devclass.
    This means that PCI busses are now only children of pcib devices.
  - Allow the ACPI_HANDLE for the child PCI bus to be read as an ivar
    of the child bus.
  - Fetch the _PRT for routing PCI interrupts directly from our softc
    instead of walking the devclass to find ourself and then fetch our
    own softc.

With this change and the new ACPI PCI bus driver, ACPI can now properly
route interrupts for devices behind PCI-PCI bridges.  That is, the
Itanium2 with like 10 PCI busses can now boot ok and route all the PCI
interrupts.  Hopefully this will also fix problems people are having with
CardBus bridges behind PCI-PCI bridges not properly routing interrupts
when ACPI is used.

Tested on: i386, ia64

21 years agoFix Synopsis
trhodes [Mon, 26 Aug 2002 18:16:39 +0000 (18:16 +0000)]
Fix Synopsis

21 years agoAdd an ACPI PCI bus driver that is a subclass of the generic PCI bus
jhb [Mon, 26 Aug 2002 17:55:42 +0000 (17:55 +0000)]
Add an ACPI PCI bus driver that is a subclass of the generic PCI bus
driver.  This driver overrides the probe, attach, and read_ivar methods.

If the parent bridge is an ACPI PCI bridge, then the probe routine will
match, otherwise it will fail.  It tests this by seeing if it can get
the ACPI_HANDLE ivar from the bridge device.

In the attach routine, it uses pci_add_children() to add all the child
devices (but with a slightly larger ivar so it can store ACPI_HANDLE's
for child devices) and then walks through the ACPI namespace below the
bus device to cache ACPI_HANDLE's for all child devices present in the
namespace.  It does this by comparing the pci slot and function to the
address encoded in _ADR of the devices in the ACPI namespace.

The read_ivar routine passes most requests off to pci_read_ivar()
and adds a new request so that the ACPI_HANDLE for a child device can
be read.

To add proper power support the power methods can be overridden as well,
but that is not currently implemented.  Also, there are cases where a
device may show in the ACPI namespace as a PCI device that the PCI probe
does not find.  Currently such devices are ignored.

Tested on: i386, ia64

21 years agoAdd hardware compatability notes for ahd(4)-supported devices.
bmah [Mon, 26 Aug 2002 17:54:10 +0000 (17:54 +0000)]
Add hardware compatability notes for ahd(4)-supported devices.

21 years agoAdjust scsi_calc_syncparam() to the exception table changing from 10ths to
gibbs [Mon, 26 Aug 2002 17:13:35 +0000 (17:13 +0000)]
Adjust scsi_calc_syncparam() to the exception table changing from 10ths to
100ths of ns.  This should correct a problem with camcontrol "ignoring"
requests to negotiate to slower speeds.

21 years agoExport a few symbols as globals to allow subclassing of this driver. In
jhb [Mon, 26 Aug 2002 15:57:08 +0000 (15:57 +0000)]
Export a few symbols as globals to allow subclassing of this driver.  In
OOP speak, you would mark these as 'protected' members.  Specifically:
- Make the pcib_softc struct public so it can be used by subclasses.
- Make pcib_{read,write}_ivar(), pcib_alloc_resource(), pcib_maxslots(),
  and pcib_{read,write}_config() globals that can be used by subclasses.
- Make the pcib devclass a global variable.
- Move most of the pcib_attach() function into a global
  pcib_attach_common() function that can be called by the attach routines
  of subclasses.

Tested on: i386, alpha, sparc64, ia64

21 years agoVarious changes to make it easier to subclass the PCI bus device.
jhb [Mon, 26 Aug 2002 15:23:52 +0000 (15:23 +0000)]
Various changes to make it easier to subclass the PCI bus device.
- Make the pci devclass a global variable.
- Add child devices in pci_attach() instead of pci_probe().  Change
  pci_probe() to just check for a valid bus number from the associated
  bridge and return -1000 if successful.  This allows subclasses of the
  PCI bus driver to override the generic driver.
- Move the code to load the vendor data into its own public function.
  Really though, doing this at attach is just plain wrong.  This should
  really be done in the module load routine instead.  As a side effect,
  the 'busno' variable in pci_attach() is now no longer static (minor
  bug that was harmless so far.)
- Change pci_add_children() to take an extra argument that is the size of
  the device info structure passed to pci_read_device() and make it public
  so subclasses of the PCI bus can call it in their attach routines.
- Move the bits to attach a probed PCI child to a PCI bus into a global
  pci_add_child() function.  This will allow subclasses that can detect
  a PCI device not found in the normal PCI probe to add those devices in
  their own attach routine.  (I have seen this in the ACPI tree on my
  laptop for example.)  As a side effect, change the static function
  pci_add_resources() to get the busno, slot, and func from the passed
  in dinfo structure instead of requiring them as function arguments.

Tested on: i386, alpha, ia64, sparc64

21 years agoIn acpi_pcib_route_interrupt(), the code claims to check to see if a PCI
jhb [Mon, 26 Aug 2002 15:12:47 +0000 (15:12 +0000)]
In acpi_pcib_route_interrupt(), the code claims to check to see if a PCI
LNK device (interrupt source provider sort of) is present before using it,
but the code actually tested the status (_STA) of the PCI bridge device
doing the routing, not the actual LNK device.  Fix it to check the status
of the LNK device.

21 years agoDon't dump core on packages with an invalid or empty PLIST.
reg [Mon, 26 Aug 2002 13:25:48 +0000 (13:25 +0000)]
Don't dump core on packages with an invalid or empty PLIST.

Reviewed by: markm

21 years agoUnbreak the -c option by not using connect(2) for mount_nfs's
iedowse [Mon, 26 Aug 2002 13:08:23 +0000 (13:08 +0000)]
Unbreak the -c option by not using connect(2) for mount_nfs's
communication with the remote NFS server if this flag is specified.

PR: bin/42003
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>

21 years agoThe previous commit log was incorrect. _BSD_CLK_TCK_ and
mike [Mon, 26 Aug 2002 06:33:09 +0000 (06:33 +0000)]
The previous commit log was incorrect.  _BSD_CLK_TCK_ and
_BSD_CLOCKS_PER_SEC_ are not as related to stathz as I thought.  So
the previous revision will only serve to unify alpha with i386 and
other architectures.  This actually does introduce some binary
incompatibilities for dynamically linked programs which make use of
clock(3) and times(3).

21 years agoGrammar fix.
keramida [Mon, 26 Aug 2002 06:16:51 +0000 (06:16 +0000)]
Grammar fix.

PR: docs/42021
Submitted by: Jeff Ito <jeffi@rcn.com>
MFC after: 3 days

21 years agomove the assert to cover more cases
julian [Mon, 26 Aug 2002 05:02:56 +0000 (05:02 +0000)]
move the assert to cover more cases

21 years agoFix 'SYNOPSIS' and 'usage'
trhodes [Mon, 26 Aug 2002 04:56:23 +0000 (04:56 +0000)]
Fix 'SYNOPSIS' and 'usage'

21 years agoPrint a more realistic usage message 'special_device' 'inode_number'. This
trhodes [Mon, 26 Aug 2002 03:56:23 +0000 (03:56 +0000)]
Print a more realistic usage message 'special_device' 'inode_number'.  This
matches the synopsis given in the manual page.

MFC after: 3 days

21 years agoGrrr.... mumble.... a linger gzip'ism still existed.
obrien [Mon, 26 Aug 2002 03:44:44 +0000 (03:44 +0000)]
Grrr.... mumble.... a linger gzip'ism still existed.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoSince arm and powerpc aren't far enough to set stathz, take a
mike [Mon, 26 Aug 2002 03:44:11 +0000 (03:44 +0000)]
Since arm and powerpc aren't far enough to set stathz, take a
preemptive strike and change _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_
to 128.

Approved by: benno

21 years agoFix a long-standing bug on alpha:
mike [Mon, 26 Aug 2002 02:39:03 +0000 (02:39 +0000)]
Fix a long-standing bug on alpha:
  Change _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ to match stathz.  This
  should result in bug for bug compatibility in staticly linked
  programs and dynamicly linked programs should see an immediate
  correction.

21 years agoClarify that the date 26 August 1920 was the date women got the vote
grog [Mon, 26 Aug 2002 00:23:56 +0000 (00:23 +0000)]
Clarify that the date 26 August 1920 was the date women got the vote
in USA, not the world first.

Add dates for women's votes in New Zealand.

Add dates for women's votes and rights to political office in South
Australia.

21 years agoDocument -p option of diff.
keramida [Mon, 26 Aug 2002 00:13:06 +0000 (00:13 +0000)]
Document -p option of diff.

PR: docs/41887
Submitted by: tobez

21 years agoFixed most indentation bugs.
jake [Sun, 25 Aug 2002 22:36:52 +0000 (22:36 +0000)]
Fixed most indentation bugs.

21 years agoFixed placement of operators. Wrapped long lines.
jake [Sun, 25 Aug 2002 20:48:45 +0000 (20:48 +0000)]
Fixed placement of operators.  Wrapped long lines.

21 years agoBackout rev 1.4. The code certainly does not spell the sysctl with 'ed':
obrien [Sun, 25 Aug 2002 20:02:30 +0000 (20:02 +0000)]
Backout rev 1.4.  The code certainly does not spell the sysctl with 'ed':
$ grep disable /sys/boot/i386/libi386/i386_module.c
    if ((getenv("acpi_load") && !getenv("hint.acpi.0.disable"))) {

21 years agoMove intrmask_t to the kernel-only section of <sys/types.h>. Add some
mike [Sun, 25 Aug 2002 19:26:31 +0000 (19:26 +0000)]
Move intrmask_t to the kernel-only section of <sys/types.h>.  Add some
comments submitted by bde.

21 years agoRearrange a sentence that got stuck in the wrong paragraph.
dillon [Sun, 25 Aug 2002 18:54:04 +0000 (18:54 +0000)]
Rearrange a sentence that got stuck in the wrong paragraph.

X-MFC after: (all commits here will be MFCd)

21 years agoClear up confusion in a sentence describing [/var]/tmp.
dillon [Sun, 25 Aug 2002 18:46:43 +0000 (18:46 +0000)]
Clear up confusion in a sentence describing [/var]/tmp.

21 years agoAdd suspend/resume method to syscons. This switch the mode
iwasaki [Sun, 25 Aug 2002 18:35:44 +0000 (18:35 +0000)]
Add suspend/resume method to syscons.  This switch the mode
(text <-> graphics) by changing current vty during ACPI
sleep/wakeup (maybe APM also).

21 years agoAdd a section on the net.inet.ip.portrange.* sysctls.
dillon [Sun, 25 Aug 2002 18:34:48 +0000 (18:34 +0000)]
Add a section on the net.inet.ip.portrange.* sysctls.

Suggested by: Mike Harding <mvh@ix.netcom.com>
MFC after: 3 days

21 years agoFix a couple of typos in comments.
julian [Sun, 25 Aug 2002 17:49:28 +0000 (17:49 +0000)]
Fix a couple of typos in comments.
Submitted by: Jake Burkholder <jake@locore.ca>

21 years agoAppend a d to disable to make the ACPI hint example valid.
mike [Sun, 25 Aug 2002 16:48:16 +0000 (16:48 +0000)]
Append a d to disable to make the ACPI hint example valid.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoReplace various spelling with FALLTHROUGH which is lint()able
charnier [Sun, 25 Aug 2002 13:30:43 +0000 (13:30 +0000)]
Replace various spelling with FALLTHROUGH which is lint()able

21 years agoReplace various spelling with FALLTHROUGH which is lint()able
charnier [Sun, 25 Aug 2002 13:23:09 +0000 (13:23 +0000)]
Replace various spelling with FALLTHROUGH which is lint()able

21 years agoReplace various spelling with FALLTHROUGH which is lint()able
charnier [Sun, 25 Aug 2002 13:10:45 +0000 (13:10 +0000)]
Replace various spelling with FALLTHROUGH which is lint()able

21 years agoReplace various spellings with FALLTHROUGH which is lint()able
charnier [Sun, 25 Aug 2002 13:01:47 +0000 (13:01 +0000)]
Replace various spellings with FALLTHROUGH which is lint()able

21 years agoReformat the mvterm entry to fit mostly in an 80 column terminal.
schweikh [Sun, 25 Aug 2002 12:12:46 +0000 (12:12 +0000)]
Reformat the mvterm entry to fit mostly in an 80 column terminal.

Suggested by: bde
MFC after: 3 days

21 years agoOops, the previous commit messages should have said that the previous
bde [Sun, 25 Aug 2002 08:08:56 +0000 (08:08 +0000)]
Oops, the previous commit messages should have said that the previous
commit also removed the hint about using -Werror.  -Werror is now added
in sys/conf/kern.pre.mk, which is a better place except it doesn't cover
modules.

21 years agoTurned format checking back on. It was left turned off for too long after
bde [Sun, 25 Aug 2002 08:05:02 +0000 (08:05 +0000)]
Turned format checking back on.  It was left turned off for too long after
the gcc lossage that caused it to be turned off was fixed.

Tested with: i386/{GENERIC,LINT,...}, alpha/GENERIC

21 years agoRemove a repeated word.
chris [Sun, 25 Aug 2002 07:13:05 +0000 (07:13 +0000)]
Remove a repeated word.

Submitted by: horikawa

21 years agoRemove extra args to printf
imp [Sun, 25 Aug 2002 06:15:50 +0000 (06:15 +0000)]
Remove extra args to printf
use Capabilities rather than Capacities.

Submitted by: kkenn

21 years agoAdd new sysctl MIB (hw.acpi.sleep_delay) to specify the delay (in
iwasaki [Sun, 25 Aug 2002 06:13:53 +0000 (06:13 +0000)]
Add new sysctl MIB (hw.acpi.sleep_delay) to specify the delay (in
seconds) before ACPI sleep.  Some machines might need this to sleep
by Hot-key.

21 years agoDon't give up on a remote log host when we get a EHOSTUNREACH or
cjc [Sun, 25 Aug 2002 06:05:25 +0000 (06:05 +0000)]
Don't give up on a remote log host when we get a EHOSTUNREACH or
EHOSTDOWN. These are often transient errors (when the remote host
reboots, temporary network problems, etc.), and we'd rather err on the
side of caution and keep trying send messages that never arrive than
just give up.

Note that this is not an implementation of the "back-off" methods
given in the PR. Those just seem too complicated. Why not just keep
trying each time? Trying and failing doesn't really consume
significantly more resources than if we were successful for each
message.

PR: bin/31029
MFC after: 1 week

21 years agoCheck if a host argument is a IPv6 presentation format address before
cjc [Sun, 25 Aug 2002 05:44:13 +0000 (05:44 +0000)]
Check if a host argument is a IPv6 presentation format address before
going to gethostbyname2(3).

PR: bin/31632
MFC after: 3 days

21 years ago o Retire pmap_pageable(). It's an advisory routine that none
alc [Sun, 25 Aug 2002 04:20:05 +0000 (04:20 +0000)]
 o Retire pmap_pageable().  It's an advisory routine that none
   of our platforms implements.

21 years agoOnly create a temporary file if we are actually going to do something
cjc [Sun, 25 Aug 2002 04:09:17 +0000 (04:09 +0000)]
Only create a temporary file if we are actually going to do something
in the script. Eliminates a bug where we create a temp file, but don't
delete it since the rm(1) is only done if the check is enabled.

PR: bin/40960
Submitted by: frf <frf@xocolatl.com>
MFC after: 3 days

21 years agoLock the sysctl(8) knobs that turn ip{,6}fw(8) firewalling and
cjc [Sun, 25 Aug 2002 03:50:29 +0000 (03:50 +0000)]
Lock the sysctl(8) knobs that turn ip{,6}fw(8) firewalling and
firewall logging on and off when at elevated securelevel(8). It would
be nice to be able to only lock these at securelevel >= 3, like rules
are, but there is no such functionality at present. I don't see reason
to be adding features to securelevel(8) with MAC being merged into 5.0.

PR: kern/39396
Reviewed by: luigi
MFC after: 1 week

21 years agoReformat some comments to fit in 80 columns and
julian [Sun, 25 Aug 2002 02:56:15 +0000 (02:56 +0000)]
Reformat some comments to fit in 80 columns and
rewrite some comments that have 'aged' poorly.

21 years agoMake this compile without needing NO_WERROR.
peter [Sun, 25 Aug 2002 02:51:13 +0000 (02:51 +0000)]
Make this compile without needing NO_WERROR.

21 years agoAdd a -C ala GNU make(1) for Makefiles which are too lazy to use $(MAKE) and
jmallett [Sun, 25 Aug 2002 02:45:04 +0000 (02:45 +0000)]
Add a -C ala GNU make(1) for Makefiles which are too lazy to use $(MAKE) and
this particular GNU flag.  It changes into the given directory for the
operation in question.  This just goes into said directory at the time of
parsing the argument for getopt(3).

Submitted by: Rachel Hestilow <rachel@jerkcity.com>

21 years agoFixed printf format errors and style bugs in rev.1.92. This is the version
bde [Sun, 25 Aug 2002 02:39:07 +0000 (02:39 +0000)]
Fixed printf format errors and style bugs in rev.1.92.  This is the version
that should have been committed in rev.1.93.

21 years agoOops, the previous commit wasn't the version that I meant to commit (it
bde [Sun, 25 Aug 2002 02:34:18 +0000 (02:34 +0000)]
Oops, the previous commit wasn't the version that I meant to commit (it
does some extra things which are probably harmless).  Back it out.

21 years agoAdd suspend and resume support.
orion [Sun, 25 Aug 2002 02:00:49 +0000 (02:00 +0000)]
Add suspend and resume support.

Contributed by: Takanori Watanabe <takawata@FreeBSD.org>
PR: kern/41809

21 years agoAdd a sentence on the TCP retransmission timer changes
dillon [Sun, 25 Aug 2002 01:59:07 +0000 (01:59 +0000)]
Add a sentence on the TCP retransmission timer changes
and the TCP bandwidth delay product window limiting features.

note: the -current version of the retransmit timer defaults
to 200ms while the -stable version defaults to 1 second for now.
MFC after: 3 days

21 years agoAdd A section on the retransmit timer sysctls.
dillon [Sun, 25 Aug 2002 01:51:57 +0000 (01:51 +0000)]
Add A section on the retransmit timer sysctls.

MFC after: 3 days

21 years agoFixed editing errors in rev.1.4 which manifested as printf format errors
bde [Sun, 25 Aug 2002 01:32:22 +0000 (01:32 +0000)]
Fixed editing errors in rev.1.4 which manifested as printf format errors
at compile time and probably as panics at runtime.

21 years agoFixed printf format errors and style bugs in previous commit.
bde [Sun, 25 Aug 2002 01:08:27 +0000 (01:08 +0000)]
Fixed printf format errors and style bugs in previous commit.

21 years agoReorg just a tad to better express our bzip intentions.
obrien [Sun, 25 Aug 2002 01:01:08 +0000 (01:01 +0000)]
Reorg just a tad to better express our bzip intentions.

21 years agoFind remaining hardcoded gzip bits and change to bzip2 bits.
obrien [Sun, 25 Aug 2002 01:00:16 +0000 (01:00 +0000)]
Find remaining hardcoded gzip bits and change to bzip2 bits.
Mark with XXX so someone that cares about being able to handle either
bziped or gziped packages knows where the remaining nits are.

21 years ago o Retire vm_page_zero_fill() and vm_page_zero_fill_area(). Ever since
alc [Sun, 25 Aug 2002 00:22:31 +0000 (00:22 +0000)]
 o Retire vm_page_zero_fill() and vm_page_zero_fill_area().  Ever since
   pmap_zero_page() and pmap_zero_page_area() were modified to accept
   a struct vm_page * instead of a physical address, vm_page_zero_fill()
   and vm_page_zero_fill_area() have served no purpose.

21 years agoFixed white space around operators, casts and reserved words.
jake [Sat, 24 Aug 2002 22:55:16 +0000 (22:55 +0000)]
Fixed white space around operators, casts and reserved words.

Reviewed by: md5

21 years agoUse 'p' as the partition specifier instead of 's'. We continue to use
marcel [Sat, 24 Aug 2002 22:42:16 +0000 (22:42 +0000)]
Use 'p' as the partition specifier instead of 's'. We continue to use
's' for compatibility partitions (ie partitions with a BSD disklabel).
Partition numbers continue to start with 1.
Example /etc/fstab:
# Device        Mountpoint      FStype          Options ...
/dev/da0p1      /efi            msdos           rw ...
/dev/da0p2      /               ufs             rw ...
/dev/da0p3      none            swap            sw ...

21 years agoReally add new fxp(4) adapter names this time.
bmah [Sat, 24 Aug 2002 22:26:52 +0000 (22:26 +0000)]
Really add new fxp(4) adapter names this time.

Forgotten part of a patch from:

PR: 41759
Submitted by: David Siebörger <drs@rucus.ru.ac.za>

21 years agoreturn x; -> return (x);
jake [Sat, 24 Aug 2002 22:01:40 +0000 (22:01 +0000)]
return x; -> return (x);
return(x); -> return (x);

Reviewed by: md5

21 years agoPreserve suid/gid permissions when extracting packages remotelly
lioux [Sat, 24 Aug 2002 20:04:17 +0000 (20:04 +0000)]
Preserve suid/gid permissions when extracting packages remotelly
fetched with -r option

Reviewed by: will
Approved by: will

21 years agoBe sure to unregister from sndstat on unregister. Gets rid of phantom
nsayer [Sat, 24 Aug 2002 19:13:11 +0000 (19:13 +0000)]
Be sure to unregister from sndstat on unregister. Gets rid of phantom
sndstat output after removing uaudio.

21 years ago o Use vm_object_lock() in place of directly locking Giant.
alc [Sat, 24 Aug 2002 18:44:52 +0000 (18:44 +0000)]
 o Use vm_object_lock() in place of directly locking Giant.

Reviewed by: md5

21 years ago o Use vm_object_lock() in place of Giant when manipulating a vm object
alc [Sat, 24 Aug 2002 17:52:08 +0000 (17:52 +0000)]
 o Use vm_object_lock() in place of Giant when manipulating a vm object
   in vm_map_insert().

21 years agoFix a bug in __ivaliduser_sa() which caused some rsh/rlogin attempts
jdp [Sat, 24 Aug 2002 17:37:42 +0000 (17:37 +0000)]
Fix a bug in __ivaliduser_sa() which caused some rsh/rlogin attempts
to fail needlessly if a reverse DNS lookup of the IP address didn't
come up with a hostname.  As a comment in the code clearly stated,
the "damn hostname" was looked up only for the purpose of netgroup
matching.  But if that lookup failed, the function bailed out
immediately even though in many cases netgroup matching would not
be used.

This change marks the hostname as unknown but continues.  Where
netgroup matching is performed, an unknown hostname is handled
conservatively.  I.e., for "+@netgroup" (accept) entries an unknown
hostname never matches, and for "-@netgroup" (reject) entries an
unknown hostname always matches.

In the lines affected (only), I also fixed a few bogus casts.  There
are others, and in fact this entire file would be a good candidate
for a cleanup sweep.

Reviewed by: imp (wearing his flourescent yellow Security Team cap)
MFC after: 2 days

21 years agoCorrect bug in t_bw_rtttime rollover, #undef USERTT
dillon [Sat, 24 Aug 2002 17:22:44 +0000 (17:22 +0000)]
Correct bug in t_bw_rtttime rollover, #undef USERTT

21 years agoUpdate the list of chips and cards supported by this driver.
bmah [Sat, 24 Aug 2002 17:00:17 +0000 (17:00 +0000)]
Update the list of chips and cards supported by this driver.

Based heavily on patches contained in...

PR: 41759
Submitted by: David "Siebörger" <drs@rucus.ru.ac.za>

21 years agoThere is a built-in command called "builtin"; spell its name correctly
tjr [Sat, 24 Aug 2002 12:41:23 +0000 (12:41 +0000)]
There is a built-in command called "builtin"; spell its name correctly
after rev. 1.77 called it "built-in".

21 years agoUse "kbytes" instead of "blocks" in messages as this is really
schweikh [Sat, 24 Aug 2002 11:03:48 +0000 (11:03 +0000)]
Use "kbytes" instead of "blocks" in messages as this is really
what is calculated.

PR: 41936
Submitted by: Lukas Ertl <le@univie.ac.at>
MFC after: 1 week

21 years agoFix typos: s/O2Mirco/O2Micro/
blackend [Sat, 24 Aug 2002 07:46:08 +0000 (07:46 +0000)]
Fix typos: s/O2Mirco/O2Micro/

Approved by: imp

21 years agoDon't show the process ID of background jobs that have terminated,
tjr [Sat, 24 Aug 2002 07:19:01 +0000 (07:19 +0000)]
Don't show the process ID of background jobs that have terminated,
for consistency with ksh.

21 years ago&x is not a format string
kris [Sat, 24 Aug 2002 07:15:55 +0000 (07:15 +0000)]
&x is not a format string

21 years ago o Resurrect vm_object_lock() and vm_object_unlock() from revision 1.19.
alc [Sat, 24 Aug 2002 07:15:14 +0000 (07:15 +0000)]
 o Resurrect vm_object_lock() and vm_object_unlock() from revision 1.19.
   (For now, they simply acquire and release Giant.)

21 years agoWork around a GCC optimization bug on ia64: In link_elf_symbol_values(),
marcel [Sat, 24 Aug 2002 05:01:33 +0000 (05:01 +0000)]
Work around a GCC optimization bug on ia64: In link_elf_symbol_values(),
a pointer to a symbol is given and we have to find the containing symbol
table. We do this by bounds checking. For some strange reason (ie I
haven't found the root cause) the first test succeeded for said symbol,
implying that the symbol came from the .dynsym table. In reality however
the symbol actually resided in the .symtab table. Needless to say that
all that was returned was junk.

The upper bounds check was: (symptr - baseptr) < symtab_size
This has been rewritten to: symptr < (baseptr + symtab_size)

As a side-effect, slightly more optimal (and still correct :-) code can
be generated on ia64.

21 years agocheck packet length before fetching ESP crypto checksum.
ume [Sat, 24 Aug 2002 04:48:13 +0000 (04:48 +0000)]
check packet length before fetching ESP crypto checksum.

Obtained from: KAME
MFC after: 2 days

21 years agoMake this compile again (libgmd now is a port, and remove some
luigi [Sat, 24 Aug 2002 03:54:38 +0000 (03:54 +0000)]
Make this compile again (libgmd now is a port, and remove some
binaries to save space).

21 years agoMention the special pathname @__CWD__@
luigi [Sat, 24 Aug 2002 03:33:31 +0000 (03:33 +0000)]
Mention the special pathname @__CWD__@

Modify entry for libgmd (used by ssh) now that it is not part of the
base system anymore.

21 years agoUse `uint32_t' instead of `unsigned long', since the code assumes 32-bit
nectar [Sat, 24 Aug 2002 02:53:23 +0000 (02:53 +0000)]
Use `uint32_t' instead of `unsigned long', since the code assumes 32-bit
arithmetic.

Reviewed by: make test

The fact that bdes(1) didn't work was
Reported by: Fred Clift <fclift@verio.net>

21 years agoAdd some \n's to printf()s
peter [Sat, 24 Aug 2002 02:51:28 +0000 (02:51 +0000)]
Add some \n's to printf()s

21 years agoFix unit wiring. Also, change the variable "hit" to "wired" so that it
peter [Sat, 24 Aug 2002 02:47:01 +0000 (02:47 +0000)]
Fix unit wiring.  Also, change the variable "hit" to "wired" so that it
is more obvious.

Obtained from: gibbs/ken

21 years agoNote that <sys/types.h> in no longer a prerequisite for <utime.h> and
mike [Sat, 24 Aug 2002 00:39:43 +0000 (00:39 +0000)]
Note that <sys/types.h> in no longer a prerequisite for <utime.h> and
<sys/mman.h>.

21 years agoAdd time_t typedef for POSIX compatibility, move an include.
mike [Sat, 24 Aug 2002 00:11:52 +0000 (00:11 +0000)]
Add time_t typedef for POSIX compatibility, move an include.