]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoSync prototypes with <wchar.h> with respect to the restrict qualifier.
Tim J. Robbins [Sat, 7 Sep 2002 04:07:00 +0000 (04:07 +0000)]
Sync prototypes with <wchar.h> with respect to the restrict qualifier.

22 years agoAdd restrict qualifiers where C99 permits them. All of these already had
Tim J. Robbins [Sat, 7 Sep 2002 04:03:28 +0000 (04:03 +0000)]
Add restrict qualifiers where C99 permits them. All of these already had
restrict qualifiers on their prototypes in <wchar.h>.

22 years agoAdd restrict qualifiers to wcsstr()'s arguments.
Tim J. Robbins [Sat, 7 Sep 2002 03:38:13 +0000 (03:38 +0000)]
Add restrict qualifiers to wcsstr()'s arguments.

22 years agoCall strtok_r() via a libc private name from within strtok().
Tim J. Robbins [Sat, 7 Sep 2002 02:53:19 +0000 (02:53 +0000)]
Call strtok_r() via a libc private name from within strtok().

22 years agoAdd options COMPAT_AOUT to detect future bitrot.
Peter Wemm [Sat, 7 Sep 2002 01:49:52 +0000 (01:49 +0000)]
Add options COMPAT_AOUT to detect future bitrot.

22 years agofix misplaced schedlock
Julian Elischer [Sat, 7 Sep 2002 01:48:53 +0000 (01:48 +0000)]
fix misplaced schedlock

Submitted by: davidxu@freebsd.org

22 years agoAdd COMPAT_AOUT option so that config will not yell when you try and
Peter Wemm [Sat, 7 Sep 2002 01:43:58 +0000 (01:43 +0000)]
Add COMPAT_AOUT option so that config will not yell when you try and
compile it statically.

22 years agoAdd the aout module subdir for the i386.
Peter Wemm [Sat, 7 Sep 2002 01:31:38 +0000 (01:31 +0000)]
Add the aout module subdir for the i386.

22 years agoAdd an a.out exec module.
Peter Wemm [Sat, 7 Sep 2002 01:31:21 +0000 (01:31 +0000)]
Add an a.out exec module.

22 years agoMake imgact_aout.c optional. It is i386 specific.
Peter Wemm [Sat, 7 Sep 2002 01:30:36 +0000 (01:30 +0000)]
Make imgact_aout.c optional.  It is i386 specific.

22 years agoGive this a self contained a.out coredump routine.
Peter Wemm [Sat, 7 Sep 2002 01:29:21 +0000 (01:29 +0000)]
Give this a self contained a.out coredump routine.
XXX freebsd-aout coredumps for a linux-aout binary is a bit pointless.

22 years agoZap the implementations of the i386-aout specific cpu_coredump function.
Peter Wemm [Sat, 7 Sep 2002 01:26:34 +0000 (01:26 +0000)]
Zap the implementations of the i386-aout specific cpu_coredump function.
Most of the non-i386 platforms had rather broken implementations anyway.

22 years agoAdd support for ev67 and ev45 CPUTYPEs (new in gcc3)
Kris Kennaway [Sat, 7 Sep 2002 01:26:11 +0000 (01:26 +0000)]
Add support for ev67 and ev45 CPUTYPEs (new in gcc3)

22 years agoCollect the a.out coredump code into the calling functions.
Peter Wemm [Sat, 7 Sep 2002 01:23:51 +0000 (01:23 +0000)]
Collect the a.out coredump code into the calling functions.
XXX why does pecoff dump in a.out format?

22 years agoList the new athlon CPUs supported by the CPUTYPE make variable.
Maxime Henrion [Sat, 7 Sep 2002 01:19:15 +0000 (01:19 +0000)]
List the new athlon CPUs supported by the CPUTYPE make variable.

Submitted by: kris

22 years agoUpdate to use all the new CPU optimizations of GCC3.
Maxime Henrion [Sat, 7 Sep 2002 01:15:29 +0000 (01:15 +0000)]
Update to use all the new CPU optimizations of GCC3.

Reviewed by: kris

