]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoQuoting Peter Wemm, "At great personal risk, touch the sendmail startup
Gregory Neil Shapiro [Fri, 5 Apr 2002 02:30:49 +0000 (02:30 +0000)]
Quoting Peter Wemm, "At great personal risk, touch the sendmail startup
again."

As an alternative to sendmail_enable=NONE, solve the boot time problem
for non-sendmail users completely by moving all of the sendmail startup
code from /etc/rc to /etc/rc.sendmail.  The source for that script will
be kept in src/etc/sendmail/rc.sendmail so make.conf's NO_SENDMAIL will
prevent it from being installed.  A new rc.conf variable,
mta_start_script specifies the script to run to start the user's
preferred MTA.  For backward compatibility, it will default to
/etc/rc.sendmail.  The specified script is called out of /etc/rc after
checking to make sure it exists.  A new rc.sendmail.8 man page has also
been added which now houses the sendmail_* variable descriptions
formerly in rc.conf.5.

Use /etc/rc.sendmail in /etc/mail/Makefile to reduce code duplication.

Reviewed by: -current, -stable, obrien, peter, ru
MFC after: 1 week

22 years agoIncrease the size of the register stack storage on ia64 from 32K to 2MB so
Peter Wemm [Fri, 5 Apr 2002 01:57:45 +0000 (01:57 +0000)]
Increase the size of the register stack storage on ia64 from 32K to 2MB so
that we can compile gcc.  This is a hack because it adds a fixed 2MB to
each process's VSIZE regardless of how much is really being used since
there is no grow-up stack support.  At least it isn't physical memory.
Sigh.

Add a sysctl to enable tweaking it for new processes.

22 years agoSend 32 bytes out for fc4_types... Interestingly enough the Solaris/Sparc
Matt Jacob [Fri, 5 Apr 2002 01:40:05 +0000 (01:40 +0000)]
Send 32 bytes out for fc4_types... Interestingly enough the Solaris/Sparc
version worked fine, but Linux/Sparc && FreeBSD/Sparc choked.

MFC after: 1 week

22 years agoThe 3Com 3CRWE62092A (the XJack antenna product) does not have a host
Warner Losh [Fri, 5 Apr 2002 01:31:30 +0000 (01:31 +0000)]
The 3Com 3CRWE62092A (the XJack antenna product) does not have a host
interface that is compatible with the LUCENT or HERMES firmware.
Instead, it is like the various No Wires Necessary products that were
produced a while ago and then sold to intersil.  It will require a
different driver altogether.  Remove it from the list of supported
cards.

The 3CRWE777A apperas to be a re-badged SMC 2602W card, so the driver
appears to support it.  Add it to the list.

Thanks to Todd Miller for loaning me the card during tonight's FRUUG
meeting for testing against CU's wireless infrastructure.

22 years ago o Eliminate the use of grow_stack() and useracc() from sendsig(), osendsig(),
Alan Cox [Fri, 5 Apr 2002 00:52:15 +0000 (00:52 +0000)]
 o Eliminate the use of grow_stack() and useracc() from sendsig(), osendsig(),
   and osf1_sendsig().
 o Eliminate the prototype for the MD grow_stack() now that it has been removed
   from all platforms.

22 years agoSpell "privileges" correctly.
Eric Melville [Fri, 5 Apr 2002 00:08:38 +0000 (00:08 +0000)]
Spell "privileges" correctly.

22 years agoSpell "separate" correctly.
Eric Melville [Fri, 5 Apr 2002 00:04:56 +0000 (00:04 +0000)]
Spell "separate" correctly.

22 years agoAdd the eeprom diver frontend files, correct the entry for ofw_isa.c.
Thomas Moestl [Thu, 4 Apr 2002 23:59:30 +0000 (23:59 +0000)]
Add the eeprom diver frontend files, correct the entry for ofw_isa.c.

22 years agoAdd MD frontents for the mk48txx driver, ported from NetBSD, and remove
Thomas Moestl [Thu, 4 Apr 2002 23:58:50 +0000 (23:58 +0000)]
Add MD frontents for the mk48txx driver, ported from NetBSD, and remove
stub implementations of inittodr() and resettodr(), now that the MI ones
are used.

22 years agoD'oh! I forgot to commit this a while back.
Matt Jacob [Thu, 4 Apr 2002 23:54:58 +0000 (23:54 +0000)]
D'oh! I forgot to commit this a while back.

Add an option for enabling f/w crashdumps for the isp driver.

MFC after: 1 week

