]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoRemove duplicate check for EOF from ungetc(); __ungetc() already checks.
tjr [Wed, 10 Mar 2004 11:13:23 +0000 (11:13 +0000)]
Remove duplicate check for EOF from ungetc(); __ungetc() already checks.

20 years agoWe don't retain 'x' bits in CVS so explicity use sh to run script.
phk [Wed, 10 Mar 2004 11:11:58 +0000 (11:11 +0000)]
We don't retain 'x' bits in CVS so explicity use sh to run script.

20 years agoCall __sputc() directly in fputc() instead of taking an expensive
tjr [Wed, 10 Mar 2004 10:49:45 +0000 (10:49 +0000)]
Call __sputc() directly in fputc() instead of taking an expensive
detour through putc().

20 years agoAdd first cut at "nanobsd":
phk [Wed, 10 Mar 2004 10:28:33 +0000 (10:28 +0000)]
Add first cut at "nanobsd":

Nanobsd should make it very simple for people to create (CF-)disk images
for embedded us of FreeBSD.

Currently only works for 256MB disks.  More agrressive shaving of the
build image can reduce that much further.

20 years agoCall __sgetc() directly in getchar() instead of taking an expensive
tjr [Wed, 10 Mar 2004 10:24:15 +0000 (10:24 +0000)]
Call __sgetc() directly in getchar() instead of taking an expensive
detour through getc().

20 years agoUse the external clock input for our PLL.
phk [Wed, 10 Mar 2004 10:10:46 +0000 (10:10 +0000)]
Use the external clock input for our PLL.

This may not be a generally valid configuration, but neither is relying
on the PCI clock to be stable.

The only currently known and supported hardware is the VPN14x1 from
Soekris, and since it has external clock, we fail safe(r) by using
it.

Unfortunately there is no way to probe this reliably.

20 years agoSet the stream orientation explicitly in fgetln() instead of relying on
tjr [Wed, 10 Mar 2004 09:28:38 +0000 (09:28 +0000)]
Set the stream orientation explicitly in fgetln() instead of relying on
__srefill() to do it.

20 years agoRemove the /* 1.2 */ comment which was orphaned by previous commit.
phk [Wed, 10 Mar 2004 09:23:27 +0000 (09:23 +0000)]
Remove the /* 1.2 */ comment which was orphaned by previous commit.

20 years agoSet stream orientation in puts().
tjr [Wed, 10 Mar 2004 09:15:38 +0000 (09:15 +0000)]
Set stream orientation in puts().

20 years agoPut libypclnt behind NO_YP_LIBC
phk [Wed, 10 Mar 2004 08:58:06 +0000 (08:58 +0000)]
Put libypclnt behind NO_YP_LIBC

20 years agoRearrange some of the GEOM debugging tools to be more structured.
phk [Wed, 10 Mar 2004 08:49:08 +0000 (08:49 +0000)]
Rearrange some of the GEOM debugging tools to be more structured.

  Retire g_sanity() and corresponding debugflag (0x8)

  Retire g_{stall,release}_events().

  Under #ifdef DIAGNOSTIC:

    Make g_valid_obj() an official function and have it return an an
    non-zero integer which indicates the kind of object when found.

    Implement G_VALID_{CLASS,GEOM,CONSUMER,PROVIDER}() macros based
    on g_valid_obj().

    Sprinkle calls to these macros liberally over the infrastructure.

    Always check that we do not free a live object.

20 years agoFixed a misspelling of 0 as NULL.
bde [Wed, 10 Mar 2004 08:46:39 +0000 (08:46 +0000)]
Fixed a misspelling of 0 as NULL.

20 years agoFix handling of tap/vmnet flag in relation to cloning and properly enforce
phk [Wed, 10 Mar 2004 08:02:29 +0000 (08:02 +0000)]
Fix handling of tap/vmnet flag in relation to cloning and properly enforce
largest supported unit number for this device driver.

Reported by: Kaho Toshikazu <kaho@easy.es.tuat.ac.jp>

20 years agoFix several issues related to the KeInitializeTimer() etc... API stuff
wpaul [Wed, 10 Mar 2004 07:43:11 +0000 (07:43 +0000)]
Fix several issues related to the KeInitializeTimer() etc... API stuff
that I added recently:

- When a periodic timer fires, it's automatically re-armed. We must
  make sure to re-arm the timer _before_ invoking any caller-supplied
  defered procedure call: the DPC may choose to call KeCancelTimer(),
  and re-arming the timer after the DPC un-does the effect of the
  cancel.