22 years agoAdd a subclass of the PCI-PCI bridge driver that uses the PCIBIOS to
John Baldwin [Fri, 6 Sep 2002 22:19:39 +0000 (22:19 +0000)]
Add a subclass of the PCI-PCI bridge driver that uses the PCIBIOS to
route interrupts if the child bus is described in the PCIBIOS interrupt
routing table.  For child busses that are in the routing table, they do
not necessarily use a 'swizzle' on their pins on the parent bus to route
interrupts for child devices.  If the child bus is an embedded device then
the pins on the child devices can be (and usually are) directly connected
either to a PIC or to a Interrupt Router.  This fixes PCIBIOS interrupt
routing across PCI-PCI bridges for embedded devices.

22 years agoAdd a function pci_probe_route_table() that returns true if our PCI BIOS
John Baldwin [Fri, 6 Sep 2002 22:15:44 +0000 (22:15 +0000)]
Add a function pci_probe_route_table() that returns true if our PCI BIOS
supports interrupt routing and if the specified PCI bus is present in the
routing table.

22 years agoExport pcib_attach() as a "protected" for use in subclasses of the PCI-PCI
John Baldwin [Fri, 6 Sep 2002 22:14:00 +0000 (22:14 +0000)]
Export pcib_attach() as a "protected" for use in subclasses of the PCI-PCI
bridge driver.

22 years agoInclude <netinet/ip.h> to unbreak kdump. I don't know why does kdump
Maxim Sobolev [Fri, 6 Sep 2002 21:58:57 +0000 (21:58 +0000)]
Include <netinet/ip.h> to unbreak kdump. I don't know why does kdump
includes if_gre.h at all, but it does, without including ip.h before
that.

Poked by: peter
Pointy hat to: kdump(1)

22 years agoDon't include "bpf.h" when compiling on FreeBSD. We always compile in
Brooks Davis [Fri, 6 Sep 2002 20:07:50 +0000 (20:07 +0000)]
Don't include "bpf.h" when compiling on FreeBSD.  We always compile in
bpf support these days.

22 years agoBandaid for mount_nfs segfaulting with the more obscure mount options
Peter Wemm [Fri, 6 Sep 2002 19:59:29 +0000 (19:59 +0000)]
Bandaid for mount_nfs segfaulting with the more obscure mount options
in /etc/fstab.  This isn't a real fix though and I'm still not sure
why it started failing.  mount(8) breaks up the nfs args into seperate
repeated '-o option=value' arguments.  But, the altflags variable that
we use to track things is incrementally built up each time we see the
next option and shows us the cumulative set of flags, not just the
flag that we are currently looking at.  As a result, the strstr hack
for looking up flags in a giant -o opt=val,opt=val, etc string was failing
and causing a segfault.  I do not know what changed recently that caused
this to suddenly break, but the code has been rather bogus for some time.

22 years agoFix a bug where calling MD5File(3) with a zero-length file generated an
Bruce A. Mah [Fri, 6 Sep 2002 19:51:58 +0000 (19:51 +0000)]
Fix a bug where calling MD5File(3) with a zero-length file generated an
error, due to an uninitialized variable.

Reviewed by: phk, archie

22 years agoDump the $PIR table if booting verbose.
John Baldwin [Fri, 6 Sep 2002 19:25:25 +0000 (19:25 +0000)]
Dump the $PIR table if booting verbose.

22 years agoInclude some verbage about not calling exit() from functions registered
Garrett Wollman [Fri, 6 Sep 2002 19:23:28 +0000 (19:23 +0000)]
Include some verbage about not calling exit() from functions registered
by atexit().

22 years agoRemove STRNCAT (==>strncat) usage. Apparently I never read the man
Matt Jacob [Fri, 6 Sep 2002 18:32:16 +0000 (18:32 +0000)]
Remove STRNCAT (==>strncat) usage. Apparently I never read the man
page correctly and it wasn't doing what I thought it was.

Noticed by: Brooks Davis <brooks@one-eyed-alien.net>

22 years agoTsk. Now that we're not using our own locks, we have to remember
Matt Jacob [Fri, 6 Sep 2002 18:20:59 +0000 (18:20 +0000)]
Tsk. Now that we're not using our own locks, we have to remember
to grab Giant in isp_kthread so that msleep is *happy* that there's
no lock being passed to it (as tsleep turns out to be...)