22 years agoFix bus dma segment count to be based off of MAXPHYS, not BUS_SPACE_MAXSIZE.
Matt Jacob [Thu, 4 Apr 2002 23:46:01 +0000 (23:46 +0000)]
Fix bus dma segment count to be based off of MAXPHYS, not BUS_SPACE_MAXSIZE.
Grumble. I've seen better documented architectures out of Redmond.

Redo fabric evaluation to not use GET ALL NEXT (GA_NXT). Switches seem
to be trying to wriggle out of supporting this well. Instead, use
GID_FT to get a list of Port IDs and then use GPN_ID/GNN_ID to find the
port and node wwn. This should make working on fabrics a bit cleaner and
more stable.

This also caused some cleanup of SNS subcommand canonicalization so that
we can actually check for FS_ACC and FS_RJT, and if we get an FS_RJT,
print out the reason and explanation codes.

We'll keep the old GA_NXT method around if people want to uncomment a
controlling definition in ispvar.h.

This also had us clean up ISPASYNC_FABRICDEV to use a local lportdb argument
and to have the caller explicitly say that a device is at the end of the
fabric list.

MFC after: 1 week

22 years agoAdd a driver back end for the Mostek MK48T02, MK48T08 and MK48T59
Thomas Moestl [Thu, 4 Apr 2002 23:44:42 +0000 (23:44 +0000)]
Add a driver back end for the  Mostek MK48T02, MK48T08 and MK48T59
time-of-day clocks, ported from NetBSD. The front-ends are expected
to be at least partly machine-dependent; the sparc64 EBus and SBus
ones will be commited to MD directories for now (in a subsequent commit).

22 years agoAdd a generic implementation of inittodr() and resettodr(), as well as
Thomas Moestl [Thu, 4 Apr 2002 23:39:10 +0000 (23:39 +0000)]
Add a generic implementation of inittodr() and resettodr(), as well as
a set of helper routines to deal with real-time clocks. The generic
functions access the clock diver using a kobj interface. This is intended
to reduce code reduplication and make it easy to support more than one
clock model on a single architecture.

This code is currently only used on sparc64, but it is planned to convert
the code of the other architectures to it later.

22 years agoMinor reordering of declarations to reduce diffs to OpenBSD/NetBSD.
David E. O'Brien [Thu, 4 Apr 2002 22:25:04 +0000 (22:25 +0000)]
Minor reordering of declarations to reduce diffs to OpenBSD/NetBSD.

22 years agoMFNetBSD:
Warner Losh [Thu, 4 Apr 2002 22:22:31 +0000 (22:22 +0000)]
MFNetBSD:
1.60: Add range checking, but put it higher up in the food
chain than NetBSD (this should be fixed there as well).

Obtained From: NetBSD

22 years agoAllow to compile errorlessly with GCC 3.1.
David E. O'Brien [Thu, 4 Apr 2002 22:15:56 +0000 (22:15 +0000)]
Allow to compile errorlessly with GCC 3.1.

22 years agoFix signal race.
David E. O'Brien [Thu, 4 Apr 2002 22:15:13 +0000 (22:15 +0000)]
Fix signal race.
Use strlen() rather than magic number.
Use _PATH_TMP.

Obtained from: OpenBSD rev 1.13 (sig race) & rev 1.9 (strlen)

22 years agoRevert revision 1.3. This is WARNS=4 clean w/o it and it only increases
David E. O'Brien [Thu, 4 Apr 2002 22:10:23 +0000 (22:10 +0000)]
Revert revision 1.3.  This is WARNS=4 clean w/o it and it only increases
the diffs to Open/NetBSD.

22 years agoFix style regression introduced in rev 1.11 during a WARNS cleanup.
David E. O'Brien [Thu, 4 Apr 2002 21:59:10 +0000 (21:59 +0000)]
Fix style regression introduced in rev 1.11 during a WARNS cleanup.

22 years agoCast ctype macros char arg to u_char to prevent sign extension
Andrey A. Chernov [Thu, 4 Apr 2002 21:55:44 +0000 (21:55 +0000)]
Cast ctype macros char arg to u_char to prevent sign extension

22 years agoNew release notes: mutex(9) profiling, ucom/uplcom/uvscom, boot2 -n,
Bruce A. Mah [Thu, 4 Apr 2002 21:42:25 +0000 (21:42 +0000)]
New release notes:  mutex(9) profiling, ucom/uplcom/uvscom, boot2 -n,
diskpart(8) went bye-bye, newfs(8) anachronisms removed.

Updated release notes:  More functionality for ata(4), new tzdata
import.

