]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoDefine a new __GNUC_PREREQ__(maj, min) to test if we have a specific
Maxime Henrion [Tue, 30 Sep 2003 20:34:57 +0000 (20:34 +0000)]
Define a new __GNUC_PREREQ__(maj, min) to test if we have a specific
version of GCC or later and use it where appropriate.  It makes this
file more readable.

Obtained from: OpenBSD

20 years agoRevert 1.24. It causes a hang on shutdown for Marcel. This is due to
Nate Lawson [Tue, 30 Sep 2003 19:12:37 +0000 (19:12 +0000)]
Revert 1.24.  It causes a hang on shutdown for Marcel.  This is due to
AcpiEnterSleepState() calling a long AcpiOsStall() with interrupts
disabled.  This fix will instead be added to ACPI-CA.

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:

20 years agoFix a (fortunately harmless) signed / unsigned bug.
Dag-Erling Smørgrav [Tue, 30 Sep 2003 13:35:19 +0000 (13:35 +0000)]
Fix a (fortunately harmless) signed / unsigned bug.

20 years agoReduce diffs against KAME. No functional change.
Hajimu UMEMOTO [Tue, 30 Sep 2003 10:52:49 +0000 (10:52 +0000)]
Reduce diffs against KAME.  No functional change.

Obtained from: KAME

20 years agoReduce diffs against KAME. No functional change.
Hajimu UMEMOTO [Tue, 30 Sep 2003 09:06:58 +0000 (09:06 +0000)]
Reduce diffs against KAME.  No functional change.

Obtained from: KAME

20 years ago - On my Pentium4-M laptop, invalpg takes ~1100 cycles if the page is found in
Jeff Roberson [Tue, 30 Sep 2003 08:11:36 +0000 (08:11 +0000)]
 - On my Pentium4-M laptop, invalpg takes ~1100 cycles if the page is found in
   the TLB and ~1600 if it is not.  Therefore, it is more effecient to
   invalidate the TLB after operations that use CMAP rather than before.
 - So that the tlb is invalidated prior to switching off of a processor, we
   must change the switchin functions to switchout functions.
 - Remove td_switchout from the thread and move it to the x86 pcb.
 - Move the code that calls switchout into swtch.s.  These changes make this
   optimization truely x86 specific.

20 years ago- Pick up a correct path_id for the bus on AC_PATH_REGISTERED.
Hidetoshi Shimokawa [Tue, 30 Sep 2003 08:03:52 +0000 (08:03 +0000)]
- Pick up a correct path_id for the bus on AC_PATH_REGISTERED.
- Call cam_periph_invalidate() only if the periph is found.

20 years agoSync style and comments with latest KAME to reduce diffs.
Hajimu UMEMOTO [Tue, 30 Sep 2003 07:57:05 +0000 (07:57 +0000)]
Sync style and comments with latest KAME to reduce diffs.
No functional change.

Obtained from: KAME

20 years agoGEOMify.
Poul-Henning Kamp [Tue, 30 Sep 2003 07:52:15 +0000 (07:52 +0000)]
GEOMify.

20 years agoCite the published version of "Engineering a Sort Function" instead of
Tim J. Robbins [Tue, 30 Sep 2003 07:05:46 +0000 (07:05 +0000)]
Cite the published version of "Engineering a Sort Function" instead of
an email address.  Spell McIlroy correctly.

20 years agoMFi386: Do not depend on LEAPYEAR() macro boolean values being 0 or 1.
Peter Wemm [Tue, 30 Sep 2003 06:42:47 +0000 (06:42 +0000)]
MFi386: Do not depend on LEAPYEAR() macro boolean values being 0 or 1.
MFi386: Add quality field for timer0

20 years agoMFi386: BURN_BRIDGES around timer0 functions
Peter Wemm [Tue, 30 Sep 2003 06:38:11 +0000 (06:38 +0000)]
MFi386: BURN_BRIDGES around timer0 functions

20 years ago - Remove the definition for TD_SWITCHIN as it is not used.
Jeff Roberson [Tue, 30 Sep 2003 04:52:24 +0000 (04:52 +0000)]
 - Remove the definition for TD_SWITCHIN as it is not used.

Approved by: peter

20 years ago - Correct a typo in a comment.
Jeff Roberson [Tue, 30 Sep 2003 04:51:12 +0000 (04:51 +0000)]
 - Correct a typo in a comment.