22 years agoAdd 'camcontrol load' as a complement to 'camcontrol eject'.
Matthew N. Dodd [Fri, 6 Sep 2002 18:16:26 +0000 (18:16 +0000)]
Add 'camcontrol load' as a complement to 'camcontrol eject'.

Approved by:  ken
MFC after:  4 weeks

22 years agoReduce namespace pollution by staticizing everything, which doesn't need to
Maxim Sobolev [Fri, 6 Sep 2002 18:16:03 +0000 (18:16 +0000)]
Reduce namespace pollution by staticizing everything, which doesn't need to
be visible from outside of the module.

22 years agoAdd an entry for corega WL PCCL-11.
Mitsuru IWASAKI [Fri, 6 Sep 2002 17:45:36 +0000 (17:45 +0000)]
Add an entry for corega WL PCCL-11.

PR: conf/42481
Submitted by: NINOMIYA Hideyuki <nin@jp.FreeBSD.org>
Approved by: imp
MFC after: 1 week

22 years agoMake it clear that the ":C" variable modifier expects an extended
Archie Cobbs [Fri, 6 Sep 2002 17:33:11 +0000 (17:33 +0000)]
Make it clear that the ":C" variable modifier expects an extended
regular expression instead of an obsolete regular expression.
Also, cross-reference re_format(7) instead of regex(3).

MFC after: 3 days

22 years agoConnect if_gre module to the build.
Maxim Sobolev [Fri, 6 Sep 2002 17:18:53 +0000 (17:18 +0000)]
Connect if_gre module to the build.

22 years agoAdd if_gre module glue.
Maxim Sobolev [Fri, 6 Sep 2002 17:17:33 +0000 (17:17 +0000)]
Add if_gre module glue.

22 years agoConnect gre(4) to the build.
Maxim Sobolev [Fri, 6 Sep 2002 17:17:22 +0000 (17:17 +0000)]
Connect gre(4) to the build.

22 years agoAdd a new gre(4) driver, which could be used to create GRE (RFC1701)
Maxim Sobolev [Fri, 6 Sep 2002 17:12:50 +0000 (17:12 +0000)]
Add a new gre(4) driver, which could be used to create GRE (RFC1701)
and MOBILE (RFC2004) IP tunnels.

Obrained from:  NetBSD

22 years ago- Add a pci_cfgintr_valid() function to see if a given IRQ is a valid
John Baldwin [Fri, 6 Sep 2002 17:08:07 +0000 (17:08 +0000)]
- Add a pci_cfgintr_valid() function to see if a given IRQ is a valid
  IRQ for an entry in a PCIBIOS interrupt routing ($PIR) table.
- Change pci_cfgintr() to except the current IRQ of a device as a fourth
  argument and to use that IRQ for the device if it is valid.
- If an intpin entry in a $PIR entry has a link of 0, it means that that
  intpin isn't connected to anything that can trigger an interrupt.  Thus,
  test the link against 0 to find invalid entries in the table instead of
  implicitly relying on the irqs field to be zero.  In the machines I have
  looked at, intpin entries with a link of 0 often have the bits for all
  possible interrupts for PCI devices set.

22 years agoAdd more ethernet types and move AppleTalk types into proper location.
Maxim Sobolev [Fri, 6 Sep 2002 17:02:29 +0000 (17:02 +0000)]
Add more ethernet types and move AppleTalk types into proper location.

Obtained from:  NetBSD (syssrc/sys/net/ethertypes.h, rev.1.13)

22 years agoIf we are using APIC_IO tell ACPI so it can route interrupts properly.
John Baldwin [Fri, 6 Sep 2002 17:02:01 +0000 (17:02 +0000)]
If we are using APIC_IO tell ACPI so it can route interrupts properly.
This still doesn't work quite right because of other APIC_IO hacks in
the i386 PCI code.

22 years agoAttach ACPI children a bit later in attach(), specifically after performing
John Baldwin [Fri, 6 Sep 2002 17:01:06 +0000 (17:01 +0000)]
Attach ACPI children a bit later in attach(), specifically after performing
any machine dependent initialization.  This allows the MD code to set the
interrupt routing model so that PCI interrupts are routed correctly when
using an APIC or SAPIC for example.

22 years agoMake these less broken.
Maxim Sobolev [Fri, 6 Sep 2002 16:58:13 +0000 (16:58 +0000)]
Make these less broken.