22 years agoMFNetBSD:
Warner Losh [Thu, 4 Apr 2002 21:40:37 +0000 (21:40 +0000)]
MFNetBSD:
wi.c 1.64: Table driven IDs (ichiro)
1.59: Don't use magic numbers (ichiro)
Also, added Sony, Lucent Embedded Ids and fix minor bugs for lucent
cards (and submit those changes back to ichiro-san)

Obtained from: NetBSD

22 years agoEmbed a struct vmmeter in the per-cpu structure and add a macro,
Matthew Dillon [Thu, 4 Apr 2002 21:38:47 +0000 (21:38 +0000)]
Embed a struct vmmeter in the per-cpu structure and add a macro,
PCPU_LAZY_INC() which increments elements in it for cases where we
can afford the occassional inaccuracy.  Use of per-cpu stats counters
avoids significant cache stalls in various critical paths that would
otherwise severely limit our cpu scaleability.

Adjust all sysctl's accessing cnt.* elements to now use a procedure
which aggregates the requested field for all cpus and for the global
vmmeter.

The global vmmeter is retained, since some stats counters, like v_free_min,
cannot be made per-cpu.  Also, this allows us to convert counters from
the global vmmeter to the per-cpu vmmeter in a piecemeal fashion, so
have at it!

22 years agoAdd STANDARDS, ENVIRONMENT, and TABLES sections.
David E. O'Brien [Thu, 4 Apr 2002 21:31:03 +0000 (21:31 +0000)]
Add STANDARDS, ENVIRONMENT, and TABLES sections.

Obtained from: OpenBSD

22 years agoAdd 3Com 3c996-SX to bge(4) list, add uplcom and uvscom devices to USB
Bruce A. Mah [Thu, 4 Apr 2002 21:27:50 +0000 (21:27 +0000)]
Add 3Com 3c996-SX to bge(4) list, add uplcom and uvscom devices to USB
section.

22 years agoMinor word smithing.
David E. O'Brien [Thu, 4 Apr 2002 21:24:19 +0000 (21:24 +0000)]
Minor word smithing.

22 years agoFollow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
David E. O'Brien [Thu, 4 Apr 2002 21:09:06 +0000 (21:09 +0000)]
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.