20 years agoCorrect pfil_run_hooks return handling: if the return value is non-zero
Sam Leffler [Tue, 30 Sep 2003 04:46:08 +0000 (04:46 +0000)]
Correct pfil_run_hooks return handling: if the return value is non-zero
then the mbuf has been consumed by a hook; otherwise beware of a null
mbuf return (gack).  In particular the bridge was doing the wrong thing.
While in the ipv6 code make it's handling of pfil_run_hooks identical
to netbsd.

Pointed out by: Pyun YongHyeon <yongari@kt-is.co.kr>

20 years agoAdd asf for amd64
Peter Wemm [Tue, 30 Sep 2003 04:19:01 +0000 (04:19 +0000)]
Add asf for amd64

20 years agoAdd mptable
Peter Wemm [Tue, 30 Sep 2003 04:17:45 +0000 (04:17 +0000)]
Add mptable

20 years agoMake this build and work on amd64 (sledge at least).
Peter Wemm [Tue, 30 Sep 2003 04:09:21 +0000 (04:09 +0000)]
Make this build and work on amd64 (sledge at least).

20 years agoStop this warning:
Peter Wemm [Tue, 30 Sep 2003 03:49:09 +0000 (03:49 +0000)]
Stop this warning:
"Makefile", line 35: warning: "grep DDB opt_ddb.h" returned non-zero status

20 years agoAdd manual pages for the vm_map(9) part of the VM.
Bruce M Simpson [Tue, 30 Sep 2003 00:56:17 +0000 (00:56 +0000)]
Add manual pages for the vm_map(9) part of the VM.

Reviewed by: juli
Approved by: jake (mentor)

20 years agoAdd a (somewhat verbose) manual page for vm_map(9).
Bruce M Simpson [Tue, 30 Sep 2003 00:54:06 +0000 (00:54 +0000)]
Add a (somewhat verbose) manual page for vm_map(9).

Reviewed by: juli
Approved by: jake (mentor)

20 years agoAdd manual pages for the vm_map(9) part of the VM.
Bruce M Simpson [Tue, 30 Sep 2003 00:51:31 +0000 (00:51 +0000)]
Add manual pages for the vm_map(9) part of the VM.

Reviewed by:    juli
Approved by:    jake (mentor)

20 years agoMFp4: portability work, general cleanup, locking fixes
Sam Leffler [Mon, 29 Sep 2003 22:57:43 +0000 (22:57 +0000)]
MFp4: portability work, general cleanup, locking fixes

change 38496
o add ipsec_osdep.h that holds os-specific definitions for portability
o s/KASSERT/IPSEC_ASSERT/ for portability
o s/SPLASSERT/IPSEC_SPLASSERT/ for portability
o remove function names from ASSERT strings since line#+file pinpints
  the location
o use __func__ uniformly to reduce string storage
o convert some random #ifdef DIAGNOSTIC code to assertions
o remove some debuggging assertions no longer needed

change 38498
o replace numerous bogus panic's with equally bogus assertions
  that at least go away on a production system

change 38502 + 38530
o change explicit mtx operations to #defines to simplify
  future changes to a different lock type

change 38531
o hookup ipv4 ctlinput paths to a noop routine; we should be
  handling path mtu changes at least
o correct potential null pointer deref in ipsec4_common_input_cb

chnage 38685
o fix locking for bundled SA's and for when key exchange is required

change 38770
o eliminate recursion on the SAHTREE lock

change 38804
o cleanup some types: long -> time_t
o remove refrence to dead #define

change 38805
o correct some types: long -> time_t
o add scan generation # to secpolicy to deal with locking issues

change 38806
o use LIST_FOREACH_SAFE instead of handrolled code
o change key_flush_spd to drop the sptree lock before purging
  an entry to avoid lock recursion and to avoid holding the lock
  over a long-running operation
o misc cleanups of tangled and twisty code

There is still much to do here but for now things look to be
working again.

Supported by: FreeBSD Foundation

20 years agoos dependency glue file for improving portability
Sam Leffler [Mon, 29 Sep 2003 22:47:45 +0000 (22:47 +0000)]
os dependency glue file for improving portability

Submitted by: <jonathan@decru.com>
Supported by: FreeBSD Foundation
Obtained from: NetBSD

20 years agoAdd a new column to the procfs map to hold the name of the mapped
Robert Watson [Mon, 29 Sep 2003 20:53:19 +0000 (20:53 +0000)]
Add a new column to the procfs map to hold the name of the mapped
file for vnode mappings.  Note that this uses vn_fullpath() and may
be somewhat unreliable, although not too unreliable for shared
libraries.  For non-vnode mappings, just print "-" for the field.