22 years agoAdd support for Corega FEther CB-TXD (CardBus 100M/10M).
Mitsuru IWASAKI [Fri, 6 Sep 2002 16:38:06 +0000 (16:38 +0000)]
Add support for Corega FEther CB-TXD (CardBus 100M/10M).

22 years agoConvert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on
Gordon Tetlow [Fri, 6 Sep 2002 16:18:05 +0000 (16:18 +0000)]
Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on
OS-dependent case switches.

22 years agoAdd a support for a ${OSTYPE} which is set once in /etc/rc.subr. Also convert
Gordon Tetlow [Fri, 6 Sep 2002 16:15:29 +0000 (16:15 +0000)]
Add a support for a ${OSTYPE} which is set once in /etc/rc.subr. Also convert
all instances of `${CMD_OSTYPE}` to just using ${OSTYPE}. This saves us a
shell invocation on anything that is OS-dependent. I seriously doubt that we
will be spontaneously changing OS types during bootup.

22 years agoAdd support for printing out the contents of a PCI BIOS $PIR interrupt
John Baldwin [Fri, 6 Sep 2002 16:10:12 +0000 (16:10 +0000)]
Add support for printing out the contents of a PCI BIOS $PIR interrupt
routing table on the console.  Eventually it will be printed during
verbose boots.

22 years agoPrefer the physical bus number of the PCI bus as the unit of the pciX
John Baldwin [Fri, 6 Sep 2002 16:09:07 +0000 (16:09 +0000)]
Prefer the physical bus number of the PCI bus as the unit of the pciX
device created.

22 years agoAdd a helper routine acpi_SetIntrModel() to call the _PIC method to set
John Baldwin [Fri, 6 Sep 2002 16:08:08 +0000 (16:08 +0000)]
Add a helper routine acpi_SetIntrModel() to call the _PIC method to set
the interrupt model in use so that ACPI can properly route interrupts for
machines using APIC's or SAPIC's.

22 years agoMinor spelling tweak: assume "his" is actually "This".
Robert Watson [Fri, 6 Sep 2002 13:22:44 +0000 (13:22 +0000)]
Minor spelling tweak: assume "his" is actually "This".

22 years agoRemoved vestiges of the -a and -d options.
Bruce Evans [Fri, 6 Sep 2002 13:16:24 +0000 (13:16 +0000)]
Removed vestiges of the -a and -d options.

Fixed other bugs in the usage message so that it matches the man page.

22 years agoStyle: One space between "restrict" qualifier and "*".
Tim J. Robbins [Fri, 6 Sep 2002 11:24:06 +0000 (11:24 +0000)]
Style: One space between "restrict" qualifier and "*".

22 years agoExpand a contraction in the text of style(9) for consistency.
Robert Drehmel [Fri, 6 Sep 2002 10:53:57 +0000 (10:53 +0000)]
Expand a contraction in the text of style(9) for consistency.
Do not touch contractions in comments of code examples because
their usage seems to be justified by space contraints.

22 years agoRemove magicspace from reference data.
Poul-Henning Kamp [Fri, 6 Sep 2002 08:51:55 +0000 (08:51 +0000)]
Remove magicspace from reference data.

Sponsored by: DARPA & NAI Labs.

22 years agoRemove "magicspace". It looks good on paper, it doesn't work in practice.
Poul-Henning Kamp [Fri, 6 Sep 2002 08:50:28 +0000 (08:50 +0000)]
Remove "magicspace".  It looks good on paper, it doesn't work in practice.

Sponsored by: DARPA & NAI Labs.

22 years agoexpat2 changed the name of their include file to expat.h
Poul-Henning Kamp [Fri, 6 Sep 2002 08:44:15 +0000 (08:44 +0000)]
expat2 changed the name of their include file to expat.h

Sponsored by: DARPA & NAI Labs.

22 years agoFix an indentation typo.
Poul-Henning Kamp [Fri, 6 Sep 2002 08:43:15 +0000 (08:43 +0000)]
Fix an indentation typo.

Sponsored by: DARPA & NAI Labs.

22 years agoAdd a zeroed out sector one for the GPT hack and test T003.
Poul-Henning Kamp [Fri, 6 Sep 2002 08:41:48 +0000 (08:41 +0000)]
Add a zeroed out sector one for the GPT hack and test T003.