- Fix similar issue with periodic timers in subr_ndis.c.

- When calling KeSetTimer() or KeSetTimerEx(), if the timer is
  already pending, untimeout() it first before timeout()ing
  it again.

- The old Atheros driver for the 5211 seems to use KeSetTimerEx()
  incorrectly, or at the very least in a very strange way that
  doesn't quite follow the Microsoft documentation. In one case,
  it calls KeSetTimerEx() with a duetime of 0 and a period of 5000.
  The Microsoft documentation says that negative duetime values
  are relative to the current time and positive values are absolute.
  But it doesn't say what's supposed to happen with positive values
  that less than the current time, i.e. absolute values that are
  in the past.

  Lacking any further information, I have decided that timers with
  positive duetimes that are in the past should fire right away (or
  in our case, after only 1 tick). This also takes care of the other
  strange usage in the Atheros driver, where the duetime is
  specified as 500000 and the period is 50. I think someone may
  have meant to use -500000 and misinterpreted the documentation.

- Also modified KeWaitForSingleObject() and KeWaitForMultipleObjects()
  to make the same duetime adjustment, since they have the same rules
  regarding timeout values.

- Cosmetic: change name of 'timeout' variable in KeWaitForSingleObject()
  and KeWaitForMultipleObjects() to 'duetime' to avoid senseless
  (though harmless) overlap with timeout() function name.

With these fixes, I can get the 5211 card to associate properly with
my adhoc net using driver AR5211.SYS version 2.4.1.6.

20 years agoMove the AH algorithm list from a static local function variable to
rwatson [Wed, 10 Mar 2004 04:56:54 +0000 (04:56 +0000)]
Move the AH algorithm list from a static local function variable to
a static const global variable in ah_core.c.  This makes it more clear
that this array does not require synchronization, as well as
synchronizing the layout to the ESP algorithm list.  This is the
version of my patch that Itojun committed to the KAME tree.

Obtained from: me, via KAME

20 years ago - Make the acquisition of Giant in vm_fault_unwire() conditional on the
alc [Wed, 10 Mar 2004 04:44:43 +0000 (04:44 +0000)]
 - Make the acquisition of Giant in vm_fault_unwire() conditional on the
   pmap.  For the kernel pmap, Giant is not required.  In general, for
   other pmaps, Giant is required by i386's pmap_pte() implementation.
   Specifically, the use of PMAP2/PADDR2 is synchronized by Giant.
   Note: In principle, updates to the kernel pmap's wired count could be
   lost without Giant.  However, in practice, we never use the kernel
   pmap's wired count.  This will be resolved when pmap locking appears.
 - With the above change, cpu_thread_clean() and uma_large_free() need
   not acquire Giant.  (The first case is simply the revival of
   i386/i386/vm_machdep.c's revision 1.226 by peter.)

20 years agoLock down IP-layer encapsulation library:
rwatson [Wed, 10 Mar 2004 02:48:50 +0000 (02:48 +0000)]
Lock down IP-layer encapsulation library:

 - Add encapmtx to protect ip_encap.c global variables (encapsulation
   list).
 - Unifdef #ifdef 0 pieces of encap_init() which was (and now really
   is) basically a no-op.
 - Lock encapmtx when walking encaptab, modifying it, comparing
   entries, etc.
 - Remove spl's.

Note that currently there's no facilite to make sure outstanding
use of encapsulation methods on a table entry have drained bfore
we allow a table entry to be removed.  As such, it's currently the
caller's responsibility to make sure that draining takes place.

Reviewed by: mlaier

20 years agoScrub unused variable zeroin_addr.
rwatson [Wed, 10 Mar 2004 01:01:04 +0000 (01:01 +0000)]
Scrub unused variable zeroin_addr.

20 years agomake sure we had the filedesc lock when calling fdinit when RFCFDG is set
jmg [Wed, 10 Mar 2004 00:27:36 +0000 (00:27 +0000)]
make sure we had the filedesc lock when calling fdinit when RFCFDG is set
on call to rfork.

Submitted by: Brian Buchanan
Semi-Reviewed by: rwatson

20 years agoAnother April Fool signs up.
peadar [Wed, 10 Mar 2004 00:06:01 +0000 (00:06 +0000)]
Another April Fool signs up.

20 years agoConst-poison ethernet and FDDI broadcast address constants, as they
rwatson [Tue, 9 Mar 2004 23:55:59 +0000 (23:55 +0000)]
Const-poison ethernet and FDDI broadcast address constants, as they
are accessed read-only.

