]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoNew release notes: COMPAT_AOUT, AMD Elan SC520 support.
Bruce A. Mah [Sat, 7 Sep 2002 19:04:35 +0000 (19:04 +0000)]
New release notes:  COMPAT_AOUT, AMD Elan SC520 support.

21 years agoAdd some more AMD processors to the supported hardware list.
Bruce A. Mah [Sat, 7 Sep 2002 18:59:15 +0000 (18:59 +0000)]
Add some more AMD processors to the supported hardware list.

PR: 40712

21 years agoDiff reduction in comments for filling the siginfo structure - refer to
Juli Mallett [Sat, 7 Sep 2002 18:56:18 +0000 (18:56 +0000)]
Diff reduction in comments for filling the siginfo structure - refer to
filling in the POSIX parts, when doing the same thing in every port of
FreeBSD.

21 years agoMatch the more modern ports and comment the filling of POSIX parts of siginfo
Juli Mallett [Sat, 7 Sep 2002 18:55:15 +0000 (18:55 +0000)]
Match the more modern ports and comment the filling of POSIX parts of siginfo
with 'Fill in POSIX parts'.  (Diff reduction.)

21 years agoUnbreak the modules build:
Thomas Moestl [Sat, 7 Sep 2002 18:02:18 +0000 (18:02 +0000)]
Unbreak the modules build:
- add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module
  Makefile in the i386 case. The latter is needed by an i386-only file, the
  former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for
  architecture-dependent options, so I added it only for i386, although this
  file is also generated for the alpha).
- add a dependency on opt_kstack_pages.h to the pecoff module Makefile.

21 years agoThe size argument to snprintf does not have to be backed off by one
Matt Jacob [Sat, 7 Sep 2002 16:12:52 +0000 (16:12 +0000)]
The size argument to snprintf does not have to be backed off by one
to account for a NULL byte.

Submitted by: Jacques A. Vidrine <nectar@celabo.org>

21 years agoInclude <machine/pcb.h> instead of depending on namespace pollution in
Bruce Evans [Sat, 7 Sep 2002 14:32:22 +0000 (14:32 +0000)]
Include <machine/pcb.h> instead of depending on namespace pollution in
<sys/user.h>.

21 years agofix braino..
Julian Elischer [Sat, 7 Sep 2002 12:58:44 +0000 (12:58 +0000)]
fix braino..
was clearing part of wrong thread structure..

21 years agoAllow edquota(8) to be used for setting up quotas non-interactively (add a
Maxim Sobolev [Sat, 7 Sep 2002 12:26:07 +0000 (12:26 +0000)]
Allow edquota(8) to be used for setting up quotas non-interactively (add a
new -e option for that).

Feature requested by: Alex V. Belinsky <fozzy@kievweb.net.ua>
MFC after: 1 month

21 years agoRemove #include <netinet/ip.h>.
Maxim Sobolev [Sat, 7 Sep 2002 12:22:17 +0000 (12:22 +0000)]
Remove #include <netinet/ip.h>.

Submitted by: bde

21 years agoAlso add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
Maxim Sobolev [Sat, 7 Sep 2002 12:20:47 +0000 (12:20 +0000)]
Also add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
world.

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

21 years agoAdd __BEGIN_DECLS/__END_DECLS so that c++ code can use makecontext() etc.
Doug Rabson [Sat, 7 Sep 2002 10:20:26 +0000 (10:20 +0000)]
Add __BEGIN_DECLS/__END_DECLS so that c++ code can use makecontext() etc.

21 years agoAdd an implementation of wcstok(), based on strtok_r().
Tim J. Robbins [Sat, 7 Sep 2002 08:16:57 +0000 (08:16 +0000)]
Add an implementation of wcstok(), based on strtok_r().

21 years agoTwo arrays were born from the same seeds, both grew into complementary sets
Juli Mallett [Sat, 7 Sep 2002 08:14:19 +0000 (08:14 +0000)]
Two arrays were born from the same seeds, both grew into complementary sets
of pointers to strings.  These two arrays were fixed to the same size, but one
had an implicit zeroed trailer element, which was unused because the size was
used up by the ones before said zeroed trailer element.  So the unused limb was
chopped off the over-sized-but-not-over-sized array, and everyone lived happily
ever after.

21 years agoFix a missing line in a cut/paste error.
Peter Wemm [Sat, 7 Sep 2002 07:13:08 +0000 (07:13 +0000)]
Fix a missing line in a cut/paste error.

21 years agoAutomatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)
Peter Wemm [Sat, 7 Sep 2002 07:02:12 +0000 (07:02 +0000)]
Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)
if compiling with I686_CPU as a target.  CPU_DISABLE_SSE will prevent
this from happening and will guarantee the code is not compiled in.

I am still not happy with this, but gcc is now generating code that uses
these instructions if you set CPUTYPE to p3/p4 or athlon-4/mp/xp or higher.

21 years agoAdd #include <netinet/ip.h> in attempt to fix the world.
Maxim Sobolev [Sat, 7 Sep 2002 06:16:22 +0000 (06:16 +0000)]
Add #include <netinet/ip.h> in attempt to fix the world.

21 years agoNote that siginit() does not cause every signal to be ignored only the
Chad David [Sat, 7 Sep 2002 06:07:55 +0000 (06:07 +0000)]
Note that siginit() does not cause every signal to be ignored only the
ones with a default property of SA_IGNORE, and that it acquires and
releases the processes lock.

21 years agoSupposedly linux has added a 6th syscall arg register (%ebp). I am not
Peter Wemm [Sat, 7 Sep 2002 04:59:49 +0000 (04:59 +0000)]
Supposedly linux has added a 6th syscall arg register (%ebp).  I am not
100% sure if this is enough, but it will not harm anything.

21 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.

21 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>.

21 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.

21 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().

21 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.

21 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

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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)

21 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?

21 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

21 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

21 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.

21 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.

21 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.

21 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)

21 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.

21 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.

21 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

21 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.

21 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().

21 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>

21 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...)

21 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

21 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.

21 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

21 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

21 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.

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

21 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.

21 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

21 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.

21 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)

21 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.

21 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.

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

21 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).

21 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.

21 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.

21 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.

21 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.

21 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.

21 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".

21 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.

21 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 "*".

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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

21 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

21 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.

21 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

21 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.

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

21 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.

21 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.

21 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.

21 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.

21 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

21 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.

21 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.

21 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.

21 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>

21 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.

21 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

21 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

21 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>

21 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>.

21 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

21 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.

21 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.