Sponsored by: DARPA & NAI Labs.

22 years agoRemove the -a maxcontig option, the kernel doesn't inspect fs_maxcontig
Poul-Henning Kamp [Fri, 6 Sep 2002 07:59:10 +0000 (07:59 +0000)]
Remove the -a maxcontig option, the kernel doesn't inspect fs_maxcontig
anymore.

Sponsored by: DARPA & NAI Labs.

22 years agoDon't respect the O_EXCL flag, we don't get it back on close so we cannot
Poul-Henning Kamp [Fri, 6 Sep 2002 07:57:29 +0000 (07:57 +0000)]
Don't respect the O_EXCL flag, we don't get it back on close so we cannot
correctly track it.

Spotted by: peter
Sponsored by: DARPA & NAI Labs.

22 years agoBump the -mev56 to -mev6. Otherwise, when you compile with gcc using
Peter Wemm [Fri, 6 Sep 2002 07:27:41 +0000 (07:27 +0000)]
Bump the -mev56 to -mev6.  Otherwise, when you compile with gcc using
ev6 or pca56 etc this downgrades the cpu specification passed to gas.
As a result, gas will fail when gcc generates media instructions (in
uipc_usrreq.c).  This only affects what gas will accept, not what gcc
generates or what our *.s file contain.

22 years agoUse UMA as a complex object allocator.
Julian Elischer [Fri, 6 Sep 2002 07:00:37 +0000 (07:00 +0000)]
Use UMA as a complex object allocator.
The process allocator now caches and hands out complete process structures
*including substructures* .

i.e. it get's the process structure with the first thread (and soon KSE)
already allocated and attached, all in one hit.

For the average non threaded program (non KSE that is) the allocated thread and its stack remain attached to the process, even when the process is
unused and in the process cache. This saves having to allocate and attach it
later, effectively bringing us (hopefully) close to the efficiency
of pre-KSE systems where these were a single structure.

Reviewed by: davidxu@freebsd.org, peter@freebsd.org

22 years agoUse sys/libkern.h not /usr/include/string.h
Peter Wemm [Fri, 6 Sep 2002 06:04:36 +0000 (06:04 +0000)]
Use sys/libkern.h not /usr/include/string.h

22 years agonfsnode.h was moved to ../nfsclient ages ago. I forgot to remove it here.
Peter Wemm [Fri, 6 Sep 2002 05:47:33 +0000 (05:47 +0000)]
nfsnode.h was moved to ../nfsclient ages ago.  I forgot to remove it here.

22 years agoo Fix namespace scope issues in <ctype.h> by using the relatively new
Mike Barcroft [Fri, 6 Sep 2002 04:22:54 +0000 (04:22 +0000)]
o Fix namespace scope issues in <ctype.h> by using the relatively new
  visibility primitives.
o Implement _tolower() and _toupper() POSIX.1-2001 (XSI) macros in
  <ctype.h>.
o Reduce pollution in <runetype.h> by removing typedefs and using
  implementation namespaced types.
o Add a typedef in <rune.h> to compensate for <runetype.h> losing its
  typedefs.

Reviewed by: bde

22 years agorev 1.6 claimed to add 'bootparams', but in fact added 'bootparamd' which
Peter Wemm [Fri, 6 Sep 2002 01:23:31 +0000 (01:23 +0000)]
rev 1.6 claimed to add 'bootparams', but in fact added 'bootparamd' which
does not exist.

22 years agoRemove extra ';'
David Xu [Fri, 6 Sep 2002 00:18:52 +0000 (00:18 +0000)]
Remove extra ';'

22 years agoUpdated release notes: ACPIA CA 20020815, Binutils 2.12.1
Bruce A. Mah [Thu, 5 Sep 2002 23:54:26 +0000 (23:54 +0000)]
Updated release notes:  ACPIA CA 20020815, Binutils 2.12.1
(fix snapshot date), XFree86 4.2.1.

MFCs noted:  linux_base 7.1.

22 years agoOnly try to initialize syscons if /dev/ttyv0 exists and it's not a pcvt.
Bill Fenner [Thu, 5 Sep 2002 23:51:28 +0000 (23:51 +0000)]
Only try to initialize syscons if /dev/ttyv0 exists and it's not a pcvt.