Obtained from: TrustedBSD Projects
Sponsored by: DARPA, AFRL, Network Associates Laboratories

20 years agoIf the struct mac copied into the kernel has a negative length, return
Robert Watson [Mon, 29 Sep 2003 18:35:17 +0000 (18:35 +0000)]
If the struct mac copied into the kernel has a negative length, return
EINVAL rather than failing the following malloc due to the value being
too large.

20 years agoForced commit. Mark a function prototype as external.
Scott Long [Mon, 29 Sep 2003 14:23:59 +0000 (14:23 +0000)]
Forced commit.  Mark a function prototype as external.

20 years agoRemove the static reservations for the raid and raidctl devices.
Scott Long [Mon, 29 Sep 2003 14:15:57 +0000 (14:15 +0000)]
Remove the static reservations for the raid and raidctl devices.

20 years agoUse a dynamic major assignment for the raidctl device.
Scott Long [Mon, 29 Sep 2003 14:14:35 +0000 (14:14 +0000)]
Use a dynamic major assignment for the raidctl device.

20 years agoaac no longer uses a static major number.
Scott Long [Mon, 29 Sep 2003 14:11:23 +0000 (14:11 +0000)]
aac no longer uses a static major number.

20 years agoEliminate the use of a statically assign major number for the aac device.
Scott Long [Mon, 29 Sep 2003 14:10:04 +0000 (14:10 +0000)]
Eliminate the use of a statically assign major number for the aac device.

20 years agoIf __sys_write() returns 0, allow that to exit the loop in libc_r's
Daniel Eischen [Mon, 29 Sep 2003 13:41:26 +0000 (13:41 +0000)]
If __sys_write() returns 0, allow that to exit the loop in libc_r's
wrapped version of write().

Submitted by: dan@langille.org

20 years agoIf we fail to complete configuring a subdisk because of some error,
Greg Lehey [Mon, 29 Sep 2003 08:50:03 +0000 (08:50 +0000)]
If we fail to complete configuring a subdisk because of some error,
make sure we return any allocated space to the drive.  This should get
rid of a number of inconsistencies (hopefully all) that have been seen
after configuration errors.

20 years agoRevert last commit. It built the kernel module just fine, but broke
Greg Lehey [Mon, 29 Sep 2003 08:19:06 +0000 (08:19 +0000)]
Revert last commit.  It built the kernel module just fine, but broke
world in /sbin.

Reported by: erwin
Pointy hat to: grog

20 years agoReturn ENODEV in case the driver has no dump routine.
Poul-Henning Kamp [Mon, 29 Sep 2003 07:44:23 +0000 (07:44 +0000)]
Return ENODEV in case the driver has no dump routine.

