]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoMFen: Happy new year 2003
ue [Thu, 9 Jan 2003 12:11:20 +0000 (12:11 +0000)]
MFen: Happy new year 2003

21 years agoActually, the canonical way would be syntactically correct.
des [Thu, 9 Jan 2003 12:04:21 +0000 (12:04 +0000)]
Actually, the canonical way would be syntactically correct.

21 years agoAdd a pcib variant to allow us to fix up interrupt assignments.
benno [Thu, 9 Jan 2003 12:04:18 +0000 (12:04 +0000)]
Add a pcib variant to allow us to fix up interrupt assignments.

We probably want to do something wrt bus enumeration as well at some point.

21 years agoCanonical way of determining whether or not to use crypto.
des [Thu, 9 Jan 2003 11:57:58 +0000 (11:57 +0000)]
Canonical way of determining whether or not to use crypto.

21 years ago- Add error messages for bulkxfer.
simokawa [Thu, 9 Jan 2003 10:25:07 +0000 (10:25 +0000)]
- Add error messages for bulkxfer.
- Reduce register access.

21 years agoAllocate interrupts from the resource list.
benno [Thu, 9 Jan 2003 09:15:42 +0000 (09:15 +0000)]
Allocate interrupts from the resource list.

21 years agoia64 and sparc64 both have libc_r now.
des [Thu, 9 Jan 2003 08:36:05 +0000 (08:36 +0000)]
ia64 and sparc64 both have libc_r now.

21 years ago- Remove the ignore list and replace it with a quirk list of sorts.
benno [Thu, 9 Jan 2003 06:21:42 +0000 (06:21 +0000)]
- Remove the ignore list and replace it with a quirk list of sorts.
- Add a quirk type for devices whose interrupt properties are actually
  attached to their children.
- Flag the "escc" (zs-alike serial controller) device as having this quirk.
- Rework the interrupt discovery code to deal with devices that have more than
  one interrupt.

21 years agoInvoke the driver directly when a request is submitted via crypto_dispatch
sam [Thu, 9 Jan 2003 05:39:04 +0000 (05:39 +0000)]
Invoke the driver directly when a request is submitted via crypto_dispatch
or crypto_kdispatch unless the driver is currently blocked.  This eliminates
the context switch to the dispatch thread for virtually all requests.

Note that this change means that for software crypto drivers the caller
will now block until the request is completed and the callback is dispatched
to the callback thread (h/w drivers will typically just dispatch the op to
the device and return quickly).  If this is an issue we can either implement
a non-blocking interface in the s/w crypto driver or use either the
"no delay" flag in the crypto request or the "software driver" capability
flag to control what to do.

Sponsored by: Vernier Networks

21 years agoo handle jumbograms in m_clone
sam [Thu, 9 Jan 2003 05:30:25 +0000 (05:30 +0000)]
o handle jumbograms in m_clone
o fixup some comments

Submitted by: Doug Ambrisko <ambrisko@verniernetworks.com>

21 years agoThe return-path is optional in a headline, therefore don't skip a
mikeh [Thu, 9 Jan 2003 05:08:37 +0000 (05:08 +0000)]
The return-path is optional in a headline, therefore don't skip a
message if it is missing the return-path.

PR: bin/40314 (slightly different patch)
MFC after: 2 weeks

21 years agoFix up some grammar.
trhodes [Thu, 9 Jan 2003 04:35:38 +0000 (04:35 +0000)]
Fix up some grammar.

Noticed by: sheldonh

21 years agoMerge from NetBSD and arrange for FreeBSD's slight differences in
imp [Thu, 9 Jan 2003 04:24:28 +0000 (04:24 +0000)]
Merge from NetBSD and arrange for FreeBSD's slight differences in
ucom.

This gets my Sanyo SCP-4900 working.

Approved by: joe

21 years agoThese are OBE. devd.conf now lives in /etc.
imp [Thu, 9 Jan 2003 04:11:19 +0000 (04:11 +0000)]
These are OBE.  devd.conf now lives in /etc.