22 years agoOnly try to run /usr/sbin/ispcvt if it exists and is executable.
Bill Fenner [Thu, 5 Sep 2002 23:50:34 +0000 (23:50 +0000)]
Only try to run /usr/sbin/ispcvt if it exists and is executable.

22 years agoImplement the VOP_OPENEXTATTR() and VOP_CLOSEEXTATTR() methods.
Poul-Henning Kamp [Thu, 5 Sep 2002 20:59:42 +0000 (20:59 +0000)]
Implement the VOP_OPENEXTATTR() and VOP_CLOSEEXTATTR() methods.

Use extattr_check_cred() to check access to EAs.

This is still a WIP.

Sponsored by:   DARPA & NAI Labs.

22 years agoIntroduce the VOP_OPENEXTATTR() and VOP_CLOSEEXTATTR() methods.
Poul-Henning Kamp [Thu, 5 Sep 2002 20:56:14 +0000 (20:56 +0000)]
Introduce the VOP_OPENEXTATTR() and VOP_CLOSEEXTATTR() methods.

Together these two implement a simple transcation style grouping for
modifications of extended attributes on a vnode.

VOP_CLOSEEXTATTR() takes a boolean "commit" argument, which determines
if the aggregate changes are attempted written or not.  A commit will
fail if any of the VOP_SETEXTATTR() calls since the VOP_OPENEXTATTR()
have failed to meet their objective or if the flush to disk fails.

The default operations for these two VOP's is to return EOPNOTSUPP.

This API may still be subject to change.

Sponsored by:   DARPA & NAI Labs

22 years agoFix an inherited style bug: compare with NOCRED instead of NULL.
Poul-Henning Kamp [Thu, 5 Sep 2002 20:46:19 +0000 (20:46 +0000)]
Fix an inherited style bug:  compare with NOCRED instead of NULL.

Sponsored by: DARPA & NAI Labs.

22 years agoUse canonical extattr_check_cred() instead of private implementation of the
Poul-Henning Kamp [Thu, 5 Sep 2002 20:39:36 +0000 (20:39 +0000)]
Use canonical extattr_check_cred() instead of private implementation of the
same policy.

Sponsored by: DARPA & NAI Labs.

22 years agoIntroduce new extattr_check_cred() function which implements the canonical
Poul-Henning Kamp [Thu, 5 Sep 2002 20:38:57 +0000 (20:38 +0000)]
Introduce new extattr_check_cred() function which implements the canonical
crential washing for extended attributes.

Sponsored by: DARPA & NAI Labs.

22 years agoAdd an archdep script and hook it up to the build.
Gordon Tetlow [Thu, 5 Sep 2002 20:29:18 +0000 (20:29 +0000)]
Add an archdep script and hook it up to the build.

Submitted by: Mike Makonnen <makonnen@pacbell.net>

22 years agoFix credentials check: do not leak ENOATTR until we know if they're
Poul-Henning Kamp [Thu, 5 Sep 2002 20:28:24 +0000 (20:28 +0000)]
Fix credentials check: do not leak ENOATTR until we know if they're
supposed to know.

Sponsored by: DARPA & NAI Labs.

22 years agoUpdate rc.conf.5 man page to reflect bootparamd_enable and _flags
Gordon Tetlow [Thu, 5 Sep 2002 20:19:03 +0000 (20:19 +0000)]
Update rc.conf.5 man page to reflect bootparamd_enable and _flags

22 years agoHook bootparams up to the world
Gordon Tetlow [Thu, 5 Sep 2002 20:15:08 +0000 (20:15 +0000)]
Hook bootparams up to the world

22 years agoIntroduce bootparamd into the boot scripts. Add a bootparamd_enable and
Gordon Tetlow [Thu, 5 Sep 2002 20:14:46 +0000 (20:14 +0000)]
Introduce bootparamd into the boot scripts. Add a bootparamd_enable and
_flags to rc.conf

Submitted by: John Hay <jhay@zibbi.icomtek.csir.co.za>

22 years agoFixed namespace pollution in uma changes:
Bruce Evans [Thu, 5 Sep 2002 19:48:52 +0000 (19:48 +0000)]
Fixed namespace pollution in uma changes:
- use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't
  a prerequisite.