22 years agoChange callers of mtx_init() to pass in an appropriate lock type name. In
John Baldwin [Thu, 4 Apr 2002 21:03:38 +0000 (21:03 +0000)]
Change callers of mtx_init() to pass in an appropriate lock type name.  In
most cases NULL is passed, but in some cases such as network driver locks
(which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used.

Tested on: i386, alpha, sparc64

22 years agoFollow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
David E. O'Brien [Thu, 4 Apr 2002 20:58:27 +0000 (20:58 +0000)]
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.

22 years agoAdd lock type arguments to callers of snd_mtxcreate().
John Baldwin [Thu, 4 Apr 2002 20:56:47 +0000 (20:56 +0000)]
Add lock type arguments to callers of snd_mtxcreate().

22 years agoFor -n use decimal point from locale
Andrey A. Chernov [Thu, 4 Apr 2002 20:54:44 +0000 (20:54 +0000)]
For -n use decimal point from locale

22 years agoChange snd_mtxcreate() to accept a lock type as an extra argument that is
John Baldwin [Thu, 4 Apr 2002 20:54:27 +0000 (20:54 +0000)]
Change snd_mtxcreate() to accept a lock type as an extra argument that is
passed to mtx_init().

22 years agoChange mtx_init() to now take an extra argument. The third argument is
John Baldwin [Thu, 4 Apr 2002 20:52:27 +0000 (20:52 +0000)]
Change mtx_init() to now take an extra argument.  The third argument is
the generic lock type for use with witness.  If this argument is NULL then
the lock name is used as the lock type.  Add a macro for a lock type name
for network driver locks.

22 years agoSet the lock type equal to the lock name for now as all of the current
John Baldwin [Thu, 4 Apr 2002 20:49:35 +0000 (20:49 +0000)]
Set the lock type equal to the lock name for now as all of the current
sx locks don't use very specific lock names.

22 years agoAdd a new char * pointer lo_type to struct lock_object that is used to
John Baldwin [Thu, 4 Apr 2002 20:45:21 +0000 (20:45 +0000)]
Add a new char * pointer lo_type to struct lock_object that is used to
point to a more generic name for a lock that is more suitable for use by
witness when grouping locks.  For example, although network driver locks
use the interface name for the name of each lock, they should all use the
same witness and be treated the same as witness.  Another example is that
all UMA zone locks should be treated the same.  The witness code has also
been updated to print out the lock type in addition to the lock name in a
few places where it is relevant.

22 years agoDelete the bogus d_boot[01] fields from struct disklabel.
Poul-Henning Kamp [Thu, 4 Apr 2002 20:34:48 +0000 (20:34 +0000)]
Delete the bogus d_boot[01] fields from struct disklabel.

This shrinks the size 4 bytes on alpha, down to the same 276 bytes
as all other platforms.

Construct a hack to make old ioctls work on new kernels.

Once world is recompiled only the new and correct sysctls will be
used.

This hack will become annoying around 1st of may to make people
rebuild their worlds and it will be gone before 5.0.

22 years agoRemove remaining traces of d_boot[01]
Poul-Henning Kamp [Thu, 4 Apr 2002 20:22:15 +0000 (20:22 +0000)]
Remove remaining traces of d_boot[01]

22 years agoMinor reorg.
David E. O'Brien [Thu, 4 Apr 2002 19:36:33 +0000 (19:36 +0000)]
Minor reorg.

22 years agoMinor style tweak.
David E. O'Brien [Thu, 4 Apr 2002 19:26:13 +0000 (19:26 +0000)]
Minor style tweak.

22 years agoRemove __P
Andrey A. Chernov [Thu, 4 Apr 2002 19:18:58 +0000 (19:18 +0000)]
Remove __P

22 years agoUpgrade to something quite close, but not identical, to version 1.6 of
Dag-Erling Smørgrav [Thu, 4 Apr 2002 18:45:21 +0000 (18:45 +0000)]
Upgrade to something quite close, but not identical, to version 1.6 of
Andrew Korty's pam_ssh.  The most notable difference is that this uses
commas rather than colons to separate items in the "keyfiles" option.

Sponsored by: DARPA, NAI Labs

22 years agoDocument new categories.
Dag-Erling Smørgrav [Thu, 4 Apr 2002 18:31:36 +0000 (18:31 +0000)]
Document new categories.

Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
MFC after: 3 days

22 years agoRemove some local cruft that snuck in yesterday.
David E. O'Brien [Thu, 4 Apr 2002 18:24:56 +0000 (18:24 +0000)]
Remove some local cruft that snuck in yesterday.

22 years agoMerge from vendor branch.
Garrett Wollman [Thu, 4 Apr 2002 18:16:19 +0000 (18:16 +0000)]
Merge from vendor branch.

22 years agoUpdated release note: ISC DHCP 3.0.1RC8.
Bruce A. Mah [Thu, 4 Apr 2002 18:11:39 +0000 (18:11 +0000)]
Updated release note:  ISC DHCP 3.0.1RC8.

22 years agoMention that options BOOTP requires options NFSCLIENT and options NFS_ROOT
Brian Somers [Thu, 4 Apr 2002 18:01:55 +0000 (18:01 +0000)]
Mention that options BOOTP requires options NFSCLIENT and options NFS_ROOT

22 years agoBack out the previous commit.
Brian Somers [Thu, 4 Apr 2002 17:58:21 +0000 (17:58 +0000)]
Back out the previous commit.

In the i386 case, options BOOTP requires options NFS_ROOT as well as
options NFSCLIENT.  With *both* the NFS options, a bootpc_init()
prototype is brought in by nfsclient/nfsdiskless.h.

In the ia64 case, it just doesn't work and my change just pushes it
further away from working.

Suggested to be wrong by: bde

22 years agoMoved signal handling and rescheduling from userret() to ast() so that
Bruce Evans [Thu, 4 Apr 2002 17:49:48 +0000 (17:49 +0000)]
Moved signal handling and rescheduling from userret() to ast() so that
they aren't in the usual path of execution for syscalls and traps.
The main complication for this is that we have to set flags to control
ast() everywhere that changes the signal mask.

Avoid locking in userret() in most of the remaining cases.

Submitted by: luoqi (first part only, long ago, reorganized by me)
Reminded by: dillon

22 years agoPlay catch up with the kernel.
Poul-Henning Kamp [Thu, 4 Apr 2002 16:40:11 +0000 (16:40 +0000)]
Play catch up with the kernel.

Sponsored by: DARPA & NAI Labs

22 years agoAdd pam_passwdqc to the build.
Dag-Erling Smørgrav [Thu, 4 Apr 2002 16:08:28 +0000 (16:08 +0000)]
Add pam_passwdqc to the build.

Sponsored by: DARPA, NAI Labs

22 years agoThis commit was generated by cvs2svn to compensate for changes in r93787,
Dag-Erling Smørgrav [Thu, 4 Apr 2002 15:50:47 +0000 (15:50 +0000)]
This commit was generated by cvs2svn to compensate for changes in r93787,
which included commits to RCS files with non-trunk default branches.

22 years agoVendor import of Solar Designer's pam_passwdqc module.
Dag-Erling Smørgrav [Thu, 4 Apr 2002 15:50:47 +0000 (15:50 +0000)]
Vendor import of Solar Designer's pam_passwdqc module.

22 years agoOptimized the check for unmasked pending signals in CURSIG() using a new
Bruce Evans [Thu, 4 Apr 2002 15:19:41 +0000 (15:19 +0000)]
Optimized the check for unmasked pending signals in CURSIG() using a new
inline function sigsetmasked() and a new macro SIGPENDING().  CURSIG()
will soon be moved out of the normal path of execution for syscalls and
traps.  Then its efficiency will be less important but the new interfaces
will be useful for checking for unmasked pending signals in more places.

Submitted by: luoqi (long ago, in a slightly different form)

Assert that sched_lock is not held in CURSIG().

22 years agoPre-declare bootpc_init() so that options BOOTP doesn't break the
Brian Somers [Thu, 4 Apr 2002 14:27:57 +0000 (14:27 +0000)]
Pre-declare bootpc_init() so that options BOOTP doesn't break the
build in ia64 and i386 due to -Werror.

22 years agoImplement collating sort
Andrey A. Chernov [Thu, 4 Apr 2002 14:10:02 +0000 (14:10 +0000)]
Implement collating sort

22 years agoCentralize EOF handling and improve access controls for bio scheduling.
Poul-Henning Kamp [Thu, 4 Apr 2002 09:58:20 +0000 (09:58 +0000)]
Centralize EOF handling and improve access controls for bio scheduling.

Sponsored by: DARPA & NAI Labs

22 years agoFixed some style bugs in axings. Whitespace before __P was not axed when
Bruce Evans [Thu, 4 Apr 2002 09:56:51 +0000 (09:56 +0000)]
Fixed some style bugs in axings.  Whitespace before __P was not axed when
__P was axed.  The ordering of several things was bogotified by axing
ifdefs.

22 years agoMove access and orphan member functions from class to geom.
Poul-Henning Kamp [Thu, 4 Apr 2002 09:54:13 +0000 (09:54 +0000)]
Move access and orphan member functions from class to geom.

Sponsored by: DARPA & NAI Labs

22 years agoFixed some English errors in previous commit.
Bruce Evans [Thu, 4 Apr 2002 09:45:11 +0000 (09:45 +0000)]
Fixed some English errors in previous commit.

Fixed some style bugs in the removal of __P(()).  Whitespace before
"__P((" was not removed.

22 years agos/classs/classes/ to fixup grammer after the previous global renaming.
Poul-Henning Kamp [Thu, 4 Apr 2002 09:41:47 +0000 (09:41 +0000)]
s/classs/classes/ to fixup grammer after the previous global renaming.

Sponsored by: DARPA & NAI Labs

22 years agoCTASSERT the size of struct dos_partition.
Poul-Henning Kamp [Thu, 4 Apr 2002 09:36:15 +0000 (09:36 +0000)]
CTASSERT the size of struct dos_partition.

22 years agoRegister major #4 for GEOM
Poul-Henning Kamp [Thu, 4 Apr 2002 09:35:08 +0000 (09:35 +0000)]
Register major #4 for GEOM

22 years agoGet tun P2P address from the local pool if RADIUS server returned
Tatsumi Hosokawa [Thu, 4 Apr 2002 08:43:00 +0000 (08:43 +0000)]
Get tun P2P address from the local pool if RADIUS server returned
255.255.255.254 as client ipaddr.

Reviewed-By: freebsd-net mailing list

22 years agoBack out last commit. (This file is installed under /etc/mail.)
Ruslan Ermilov [Thu, 4 Apr 2002 07:42:12 +0000 (07:42 +0000)]
Back out last commit.  (This file is installed under /etc/mail.)

Requested by: gshapiro

22 years agoComplete the fix in revision 1.13 -- don't even depend on termcap(5)
Ruslan Ermilov [Thu, 4 Apr 2002 07:30:46 +0000 (07:30 +0000)]
Complete the fix in revision 1.13 -- don't even depend on termcap(5)
database to be present.

PR: misc/31225

22 years agoUse a relative path to contrib/sendmail/cf.
Ruslan Ermilov [Thu, 4 Apr 2002 07:18:29 +0000 (07:18 +0000)]
Use a relative path to contrib/sendmail/cf.

22 years agoIntegrate airtools. This adds a number of parameters, which I've not
Warner Losh [Thu, 4 Apr 2002 07:04:29 +0000 (07:04 +0000)]
Integrate airtools.  This adds a number of parameters, which I've not
documented yet, the most interesting one is -l, which lists all the
access points available.

22 years ago o Kill the MD grow_stack(). Call the MI vm_map_growstack()
Alan Cox [Thu, 4 Apr 2002 06:59:18 +0000 (06:59 +0000)]
 o Kill the MD grow_stack().  Call the MI vm_map_growstack()
   in its place.
 o Eliminate the use of useracc() and grow_stack() from sendsig().

Reviewed by: peter

22 years agoUnbreak buildworld after include/Makefile,v 1.167 commit.
Ruslan Ermilov [Thu, 4 Apr 2002 06:49:46 +0000 (06:49 +0000)]
Unbreak buildworld after include/Makefile,v 1.167 commit.

22 years agoNew release notes: UCONSOLE removed, viapm(4), geom(4), ifconfig
Bruce A. Mah [Thu, 4 Apr 2002 06:43:34 +0000 (06:43 +0000)]
New release notes:  UCONSOLE removed, viapm(4), geom(4), ifconfig
link (+MFC), libusb->libusbhid (+MFC), usbhidctl(1) (+MFC).

MFCs noted:  texinfo 4.1.

22 years agoo Add architecture specific segment types.
Marcel Moolenaar [Thu, 4 Apr 2002 06:42:49 +0000 (06:42 +0000)]
o  Add architecture specific segment types.
o  Add architecture specific segment attributes.

22 years agoo Reduce the gratuitous differences with NetBSD.
Warner Losh [Thu, 4 Apr 2002 06:28:16 +0000 (06:28 +0000)]
o Reduce the gratuitous differences with NetBSD.
o OpenBSD's wiconfig tells me that a value of '2' is for sony wireless
  cards, 1 is for lucent (which we already knew) and '5' is for embedded
  lucent cards.
o Move some RID definitions to if_wavelan_ieee.h and use NetBSD names
  more often.

# more work is still needed in this area.

22 years agoUse a relative path to libstand.. /usr/src/lib/libstand may not exist
Peter Wemm [Thu, 4 Apr 2002 06:04:38 +0000 (06:04 +0000)]
Use a relative path to libstand.. /usr/src/lib/libstand may not exist
or may have the wrong header files.

22 years agoReplace (deprecated ?) FREE() macro with direct calls to free()
Luigi Rizzo [Thu, 4 Apr 2002 06:03:17 +0000 (06:03 +0000)]
Replace (deprecated ?) FREE() macro with direct calls to free()

22 years agoTry to sort out the correct way to generate async link state change
Bill Paul [Thu, 4 Apr 2002 06:01:31 +0000 (06:01 +0000)]
Try to sort out the correct way to generate async link state change
interrupts. This is a bit harder than it needs to be because there's
more than one way to generate link attentions, at least one of which
does not work on the BCM5700, but does on the 5701.

For the 5701, we can safely use the 'link changed' bit in the status
block, and we enable link change attentions in the mac event register.
For the 5700, we have to use MII interrupts, which require checking
the MAC status register rather than the status block. This requires
doing an extra register access on each interrupt which I'd prefer to
avoid, but them's the breaks. Testing with both a 3c996-T and 3c996B-T
shows that we do in fact detect the link going up and down properly
on cable insertions/disconnections.

Also, avoid twiddling the autopoll enable bit in the MI mode register
when doing a PHY read. I think this coupled with the other changes
will stop the interrupt storms Paul Saab has been harassing me about.
Manually setting the link to 100baseTX full duplex seems to work ok
for me. (I'm typing over the 3c996B-T right now.)

Lastly, teach the driver how to recognize a 3c996B-SX by checking
the hardware config word in the EEPROM in order to detect the media.
We attach 5701 fiber cards correctly now, but I haven't verified that
they send/receive packets yet since I don't have a second fiber
interface at home. (I know that fiber 5700 cards work, so I'm
keeping my fingers crossed.)

22 years agoFix incorrect m_free - m_freem() usage.
Luigi Rizzo [Thu, 4 Apr 2002 06:00:21 +0000 (06:00 +0000)]
Fix incorrect m_free - m_freem() usage.

22 years agoFix a couple of incorrect m_free() vs. m_freem() usages and related issues.
Luigi Rizzo [Thu, 4 Apr 2002 05:42:09 +0000 (05:42 +0000)]
Fix a couple of incorrect m_free() vs. m_freem() usages and related issues.

Reviewed-by: brooks
22 years agoo Move some function prototypes from <string.h> to the newly rewritten
Mike Barcroft [Thu, 4 Apr 2002 05:41:57 +0000 (05:41 +0000)]
o Move some function prototypes from <string.h> to the newly rewritten
  <strings.h>, based on POSIX.1-2001's requirements.
o Add 'restrict' qualifier (spelled '__restrict') to functions in
  <string.h>, as per C99 and POSIX.1-2001.
o Properly expose new POSIX.1-2001 functions in <string.h>.

22 years agoAdd the driver for "myson" ethernet cards.
Julian Elischer [Thu, 4 Apr 2002 05:22:13 +0000 (05:22 +0000)]
Add the driver for "myson" ethernet cards.
This driver was written by Myson and is made available
by their courtesy.
The 5.x version is not fully tested (I will be testing) but
the 4.x version has been tested by many.
I will commit it soon.
Myson have their own chip design based on the DEC 214xx family but
with several differences. Myson sells this chip to several
EOMs in teh Chinese area so there may be many noname brand cards
that respond to this driver. Myson will be supplying a list
of some of these.

22 years ago o aio_process needn't fhold()/fdrop() the fp now that _aio_aqueue() and
Alan Cox [Thu, 4 Apr 2002 02:13:20 +0000 (02:13 +0000)]
 o aio_process needn't fhold()/fdrop() the fp now that _aio_aqueue() and
   aio_free_entry() do this.
 o Remove two unnecessary/unused variables from aio_process() and one field
   from aiocblist.

22 years agoMake the sed line a little bit more clear (it will get messier later).
David E. O'Brien [Thu, 4 Apr 2002 01:25:26 +0000 (01:25 +0000)]
Make the sed line a little bit more clear (it will get messier later).

22 years agoAvoid a lock order reversal by dropping the eventhandler_mutex earlier.
Alfred Perlstein [Thu, 4 Apr 2002 00:52:03 +0000 (00:52 +0000)]
Avoid a lock order reversal by dropping the eventhandler_mutex earlier.
We get enough protection from the lock on the individual lists that we
aquire later.

Noticed/Tested by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
Submitted by: Jonathan Mini <mini@haikugeek.com>

22 years agoSet NOSHARED conditionally.
David E. O'Brien [Thu, 4 Apr 2002 00:50:14 +0000 (00:50 +0000)]
Set NOSHARED conditionally.

22 years agoClean up the YACCing. I don't know why we cannot leave the .y's as .y's.
David E. O'Brien [Thu, 4 Apr 2002 00:26:20 +0000 (00:26 +0000)]
Clean up the YACCing.  I don't know why we cannot leave the .y's as .y's.
So lets see if doing so causes anyone trouble.
Also use make(1)'s assistance in using the right file.  It knows the
dependency, so lets just ask it.

22 years agoRemove duplicate objc-parse.h. While we are at it, just spell it correctly
David E. O'Brien [Thu, 4 Apr 2002 00:14:58 +0000 (00:14 +0000)]
Remove duplicate objc-parse.h.  While we are at it, just spell it correctly
as c-parse.h since that is how the consumers spell it.

22 years agoRevision 1.59 also removed the pretend sparc support.
David E. O'Brien [Thu, 4 Apr 2002 00:12:42 +0000 (00:12 +0000)]
Revision 1.59 also removed the pretend sparc support.
We wont support Sparc using GCC 2.95.

22 years agoGet rid of GCC_ARCH, and just use plain TARGET_ARCH.
David E. O'Brien [Thu, 4 Apr 2002 00:11:00 +0000 (00:11 +0000)]
Get rid of GCC_ARCH, and just use plain TARGET_ARCH.
We got rid of the MIPS le/be stuff that needed this a long time ago.

22 years agoAdd more DWIM/autoadjustment and less evil style(9) banned exit(2) codes.
Poul-Henning Kamp [Wed, 3 Apr 2002 20:48:05 +0000 (20:48 +0000)]
Add more DWIM/autoadjustment and less evil style(9) banned exit(2) codes.
Add some missing statics.

Sponsored by: DARPA & NAI Labs.

22 years agoMove the FFS parameter MAXFRAG from <sys/param.h> to <ufs/ffs/fs.h>
Poul-Henning Kamp [Wed, 3 Apr 2002 20:39:27 +0000 (20:39 +0000)]
Move the FFS parameter MAXFRAG from <sys/param.h> to <ufs/ffs/fs.h>

Sponsored by: DARPA & NAI Labs.

22 years agoIt would appear, from preliminary indications, that No Wires Necessary
Warner Losh [Wed, 3 Apr 2002 20:39:07 +0000 (20:39 +0000)]
It would appear, from preliminary indications, that No Wires Necessary
cards aren't compatible with either Lucent or Intersil firmware.

22 years agoUnifdef -DCOMPAT
Poul-Henning Kamp [Wed, 3 Apr 2002 19:53:09 +0000 (19:53 +0000)]
Unifdef -DCOMPAT

22 years agoFour fixes from NetBSD:
Warner Losh [Wed, 3 Apr 2002 19:44:17 +0000 (19:44 +0000)]
Four fixes from NetBSD:
1) Properly detect the Symbol based cards (The 3Com Airconnect and their
   ilk) and only reset them *ONCE* ever.  This appears to make them work,
   but more testing is needed.  The tests that would wedge up my machine
   completely now appear to work, but I have not real access points
   handy.
2) Report both the Station firmware and the Primary firmware on Prism
   based cards.  On Lucent based cards, only report the station firmware
   since that's all it supports.  On symbol cards, report the symbol
   specific firmware name as its station firmware.