20 years agoMake this file more generally usable:
phk [Tue, 9 Mar 2004 23:06:50 +0000 (23:06 +0000)]
Make this file more generally usable:

Trigger not only on diskless booting sysctls being set, but also
on the existence of the file "/etc/diskless".  But do not try to
extract IP# related keywords in that case.

Add a general "remount" facility to allow non-NFS remounting.

20 years agoMake libgeom usable by C++ programs:
jhb [Tue, 9 Mar 2004 21:14:18 +0000 (21:14 +0000)]
Make libgeom usable by C++ programs:
- Add DECL wrappers to libgeom.h.
- Rename structure members in libgeom.h to use a lg_ prefix for member
  names.  This is required because a few structures had members named
  'class' which made g++ very unhappy.
- Catch gstat(8) and gconcat(8) up to these API changes.

Reviewed by: phk

20 years agoRemove duplicate code.
jb [Tue, 9 Mar 2004 20:53:01 +0000 (20:53 +0000)]
Remove duplicate code.

Requested by: bde

20 years agoTrim unneeded includes from if_ndis_pccard.c and if_ndis_pci.c. Also removed
wpaul [Tue, 9 Mar 2004 20:29:21 +0000 (20:29 +0000)]
Trim unneeded includes from if_ndis_pccard.c and if_ndis_pci.c. Also removed
unused variables from if_ndis_pccard.c

20 years agoIntroduce stf_mtx to protect global softc list in if_stf. Add
rwatson [Tue, 9 Mar 2004 20:29:19 +0000 (20:29 +0000)]
Introduce stf_mtx to protect global softc list in if_stf.  Add
stf_destroy() to handle the common softc destruction path for the
two destruction sources: interface cloning destroy, and module
unload.

NOTE: sc_ro, the cached route for stf conversion, is not synchronized
against concurrent access in this change, that will follow in a future
change.

Reviewed by: pjd

20 years agoMany fixes.
kientzle [Tue, 9 Mar 2004 19:50:41 +0000 (19:50 +0000)]
Many fixes.

Portability: Thanks to Juergen Lock, libarchive now compiles cleanly
on Linux.  Along the way, I cleaned up a lot of error return codes and
reorganized some code to simplify conditional compilation of certain
sections.

Bug fixes:
  * pax format now actually stores filenames that are 101-154
    characters long.
  * pax format now allows newline characters in extended attributes
    (this fixes a long-standing bug in ACL handling)
  * mtime/atime are now restored for directories
  * directory list is now sorted prior to fix-up to permit
    correct restore of non-writable dir heirarchies

20 years agoIntroduce faith_mtx to protect the if_faith global softc list.
rwatson [Tue, 9 Mar 2004 19:23:06 +0000 (19:23 +0000)]
Introduce faith_mtx to protect the if_faith global softc list.
Push if_faith softc destruction logic into faith_destroy() so that
it can be called after softc list removal in both the clone destroy
and module unload paths.

20 years agoIf the resource listing obtained from BUS_GET_RESOURCE_LIST() in
wpaul [Tue, 9 Mar 2004 18:39:40 +0000 (18:39 +0000)]
If the resource listing obtained from BUS_GET_RESOURCE_LIST() in
ndis_probe_pci() doesn't contain an entry for an IRQ resource, try to
force one to be routed to us anyway by adding an extra call to
bus_alloc_resource(). If this fails, then we have to abort the attach.

Patch provided by jhb, tweaked by me.

20 years agoMake it possible to ``.undef ${VAR}'' (expanding VAR to get
ru [Tue, 9 Mar 2004 17:36:55 +0000 (17:36 +0000)]
Make it possible to ``.undef ${VAR}'' (expanding VAR to get
the variable name to undef).

Submitted by: Cyrille Lefevre

20 years agoIntroduce lo_mtx to protect the global loopback softc list. I'm not
rwatson [Tue, 9 Mar 2004 17:27:48 +0000 (17:27 +0000)]
Introduce lo_mtx to protect the global loopback softc list.  I'm not
really sure why we have a softc list for if_loop, given that it
can't be unloaded, but that's an issue to revisit in the future as
corrupting the softc list would still cause panics.

Reviewed by: benno

20 years agoIntroduce disc_mtx to protect the global softc list in if_disc.
rwatson [Tue, 9 Mar 2004 16:31:19 +0000 (16:31 +0000)]
Introduce disc_mtx to protect the global softc list in if_disc.

Since there are two destroy paths for if_disc interfaces --
module unload and cloan interface destroy, create a new utility
function disc_destroy(), which is callded on a softc after it
has been removed from the global softc list; the cloaner and
module unload entry paths will both remove it before calling
disc_destroy().

Reviewed by: pjd

20 years agoFix an integer overflow when dealing with very large volumes. This bug
le [Tue, 9 Mar 2004 12:45:43 +0000 (12:45 +0000)]
Fix an integer overflow when dealing with very large volumes.  This bug
prevented newfs to work on volumes that are larger than 1TB.

PR:             63577
Submitted by:   Masaki Takakashi <mtakahashi@se.gtd.cosmo.co.jp>
Approved by:    grog (mentor), bde

20 years agoFix the easy warnings:
dwmalone [Tue, 9 Mar 2004 11:57:28 +0000 (11:57 +0000)]
Fix the easy warnings:

1) Avoid shadowing index.
2) Constness.
3) Missing prototype for ifcmd.
4) Missing include of string.h.
5) Avoid shadowing error function.
6) ANSI definition for main.