- don't include <sys/uma.h>.
Namespace pollution makes "opaque" types like uma_zone_t perfectly
non-opaque.  Such types should never be used (see style(9)).

Fixed subsequently grwon dependencies of this header on its own pollution:
- include <sys/_mutex.h> and its prerequisite <sys/_lock.h> instead of
  depending on namespace pollution 2 layers deep in <sys/uma.h>.

22 years agoRe-insert TUNABLE() export of MAC Biba and MAC MLS module 'enabled'
Robert Watson [Thu, 5 Sep 2002 18:52:52 +0000 (18:52 +0000)]
Re-insert TUNABLE() export of MAC Biba and MAC MLS module 'enabled'
sysctls.  Apparently lost during some or another merge.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

22 years agoMake the printf messages when routing interrupts more consistent in the
John Baldwin [Thu, 5 Sep 2002 17:08:35 +0000 (17:08 +0000)]
Make the printf messages when routing interrupts more consistent in the
various PCI bridge drivers.

22 years agoTest PCIbios.ventry against 0 to see if we found a PCIbios entry point,
John Baldwin [Thu, 5 Sep 2002 17:07:07 +0000 (17:07 +0000)]
Test PCIbios.ventry against 0 to see if we found a PCIbios entry point,
not the 'entry' member.  The entry point is formed from both a base and
a relative entry point.  'entry' is that relative offset.  It is perfectly
valid to have an entry point with a relative offset of 0.  PCIbios.ventry
is the virtual address of the entry point that takes both 'base' and
'entry' into account, thus it is the proper variable to test to see if we
have an entry point or not.

22 years agoWarns cleanups for netstat:
David Malone [Thu, 5 Sep 2002 17:06:51 +0000 (17:06 +0000)]
Warns cleanups for netstat:
1) Include arpa/inet.h for ntohs.
2) Constness fixes.
3) Fix shadowing except for "sin" which shouldn't be in scope.
4) Remove register keyword.
5) Add missing initialsers to user defined structs.
5) Make prototype of netname6 globally visable.
6) Use right macros for printing syncache stats (even though entrie isn't
   a word).

22 years agoMove some variables to the BSS instead of explicitly zero'ing them. This
John Baldwin [Thu, 5 Sep 2002 17:05:15 +0000 (17:05 +0000)]
Move some variables to the BSS instead of explicitly zero'ing them.  This
also makes all of the PCIbios variable be zero'd, not just the entry field.

22 years agoStatically compile pcn(4) into the install kernel vs. using as module.
David E. O'Brien [Thu, 5 Sep 2002 15:45:01 +0000 (15:45 +0000)]
Statically compile pcn(4) into the install kernel vs. using as module.
lnc(4) will attach to AMD PCnet/FAST NICs if pcn(4) does not attach.
I.e. pcn(4) gets first chance.  There is a problem however in that pcn(4)
was moved out of the install kernel so that the module would be used.
This however causes bad installs if one has an AMD PCnet/FAST NIC.

22 years agoAdd the PCN module.
David E. O'Brien [Thu, 5 Sep 2002 15:41:09 +0000 (15:41 +0000)]
Add the PCN module.

22 years agoMake recursion prevention variable per-instance and remove XXX comment
Maxim Sobolev [Thu, 5 Sep 2002 15:35:38 +0000 (15:35 +0000)]
Make recursion prevention variable per-instance and remove XXX comment
about thread-unsafety.

MFC after: 2 weeks

22 years agoInclude <sys/mutex.h> and its prerequisite <sys/lock.h> instead of depending
Bruce Evans [Thu, 5 Sep 2002 15:33:30 +0000 (15:33 +0000)]
Include <sys/mutex.h> and its prerequisite <sys/lock.h> instead of depending
on namespace pollution 4 layers deep in <netinet/in_pcb.h>.

Removed unused includes.  Sorted includes.