3) Better Prism 2.5 and 3 family names.  We really need to go table
   driven for this.
4) Workaround for bugs in Intersil's firmware is only needed for at most
   0.8.2 and earlier, since 0.8.3 and later appear to work.

Obtained from: NetBSD

22 years ago- Axe a stale comment. We haven't allowed the ucred pointer passed to
John Baldwin [Wed, 3 Apr 2002 18:35:25 +0000 (18:35 +0000)]
- Axe a stale comment.  We haven't allowed the ucred pointer passed to
  securelevel_*() to be NULL for a while now.
- Use KASSERT() instead of if (foo) panic(); to optimize the
  !INVARIANTS case.

Submitted by: Martin Faxer <gmh003532@brfmasthugget.se>

22 years agoFirst round at trying to split up NOTES into MI and MD portions.
John Baldwin [Wed, 3 Apr 2002 18:09:17 +0000 (18:09 +0000)]
First round at trying to split up NOTES into MI and MD portions.
Unfortunately, this level doesn't really provide enough granularity.  We
probably need several MI NOTES type files for things that are shared by
several architectures but not by all.  For example, the PCI options could
live in a NOTES.pci.

This also updates the Makefile for i386 to generate LINT.  The only changes
in the generated LINT are the order of various options.

Suggestions for improvement welcome.