20 years agoMisc fixes brought to light by WARNS=6:
dwmalone [Tue, 9 Mar 2004 11:35:43 +0000 (11:35 +0000)]
Misc fixes brought to light by WARNS=6:

1) Constness, unusedness and size_tness.
2) Don't clobber the value returned by hid_report_size in the daemon case.
3) Don't misspell "sizeof buf" as 100.
4) Don't run off the end of a buffer if the pid is about a google.
5) Avoid shadowing the usage function.

20 years ago- Don't take sectorsize from first disk. Calculate it by finding
pjd [Tue, 9 Mar 2004 11:18:53 +0000 (11:18 +0000)]
- Don't take sectorsize from first disk. Calculate it by finding
  least common multiple of all disks sector sizes.
  This will allow to safely concatenate disks with different sector sizes.
- Mark unused function arguments.
- Other minor cleanups.

20 years agoPrint a space character between string given as a macro argument and
pjd [Tue, 9 Mar 2004 11:00:24 +0000 (11:00 +0000)]
Print a space character between string given as a macro argument and
bio description.

20 years agoAnd a bandaid so that the output of "available space" is correct when
le [Tue, 9 Mar 2004 10:02:44 +0000 (10:02 +0000)]
And a bandaid so that the output of "available space" is correct when
using -m and -g switches and "available space" is negative (i.e. when
the file system is already using the root-reserved minimum free space).

Obtained from:   Stefan Farfeleder <stefan@fafoe.narf.at>
PR:              bin/62536
Submitted by:    Peter van Dijk <peter@dataloss.nl>
Approved by:     grog (mentor), bde

20 years agoSince vinum doesn't fake disklabels anymore, remove get_volume_label().
le [Tue, 9 Mar 2004 09:50:15 +0000 (09:50 +0000)]
Since vinum doesn't fake disklabels anymore, remove get_volume_label().

Also, remove stale write_volume_label() declaration; the write_volume_label()
function was deleted 8 months ago.

Approved by:    grog (mentor)

20 years agoFixed line numbering inside the .for loops.
ru [Tue, 9 Mar 2004 08:09:33 +0000 (08:09 +0000)]
Fixed line numbering inside the .for loops.

Submitted by: Cyrille Lefevre

20 years agoSimplify some logic in converting a buffer to an integer.
njl [Tue, 9 Mar 2004 05:44:47 +0000 (05:44 +0000)]
Simplify some logic in converting a buffer to an integer.

20 years agoUse an unsigned int instead of an int for the Get/Set Integer interface.
njl [Tue, 9 Mar 2004 05:41:28 +0000 (05:41 +0000)]
Use an unsigned int instead of an int for the Get/Set Integer interface.

Pointed out by: le

20 years agoBackout the previous revision due to objections.
jb [Tue, 9 Mar 2004 04:51:58 +0000 (04:51 +0000)]
Backout the previous revision due to objections.

20 years agoReset the text attributes when initializing the console. The EFI
marcel [Tue, 9 Mar 2004 04:00:33 +0000 (04:00 +0000)]
Reset the text attributes when initializing the console. The EFI
loader typically doesn't do this so that we end up booting the
with whatever the EFI loader has set it to last.

20 years agoHook CPUs up to newbus. CPUs will ultimately be a bus driver so that
njl [Tue, 9 Mar 2004 03:37:21 +0000 (03:37 +0000)]
Hook CPUs up to newbus.  CPUs will ultimately be a bus driver so that
multiple CPU-specific drivers can attach.  This is a work in progress
so children aren't supported yet.