22 years agoUse `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't
Bruce Evans [Thu, 5 Sep 2002 14:04:34 +0000 (14:04 +0000)]
Use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't
a prerequisite.

22 years agoInclude <sys/systm.h> for the definition of offsetof() instead of depending
Bruce Evans [Thu, 5 Sep 2002 13:08:22 +0000 (13:08 +0000)]
Include <sys/systm.h> for the definition of offsetof() instead of depending
on the definition being misplaced in <sys/types.h>.  The definition probably
belongs in <sys/stddef.h>.

22 years agoInclude <sys/systm.h> for the definition of offsetof() instead of depending
Bruce Evans [Thu, 5 Sep 2002 12:58:57 +0000 (12:58 +0000)]
Include <sys/systm.h> for the definition of offsetof() instead of depending
on the definition being misplaced in <sys/types.h>.  The definition probably
belongs in <sys/stddef.h>.

22 years agoDo not cast from a pointer to an integer of a possibly different size.
Bruce Evans [Thu, 5 Sep 2002 12:30:54 +0000 (12:30 +0000)]
Do not cast from a pointer to an integer of a possibly different size.
This fixes a warning on i386's with 64-bit longs.

22 years agoAdd debug.rman_debug sysctl MIB and loader tunable instead of broken
Mitsuru IWASAKI [Thu, 5 Sep 2002 11:45:02 +0000 (11:45 +0000)]
Add debug.rman_debug sysctl MIB and loader tunable instead of broken
RMAN_DEBUG option.
This would be useful for debugging resource manager code.

22 years agoFix a format buglet.
Poul-Henning Kamp [Thu, 5 Sep 2002 11:42:03 +0000 (11:42 +0000)]
Fix a format buglet.

Spotted by: iedowse

22 years agoParse hint.acpi.0.disabled correctly.
Mitsuru IWASAKI [Thu, 5 Sep 2002 11:16:23 +0000 (11:16 +0000)]
Parse hint.acpi.0.disabled correctly.
Now that hint.acpi.0.disabled="0" won't disable acpi as expected.

Pointed-out by: bde

22 years agoInclude <sys/malloc.h> instead of depending on namespace pollution 2
Bruce Evans [Thu, 5 Sep 2002 09:43:24 +0000 (09:43 +0000)]
Include <sys/malloc.h> instead of depending on namespace pollution 2
layers deep in <sys/proc.h> or <sys/vnode.h>.

Include <sys/vmmeter.h> instead of depending on namespace pollution in
<sys/pcpu.h>.

Sorted includes as much as possible.

22 years agoForward declare struct uio so that <sys/uio.h> isn't a prerequisite.
Bruce Evans [Thu, 5 Sep 2002 09:31:14 +0000 (09:31 +0000)]
Forward declare struct uio so that <sys/uio.h> isn't a prerequisite.

Removed bogus forward declarations of structs.

22 years agoThe changes mentioned below were accidently committed as part of
David Malone [Thu, 5 Sep 2002 09:11:20 +0000 (09:11 +0000)]
The changes mentioned below were accidently committed as part of
my previous commit, so the commit message is incorrect for them.
The actual changes were:

elfcore.c 1.11:
Use a uintmax_t 'cos we con't know if php->p_filesz will be a
Elf32_Size or an Elf64_Size and we don't know how these relate to
size_t. Change some ints to size_t and ssize_ts.

gcore.c 1.28:
Include <arpa/inet.h> for ntohl, which is used in N_BADMAG.
Use a uid_t for a uid.

md-nop.c 1.6:
Mark some parameters as unused.

22 years agoInclude <sys/malloc.h> instead of depending on namespace pollution 2
Bruce Evans [Thu, 5 Sep 2002 08:13:20 +0000 (08:13 +0000)]
Include <sys/malloc.h> instead of depending on namespace pollution 2
layers deep in <sys/proc.h> or <sys/vnode.h>.

Removed unused includes.  Sorted includes.

22 years agoPad after "char *n_name;" in the !_AOUT_INCLUDE_ case so that struct nlist
Bruce Evans [Thu, 5 Sep 2002 08:03:02 +0000 (08:03 +0000)]
Pad after "char *n_name;" in the !_AOUT_INCLUDE_ case so that struct nlist
has some chance of having the same layout in all cases on machines with
sizeof(char *) != sizeof(long).

22 years agoForward declare struct vnode so that <sys/vnode.h> or some other header
Bruce Evans [Thu, 5 Sep 2002 07:54:03 +0000 (07:54 +0000)]
Forward declare struct vnode so that <sys/vnode.h> or some other header
that happens to forward declare struct vnode isn't a prerequisite (most
places get it from <sys/imgact.h>).