20 years agoIf asked to stall for more than 100 us (which is specified as the max in
Nate Lawson [Mon, 29 Sep 2003 07:29:26 +0000 (07:29 +0000)]
If asked to stall for more than 100 us (which is specified as the max in
the ACPI standard), call sleep instead since that is probably what the
caller meant.

Mentioned by: peter

20 years agoAccording to information from the Ministry of Health, Labour and Welfare,
Alexander Nedotsukov [Mon, 29 Sep 2003 07:16:21 +0000 (07:16 +0000)]
According to information from the Ministry of Health, Labour and Welfare,
Japanese national holidays have been revised, and Respect-for-the-Aged Day
will be on the third Monday of September from 2003 on.

PR: 56695
Submitted by: Vitaly Musaev <vm@vitalius.net>

20 years agoDocument that the atheros driver supports wicontrol too. Minor word
Warner Losh [Mon, 29 Sep 2003 06:34:47 +0000 (06:34 +0000)]
Document that the atheros driver supports wicontrol too.  Minor word
smithing as approrpiate.

PR: 57327
Submitted by: Matt Peterson

20 years agoAdd -L to the usage message.
Warner Losh [Mon, 29 Sep 2003 06:32:11 +0000 (06:32 +0000)]
Add -L to the usage message.

PR: 57327
Submitted by: Matt Peterson

20 years agoWhen concurrency level is reduced and a kse is exiting, make sure no other
David Xu [Mon, 29 Sep 2003 06:25:04 +0000 (06:25 +0000)]
When concurrency level is reduced and a kse is exiting, make sure no other
threads are still referencing the kse by migrating them to initial kse.

Reviewed by: deischen

20 years agoRemove calls to makedev. They were never needed.
Greg Lehey [Mon, 29 Sep 2003 03:16:20 +0000 (03:16 +0000)]
Remove calls to makedev.  They were never needed.

Requested by: phk
Explained by: rwatson

20 years agoAdd a tiny bit more delay in the xl_mii_sync function; this is necessary
Mike Silbersack [Mon, 29 Sep 2003 02:14:04 +0000 (02:14 +0000)]
Add a tiny bit more delay in the xl_mii_sync function; this is necessary
for proper intialization in certain 905B + old system combinations.

Tested by: Jakub Miziolek <jxm@obta.uw.edu.pl>

20 years agoAdd St. Crispin's day.
Greg Lehey [Mon, 29 Sep 2003 01:09:13 +0000 (01:09 +0000)]
Add St. Crispin's day.

Requested by:  Andrew Lankford <arlankfo@141.com>

20 years agoAdd Michaelmas.
Greg Lehey [Sun, 28 Sep 2003 22:38:43 +0000 (22:38 +0000)]
Add Michaelmas.

20 years agoRetire revoke_and_destroy_dev() with extreme prejudice.
Poul-Henning Kamp [Sun, 28 Sep 2003 20:50:36 +0000 (20:50 +0000)]
Retire revoke_and_destroy_dev() with extreme prejudice.

20 years agoI don't know from where the notion that device driver should or
Poul-Henning Kamp [Sun, 28 Sep 2003 20:48:13 +0000 (20:48 +0000)]
I don't know from where the notion that device driver should or
even could call VOP_REVOKE() on vnodes associated with its dev_t's
has originated, but it stops right here.

If there are things people belive destroy_dev() needs to learn how to
do, please tell me about it, preferably with a reproducible test case.

Include <sys/uio.h> in bluetooth code rather than rely on <sys/vnode.h>
to do so.

The fact that some of the USB code needs to include <sys/vnode.h>
still disturbs me greatly, but I do not have time to chase that.

20 years agoDon't explicitly initialize d_maj in the cdevsw with MAJOR_AUTO, as
Marcel Moolenaar [Sun, 28 Sep 2003 18:20:42 +0000 (18:20 +0000)]
Don't explicitly initialize d_maj in the cdevsw with MAJOR_AUTO, as
per the intentions of conf.h, rev 1.176. This change is a no-op as
MAJOR_AUTO equals to 0.

20 years ago - Clarification to how command line arguments are processed.
Ken Smith [Sun, 28 Sep 2003 17:54:48 +0000 (17:54 +0000)]
- Clarification to how command line arguments are processed.

PR: docs/55613
Submitted by: gshapiro@freebsd.org
Approved by: blackend (mentor)

20 years agoNote change to cdevsw open/close default change.
Poul-Henning Kamp [Sun, 28 Sep 2003 16:25:35 +0000 (16:25 +0000)]
Note change to cdevsw open/close default change.

20 years agoPrefer FreeBSD.org to freebsd.org in mail alias examples.
Robert Watson [Sun, 28 Sep 2003 16:17:30 +0000 (16:17 +0000)]
Prefer FreeBSD.org to freebsd.org in mail alias examples.

20 years agoRemove unused variable.
David Xu [Sun, 28 Sep 2003 13:47:29 +0000 (13:47 +0000)]
Remove unused variable.

20 years agoRemoved some nearly dead code in comparam(). We don't need to recover
Bruce Evans [Sun, 28 Sep 2003 13:12:26 +0000 (13:12 +0000)]
Removed some nearly dead code in comparam().  We don't need to recover
from fiddling with CS_TTGO since fiddling with CS_TTGO was removed in
rev.1.218 of the i386/isa version (which was merged with loss of history
in rev.1.223 of this version).

20 years agoUse the new style struct sockaddr instead of osockaddr in system calls
Tim J. Robbins [Sun, 28 Sep 2003 09:45:56 +0000 (09:45 +0000)]
Use the new style struct sockaddr instead of osockaddr in system calls
so that talk works without COMPAT_43.

Obtained from: NetBSD (christos), Rumi Szabolcs

20 years agoDon't cast ioctl FIONREAD's argument to struct sgttyb *. This makes
Tim J. Robbins [Sun, 28 Sep 2003 09:21:24 +0000 (09:21 +0000)]
Don't cast ioctl FIONREAD's argument to struct sgttyb *. This makes
no function changes, but removes an unnecessary reference to a
deprecated struct.

Obtained from: NetBSD (thorpej)

20 years agoUse the new style struct sockaddr instead of osockaddr in system calls
Tim J. Robbins [Sun, 28 Sep 2003 09:16:09 +0000 (09:16 +0000)]
Use the new style struct sockaddr instead of osockaddr in system calls
so that talkd works without COMPAT_43.

Obtained from: NetBSD (christos), Rumi Szabolcs

20 years agoUse the POSIX tty interface instead of the old interface. This makes
Tim J. Robbins [Sun, 28 Sep 2003 08:54:56 +0000 (08:54 +0000)]
Use the POSIX tty interface instead of the old interface. This makes
rlogin work properly without COMPAT_43.

Obtained from: NetBSD (mycroft)

20 years agoRemove remnants of Kerberos -Kkx options.
Tim J. Robbins [Sun, 28 Sep 2003 08:43:41 +0000 (08:43 +0000)]
Remove remnants of Kerberos -Kkx options.

20 years agoSet the baud rate to 1200 if the device is a keyboard.
Jake Burkholder [Sun, 28 Sep 2003 07:06:34 +0000 (07:06 +0000)]
Set the baud rate to 1200 if the device is a keyboard.

20 years agoOnly create the ofwcons device nodes if it has been initialized, not
Jake Burkholder [Sun, 28 Sep 2003 06:51:47 +0000 (06:51 +0000)]
Only create the ofwcons device nodes if it has been initialized, not
just probed.

20 years agoReworked rev.1.14. Use the ELF symbol type again to summarily reject
Bruce Evans [Sun, 28 Sep 2003 06:02:33 +0000 (06:02 +0000)]
Reworked rev.1.14.  Use the ELF symbol type again to summarily reject
some symbols in X_db_search_symbol().  Reject the same symbols that
rev.1.13 did (all except STT_OBJECT and STT_FUNC), except don't reject
typeless symbols.  This keeps the typeless symbols in non-verbosely
written assembler code visible, but makes file symbols invisible.  ELF
file symbols have type STT_FILE and value 0, so this stops small values
and offsets sometimes being displayed in terms of the first file symbol
in the kernel (usually device_if.c).  I think it rejects some other
unwanted symbols (small absolute symbols for things like struct offsets).
It may reject some wanted symbols (large absolute symbols for addresses
like PTmap).

20 years agoMake ofw_console a low priority console device, so that uart will be
Jake Burkholder [Sun, 28 Sep 2003 05:38:37 +0000 (05:38 +0000)]
Make ofw_console a low priority console device, so that uart will be
preferred in all cases, even if the "remote" bit is not set.

20 years agoAdd a "low" console priority. This specifies that the console device
Jake Burkholder [Sun, 28 Sep 2003 05:36:30 +0000 (05:36 +0000)]
Add a "low" console priority.  This specifies that the console device
may have limited functionality and should only be used as a last resort,
perhaps only to tell the user that they should be using something else.

20 years agoDrop any and all support for varargs. There's no history to worry
Marcel Moolenaar [Sun, 28 Sep 2003 05:34:07 +0000 (05:34 +0000)]
Drop any and all support for varargs. There's no history to worry
about because we're still tier 2 and our current compiler, as well
as future compilers will not support varargs. This is mostly a
no-op in practice, because <sys/varargs.h> should already cause
compile failures.

20 years agoTweak "system security profiles:
Robert Watson [Sun, 28 Sep 2003 05:21:23 +0000 (05:21 +0000)]
Tweak "system security profiles:

(1) Don't modify the configuration of the NFS server as a result of
    selecting a profile.  We already explicitly prompt for the NFS
    server configuration during install, and the user may not get
    much advance notice that we're turning it off again.  Instead,
    use profiles (for better or for worse) only for security tuning.

(2) Don't modify the sendmail setting as part of the security profile:
    use the default from /etc/defaults/rc.conf rather than explicitly
    specifying.  Note that the default in /etc/defaults/rc.conf is
    more conservative than the explicit rc.conf entry added by
    sysinstall during install, as it does not permit SMTP delivery.

(3) Update "congratulations on your profile" text to reflect these
    changes.

Note that security profiles now affect only the securelevel and sshd
settings.  My leaning would be to make sshd an explicit configuration
option, move securelevels to the security menu, and drop security
profiles entirely.  However, that requires more plumbing of sendmail
than I'm currently willing to invest.

We may want to add a "permit SMTP delivery" question to the install
process.

20 years agoIn vm_page_remove(), assert that the vm object is locked, unless an Alpha.
Alan Cox [Sun, 28 Sep 2003 04:50:48 +0000 (04:50 +0000)]
In vm_page_remove(), assert that the vm object is locked, unless an Alpha.
(The Alpha still requires updates to its pmap.)

20 years agoTypo when setting wirespeed. || != |
Paul Saab [Sun, 28 Sep 2003 04:16:16 +0000 (04:16 +0000)]
Typo when setting wirespeed.  || != |

Found by: jake

20 years ago - Another update to list of FTP sites
Ken Smith [Sun, 28 Sep 2003 03:34:49 +0000 (03:34 +0000)]
- Another update to list of FTP sites

Approved by: murray

20 years agoHaving had to spend several hours today figuring out just what it is that
Garrett Wollman [Sun, 28 Sep 2003 03:15:21 +0000 (03:15 +0000)]
Having had to spend several hours today figuring out just what it is that
VOP_GETPAGES() is supposed to do, share the results with everyone who isn't
Alan Cox.

20 years agoAdd vm object locking to pmap_release().
Alan Cox [Sun, 28 Sep 2003 00:11:15 +0000 (00:11 +0000)]
Add vm object locking to pmap_release().

20 years agoRelink libc_r.a, libc_r.so and libc_r_p.so from libthr to libkse.
Marcel Moolenaar [Sat, 27 Sep 2003 23:27:19 +0000 (23:27 +0000)]
Relink libc_r.a, libc_r.so and libc_r_p.so from libthr to libkse.
On ia64, where there's no libc_r at all, libkse is now the default
thread library by virtue of these links.

The reasons for this change are:
1. libkse is slated to become the default thread library anyway,
2. active development and maintenance is only present for libkse,
3. GNOME and KDE, both in the process of being supported on ia64,
   work better with KSE; even on ia64.

20 years agoRemove the regstkpages sysctl variable. We have a growable register
Marcel Moolenaar [Sat, 27 Sep 2003 23:07:47 +0000 (23:07 +0000)]
Remove the regstkpages sysctl variable. We have a growable register
stack now.

20 years agoPart 2 of implementing rstacks: add the ability to create rstacks and
Marcel Moolenaar [Sat, 27 Sep 2003 22:28:14 +0000 (22:28 +0000)]
Part 2 of implementing rstacks: add the ability to create rstacks and
use the ability on ia64 to map the register stack. The orientation of
the stack (i.e. its grow direction) is passed to vm_map_stack() in the
overloaded cow argument. Since the grow direction is represented by
bits, it is possible and allowed to create bi-directional stacks.
This is not an advertised feature, more of a side-effect.

Fix a bug in vm_map_growstack() that's specific to rstacks and which
we could only find by having the ability to create rstacks: when
the mapped stack ends at the faulting address, we have not actually
mapped the faulting address. we need to include or cover the faulting
address.

Note that at this time mmap(2) has not been extended to allow the
creation of rstacks by processes. If such a need arises, this can
be done.

Tested on: alpha, i386, ia64, sparc64

20 years agoTwo minor fixes:
Warner Losh [Sat, 27 Sep 2003 22:17:37 +0000 (22:17 +0000)]
Two minor fixes:
o It is the /usr/include files, not the /usr include files.
o Document the practice of converting to the c99 standard uintXX_t
  form from the older, but non-standard, BSD-style u_intXX_t.  This
  has been going on in the tree for a while now, and I've heard other
  developers also state that this conversion is happening.  Note also
  that this is a slow process and should be treated like whitespace
  changes.

20 years agoMake life a little bit easier for cloning device drivers.
Poul-Henning Kamp [Sat, 27 Sep 2003 21:50:00 +0000 (21:50 +0000)]
Make life a little bit easier for cloning device drivers.

20 years agoAdd an explanation why MAJOR_AUTO should not be specified explicitly.
Poul-Henning Kamp [Sat, 27 Sep 2003 21:49:35 +0000 (21:49 +0000)]
Add an explanation why MAJOR_AUTO should not be specified explicitly.

20 years agoCorrectly name r_unit member tun_unit.
Poul-Henning Kamp [Sat, 27 Sep 2003 21:43:16 +0000 (21:43 +0000)]
Correctly name r_unit member tun_unit.
Remove unused tun_wsel member.

20 years agoProvide a bit more help with "memory overwritten after free" style bugs.
Poul-Henning Kamp [Sat, 27 Sep 2003 21:33:13 +0000 (21:33 +0000)]
Provide a bit more help with "memory overwritten after free" style bugs.

20 years agoEliminate the pte object.
Alan Cox [Sat, 27 Sep 2003 20:53:01 +0000 (20:53 +0000)]
Eliminate the pte object.

20 years agoMore style fixes to improve diffability with OpenBSD.
Poul-Henning Kamp [Sat, 27 Sep 2003 18:58:26 +0000 (18:58 +0000)]
More style fixes to improve diffability with OpenBSD.

Pull 'A' evilness for realloc(3) from OpenBSD.

20 years ago- Add the Dell PERC 4/Di to the list of supported devices; it
Simon L. B. Nielsen [Sat, 27 Sep 2003 18:03:03 +0000 (18:03 +0000)]
- Add the Dell PERC 4/Di to the list of supported devices; it
  has been supported for the last 10 months. [1]
- Make the device list compact, since it is getting rather large.

Reported by: David Magda <dmagda@magda.ca> [1]
MFC after: 2 weeks

20 years agoDisable #define DEBUG in libdisk by default: since libdisk is primarily
Robert Watson [Sat, 27 Sep 2003 17:44:41 +0000 (17:44 +0000)]
Disable #define DEBUG in libdisk by default: since libdisk is primarily
there to support sysinstall, and enabling DEBUG creates spurious
console output that can't be read anyway...  This slightly cleans up
the visual impression of the system install by not spamming the console
during the labeling of the disks.

20 years agoDon't install etc/printcap in the NO_LPR case; ports like 'cups'
Mark Murray [Sat, 27 Sep 2003 17:33:03 +0000 (17:33 +0000)]
Don't install etc/printcap in the NO_LPR case; ports like 'cups'
make their own etc/printcap if they need it.

20 years agoStyle changes to improve diffability against OpenBSD version.
Poul-Henning Kamp [Sat, 27 Sep 2003 17:29:03 +0000 (17:29 +0000)]
Style changes to improve diffability against OpenBSD version.

20 years agoNo need to check for the directory, fols are assumed to have all the
Mark Murray [Sat, 27 Sep 2003 17:27:02 +0000 (17:27 +0000)]
No need to check for the directory, fols are assumed to have all the
correct sources. Only check the crypto macros.

20 years agoAdd a note about kiconv(3).
Max Khon [Sat, 27 Sep 2003 14:12:39 +0000 (14:12 +0000)]
Add a note about kiconv(3).

20 years agoUpdate an email address overlooked by scottl.
Tom Rhodes [Sat, 27 Sep 2003 14:02:15 +0000 (14:02 +0000)]
Update an email address overlooked by scottl.

Prompted by: scottl's commit message (see rev 1.9 of iir.c).

20 years agoFix a cut n paste typo I introduced in rev 1.211.
Tom Rhodes [Sat, 27 Sep 2003 13:58:16 +0000 (13:58 +0000)]
Fix a cut n paste typo I introduced in rev 1.211.

PR: 57012
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
Friendly prod provided by: murray
MFC: after re approval

20 years agoA number of fixes/enhancements for the ipfilter rc script:
Maxime Henrion [Sat, 27 Sep 2003 13:50:47 +0000 (13:50 +0000)]
A number of fixes/enhancements for the ipfilter rc script:
- Use a more robust check to determine if we need to load ipl.ko.
- Don't try to run ipf -E if ipfilter is already enabled.  Look at
  the net.inet.ipf.fr_running sysctl to figure this out.  This fixes
  a warning message about ipfilter being already initialized.
- Only one ipf -E command is needed.  We don't need an extra one for
  the -6 case which would only print a warning message about ipfilter
  being already initialized.
- Fix one occurence where we were running /sbin/ipf directly without
  using the ${ipfilter_program} variable if set.
- In ipfilter_stop(), don't try to save the firewall state tables if
  ipfilter is disabled.  Similarly, don't try to disable it if it's
  already disabled.  This fixes some more error messages.

20 years agoIntroduce no_poll() default method for device drivers. Have it
Poul-Henning Kamp [Sat, 27 Sep 2003 12:53:33 +0000 (12:53 +0000)]
Introduce no_poll() default method for device drivers.  Have it
do exactly the same as vop_nopoll() for consistency and put a
comment in the two pointing at each other.

Retire seltrue() in favour of no_poll().

Create private default functions in kern_conf.c instead of public
ones.

Change default strategy to return the bio with ENODEV instead of
doing nothing which would lead the bio stranded.

Retire public nullopen() and nullclose() as well as the entire band
of public no{read,write,ioctl,mmap,kqfilter,strategy,poll,dump}
funtions, they are the default actions now.

Move the final two trivial functions from subr_xxx.c to kern_conf.c
and retire the now empty subr_xxx.c

20 years agoDon't use seltrue when that is not really what we mean.
Poul-Henning Kamp [Sat, 27 Sep 2003 12:44:06 +0000 (12:44 +0000)]
Don't use seltrue when that is not really what we mean.

20 years agoMFsio (sio.c 1.413: cleaned up and fixed setting of speeds in comparam()).
Bruce Evans [Sat, 27 Sep 2003 12:40:23 +0000 (12:40 +0000)]
MFsio (sio.c 1.413: cleaned up and fixed setting of speeds in comparam()).
This is just a cleanup here (modulo rev.1.108 of kern/tty.c), since the
input speed can be different from to output speed and extra code to
handle both speeds naturally handled all cases.

20 years agoforgot to remove static declaration of fdesc_poll()
Poul-Henning Kamp [Sat, 27 Sep 2003 12:34:41 +0000 (12:34 +0000)]
forgot to remove static declaration of fdesc_poll()

20 years agoReturn ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV.
Poul-Henning Kamp [Sat, 27 Sep 2003 12:27:23 +0000 (12:27 +0000)]
Return ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV.

20 years agofdesc_poll() called seltrue() to do the default thing, this is pointlessly
Poul-Henning Kamp [Sat, 27 Sep 2003 12:24:42 +0000 (12:24 +0000)]
fdesc_poll() called seltrue() to do the default thing, this is pointlessly
wrong when we have a default in vop_nopoll() which does the right thing.

20 years agonoopen() and noclose() is now no longer used.
Poul-Henning Kamp [Sat, 27 Sep 2003 12:09:25 +0000 (12:09 +0000)]
noopen() and noclose() is now no longer used.

20 years agonopsize is no longer used.
Poul-Henning Kamp [Sat, 27 Sep 2003 12:05:26 +0000 (12:05 +0000)]
nopsize is no longer used.

20 years agoThe present defaults for the open and close for device drivers which
Poul-Henning Kamp [Sat, 27 Sep 2003 12:01:01 +0000 (12:01 +0000)]
The present defaults for the open and close for device drivers which
provide no methods does not make any sense, and is not used by any
driver.

It is a pretty hard to come up with even a theoretical concept of
a device driver which would always fail open and close with ENODEV.

Change the defaults to be nullopen() and nullclose() which simply
does nothing.

Remove explicit initializations to these from the drivers which
already used them.

20 years agoCleaned up and fixed setting of speeds in comparam():
Bruce Evans [Sat, 27 Sep 2003 11:13:59 +0000 (11:13 +0000)]
Cleaned up and fixed setting of speeds in comparam():
- Removed conversion of a zero input speed to the output speed.  This
  has been done better in ttioctl() since rev.1.108 of kern/tty.c
  almost 5 years ago.  comparam() did the conversion incompletely for
  the case where the output speed is also zero.  It had complications
  to avoid using zero speeds, but would still have used a zero input
  speed for setting watermarks if kern/tty.c had passed one.
- Never permit the input speed to be different from the output speed.
  There was no validity check on the input speed for the case of a zero
  output speed.  Then we didn't change the physical speeds, but we used
  the unvalidated input speed for setting watermarks and didn't return
  an error, so ttioctl() stored the unvalidated input speed in the tty
  struct where it could cause problems later.
- Removed complications that were to avoid using a divisor of 0.  The
  divisor is now always valid if the speed is accepted.

20 years agoQuick fix for bitrot in locking in the SMP case. cd_getreg() and
Bruce Evans [Sat, 27 Sep 2003 10:30:03 +0000 (10:30 +0000)]
Quick fix for bitrot in locking in the SMP case.  cd_getreg() and
cd_setreg() were still using !(read_eflags() & PSL_I) as the condition
for the lock hidden by COM_LOCK() (if any) being held.  This worked
when spin mutexes and/or critical_enter() used hard interrupt disablement,
but it has caused recursion on the non-recursive mutex com_mtx since
all relevant interrupt disablement became soft.  The recursion is
harmless unless there are other bugs, but it breaks an invariant so
it is fatal if spinlocks are witnessed.

20 years agoBump __FreeBSD_version for kiconv(3).
Max Khon [Sat, 27 Sep 2003 09:16:18 +0000 (09:16 +0000)]
Bump __FreeBSD_version for kiconv(3).