Help from: jhb

20 years agoAdd #ifdef CPU_SOEKRIS in the missing places around the led_* code
jb [Tue, 9 Mar 2004 02:51:21 +0000 (02:51 +0000)]
Add #ifdef CPU_SOEKRIS in the missing places around the led_* code
that is specific to those boards.

This allows this file to compile again with CPU_ELAN enabled, but not
CPU_SOEKRIS, for a Compulab board.

20 years agoAMD's ELAN documentation says that you write to the SYS_RST register
jb [Tue, 9 Mar 2004 02:49:24 +0000 (02:49 +0000)]
AMD's ELAN documentation says that you write to the SYS_RST register
in the Memory Mapped Configuration Region (MMCR) to reset the CPU.
If CPU_ELAN is set, try this first to reset the CPU before the
traditional way.

Without this change, my Compulab board powers down on 'reset' instead
of rebooting.

20 years agoOn 4.X it was possible for an application to initialise a local FILE
jb [Tue, 9 Mar 2004 02:44:59 +0000 (02:44 +0000)]
On 4.X it was possible for an application to initialise a local FILE
structure and call stdio functions. In 5.X this was broken when FILE
locking was introduced into libc.

This change makes most (relevant) stdio functions work again when the
_extra file in FILE isn't initialised (and can't be without a libc
function to do it since the __sFILEX structure is private to libc).

20 years agoThese aren't all binary options.
mikeh [Tue, 9 Mar 2004 01:20:24 +0000 (01:20 +0000)]
These aren't all binary options.

20 years agoFix typos.
ale [Mon, 8 Mar 2004 23:18:50 +0000 (23:18 +0000)]
Fix typos.

Approved by: blackend (mentor/implicitly)

20 years agoBump __FreeBSD_version for the pf install and write comments to UPDATING.
mlaier [Mon, 8 Mar 2004 22:26:46 +0000 (22:26 +0000)]
Bump __FreeBSD_version for the pf install and write comments to UPDATING.

Approved by: bms(mentor)

20 years agoLink pf to the build and install:
mlaier [Mon, 8 Mar 2004 22:03:29 +0000 (22:03 +0000)]
Link pf to the build and install:
This adds the former ports registered groups: proxy and authpf as well as
the proxy user. Make sure to run mergemaster -p in oder to complete make
installworld without errors.

This also provides the passive OS fingerprints from OpenBSD (pf.os) and an
example pf.conf.

For those who want to go without pf; it provides a NO_PF knob to make.conf.

__FreeBSD_version will be bumped soon to reflect this and to be able to
change ports accordingly.

Approved by: bms(mentor)

20 years agoMark loadaverage callout as CALLOUT_MPSAFE.
rwatson [Mon, 8 Mar 2004 22:01:19 +0000 (22:01 +0000)]
Mark loadaverage callout as CALLOUT_MPSAFE.

Reviewed by: jhb

20 years agoAdd two new sysctls:
pjd [Mon, 8 Mar 2004 20:37:25 +0000 (20:37 +0000)]
Add two new sysctls:

- security.bsd.hardlink_check_uid, when set, means, that unprivileged
users are not permitted to create hard links to files not
owned by them,
- security.bsd.hardlink_check_gid, when set, means, that unprivileged
users are not permitted to create hard links to files owned
by group they don't belong to.

OK'ed by: rwatson

20 years agoShift file locking to source file instead of temp file. This fixes
kensmith [Mon, 8 Mar 2004 20:31:37 +0000 (20:31 +0000)]
Shift file locking to source file instead of temp file.  This fixes
data buffering issue that corrupts files if two pw(8)'s run at the
same time as well as changing pw(8) so it uses the same locking
mechanism as PAM, vipw(8), pwd_mkdb(8), etc.

PR: bin/23501
Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su>
Approved by: rwatson (mentor)
MFC after: 5 days

20 years agoAdd a check for wtmp records which have invalid values for ut_time. Wtmp
gad [Mon, 8 Mar 2004 20:02:23 +0000 (20:02 +0000)]
Add a check for wtmp records which have invalid values for ut_time.  Wtmp
records with time==0 get "the time of the last valid record", while records
where time goes backwards (compared to the previous record) are skipped.
Also prints a message saying how many records were changed or skipped due
to these checks. Check was inspired by a simpler check in OpenBSD's version.

This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac'
when running sparc64 with 64-bit time_t's.  The real problem is whatever is
creating wtmp records with ut_time==0, of course, but I have not yet figured
out what is doing that.

