]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoRemove #ifdef'ed Giant mutex wrappers round debugging statements.
Mark Murray [Sat, 21 Sep 2002 21:44:19 +0000 (21:44 +0000)]
Remove #ifdef'ed Giant mutex wrappers round debugging statements.

21 years agoCleanup of amdpm(4).
Nicolas Souchu [Sat, 21 Sep 2002 21:43:49 +0000 (21:43 +0000)]
Cleanup of amdpm(4).

Add of NVIDIA nForce (nfpm) smbus support.

Obtained from: Thomas D. Dean <tomdean@speakeasy.org>

21 years agoNo functional change. Fix comments and whitespace.
Mark Murray [Sat, 21 Sep 2002 21:40:02 +0000 (21:40 +0000)]
No functional change. Fix comments and whitespace.

21 years agoWhitespace fixes (mainly for a space instead of a tab after #define).
Bruce Evans [Sat, 21 Sep 2002 21:28:25 +0000 (21:28 +0000)]
Whitespace fixes (mainly for a space instead of a tab after #define).

21 years agoRemove another missed trailing space.
Robert Watson [Sat, 21 Sep 2002 19:50:28 +0000 (19:50 +0000)]
Remove another missed trailing space.

21 years ago o Remove an initialized but unused variable from pmap_remove_all().
Alan Cox [Sat, 21 Sep 2002 19:42:11 +0000 (19:42 +0000)]
 o Remove an initialized but unused variable from pmap_remove_all().

21 years agoTrim trailing whitespace from the ends of lines.
Robert Watson [Sat, 21 Sep 2002 19:26:59 +0000 (19:26 +0000)]
Trim trailing whitespace from the ends of lines.

21 years agoContinue cleanup and sync of mac_biba and mac_mls policies to the
Robert Watson [Sat, 21 Sep 2002 19:20:01 +0000 (19:20 +0000)]
Continue cleanup and sync of mac_biba and mac_mls policies to the
TrustedBSD MAC Perforce tree.  Remove unused functions
mac_biba_equal_range and mac_mls_equal_range, which determined if the
ranges in two range-enabled labels were equal.

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

21 years agoWrap GNUish asm() code in #ifdef __GNUC__
Mark Murray [Sat, 21 Sep 2002 19:12:59 +0000 (19:12 +0000)]
Wrap GNUish asm() code in #ifdef __GNUC__

21 years agoUse a function instead of a non-portable, GCC-specific asm() entry.
Mark Murray [Sat, 21 Sep 2002 19:03:42 +0000 (19:03 +0000)]
Use a function instead of a non-portable, GCC-specific asm() entry.

21 years agoA good dose of style.9. No functional change.
Mark Murray [Sat, 21 Sep 2002 19:02:17 +0000 (19:02 +0000)]
A good dose of style.9. No functional change.

21 years agoRemove mac_biba_high_single() check for interface renaming: we now
Robert Watson [Sat, 21 Sep 2002 19:01:44 +0000 (19:01 +0000)]
Remove mac_biba_high_single() check for interface renaming: we now
use the notion that a subject range of (low-high) connotes Biba
privilege rather than a single of high.

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

21 years agoCode tidy-up. ISOfy, turn a macro into an inline for lint(1) (perhaps
Mark Murray [Sat, 21 Sep 2002 18:53:58 +0000 (18:53 +0000)]
Code tidy-up. ISOfy, turn a macro into an inline for lint(1) (perhaps
this needs to go to cpufunc.h?), de-register.

21 years agoUse a function instead of embedding non-portable asm() constructs
Mark Murray [Sat, 21 Sep 2002 18:51:19 +0000 (18:51 +0000)]
Use a function instead of embedding non-portable asm() constructs
in C code.

21 years agoSort includes.
Mark Murray [Sat, 21 Sep 2002 18:30:12 +0000 (18:30 +0000)]
Sort includes.

21 years agoAs INVARIANTS isn't supported for code that loads only as a kernel
Robert Watson [Sat, 21 Sep 2002 18:29:37 +0000 (18:29 +0000)]
As INVARIANTS isn't supported for code that loads only as a kernel
module and is not linked into the base system, two KASSERT's rotted.
Fix them by fixing variable names.  It would be really nice if
opt_global.h was used when building modules as part of a buildkernel.

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

21 years agoProvide in inline function for the (GNUC) assembler "hlt" instruction.
Mark Murray [Sat, 21 Sep 2002 18:26:53 +0000 (18:26 +0000)]
Provide in inline function for the (GNUC) assembler "hlt" instruction.

21 years agoWrap GCC-specific asm() code in #ifdef __GNUC__
Mark Murray [Sat, 21 Sep 2002 18:19:51 +0000 (18:19 +0000)]
Wrap GCC-specific asm() code in #ifdef __GNUC__

21 years agoDon't include opt_bus.h here, it breaks stuff trying to
Maxime Henrion [Sat, 21 Sep 2002 18:12:00 +0000 (18:12 +0000)]
Don't include opt_bus.h here, it breaks stuff trying to
include machine/bus.h.

Reviewed by: tmm

21 years agoConstify to kill some warnings.
Mark Murray [Sat, 21 Sep 2002 17:29:36 +0000 (17:29 +0000)]
Constify to kill some warnings.

21 years agoEverywhere else, an argument passed to a device containing flags
Mark Murray [Sat, 21 Sep 2002 17:28:17 +0000 (17:28 +0000)]
Everywhere else, an argument passed to a device containing flags
is called "flags". Make it so here.

21 years agos/seems to thing/seems to think
Jens Schweikhardt [Sat, 21 Sep 2002 16:13:20 +0000 (16:13 +0000)]
s/seems to thing/seems to think

X-MFC after: 4.7 is out the door

21 years agoFirewire can be built on other than i386 after sbp.c fix.
Hidetoshi Shimokawa [Sat, 21 Sep 2002 15:22:09 +0000 (15:22 +0000)]
Firewire can be built on other than i386 after sbp.c fix.

Tested on: Alpha (beast.freebsd.org)

21 years agodon't include bus_dma.h which doesn't need.
Hidetoshi Shimokawa [Sat, 21 Sep 2002 15:05:22 +0000 (15:05 +0000)]
don't include bus_dma.h which doesn't need.

21 years agoremove unused code.
Hidetoshi Shimokawa [Sat, 21 Sep 2002 14:48:07 +0000 (14:48 +0000)]
remove unused code.

21 years agoDelete stray reference to vsnprintf().
Tim J. Robbins [Sat, 21 Sep 2002 14:25:58 +0000 (14:25 +0000)]
Delete stray reference to vsnprintf().

21 years agoAdd implementations of the wprintf() family of functions, which perform
Tim J. Robbins [Sat, 21 Sep 2002 13:00:30 +0000 (13:00 +0000)]
Add implementations of the wprintf() family of functions, which perform
formatted wide-character output.

21 years agoRename the ftp log filename for compatability with OpenBSD and NetBSD.
Mark Murray [Sat, 21 Sep 2002 12:07:35 +0000 (12:07 +0000)]
Rename the ftp log filename for compatability with OpenBSD and NetBSD.

Requested by: ru

21 years agoRestrict visibility of wcslcat() and wcslcpy() to the __BSD_VISIBLE case.
Tim J. Robbins [Sat, 21 Sep 2002 08:55:16 +0000 (08:55 +0000)]
Restrict visibility of wcslcat() and wcslcpy() to the __BSD_VISIBLE case.

21 years agoRemove empty #if*/#endif clauses.
Poul-Henning Kamp [Sat, 21 Sep 2002 08:44:51 +0000 (08:44 +0000)]
Remove empty #if*/#endif clauses.

21 years agoFix typo.
Masafumi Max NAKANE [Sat, 21 Sep 2002 08:32:07 +0000 (08:32 +0000)]
Fix typo.

21 years agoRemove #ifdef/#endif 3 years after the stuff they protected was removed.
Poul-Henning Kamp [Sat, 21 Sep 2002 08:00:01 +0000 (08:00 +0000)]
Remove #ifdef/#endif 3 years after the stuff they protected was removed.

Spotted by: peter.

21 years agoFix a 3 year old oversight: Remove the #ifdef/#endif pair now that there
Poul-Henning Kamp [Sat, 21 Sep 2002 07:59:06 +0000 (07:59 +0000)]
Fix a 3 year old oversight:  Remove the #ifdef/#endif pair now that there
is nothing between them anymore.

Spotted by: peter.

21 years agoReduce namespace pollution.
Alan Cox [Sat, 21 Sep 2002 07:51:44 +0000 (07:51 +0000)]
Reduce namespace pollution.

Submitted by: bde

21 years agoClaim to be 1003.1-2001. We're not quite, yet, but that's a more useful
Garrett Wollman [Sat, 21 Sep 2002 02:19:03 +0000 (02:19 +0000)]
Claim to be 1003.1-2001.  We're not quite, yet, but that's a more useful
target than any pre-C99 POSIX (which we could never have conformed to
under our ia32 ABI).

Document why HOST_NAME_MAX (and hopefully other similar constants in the
future) is not defined.

Define in <sys/unistd.h> all 1003.1-2001 option and option group constants
which did not meet the standard for inclusion in <unistd.h>.  Delete from
<sys/unistd.h> all sysconf(3) constants and those option constants which
were moved to <unistd.h>.  pathconf(3) keys remain here as pathconf() is
implemented directly as a system call.  Add a comment noting brokenness
in some .1e additions here.  Fix whitespace in definition of constants for
rfork().

(5 of 5)

21 years agoInitiate deorbit burn sequence for sysctl CTL_USER MIB branch.
Garrett Wollman [Sat, 21 Sep 2002 02:14:04 +0000 (02:14 +0000)]
Initiate deorbit burn sequence for sysctl CTL_USER MIB branch.
Use the correct constants directly from sysconf() rather than calling
sysctl() to tell us the (still compiled-in) value.  Leave the CTL_POSIX1B
stuff alone for now (but I'd like to see this replaced with a single
structure returning all of the relevant information).

Implement all of the keys from 1003.1-2001 that we can.  Ensure that
the build will break if someone redefines an option constant to zero
without implementing the necessary presence-detection logic here.

(4 of 5)

21 years agoDefine constants for those POSIX options and option groups which are
Garrett Wollman [Sat, 21 Sep 2002 02:08:32 +0000 (02:08 +0000)]
Define constants for those POSIX options and option groups which are
(or would be) implemented (or not) exclusively in user-land.  A threads
expert should check over the values I have set to make sure that they
correctly reflect reality.

Move all sysconf() keys here from <sys/unistd.h> as they are not implemented
in the kernel.  Add new keys from 1003.1-2001 final text.  (Some additional
keys are expected in TC1.)

Add some protection against redundant declarations between <stdlib.h>
and <unistd.h> for some functions which XSI requires in the former and
BSD traditionally declares in the latter.  Restrict qualifiers and other
changes from 1003.1-2001 have not been made to the functions prototyped here.

(3 of 5)

21 years agoUse new visibility macros. Reorder some disordered declarations. Add
Garrett Wollman [Sat, 21 Sep 2002 02:03:58 +0000 (02:03 +0000)]
Use new visibility macros.  Reorder some disordered declarations.  Add
new 1003.1-2001 declarations, commented out in cases where we do not
implement the function.  Note that strtoq() and strtouq() are slated
for deletion in 6.0.  (2 of 5)

21 years agoUse new visibility macros. (1 of 5)
Garrett Wollman [Sat, 21 Sep 2002 02:00:44 +0000 (02:00 +0000)]
Use new visibility macros.  (1 of 5)

21 years agoMake the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct
Garrett Wollman [Sat, 21 Sep 2002 01:28:41 +0000 (01:28 +0000)]
Make the threatened fts(3) ABI fix.  FTSENT now avoids the use of the struct
hack, thereby allowing future extensions to the structure (e.g., for extended
attributes) without rebreaking the ABI.  FTSENT now contains a pointer to the
parent stream, which fts_compar() can then take advantage of, avoiding the
undefined behavior previously warned about.  As a consequence of this change,
the prototype of the comparison function passed to fts_open() has changed
to reflect the required amount of constness for its use.  All callers in the
tree are updated to use the correct prototype.

Comparison functions can now make use of the new parent pointer to access
the new stream-specific private data pointer, which is intended to assist
creation of reentrant library routines which use fts(3) internally.

Not objected to in spirit by: -arch

21 years agoInsert a missing call to MAC protection check for delivering an
Robert Watson [Sat, 21 Sep 2002 00:59:56 +0000 (00:59 +0000)]
Insert a missing call to MAC protection check for delivering an
mbuf to a bpf device.

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

21 years agoRemove unnecessary #include <assert.h>; it was used to bring in the
Tim J. Robbins [Sat, 21 Sep 2002 00:29:23 +0000 (00:29 +0000)]
Remove unnecessary #include <assert.h>; it was used to bring in the
_DIAGASSERT macro on NetBSD, but we don't need it.

21 years agoAdd missing semicolon
Peter Grehan [Fri, 20 Sep 2002 23:26:07 +0000 (23:26 +0000)]
Add missing semicolon

21 years agoAssert my copyright on this file (using the default 2-clause BSD).
Poul-Henning Kamp [Fri, 20 Sep 2002 22:26:27 +0000 (22:26 +0000)]
Assert my copyright on this file (using the default 2-clause BSD).

The vast majority of the contents is from my keyboard and no
significant pieces remain of the former copyright holders code.

21 years agoRemove a prototype for a function that is no longer called.
Mark Murray [Fri, 20 Sep 2002 22:23:32 +0000 (22:23 +0000)]
Remove a prototype for a function that is no longer called.

21 years agoInstall empty ftp.log file to start off ftp logging.
Mark Murray [Fri, 20 Sep 2002 22:12:27 +0000 (22:12 +0000)]
Install empty ftp.log file to start off ftp logging.

21 years agoLog ftpd stuff in the same way that we log lpd stuff. Too many ftpd's
Mark Murray [Fri, 20 Sep 2002 22:10:01 +0000 (22:10 +0000)]
Log ftpd stuff in the same way that we log lpd stuff. Too many ftpd's
are attacked for us to throw away this sort of evidence.

21 years agoFix an infinite loop when _fetch_read() can return 0 (if the
Alfred Perlstein [Fri, 20 Sep 2002 21:50:57 +0000 (21:50 +0000)]
Fix an infinite loop when _fetch_read() can return 0 (if the
connection is broken), take this into account and return at this
point.

21 years agoThe resolver library does a pretty acceptable set of domain
Mark Murray [Fri, 20 Sep 2002 20:09:27 +0000 (20:09 +0000)]
The resolver library does a pretty acceptable set of domain
suffix attempts before failing. No need to try again by hand,
particularly when it fills your log with failures because
localhost.example.com..example.com fails to resolve. Also improve the
log message that helped find this error.

There is still (maybe) an uninitialised pointer problem here, but in a
month of testing I haven't triggered it.

21 years agoKerberised NFS has never (as far as I can tell) worked outside
Mark Murray [Fri, 20 Sep 2002 20:03:27 +0000 (20:03 +0000)]
Kerberised NFS has never (as far as I can tell) worked outside
BSD 4.4. Nuke mention of Kerberos from the documentation here.

MFC after: 1 week

21 years agoInitialize a variable in order to fix when faced with picky compilers.
Eric Melville [Fri, 20 Sep 2002 19:40:23 +0000 (19:40 +0000)]
Initialize a variable in order to fix when faced with picky compilers.

Sponsored by: Apple

21 years ago(This commit touches about 15 disk device drivers in a very consistent
Poul-Henning Kamp [Fri, 20 Sep 2002 19:36:05 +0000 (19:36 +0000)]
(This commit touches about 15 disk device drivers in a very consistent
and predictable way, and I apologize if I have gotten it wrong anywhere,
getting prior review on a patch like this is not feasible, considering
the number of people involved and hardware availability etc.)

If struct disklabel is the messenger: kill the messenger.

Inside struct disk we had a struct disklabel which disk drivers used to
communicate certain metrics to the disklayer above (GEOM or the disk
mini-layer).  This commit changes this communication to use four
explicit fields instead.

Amongst the benefits is that the fields do not get overwritten by
wrong or bogus on-disk disklabels.

Once that is clear, <sys/disk.h> which is included in the drivers
no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in,
the few places that needs them, have gotten explicit #includes for
them.

The disklabel inside struct disk is now only for internal use in
the disk mini-layer, so instead of embedding it, we malloc it as
we need it.

This concludes (modulus any mistakes) the series of disklabel related
commits.

I belive it all amounts to a NOP for all the rest of you :-)

Sponsored by:   DARPA & NAI Labs.

21 years agoExtend the lint handling a bit.
Mark Murray [Fri, 20 Sep 2002 19:32:51 +0000 (19:32 +0000)]
Extend the lint handling a bit.

o Make it possible to prevent parts of the tree from being linted
  (say) during a 'make world' by setting NOLINT in a leaf Makefile.

o Make "make lint" work (better) for executable programs.

o Clean up (nuke!) a syntax damaged pipeline.

21 years agoRemove NVIDIA ioctl bits. They will be provided in a kernel module.
Matthew N. Dodd [Fri, 20 Sep 2002 19:19:58 +0000 (19:19 +0000)]
Remove NVIDIA ioctl bits.  They will be provided in a kernel module.

21 years agoAxe unused include.
John Baldwin [Fri, 20 Sep 2002 19:16:41 +0000 (19:16 +0000)]
Axe unused include.

21 years agoup gif during setup.
Hajimu UMEMOTO [Fri, 20 Sep 2002 18:31:55 +0000 (18:31 +0000)]
up gif during setup.

21 years agomistakenly set IFF_UP by SIOCSIFPHYADDR.
Hajimu UMEMOTO [Fri, 20 Sep 2002 18:21:46 +0000 (18:21 +0000)]
mistakenly set IFF_UP by SIOCSIFPHYADDR.

Obtained from: KAME

21 years agoThis file does not <sys/disklabel.h>
Poul-Henning Kamp [Fri, 20 Sep 2002 18:15:40 +0000 (18:15 +0000)]
This file does not <sys/disklabel.h>

Sponsored by: DARPA & NAI Labs.

21 years agoRemove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h>
Poul-Henning Kamp [Fri, 20 Sep 2002 18:08:57 +0000 (18:08 +0000)]
Remove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h>

Sponsored by: DARPA & NAI Labs.
Approved by: sos

21 years agoWe need neither <sys/diskslice.h> nor <sys/disklabel.h> here.
Poul-Henning Kamp [Fri, 20 Sep 2002 17:59:09 +0000 (17:59 +0000)]
We need neither <sys/diskslice.h> nor <sys/disklabel.h> here.

Sponsored by: DARPA & NAI Labs.

21 years agoPut an XXX comment here to point somebody in the right direction.
Poul-Henning Kamp [Fri, 20 Sep 2002 17:55:47 +0000 (17:55 +0000)]
Put an XXX comment here to point somebody in the right direction.

21 years agoFix various style(9) bugs:
Mike Barcroft [Fri, 20 Sep 2002 17:54:34 +0000 (17:54 +0000)]
Fix various style(9) bugs:
o Unusual order of #ifndef _FOO_H_, followed by license.
o Missing tabs in typedef.
o Missing tabs in struct between types and member names.
o Unaligned, unordered function prototypes.
o Reversed comment for #endif.

21 years agoFor reasons now lost in historical fog, the bounds_check_with_label()
Poul-Henning Kamp [Fri, 20 Sep 2002 17:51:00 +0000 (17:51 +0000)]
For reasons now lost in historical fog, the bounds_check_with_label()
function were put in i386/i386/machdep.c from where it has been
cut and pasted to other architectures with only minor corruption.

Disklabel is really a MI format in many ways, at least it certainly
is when you operate on struct disklabel.

Put bounds_check_with_label() back in subr_disklabel.c where it belongs.

Sponsored by:   DARPA & NAI Labs.

21 years agoWe don't need the <sys/disklabel.h> include for alpha anymore.
Poul-Henning Kamp [Fri, 20 Sep 2002 17:45:44 +0000 (17:45 +0000)]
We don't need the <sys/disklabel.h> include for alpha anymore.

Sponsored by: DARPA & NAI Labs.

21 years ago#include <sys/disk.h> to get disk_err() prototype.
Poul-Henning Kamp [Fri, 20 Sep 2002 17:40:49 +0000 (17:40 +0000)]
#include <sys/disk.h> to get disk_err() prototype.

Sponsored by: DARPA & NAI Labs.

21 years agoFix k5admind by dropping libkadm5clnt from LDADD.
Jacques Vidrine [Fri, 20 Sep 2002 17:31:03 +0000 (17:31 +0000)]
Fix k5admind by dropping libkadm5clnt from LDADD.

21 years agoKernel MIB name for disabling ACPI was changed.
Makoto Matsushita [Fri, 20 Sep 2002 17:24:39 +0000 (17:24 +0000)]
Kernel MIB name for disabling ACPI was changed.

Pointed out by: iwasaki

21 years agoReduce <sys/disklabel.h> poisoning a bit.
Poul-Henning Kamp [Fri, 20 Sep 2002 17:14:48 +0000 (17:14 +0000)]
Reduce <sys/disklabel.h> poisoning a bit.

Sponsored by: DARPA & NAI Labs.

21 years agoReorder libraries in LDADD in case some wants to statically
Jacques Vidrine [Fri, 20 Sep 2002 17:09:38 +0000 (17:09 +0000)]
Reorder libraries in LDADD in case some wants to statically
link these applications.

21 years agoMake ipropd-slave/ipropd-master actually work. These applications
Jacques Vidrine [Fri, 20 Sep 2002 17:07:59 +0000 (17:07 +0000)]
Make ipropd-slave/ipropd-master actually work.  These applications
were being linked against the client Kerberos administration library,
when they must be linked against the server library, resulting in
segfaults early in the game.  I suspect these have never been tested
before :-(

21 years agoRemove unneeded #include <sys/disklabel.h>
Poul-Henning Kamp [Fri, 20 Sep 2002 17:00:24 +0000 (17:00 +0000)]
Remove unneeded #include <sys/disklabel.h>

Sponsored by: DARPA & NAI Labs.

21 years agoInclude <sys/ioccom.h> directly, rather than indirectly through
Poul-Henning Kamp [Fri, 20 Sep 2002 16:59:14 +0000 (16:59 +0000)]
Include <sys/ioccom.h> directly, rather than indirectly through
<sys/disklabel.h>

Sponsored by: DARPA & NAI Labs.

21 years agoRemove even more Copy&Pasted sets of #includes.
Poul-Henning Kamp [Fri, 20 Sep 2002 16:53:19 +0000 (16:53 +0000)]
Remove even more Copy&Pasted sets of #includes.

21 years agoRemove unused #includes. Looks amacingly like the exact same set
Poul-Henning Kamp [Fri, 20 Sep 2002 16:51:09 +0000 (16:51 +0000)]
Remove unused #includes.  Looks amacingly like the exact same set
as I just removed from ncr53c500_pccard.c.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove #include of <sys/disklabel.h> (and a few other unused #includes I
Poul-Henning Kamp [Fri, 20 Sep 2002 16:49:36 +0000 (16:49 +0000)]
Remove #include of <sys/disklabel.h> (and a few other unused #includes I
noticed while here).

Sponsored by: DARPA & NAI Labs.

21 years agoWe don't need to #include <sys/disklabel.h>.
Poul-Henning Kamp [Fri, 20 Sep 2002 16:42:33 +0000 (16:42 +0000)]
We don't need to #include <sys/disklabel.h>.
We don't need to #include <sys/disklabel.h> second time either.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove needless <sys/disklabel.h> and <sys/diskslice.h> #includes.
Poul-Henning Kamp [Fri, 20 Sep 2002 16:37:15 +0000 (16:37 +0000)]
Remove needless <sys/disklabel.h> and <sys/diskslice.h> #includes.

Sponsored by: DARPA & NAI Labs.

21 years agoDon't call dkunit() to find our unit number, it is in our softc.
Poul-Henning Kamp [Fri, 20 Sep 2002 16:26:12 +0000 (16:26 +0000)]
Don't call dkunit() to find our unit number, it is in our softc.

Sponsored by: DARPA & NAI Labs.

21 years agoDon't use dkunit() to find out unit, we already have our softc pointer
Poul-Henning Kamp [Fri, 20 Sep 2002 16:25:16 +0000 (16:25 +0000)]
Don't use dkunit() to find out unit, we already have our softc pointer
where we can find it.

Don't call dkpart() just to print the result, it is constant.

Sponsored by: DARPA & NAI Labs.

21 years agoRevert previous commit to unbreak world until we figure out the
Archie Cobbs [Fri, 20 Sep 2002 15:43:26 +0000 (15:43 +0000)]
Revert previous commit to unbreak world until we figure out the
right way to do it.

21 years agoFix the support for the AN985/983 chips, which do not set the
Martin Blapp [Fri, 20 Sep 2002 15:18:13 +0000 (15:18 +0000)]
Fix the support for the AN985/983 chips, which do not set the
RXSTATE to STOPPED, but to WAIT. This should fix hangs which
could only be solved by replugging the cable.

Submitted by: jhb
Reviewed by: phk
MFC after: 2 weeks

21 years agoEnable the automatic TX underrun recovery for the ADMtek chips.
Martin Blapp [Fri, 20 Sep 2002 15:16:06 +0000 (15:16 +0000)]
Enable the automatic TX underrun recovery for the ADMtek chips.
This solves cvsup update on my laptop which aborts after a while
without this patch.

PR: 34236
Reviewed by: phk
MFC after: 2 weeks

21 years agoMake FreeBSD "struct disklabel" agnostic, step 312 of 723:
Poul-Henning Kamp [Fri, 20 Sep 2002 14:14:37 +0000 (14:14 +0000)]
Make FreeBSD "struct disklabel" agnostic, step 312 of 723:

Rename bioqdisksort() to bioq_disksort().
Keep a #define around to avoid changing all diskdrivers right now.

Move it from subr_disklabel.c to subr_disk.c.
Move prototype from <sys/disklabel.h> to <sys/bio.h>

Sponsored by:   DARPA and NAI Labs.

21 years agofork_trampoline() marks a trap frame.
John Baldwin [Fri, 20 Sep 2002 13:58:21 +0000 (13:58 +0000)]
fork_trampoline() marks a trap frame.

Submitted by: bde

21 years agoUse proper type for a variable used as a DDB symbol.
John Baldwin [Fri, 20 Sep 2002 13:56:11 +0000 (13:56 +0000)]
Use proper type for a variable used as a DDB symbol.

21 years agoTrim includes.
John Baldwin [Fri, 20 Sep 2002 13:54:45 +0000 (13:54 +0000)]
Trim includes.

Submitted by: bde

21 years agoVarious style fixes, including moving db_print_backtrace() out of the
John Baldwin [Fri, 20 Sep 2002 13:53:33 +0000 (13:53 +0000)]
Various style fixes, including moving db_print_backtrace() out of the
middle of the watchpoint code.

Submitted by: bde

21 years agoLock the file once per call and use the unlocked fgetwc()/fputwc() variants.
Tim J. Robbins [Fri, 20 Sep 2002 13:25:40 +0000 (13:25 +0000)]
Lock the file once per call and use the unlocked fgetwc()/fputwc() variants.

21 years agoLock and unlock the file once per call and use the unlocked version of
Tim J. Robbins [Fri, 20 Sep 2002 13:23:26 +0000 (13:23 +0000)]
Lock and unlock the file once per call and use the unlocked version of
ungetc() instead of having ungetc() recurse on the lock.

21 years agoIntroduce unlocked versions of fputwc() and fgetwc() called __fputwc()
Tim J. Robbins [Fri, 20 Sep 2002 13:20:41 +0000 (13:20 +0000)]
Introduce unlocked versions of fputwc() and fgetwc() called __fputwc()
and __fgetwc() which can be used when we know the file is locked.

21 years agoMake FreeBSD "struct disklabel" agnostic, step 311 of 723:
Poul-Henning Kamp [Fri, 20 Sep 2002 12:52:03 +0000 (12:52 +0000)]
Make FreeBSD "struct disklabel" agnostic, step 311 of 723:

Rename diskerr() to disk_err() for naming consistency.

Drop the by now entirely useless struct disklabel argument.

Add a flag argument for new-line termination.

Fix a couple of printf-format-casts to %j instead of %l.

Correctly print the name of all bio commands.

Move the function from subr_disklabel.c to subr_disk.c,
and from <sys/disklabel.h> to <sys/disk.h>.

Use the new disk_err() throughout, #include <sys/disk.h> as needed.

Bump __FreeBSD_version for the sake of the aac disk drivers #ifdefs.

Remove unused disklabel members of softc for aac, amr and mlx, which seem
to originally have been intended for diskerr() use, but which only rotted
and got Copy&Pasted at least two times to many.

Sponsored by:   DARPA & NAI Labs.

21 years agoBandaid for a broken world. The real fix is somewhat more
Ruslan Ermilov [Fri, 20 Sep 2002 12:33:19 +0000 (12:33 +0000)]
Bandaid for a broken world.  The real fix is somewhat more
complicated and will be sent for a review.

21 years agoRemove unused variable.
Poul-Henning Kamp [Fri, 20 Sep 2002 09:33:30 +0000 (09:33 +0000)]
Remove unused variable.

21 years agoRetire now unused DIOCGDVIRGIN kludge.
Poul-Henning Kamp [Fri, 20 Sep 2002 09:31:14 +0000 (09:31 +0000)]
Retire now unused DIOCGDVIRGIN kludge.

Sponsored by: DARPA & NAI Labs.

21 years agoConstruct new disklabels based on the medias stated parameters in
Poul-Henning Kamp [Fri, 20 Sep 2002 09:18:31 +0000 (09:18 +0000)]
Construct new disklabels based on the medias stated parameters in
userland, rather than expect all possible GEOMetries to know about
BSD disklabels.

Sponsored by: DARPA & NAI Labs

21 years agoAdd restrict type-qualifier.
Mike Barcroft [Fri, 20 Sep 2002 08:24:01 +0000 (08:24 +0000)]
Add restrict type-qualifier.

21 years agoFix an error which prevented ssize_t from becoming defined. Add
Mike Barcroft [Fri, 20 Sep 2002 08:22:48 +0000 (08:22 +0000)]
Fix an error which prevented ssize_t from becoming defined.  Add
restrict type-qualifier.

21 years agoDon't peek into MD structures from MI code. The getcontext(3) and
Jonathan Mini [Fri, 20 Sep 2002 08:13:21 +0000 (08:13 +0000)]
Don't peek into MD structures from MI code. The getcontext(3) and
setcontext(3) functions check the validify of the mcontext_t structs.

21 years agoStraighten out get_params().
Poul-Henning Kamp [Fri, 20 Sep 2002 08:12:51 +0000 (08:12 +0000)]
Straighten out get_params().

Sponsored by: DARPA & NAI Labs.

21 years agoCurrent uses struct thread *td rather than struct proc *p.
Warner Losh [Fri, 20 Sep 2002 04:30:00 +0000 (04:30 +0000)]
Current uses struct thread *td rather than struct proc *p.