22 years agoDon't clobber headers that we didn't create.
Ruslan Ermilov [Wed, 3 Apr 2002 17:29:20 +0000 (17:29 +0000)]
Don't clobber headers that we didn't create.

Noticed by: bde
Reviewed by: bde

22 years agoRegen.
Sheldon Hearn [Wed, 3 Apr 2002 17:03:09 +0000 (17:03 +0000)]
Regen.

This restores rev 1.12 (spammed by rev 1.13), as the Cenatek Rocket
Drive is now included in at least the Hart list.

22 years agoKill only usage of the undocumnted and unuse d_boot[01] fields of
Poul-Henning Kamp [Wed, 3 Apr 2002 15:46:56 +0000 (15:46 +0000)]
Kill only usage of the undocumnted and unuse d_boot[01] fields of
struct disklabel.

Sponsored by: DARPA & NAI Labs.

22 years agoInitial deorbit burn for the undocumented and unused d_boot[01]
Poul-Henning Kamp [Wed, 3 Apr 2002 15:44:53 +0000 (15:44 +0000)]
Initial deorbit burn for the undocumented and unused d_boot[01]
fields of struct disklabel.

Sponsored by: DARPA and NAI Labs.

22 years agoBump __FreeBSD_version to reflect the new tri-state nature of the
Sheldon Hearn [Wed, 3 Apr 2002 15:03:38 +0000 (15:03 +0000)]
Bump __FreeBSD_version to reflect the new tri-state nature of the
sendmail_enable rc.conf flag.

This will help MTA port maintainers.

22 years agoAdd two forgotten vfs_unbusy() calls, in vfs_mount() and vfs_nmount().
Maxime Henrion [Wed, 3 Apr 2002 12:19:03 +0000 (12:19 +0000)]
Add two forgotten vfs_unbusy() calls, in vfs_mount() and vfs_nmount().

Reviewed by: phk