Reviewed by: no screams from freebsd-sparc64 or bde
MFC after: 2 weeks

20 years agoCompile 'ac' with DEBUG when arch==sparc64.
gad [Mon, 8 Mar 2004 20:01:34 +0000 (20:01 +0000)]
Compile 'ac' with DEBUG when arch==sparc64.

20 years agoAdd a debug-statement from NetBSD, and then rework all debug-statements
gad [Mon, 8 Mar 2004 19:20:06 +0000 (19:20 +0000)]
Add a debug-statement from NetBSD, and then rework all debug-statements
so the program compiles without errors or warnings when DEBUG is defined on
sparc64 with 64-bit time_t's.  Also have debug statements include the year
when printing records from a different year than 'now'.  Also print out a
special timestamp in debug statements when ut_time==0.

Reviewed by: freebsd-sparc, bde
MFC after: 2 weeks

20 years agoRemove a.out at the end of 'make test'
ache [Mon, 8 Mar 2004 18:09:33 +0000 (18:09 +0000)]
Remove a.out at the end of 'make test'

20 years agoString the consumers into the list of the provider they are attached to.
phk [Mon, 8 Mar 2004 16:37:08 +0000 (16:37 +0000)]
String the consumers into the list of the provider they are attached to.

Noticed by: jhb

20 years agoFix two instances of improper NULL/0 use idetified by the changes lately.
mlaier [Mon, 8 Mar 2004 15:19:55 +0000 (15:19 +0000)]
Fix two instances of improper NULL/0 use idetified by the changes lately.

Submitted by: Patrick Marie
Approved by: bms(mentor)

20 years agoUpdate pmap_pinit(9) to reflect pmap_pinit2() removal by alc.
bms [Mon, 8 Mar 2004 15:07:14 +0000 (15:07 +0000)]
Update pmap_pinit(9) to reflect pmap_pinit2() removal by alc.

20 years agoManual page for the ng_atmllc node type.
benno [Mon, 8 Mar 2004 13:46:52 +0000 (13:46 +0000)]
Manual page for the ng_atmllc node type.

Currently missing a history section.

20 years agoMark scripts as not usable inside a jail by adding keyword 'nojail'.
pjd [Mon, 8 Mar 2004 12:25:05 +0000 (12:25 +0000)]
Mark scripts as not usable inside a jail by adding keyword 'nojail'.

Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>

20 years agoFix skipping scripts with given keywords.
pjd [Mon, 8 Mar 2004 12:02:07 +0000 (12:02 +0000)]
Fix skipping scripts with given keywords.
Proper syntax is '-s keyword1 -s keyword2', not '-s keyword1 keyword2'.

20 years agoAdd a netgraph node to handle ATM LLC encapsulation. This currently handles
benno [Mon, 8 Mar 2004 10:54:35 +0000 (10:54 +0000)]
Add a netgraph node to handle ATM LLC encapsulation.  This currently handles
ethernet (tested) and FDDI (not tested).  The main use for this is on ADSL (or
other ATM) connections where bridged ethernet is used, PPPoE being a prime
example.

There is no manual page as yet, I will write one shortly.

Reviewed by: harti

20 years agoTo comply with the spec, do not copy the TOS from the outer IP
hsu [Mon, 8 Mar 2004 07:47:27 +0000 (07:47 +0000)]
To comply with the spec, do not copy the TOS from the outer IP
header to the inner IP header of the PIM Register if this is a PIM
Null-Register message.

Submitted by: Pavlin Radoslavov <pavlin@icir.org>

20 years agoInclude <sys/types.h> for autoconf/automake detection.
hsu [Mon, 8 Mar 2004 07:45:32 +0000 (07:45 +0000)]
Include <sys/types.h> for autoconf/automake detection.

Submitted by: Pavlin Radoslavov <pavlin@icir.org>

20 years agoImplement a work around for the deadlock avoidance case in
alc [Mon, 8 Mar 2004 03:54:36 +0000 (03:54 +0000)]
Implement a work around for the deadlock avoidance case in
vm_object_deallocate() so that it doesn't spin forever either.

Submitted by: bde

20 years agoAdd back Giant locks around kmem_free() call from user_ldt cleanup path
peter [Mon, 8 Mar 2004 01:55:34 +0000 (01:55 +0000)]
Add back Giant locks around kmem_free() call from user_ldt cleanup path
during exit.  Apparently it isn't safe after all.  See uma_large_free().

Pointed out by:  alc