21 years agoMove devd.conf here and install it by default (didn't do a repo copy
imp [Thu, 9 Jan 2003 04:05:06 +0000 (04:05 +0000)]
Move devd.conf here and install it by default (didn't do a repo copy
because there's so little history to save).

MFC After: 10 millifortnights

21 years agoCorrect a few more definitions, capitalize header fields consistently.
mikeh [Thu, 9 Jan 2003 03:36:47 +0000 (03:36 +0000)]
Correct a few more definitions, capitalize header fields consistently.

21 years ago- remove unneeded includes
grehan [Thu, 9 Jan 2003 01:22:30 +0000 (01:22 +0000)]
- remove unneeded includes
- fix big in use of rid for SYS_RES_IRQ
- catch up with ATA common code by adding lock function

21 years agoClarify ~. escape definition, remove duplicate entry, and shorten a
mikeh [Thu, 9 Jan 2003 01:14:54 +0000 (01:14 +0000)]
Clarify ~. escape definition, remove duplicate entry, and shorten a
definition.

21 years agoRemove obsolete GEOM option, and bring diskless options up-to-date
grehan [Thu, 9 Jan 2003 01:09:41 +0000 (01:09 +0000)]
Remove obsolete GEOM option, and bring diskless options up-to-date

Approved by:  benno

21 years agoDocument the ~. and ~? command escapes.
mikeh [Thu, 9 Jan 2003 01:08:33 +0000 (01:08 +0000)]
Document the ~. and ~? command escapes.

21 years agoInclude if_hme_sbus.c, so that the module can also be used on sbus
tmm [Thu, 9 Jan 2003 00:46:41 +0000 (00:46 +0000)]
Include if_hme_sbus.c, so that the module can also be used on sbus
machines. Remove opt_bdg.h, which is not needed.

21 years agoAdd detach, shutdown, suspend and resume methods.
tmm [Thu, 9 Jan 2003 00:45:10 +0000 (00:45 +0000)]
Add detach, shutdown, suspend and resume methods.

Tested by: jake

21 years agoAdd sbus specific zs file.
jake [Wed, 8 Jan 2003 23:36:59 +0000 (23:36 +0000)]
Add sbus specific zs file.

21 years agoSplit this into bus specific front end(s), so that it can be used by ppc.
jake [Wed, 8 Jan 2003 23:36:16 +0000 (23:36 +0000)]
Split this into bus specific front end(s), so that it can be used by ppc.
This abstracts out all the differences I could see between the netbsd
sparc64 and macppc zs drivers.   In particular the offsets of the csr and
data registers are different, so we use a separate bus handle for each and
use bus_space_subregion to add the bus specific offsets.

Requested by: benno

21 years agoSteal some space from fs_fsmnt to create fs_volname and fs_uuid. The volname
gordon [Wed, 8 Jan 2003 22:53:54 +0000 (22:53 +0000)]
Steal some space from fs_fsmnt to create fs_volname and fs_uuid. The volname
will be used to support volume names with the help of a GEOM module (to be
committed). uuid will be used to deal with conflicting volume names (which
doesn't work just yet).

Approved by: mckusick@

21 years agoThis commit was generated by cvs2svn to compensate for changes in r108968,
peter [Wed, 8 Jan 2003 22:12:01 +0000 (22:12 +0000)]
This commit was generated by cvs2svn to compensate for changes in r108968,
which included commits to RCS files with non-trunk default branches.

21 years agoAdd in a patch from tcpdump-current (that will be included in the next
peter [Wed, 8 Jan 2003 22:12:01 +0000 (22:12 +0000)]
Add in a patch from tcpdump-current (that will be included in the next
import) to stop a segfault on ia64.  Add a #include to get missing
prototypes, particularly malloc().

Approved by: fenner

21 years agoAdd code to parse the contents of an ACPI MADT table and to dump its
jhb [Wed, 8 Jan 2003 20:46:25 +0000 (20:46 +0000)]
Add code to parse the contents of an ACPI MADT table and to dump its
contents in the form of a comment in the acpidump output.  The output
is not in the prettiest output, but it does work correctly.

Approved by: marcel

21 years agoAdd structure definitions for the various items in a ACPI Multiple
jhb [Wed, 8 Jan 2003 20:45:23 +0000 (20:45 +0000)]
Add structure definitions for the various items in a ACPI Multiple
APIC Descriptor Table (MADT) which has the signature 'ACPI'.

Approved by: marcel

21 years agoBuild a gem module, for sparc64 only for now.
tmm [Wed, 8 Jan 2003 20:40:29 +0000 (20:40 +0000)]
Build a gem module, for sparc64 only for now.

21 years agoAdd detach, shutdown, suspend and resume methods. The latter two are
tmm [Wed, 8 Jan 2003 20:12:45 +0000 (20:12 +0000)]
Add detach, shutdown, suspend and resume methods. The latter two are
not really tested, but are derived from the original NetBSD version.

21 years agoIn vm_page_alloc(), honor VM_ALLOC_ZERO for system and interrupt class
alc [Wed, 8 Jan 2003 19:58:42 +0000 (19:58 +0000)]
In vm_page_alloc(), honor VM_ALLOC_ZERO for system and interrupt class
requests when the number of free pages is below the reserved threshold.
Previously, VM_ALLOC_ZERO was only honored when the number of free pages
was above the reserved threshold.  Honoring it in all cases generally
makes sense, does no harm, and simplifies the code.

21 years agoConsistently use spaces in between arguments to strcmp(). Whitespace
jhb [Wed, 8 Jan 2003 19:16:11 +0000 (19:16 +0000)]
Consistently use spaces in between arguments to strcmp().  Whitespace
only.

21 years agoFix module dependancy name.
obrien [Wed, 8 Jan 2003 18:53:38 +0000 (18:53 +0000)]
Fix module dependancy name.

PR: 46871
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>

21 years agoTighten wording of comment.
wollman [Wed, 8 Jan 2003 18:52:32 +0000 (18:52 +0000)]
Tighten wording of comment.

Suggested by: gshapiro

21 years agoDo not do manually what sendmail(8) can do better automatically.
wollman [Wed, 8 Jan 2003 18:51:45 +0000 (18:51 +0000)]
Do not do manually what sendmail(8) can do better automatically.
Tell sendmail to clean up its own host status cache.
The error condition handling could probably be done better.

21 years agoAdd an hme(4) module.
obrien [Wed, 8 Jan 2003 18:45:04 +0000 (18:45 +0000)]
Add an hme(4) module.

PR: 46871
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>

21 years ago"struct route" is not sufficient. NetBSD PR 18751
ume [Wed, 8 Jan 2003 17:59:24 +0000 (17:59 +0000)]
"struct route" is not sufficient.  NetBSD PR 18751

Obtained from: KAME
MFC after: 1 days

21 years agoMerge the following from the English version:
hrs [Wed, 8 Jan 2003 17:57:41 +0000 (17:57 +0000)]
Merge the following from the English version:

1.8   -> 1.9   early-adopter/article.sgml
1.9   -> 1.10  errata/article.sgml
1.3   -> 1.4   hardware/common/artheader.sgml

Submitted by: Hideyuki KURASHINA <rushani@jp.FreeBSD.org>
References: [doc-jp-work 572]

21 years agoDont attach a Promise chip located behind a i960 bridge/chip.
sos [Wed, 8 Jan 2003 17:44:36 +0000 (17:44 +0000)]
Dont attach a Promise chip located behind a i960 bridge/chip.
This makes it possible to run a Promise SuperTrak SX6000 with
OS type set to "Other" as well as "Linux".

21 years agoFor now, set only the resource limits and process priority associated
rwatson [Wed, 8 Jan 2003 17:10:11 +0000 (17:10 +0000)]
For now, set only the resource limits and process priority associated
with a class, rather than all aspects of the class when switching
classes for an inetd service.  Because we hard-code /daemon in the
current inetd implementation, using SETALL has unfortunate side-effects
involving the MAC code, and potentially other credential related
settings in the future.  This change maintains the DoS-resistent
aspects of the class behavior, which is all that is promised in the
inetd man page.

A larger set of diffs providing more pluggability and configurability
was deferred for this more simple approach in the short term.

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

21 years agoAdd #include <stdlib.h> so that "s->strings = realloc(...)" doesn't segfault
peter [Wed, 8 Jan 2003 17:05:52 +0000 (17:05 +0000)]
Add #include <stdlib.h> so that "s->strings = realloc(...)" doesn't segfault
on ia64.  (This file isn't vendor branched)

21 years agoAdd support for the nVidia nForce2 ATA part.
sos [Wed, 8 Jan 2003 16:51:41 +0000 (16:51 +0000)]
Add support for the nVidia nForce2 ATA part.

Fix support for the nForce1 as well, registers are offset 0x10
against the AMD/VIA parts.

21 years ago- Use cpu_exthigh instead of executing cpuid again to retrieve it for the
jhb [Wed, 8 Jan 2003 16:41:48 +0000 (16:41 +0000)]
- Use cpu_exthigh instead of executing cpuid again to retrieve it for the
  print_AMD_foo() functions.
- Add a brand name table for the brand index provided on Intel CPU's in
  %ebx after cpuid 1.
- For Intel CPUs, if we don't get a processor name from the extended cpuid
  then use the brand index in cpuid_cpuinfo to pick a name from the brand
  table and copy that name into cpu_brand.
- Replace the duplicated code to use the extended cpuid to replace
  cpu_model with the processor name in the AMD and Transmeta sections of
  printcpuinfo() with generic code that replaces cpu_model with
  cpu_brand if cpu_brand is not an empty string.  We also trim leading
  spaces from cpu_brand prior to doing this since at least some processor
  names (notably those of Intel CPUs) have leading spaces in the name.
- Give print_AMD_features() its own private regs[] array since
  printcpuinfo() doesn't use the one it has anymore.

21 years ago- Add a cpu_exthigh variable to hold the highest extended cpuid value
jhb [Wed, 8 Jan 2003 16:35:59 +0000 (16:35 +0000)]
- Add a cpu_exthigh variable to hold the highest extended cpuid value
  returned from cpuid 0x80000000.
- Add a cpu_brand char array to hold the processor name returned by
  cpuid 0x80000002-0x80000004 on AMD, Intel, Transmeta, and possibly
  other CPUs.
- Use cpuid to set cpu_exthigh and read the processor name if it is present
  in identify_cpu().

21 years agoBah, get the test for more than one logical CPU right so we don't bogusly
jhb [Wed, 8 Jan 2003 16:33:03 +0000 (16:33 +0000)]
Bah, get the test for more than one logical CPU right so we don't bogusly
claim a CPU has HT support when it lists 0 or 1 logical CPU's per physical
processor.

21 years agoAdd page queues locking to vunmapbuf().
grehan [Wed, 8 Jan 2003 12:29:59 +0000 (12:29 +0000)]
Add page queues locking to vunmapbuf().

Obtained from: sparc64
Approved by:  benno

21 years agoSync the i-cache after copying down the interrupt code
grehan [Wed, 8 Jan 2003 12:27:47 +0000 (12:27 +0000)]
Sync the i-cache after copying down the interrupt code

Approved by:  benno

21 years agoBe more conservative about re-enabling interrupts during trap processing
grehan [Wed, 8 Jan 2003 12:20:46 +0000 (12:20 +0000)]
Be more conservative about re-enabling interrupts during trap processing
until atomic issues are fully sorted.

Approved by:  benno

21 years agoFix incorrect error returns and sign-extension.
grehan [Wed, 8 Jan 2003 12:19:37 +0000 (12:19 +0000)]
Fix incorrect error returns and sign-extension.

Approved by:  benno

21 years agoFetch the initial time from the rtc OpenFirmware node. This is a short-term
grehan [Wed, 8 Jan 2003 12:17:44 +0000 (12:17 +0000)]
Fetch the initial time from the rtc OpenFirmware node. This is a short-term
measure until the rtc h/w driver is written, and it's a lot better
than having "jan 1 1970" on filesys times.

Approved by:  benno

21 years agoRemove obsolete NFS_ROOT conditional.
grehan [Wed, 8 Jan 2003 12:15:54 +0000 (12:15 +0000)]
Remove obsolete NFS_ROOT conditional.

Approved by:  benno

21 years agoImplement bus_dmamap_load_mbuf/bus_dmamap_load_uio.
grehan [Wed, 8 Jan 2003 11:46:53 +0000 (11:46 +0000)]
Implement bus_dmamap_load_mbuf/bus_dmamap_load_uio.
Tested load_mbuf with GEM ethernet driver.

Submitted by: Hiten Pandya <hiten@unixdaemons.com> (modified by grehan)

21 years ago- define HAS_STREAM_METHODS correctly
grehan [Wed, 8 Jan 2003 11:43:36 +0000 (11:43 +0000)]
- define HAS_STREAM_METHODS correctly
- dmamap_load_mbuf/load_uio prototypes

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

21 years agoo Refer to "Network Associates Laboratories" instead of "NAI Labs" or
chris [Wed, 8 Jan 2003 11:06:22 +0000 (11:06 +0000)]
o Refer to "Network Associates Laboratories" instead of "NAI Labs" or
  "Network Associates Labs" in the copyright notice.
o Remove clause #3 in the license terms.
o Remove the line break from my name.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoInclude a proper reference to the Developers' Handbook in the
chris [Wed, 8 Jan 2003 10:53:37 +0000 (10:53 +0000)]
Include a proper reference to the Developers' Handbook in the
SEE ALSO section.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoDo not strip CTL* escapes from redirection filenames in exptilde(),
tjr [Wed, 8 Jan 2003 10:50:08 +0000 (10:50 +0000)]
Do not strip CTL* escapes from redirection filenames in exptilde(),
expari(), expbackq() and evalvar(). Similar to revision 1.39.
Patch from Tor Egge.

PR: 45349
MFC after: 2 weeks

21 years agoCross-reference mac_lomac.4
chris [Wed, 8 Jan 2003 10:47:18 +0000 (10:47 +0000)]
Cross-reference mac_lomac.4

Sponsored by: DARPA, Network Associates Laboratories

21 years agoDocument the LOMAC security policy.
chris [Wed, 8 Jan 2003 10:30:00 +0000 (10:30 +0000)]
Document the LOMAC security policy.
This man page was co-written by Brian Feldman <green>.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd code that works around the problem that the older Promise
sos [Wed, 8 Jan 2003 10:03:31 +0000 (10:03 +0000)]
Add code that works around the problem that the older Promise
controllers (ultra/fasttrak-66/100) fails on 48bit accesses.

21 years agoAdd a declaration that malloc() returns a pointer, not an int. Otherwise
peter [Wed, 8 Jan 2003 07:02:07 +0000 (07:02 +0000)]
Add a declaration that malloc() returns a pointer, not an int.  Otherwise
this segfaults on ia64.  (Cannot cast an int to a pointer).
The rest of the code does it this way rather than use system includes....

21 years agoChange this:
peter [Wed, 8 Jan 2003 06:43:27 +0000 (06:43 +0000)]
Change this:
#include <strings.h>
...
  foo = (char *)strdup(...);
To:
#include <string.h>
  foo = strdup(...);
because the former segfaults on an ia64 since there is no prototype
for strdup() in strings.h.  Converting an "int" to a pointer is fatal.

21 years agoAdd #include "diff.h" in order to get the prototype for xmalloc().
peter [Wed, 8 Jan 2003 06:40:35 +0000 (06:40 +0000)]
Add #include "diff.h" in order to get the prototype for xmalloc().
The corresponding warning has been ignored for ages:
  prepend_args.c:75: warning: initialization makes pointer from integer
  without a cast
This is fatal on ia64.  You cannot convert an implicit int return from
an undeclared function to a pointer as you've lost the upper 32 bits.
On ia64, the warning is "pointer from different sized integer".

(This file is not vendor branched)

21 years agoDestroy the management device when detaching the driver.
scottl [Wed, 8 Jan 2003 06:30:34 +0000 (06:30 +0000)]
Destroy the management device when detaching the driver.

21 years ago- Add acpi module binding.
mdodd [Wed, 8 Jan 2003 06:24:25 +0000 (06:24 +0000)]
- Add acpi module binding.
- Restore speed and format settings on resume for CS423x and
  CS423x-PCI devices.

21 years agoAdd (somewhat overdue-ly) lmc(4) and ida(4) devices to the hardware
bmah [Wed, 8 Jan 2003 05:50:37 +0000 (05:50 +0000)]
Add (somewhat overdue-ly) lmc(4) and ida(4) devices to the hardware
list.

Also add an entry for lmc(4) to the release notes, since this is a
new driver for 5.0 and CURRENT.

21 years agoRetry to get full device descriptor, this let my slow CD Tower device work.
davidxu [Wed, 8 Jan 2003 05:03:35 +0000 (05:03 +0000)]
Retry to get full device descriptor, this let my slow CD Tower device work.

21 years agoSome KSE syscalls are MPSAFE.
davidxu [Wed, 8 Jan 2003 04:57:53 +0000 (04:57 +0000)]
Some KSE syscalls are MPSAFE.

21 years agoUse bus_space_subregion to add offsets to bus handles instead of doing
jake [Wed, 8 Jan 2003 04:30:30 +0000 (04:30 +0000)]
Use bus_space_subregion to add offsets to bus handles instead of doing
it manually.

21 years agoImplement bus_space_subregion.
jake [Wed, 8 Jan 2003 04:29:00 +0000 (04:29 +0000)]
Implement bus_space_subregion.

21 years agoEnumerate logical hyperthread CPUs manually if they aren't already listed
jhb [Wed, 8 Jan 2003 01:33:18 +0000 (01:33 +0000)]
Enumerate logical hyperthread CPUs manually if they aren't already listed
in the mptable.  The way this works is that we determine if the system
has hyperthreading and how many logical CPU's should be in each physical
CPU by using the information returned by cpuid.  During the first pass of
the mptable, we build a bitmask of the APIC IDs of the CPUs listed in the
mptable.  We then scan that bitmask to see if the CPUs are already listed
by the mptable, or if there are any APIC IDs already in use that would
conflict with the APIC IDs of the logical CPUs.  If that test succeeds,
then we fixup the count of application processors.  Later on during the
second pass of the mptable we create fake processor entries for logical
CPUs and add them to the system.

We only need this type of fixup hack when using the mptable to enumerate
CPUs.  The ACPI MADT table properly enumerates all logical CPUs.

21 years agoIf the boot processor supports hyperthreading and contains more than one
jhb [Wed, 8 Jan 2003 01:23:16 +0000 (01:23 +0000)]
If the boot processor supports hyperthreading and contains more than one
logical CPU, display the number of logical CPUs per physical processor
underneath the list of CPU features.

21 years agoAdd a cpuid_cpuinfo variable to hold the results of %ebx from cpuid with
jhb [Wed, 8 Jan 2003 01:20:05 +0000 (01:20 +0000)]
Add a cpuid_cpuinfo variable to hold the results of %ebx from cpuid with
%eax of 1 and set it in identify_cpu().

21 years agoNo need to support UL_GETSIZE and UL_SETSIZE anymore; they are about to be
tjr [Wed, 8 Jan 2003 01:18:13 +0000 (01:18 +0000)]
No need to support UL_GETSIZE and UL_SETSIZE anymore; they are about to be
renamed in RELENG_5_0.

21 years ago- Fix the name of the hyperthreading cpuid feature flag to be HTT instead
jhb [Wed, 8 Jan 2003 01:15:26 +0000 (01:15 +0000)]
- Fix the name of the hyperthreading cpuid feature flag to be HTT instead
  of HHT.
- Document fields returned in %ebx by a cpuid with %eax of 1.

21 years agoMove the MOD_SHUTDOWN event from shutdown_post_sync to shutdown_final,
peter [Tue, 7 Jan 2003 22:24:13 +0000 (22:24 +0000)]
Move the MOD_SHUTDOWN event from shutdown_post_sync to shutdown_final,
so that entities that want to use the post_sync hook to write stuff
to devices and other tidy-up can do so before the device tree is
shot down.  eg: da doing a SYNC_CACHE etc.  This should get crashdumps
working on mpt devices again, and stops the ia64 boxes locking up
on regular shutdown when da tries to issue the scsi commands to mpt.

Obtained from:  njl, gibbs

21 years agopthread_attr_get_np() now takes 'pthread_t' (not 'pthread_t *')
fjoe [Tue, 7 Jan 2003 21:43:30 +0000 (21:43 +0000)]
pthread_attr_get_np() now takes 'pthread_t' (not 'pthread_t *')
to be consistent with other pthread_XXX functions

21 years agoIn vn_open(), unset ndp->ni_vp when returning failure so that code
green [Tue, 7 Jan 2003 20:59:55 +0000 (20:59 +0000)]
In vn_open(), unset ndp->ni_vp when returning failure so that code
which expects it to be NULL unless the return value was 0 will work.

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

21 years agoUse copyout to access user memory.
alfred [Tue, 7 Jan 2003 20:10:04 +0000 (20:10 +0000)]
Use copyout to access user memory.

Submittted by: pho
MFC After: 2 days

21 years agoMake bogus_offset local to bufinit().
alc [Tue, 7 Jan 2003 19:55:08 +0000 (19:55 +0000)]
Make bogus_offset local to bufinit().

21 years agoThe README refers to a LICENSE file, so add that file too.
pdeuskar [Tue, 7 Jan 2003 19:36:00 +0000 (19:36 +0000)]
The README refers to a LICENSE file, so add that file too.
BTW the license is also embedded in the source files.

MFC after: 1 day

21 years agoFix warnings & errors caused by my last commit.
phk [Tue, 7 Jan 2003 19:09:10 +0000 (19:09 +0000)]
Fix warnings & errors caused by my last commit.

21 years agoThis patch fixes a problem caused by applications that rapidly and
mckusick [Tue, 7 Jan 2003 18:23:50 +0000 (18:23 +0000)]
This patch fixes a problem caused by applications that rapidly and
repeatedly truncate the same file. Each time the file is truncated,
a buffer is grabbed to store the indirect block numbers that need
to be freed. Those blocks cannot be freed until the inode claiming
them is written to disk. Thus, the number of buffers being held by
soft updates explodes and in extreme cases can run the kernel out
of buffers. The problem can be avoided by doing an fsync on the
file every debug.maxindirdep truncates (currently defaulted to 50).
The fsync causes the inode to be written so that the held buffers
can be freed. The check for excessive buffers is checked as part
of the existing hook for excessive dependencies (softdep_slowdown)
in the truncate code.

Reported by: David Schultz <dschultz@uclink.Berkeley.EDU>
Sponsored by:   DARPA & NAI Labs.
MFC after: 3 weeks

21 years agoCast the integer read as the first argument for %b to an unsigned integer
jhb [Tue, 7 Jan 2003 18:17:18 +0000 (18:17 +0000)]
Cast the integer read as the first argument for %b to an unsigned integer
so it's value is not sign extended when assigned to the uintmax_t variable
used internally by printf.  For example, if bit 31 is set in the cpuid
feature word, then %b would print out the initial value as a 16 character
hexadecimal value.  Now it only prints out an 8 character value.

Reviewed by: bde

21 years agoNew release note: SA-02:44.
bmah [Tue, 7 Jan 2003 17:35:04 +0000 (17:35 +0000)]
New release note:  SA-02:44.

21 years agoAdd support for OPIE and PAM.
obrien [Tue, 7 Jan 2003 17:31:23 +0000 (17:31 +0000)]
Add support for OPIE and PAM.

Submitted by: mikeh (reworked by me)

21 years agoUse manpage entities for ciss(4), iir(4), and trm(4).
bmah [Tue, 7 Jan 2003 16:55:03 +0000 (16:55 +0000)]
Use manpage entities for ciss(4), iir(4), and trm(4).

21 years agoNew release notes: fwcontrol(8) (+MFC), swapoff(8), xargs(1) -P,
bmah [Tue, 7 Jan 2003 16:48:23 +0000 (16:48 +0000)]
New release notes:  fwcontrol(8) (+MFC), swapoff(8), xargs(1) -P,
bzip2recover (+MFC).

Modified release notes:  compat4x update, awk 20021213 update,
OpenPam Daffodil.

MFCs noted:  cvs-1.11.2.1 20021201 snapshot.

Other changes:  Capitalize "FireWire" correctly.  Use manpage entities for
ciss(4), ida(4), iir(4), trm(4).

21 years agoCorrect a couple small typos.
chris [Tue, 7 Jan 2003 13:18:21 +0000 (13:18 +0000)]
Correct a couple small typos.

Submitted by: Attila Nagy <bra@fsn.hu>

21 years ago- Fix print format for FreeBSD-4
simokawa [Tue, 7 Jan 2003 12:58:08 +0000 (12:58 +0000)]
- Fix print format for FreeBSD-4
- Reduce debug message.

21 years agoAdd an entry for libugidfw.
chris [Tue, 7 Jan 2003 11:30:53 +0000 (11:30 +0000)]
Add an entry for libugidfw.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoDocument the file system firewall interface library functions.
chris [Tue, 7 Jan 2003 11:23:43 +0000 (11:23 +0000)]
Document the file system firewall interface library functions.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoTeach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an added
scottl [Tue, 7 Jan 2003 07:46:50 +0000 (07:46 +0000)]
Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd.  As an added
bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd,
NFS Server, or NIS is enabled.

21 years agoClear some KSE fields after kse mode was turned off.
davidxu [Tue, 7 Jan 2003 06:56:43 +0000 (06:56 +0000)]
Clear some KSE fields after kse mode was turned off.

21 years ago#include "namespace.h" to get a prototype for _err().
tjr [Tue, 7 Jan 2003 06:55:58 +0000 (06:55 +0000)]
#include "namespace.h" to get a prototype for _err().

21 years agoRemove an unused variable: mbresult.
tjr [Tue, 7 Jan 2003 06:20:47 +0000 (06:20 +0000)]
Remove an unused variable: mbresult.

21 years ago#include <stdlib.h> for free()'s prototype.
tjr [Tue, 7 Jan 2003 06:17:13 +0000 (06:17 +0000)]
#include <stdlib.h> for free()'s prototype.

21 years agoUse hidden names (_close, _dup2, _waitpid, etc.) where appropriate.
tjr [Tue, 7 Jan 2003 06:07:56 +0000 (06:07 +0000)]
Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.

21 years agoAdd waitpid to the list of hidden names for use by wordexp.c and grantpt.c.
tjr [Tue, 7 Jan 2003 06:05:35 +0000 (06:05 +0000)]
Add waitpid to the list of hidden names for use by wordexp.c and grantpt.c.

21 years agoForgot to call setrunnable() for un-idled thread.
davidxu [Tue, 7 Jan 2003 06:04:33 +0000 (06:04 +0000)]
Forgot to call setrunnable() for un-idled thread.