20 years agoMove a vref call outside of proc locks and Giant. By virtue of the fact
peter [Mon, 8 Mar 2004 00:32:34 +0000 (00:32 +0000)]
Move a vref call outside of proc locks and Giant.  By virtue of the fact
that we (p1) are currently running, we hold a reference on p_textvp which
means the vnode cannot go away.  p2 cannot run yet (and hence cannot exit)
so this should be safe to do at this point.  As a bonus, it removes a
block of under-Giant code that was there to support the vref.

20 years agoOther parts of the tree do not protect calls to kmem_free() with Giant,
peter [Mon, 8 Mar 2004 00:27:33 +0000 (00:27 +0000)]
Other parts of the tree do not protect calls to kmem_free() with Giant,
so remove it from here.  The most notable examples include vm_mmap().
This removes one more Giant event from exit(2).

20 years agoStop depending on #include pollution from cpufunc.h
peter [Mon, 8 Mar 2004 00:25:03 +0000 (00:25 +0000)]
Stop depending on #include pollution from cpufunc.h

20 years agoMFi386: re-sort non-gcc function prototypes, trim includes
peter [Mon, 8 Mar 2004 00:24:15 +0000 (00:24 +0000)]
MFi386: re-sort non-gcc function prototypes, trim includes

20 years agoMFi386: curpcb is no longer null anymore, so do not test for it.
peter [Mon, 8 Mar 2004 00:17:27 +0000 (00:17 +0000)]
MFi386: curpcb is no longer null anymore, so do not test for it.

20 years agoMFi386: set initial curpcb pcpu variable at startup time rather than
peter [Mon, 8 Mar 2004 00:16:52 +0000 (00:16 +0000)]
MFi386: set initial curpcb pcpu variable at startup time rather than
waiting for a context switch

20 years agoMFi386: wait for local apic to become free before using it
peter [Mon, 8 Mar 2004 00:15:29 +0000 (00:15 +0000)]
MFi386: wait for local apic to become free before using it

20 years agoImplemented the "getifindex" control message.
ru [Sun, 7 Mar 2004 23:00:44 +0000 (23:00 +0000)]
Implemented the "getifindex" control message.

PR: kern/63864
Submitted by: Gleb Smirnoff

20 years agoMake it possible for the %[eEfgG] formats to not result in an error
cperciva [Sun, 7 Mar 2004 22:22:13 +0000 (22:22 +0000)]
Make it possible for the %[eEfgG] formats to not result in an error
being reported by /usr/bin/printf.

This bug has been around for 22 months... either nobody uses printf
with floating-point values, or people are forgetting to check their
return codes.

Approved by: rwatson (mentor)

20 years agoRetire pmap_pinit2(). Alpha was the last platform that used it. However,
alc [Sun, 7 Mar 2004 21:06:48 +0000 (21:06 +0000)]
Retire pmap_pinit2().  Alpha was the last platform that used it.  However,
ever since alpha/alpha/pmap.c revision 1.81 introduced the list allpmaps,
there has been no reason for having this function on Alpha.  Briefly,
when pmap_growkernel() relied upon the list of all processes to find and
update the various pmaps to reflect a growth in the kernel's valid
address space, pmap_init2() served to avoid a race between pmap
initialization and pmap_growkernel().  Specifically, pmap_pinit2() was
responsible for initializing the kernel portions of the pmap and
pmap_pinit2() was called after the process structure contained a pointer
to the new pmap for use by pmap_growkernel().  Thus, an update to the
kernel's address space might be applied to the new pmap unnecessarily,
but an update would never be lost.

20 years agoRearrange (centralize) initialization of mallocs internals to always be
phk [Sun, 7 Mar 2004 20:41:27 +0000 (20:41 +0000)]
Rearrange (centralize) initialization of mallocs internals to always be
done before the first call, even if this is a malloc(0) call.

PR: 62859

20 years agoDon't panic on providers already withered when we wither a geom.
phk [Sun, 7 Mar 2004 17:33:15 +0000 (17:33 +0000)]
Don't panic on providers already withered when we wither a geom.

20 years agoUse one bus_dma_tag_t for all pSRB instead of creating one for each.
cognet [Sun, 7 Mar 2004 17:23:39 +0000 (17:23 +0000)]
Use one bus_dma_tag_t for all pSRB instead of creating one for each.
Free what is allocated for pSRBs at unload time or if something bad happens,
thanks to scottl for spotting this out.

20 years agoAdd final version of BSD/OS, BSD/OS 5.1 ISE.
wosch [Sun, 7 Mar 2004 16:44:10 +0000 (16:44 +0000)]
Add final version of BSD/OS, BSD/OS 5.1 ISE.

20 years agoConvert from timeout to callout API.
kan [Sun, 7 Mar 2004 16:28:31 +0000 (16:28 +0000)]
Convert from timeout to callout API.

Submitted by: rwatson

20 years agoConvert from timeout to callout API.
kan [Sun, 7 Mar 2004 16:23:03 +0000 (16:23 +0000)]
Convert from timeout to callout API.

20 years agoAdd manpages for the gctl API.
phk [Sun, 7 Mar 2004 16:07:57 +0000 (16:07 +0000)]
Add manpages for the gctl API.

Submitted by: le
Tweaks by: phk

20 years agoDocument kernel functions securelevel_gt and securelevel_ge.
josef [Sun, 7 Mar 2004 15:22:08 +0000 (15:22 +0000)]
Document kernel functions securelevel_gt and securelevel_ge.

Approved by:            simon(mentor)
Submitted by:           Christian S.J. Peron <maneo@bsdpro.com>
PR:                     docs/62331
mdoc(7) cleanup by:     ru

20 years agoRestore CDIOCREADAUDIO ioctl.
nyan [Sun, 7 Mar 2004 14:16:42 +0000 (14:16 +0000)]
Restore CDIOCREADAUDIO ioctl.

Pointed out by: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>

20 years agoIn the case where /etc/rc.d/ is empty, do not bogusly ask the user if
dougb [Sun, 7 Mar 2004 10:10:19 +0000 (10:10 +0000)]
In the case where /etc/rc.d/ is empty, do not bogusly ask the user if
they want to delete '*'. It turns out that there is one valid case where
this might happen, installing to an empty DESTDIR.

Patch submitted by: schweikh

20 years agoIntegrate the code from pmap_pinit2() into pmap_pinit(), leaving
alc [Sun, 7 Mar 2004 07:43:13 +0000 (07:43 +0000)]
Integrate the code from pmap_pinit2() into pmap_pinit(), leaving
pmap_pinit2() empty.

Approved by: marcel

20 years agoRemove unused declarations. (Some time ago, these variables became fields
alc [Sun, 7 Mar 2004 07:13:15 +0000 (07:13 +0000)]
Remove unused declarations.  (Some time ago, these variables became fields
of vm/vm.h's struct kva_md_info.)

20 years agoMark uma_callout as CALLOUT_MPSAFE, as uma_timeout can run MPSAFE.
rwatson [Sun, 7 Mar 2004 07:00:46 +0000 (07:00 +0000)]
Mark uma_callout as CALLOUT_MPSAFE, as uma_timeout can run MPSAFE.

Reviewed by: jeff

20 years agoRemove '#include <machine/bus_pio.h>'. This is meaningless.
nyan [Sun, 7 Mar 2004 05:39:38 +0000 (05:39 +0000)]
Remove '#include <machine/bus_pio.h>'.  This is meaningless.

20 years agoRemove unneeded devices.
nyan [Sun, 7 Mar 2004 05:38:20 +0000 (05:38 +0000)]
Remove unneeded devices.

20 years agoSync to 1.166 of usbdevs
sanpei [Sun, 7 Mar 2004 05:34:36 +0000 (05:34 +0000)]
Sync to 1.166 of usbdevs

20 years agoAdd support 2 devices(USB-DVD-R drives)
sanpei [Sun, 7 Mar 2004 05:33:09 +0000 (05:33 +0000)]
Add support 2 devices(USB-DVD-R drives)
- Logitec LDR-H443SU2
- IO-DATA DVR-UEH8

PR: kern/63793
Submitted by: Ryuji MATSUMOTO <matumoto@pluto.ai.kyutech.ac.jp>
MFC after: 1 week

20 years agoConst-poison ip_stf_ttl to make it clear that the variable is not
rwatson [Sun, 7 Mar 2004 05:15:42 +0000 (05:15 +0000)]
Const-poison ip_stf_ttl to make it clear that the variable is not
modified at run-time.

20 years agoMFi386: revisions from 1.1127 to 1.1131.
nyan [Sun, 7 Mar 2004 04:09:18 +0000 (04:09 +0000)]
MFi386: revisions from 1.1127 to 1.1131.

20 years agoAdd the agp, bfe, sk and ti devices. (the agp is disabled by default).
nyan [Sun, 7 Mar 2004 04:07:57 +0000 (04:07 +0000)]
Add the agp, bfe, sk and ti devices. (the agp is disabled by default).
Remove obsolete compat_atdisk device.