]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoClean up logging of security information a bit:
rwatson [Mon, 11 Mar 2002 19:26:29 +0000 (19:26 +0000)]
Clean up logging of security information a bit:

o Introduce /var/log/authentication.log, which will be the target for
  auth.info and authpriv.info by default.  Rotate on the same schedule
  as most other logs.  Create at installation.

o Remove logging of auth.info from /var/log/security.log, which will
  return to being only for security feature subsystems (such as ipfw,
  and so on).

This creates a special authentication log, which can now be searched
by scripts for authentication events.

22 years agoFix a bug in ufsdirhash_adjfree() that caused it to incorrectly
iedowse [Mon, 11 Mar 2002 19:13:22 +0000 (19:13 +0000)]
Fix a bug in ufsdirhash_adjfree() that caused it to incorrectly
update the free-space statistics in some cases. The problem affected
directory blocks when the free space dropped below the size of the
maximum allowed entry size. When this happened, the free-space
summary information could claim that there are no further blocks
that can fit a maximum-size entry, even if there are.

The effect of this bug is that the directory may be enlarged even
though there is space within the directory for the new entry. This
wastes disk space and has a negative impact on performance.

Fix it by correctly computing the dh_firstfree array index, adding
a helper macro for clarity. Put an extra sanity check into
ufsdirhash_checkblock() to detect the situation in future.

Found by: dwmalone
Reviewed by: dwmalone
MFC after: 1 week

22 years agoOn FreeBSD make usb_proc_t the same as d_thred_t always.
imp [Mon, 11 Mar 2002 16:38:53 +0000 (16:38 +0000)]
On FreeBSD make usb_proc_t the same as d_thred_t always.

22 years agoI missed one VOP_CLOSE in the previous commit.
phk [Mon, 11 Mar 2002 16:27:04 +0000 (16:27 +0000)]
I missed one VOP_CLOSE in the previous commit.

Pointed out by: bde

22 years agoBe more specific about when block major numbers disappeared from
joe [Mon, 11 Mar 2002 16:22:15 +0000 (16:22 +0000)]
Be more specific about when block major numbers disappeared from
the cdev switch.

22 years agoAdd security/sudo to the list of packages for disc #1. sudo is small
murray [Mon, 11 Mar 2002 15:08:41 +0000 (15:08 +0000)]
Add security/sudo to the list of packages for disc #1.  sudo is small
(< 100k), has no dependencies, and is very popular.

22 years agoAs a XXX bandaid open the mounted device READ/WRITE even if we only mount
phk [Mon, 11 Mar 2002 13:53:00 +0000 (13:53 +0000)]
As a XXX bandaid open the mounted device READ/WRITE even if we only mount
read-only.

The trouble here is that we don't reopen the device in read/write mode
when we remount in read/write mode resulting in a filesystem sending
write requests to a device which was only opened read/only.

I'm not quite sure how such a reopen would best be done and defer
the problem to more agile hackers.

22 years agoUpdate number of ports available.
murray [Mon, 11 Mar 2002 13:48:13 +0000 (13:48 +0000)]
Update number of ports available.

22 years agoRemove duplicated yacc nonterminals declarations, sort includes.
maxim [Mon, 11 Mar 2002 11:48:55 +0000 (11:48 +0000)]
Remove duplicated yacc nonterminals declarations, sort includes.
No functional changes from rev. 1.31.

Reviewed by: ru
Approved by: ru
MFC after: 1 week

22 years agoTry harder to lint without nonstandard stuff.
markm [Mon, 11 Mar 2002 11:32:55 +0000 (11:32 +0000)]
Try harder to lint without nonstandard stuff.

22 years agoPunt to attic file that moved in latest import.
markm [Mon, 11 Mar 2002 11:28:56 +0000 (11:28 +0000)]
Punt to attic file that moved in latest import.

22 years agoFix a prototype to match our headers. I am not convinced that doing
markm [Mon, 11 Mar 2002 11:26:17 +0000 (11:26 +0000)]
Fix a prototype to match our headers. I am not convinced that doing
this in this file is the correct way round. (Maybe our definition of
__assert is wrong?)

Anyway, perhaps we should revisit this later. For the time being,
building lint libraries here does not blow up.

22 years agoSparc64 support.
des [Mon, 11 Mar 2002 11:23:48 +0000 (11:23 +0000)]
Sparc64 support.

22 years agoFix silly one line error. (Half a .if statement left behind).
markm [Mon, 11 Mar 2002 11:20:45 +0000 (11:20 +0000)]
Fix silly one line error. (Half a .if statement left behind).

22 years agoAdd a bunch of functions.
maxim [Mon, 11 Mar 2002 10:45:18 +0000 (10:45 +0000)]
Add a bunch of functions.

PR: docs/32561
Reviewed by: deischen, ru
Approved by: ru
MFC after: 2 weeks

22 years agoRemove use of the bogus ioctl DIOCGPART.
phk [Mon, 11 Mar 2002 10:11:00 +0000 (10:11 +0000)]
Remove use of the bogus ioctl DIOCGPART.

It was used to initialize an unused variable, because ext2fs was
copy&pasted from UFS rather than copy,paste&cleaned from UFS.

Suggested by: bde

22 years agoSimplify the interface cloning framework by handling unit
mux [Mon, 11 Mar 2002 09:26:07 +0000 (09:26 +0000)]
Simplify the interface cloning framework by handling unit
unit allocation with a bitmap in the generic layer.  This
allows us to get rid of the duplicated rman code in every
clonable interface.

Reviewed by: brooks
Approved by: phk

22 years agoDon't protect savecore(8) from being run with a bad dumpdir
cjc [Mon, 11 Mar 2002 08:47:02 +0000 (08:47 +0000)]
Don't protect savecore(8) from being run with a bad dumpdir
argument. Don't fail silently, but let savecore(8) make noise. It
won't behave badly, it doesn't need protection.

At the same time, allow the administrator to have dumpdev enabled
while dumpdir (savecore(8)) is disabled and document how to do it.

PR: conf/35725

22 years agoAdd commented out GEOM line to NOTES
phk [Mon, 11 Mar 2002 08:27:23 +0000 (08:27 +0000)]
Add commented out GEOM line to NOTES

22 years agoAdd GEOM to conf/files.
phk [Mon, 11 Mar 2002 08:24:12 +0000 (08:24 +0000)]
Add GEOM to conf/files.

22 years agoAugment struct bio for GEOM.
phk [Mon, 11 Mar 2002 08:20:22 +0000 (08:20 +0000)]
Augment struct bio for GEOM.

22 years agoAdd a field to struct disk for GEOM
phk [Mon, 11 Mar 2002 08:17:40 +0000 (08:17 +0000)]
Add a field to struct disk for GEOM

22 years agoMake the disk_clone() routine more robust for abuse.
phk [Mon, 11 Mar 2002 08:08:02 +0000 (08:08 +0000)]
Make the disk_clone() routine more robust for abuse.
Sneak in a trivial bit of the GEOM stuff while we're here anyway.

22 years agoAdd the GEOM option.
phk [Mon, 11 Mar 2002 08:06:24 +0000 (08:06 +0000)]
Add the GEOM option.

22 years agoMark some arguments __unused.
phk [Mon, 11 Mar 2002 08:04:59 +0000 (08:04 +0000)]
Mark some arguments __unused.

22 years agoMake this compile again
luigi [Mon, 11 Mar 2002 08:03:50 +0000 (08:03 +0000)]
Make this compile again

Reported-by: Bruce Montague
22 years agoMake this compile again (increase MFS size, remove invalid option).
luigi [Mon, 11 Mar 2002 08:03:07 +0000 (08:03 +0000)]
Make this compile again (increase MFS size, remove invalid option).

Reported-by: Bruce Montague
22 years agoStop abusing the pgrpsess_lock.
tanimura [Mon, 11 Mar 2002 07:53:13 +0000 (07:53 +0000)]
Stop abusing the pgrpsess_lock.

22 years agoDo not lock the pgrpsess_lock exclusively across ttywait().
tanimura [Mon, 11 Mar 2002 07:51:08 +0000 (07:51 +0000)]
Do not lock the pgrpsess_lock exclusively across ttywait().

Spotted by: David Wolfskill <david@catwhisker.org>
Investigated by: rwatson

22 years agoCorrect a typo. (* that should've been &)
benno [Mon, 11 Mar 2002 07:09:42 +0000 (07:09 +0000)]
Correct a typo.  (* that should've been &)

22 years agoMake the handling of machdep.guessed_bootdev compiled on i386 only.
luigi [Mon, 11 Mar 2002 06:50:28 +0000 (06:50 +0000)]
Make the handling of machdep.guessed_bootdev compiled on i386 only.

22 years agoDue to changes in the handling of the #line directive by GCC(cpp) 3.1,
obrien [Mon, 11 Mar 2002 06:45:31 +0000 (06:45 +0000)]
Due to changes in the handling of the #line directive by GCC(cpp) 3.1,
we must now explicitly list the source directory with -I.

22 years agoFix detection of existing ssh host key, generate the new one
luigi [Mon, 11 Mar 2002 05:54:22 +0000 (05:54 +0000)]
Fix detection of existing ssh host key, generate the new one
in floppy.tree instead of mfs_tree.

Do not cleanup ${BUILDDIR}/floppy.tree, it might be useful to look
at it after an image has been built.

22 years agoMake appropriate changes to use devfs.
luigi [Mon, 11 Mar 2002 05:46:18 +0000 (05:46 +0000)]
Make appropriate changes to use devfs.
Add a reference to the fd_size variable to set floppy size.

22 years agoDefault to ee as EDITOR (some apps such as disklabel default to "vi"
luigi [Mon, 11 Mar 2002 05:42:14 +0000 (05:42 +0000)]
Default to ee as EDITOR (some apps such as disklabel default to "vi"
which is not available).

22 years agoUse machdep.guessed_bootdev to guess the boot device.
luigi [Mon, 11 Mar 2002 05:15:44 +0000 (05:15 +0000)]
Use machdep.guessed_bootdev to guess the boot device.

22 years agoAdd complete Sparc64 support.
obrien [Mon, 11 Mar 2002 04:41:42 +0000 (04:41 +0000)]
Add complete Sparc64 support.
Submitted by: tmm

Dike out vax support.

22 years ago* Support the Sparc64.
obrien [Mon, 11 Mar 2002 04:20:37 +0000 (04:20 +0000)]
* Support the Sparc64.
* Do not default to any particular platform.  Require that we explicitly
  support a particular platform.

22 years agoMake the diagnostics printfs less ugly.
dd [Mon, 11 Mar 2002 03:48:32 +0000 (03:48 +0000)]
Make the diagnostics printfs less ugly.

22 years agoFix some bugs that would prevent %fsr to be set correctly, and add
tmm [Mon, 11 Mar 2002 03:18:17 +0000 (03:18 +0000)]
Fix some bugs that would prevent %fsr to be set correctly, and add
support for fcmp and fcmpe instructions with a condition code
specification other than %fcc0.
This (primarily the first part) seems to fix a lot of problems that
people were seeing, e.g. perl and gawk failures.

Reported and analyzed by: wollman

22 years agoAccount for <machine/fsr.h> no longer being usable for assembler code.
tmm [Mon, 11 Mar 2002 03:13:02 +0000 (03:13 +0000)]
Account for <machine/fsr.h> no longer being usable for assembler code.

22 years agoFix __dtoul to work on sparc64 (it used a half-way v8 stack layout),
tmm [Mon, 11 Mar 2002 03:10:55 +0000 (03:10 +0000)]
Fix __dtoul to work on sparc64 (it used a half-way v8 stack layout),
and make it PIC-aware.

22 years agoAdd support for Simplified Direct Access Device in scsi_op_desc().
simokawa [Mon, 11 Mar 2002 03:08:17 +0000 (03:08 +0000)]
Add support for Simplified Direct Access Device in scsi_op_desc().

22 years agoFix the type of some constants, and make some macros safer by casting
tmm [Mon, 11 Mar 2002 03:04:28 +0000 (03:04 +0000)]
Fix the type of some constants, and make some macros safer by casting
the argument.

22 years agoAdd convenience macros to extract the cc0 and cc1 from format 2 and 3
tmm [Mon, 11 Mar 2002 03:03:35 +0000 (03:03 +0000)]
Add convenience macros to extract the cc0 and cc1 from format 2 and 3
instructions.

22 years agoSave/restore the %y register around calls to the C user trap handler;
tmm [Mon, 11 Mar 2002 02:53:03 +0000 (02:53 +0000)]
Save/restore the %y register around calls to the C user trap handler;
gcc emits the deprecated sparc v8 instructions that use this register
when optimizing for UltraSparc machines because they are apparetly
faster then their v9 counterpars there.

22 years agoWrong spelling of PIC.
obrien [Mon, 11 Mar 2002 02:50:03 +0000 (02:50 +0000)]
Wrong spelling of PIC.

Submitted by: jake

22 years agoDon't depend on ucred.h to include sys/queue.h for us.
dd [Mon, 11 Mar 2002 02:37:34 +0000 (02:37 +0000)]
Don't depend on ucred.h to include sys/queue.h for us.

22 years agoUse the pci_enable_* functions instead of manually fiddling with the
tmm [Mon, 11 Mar 2002 02:37:19 +0000 (02:37 +0000)]
Use the pci_enable_* functions instead of manually fiddling with the
command register.

Pointed out by: msmith

22 years agoBelatedly add a release note about destaticizing and modulizing of
dd [Mon, 11 Mar 2002 01:37:54 +0000 (01:37 +0000)]
Belatedly add a release note about destaticizing and modulizing of
snp(4), and note MFC of watch(8) -f.

22 years agoChase sysctl name.
dd [Mon, 11 Mar 2002 00:07:55 +0000 (00:07 +0000)]
Chase sysctl name.

Submitted by: Christopher Sharp <christopher_sharp@web.de>

22 years agoSync with csu/alpha/Makefile: build crt{i,n}.o.
obrien [Sun, 10 Mar 2002 23:33:49 +0000 (23:33 +0000)]
Sync with csu/alpha/Makefile: build crt{i,n}.o.
Leave crtbegin* to the compiler vendor.

22 years agoDon't assign strcmp to a variable called err and then compare it
dwmalone [Sun, 10 Mar 2002 23:12:43 +0000 (23:12 +0000)]
Don't assign strcmp to a variable called err and then compare it
with zero, just compare strcmp with zero. This fixes the same bug
which Maxim just fixed and fixes some odd style too.

PR: 35712
Reviewed by: arr

22 years agoRemove a mention of the worm(4) device that was missed when it was
cjc [Sun, 10 Mar 2002 22:34:56 +0000 (22:34 +0000)]
Remove a mention of the worm(4) device that was missed when it was
removed from MAKEDEV in 1.171.

PR: misc/35729
MFC after: 1 day

22 years agoCG superfluous prototype.
sobomax [Sun, 10 Mar 2002 22:33:04 +0000 (22:33 +0000)]
CG superfluous prototype.

22 years ago- Remove a number of extra newlines that do not belong here according to
eivind [Sun, 10 Mar 2002 21:52:48 +0000 (21:52 +0000)]
- Remove a number of extra newlines that do not belong here according to
  style(9)
- Minor space adjustment in cases where we have "( ", " )", if(), return(),
  while(), for(), etc.
- Add /* SYMBOL */ after a few #endifs.

Reviewed by: alc

22 years agoDon't build xlint until surgery is finished.
markm [Sun, 10 Mar 2002 21:15:58 +0000 (21:15 +0000)]
Don't build xlint until surgery is finished.

22 years agoCURRENT has devfs, so we do not need to specify what devices we
luigi [Sun, 10 Mar 2002 21:12:23 +0000 (21:12 +0000)]
CURRENT has devfs, so we do not need to specify what devices we
want on the MFS image. Update the config files accordingly.

22 years agoUncomment the entry for a getty on the serial port. Boxes with
luigi [Sun, 10 Mar 2002 21:11:35 +0000 (21:11 +0000)]
Uncomment the entry for a getty on the serial port. Boxes with
a serial console can make use of it.

22 years agoAdd back the "sis" driver, we had some room left...
luigi [Sun, 10 Mar 2002 21:10:25 +0000 (21:10 +0000)]
Add back the "sis" driver, we had some room left...

22 years agoSilence a warning when compile without atapi devices.
sos [Sun, 10 Mar 2002 21:03:04 +0000 (21:03 +0000)]
Silence a warning when compile without atapi devices.

22 years agoWith devfs, we do not need to initialize pty's permissions.
luigi [Sun, 10 Mar 2002 20:47:26 +0000 (20:47 +0000)]
With devfs, we do not need to initialize pty's permissions.

22 years agoThe probable boot device is "machdep.guessed_bootdev".
luigi [Sun, 10 Mar 2002 20:37:04 +0000 (20:37 +0000)]
The probable boot device is "machdep.guessed_bootdev".

22 years agoAdd an implementation of cpu_throw() and make restorectx() simply branch
dfr [Sun, 10 Mar 2002 20:20:31 +0000 (20:20 +0000)]
Add an implementation of cpu_throw() and make restorectx() simply branch
to the tail of cpu_switch.

22 years agoDon't try to print the arguments if the value of bsp is outside the
dfr [Sun, 10 Mar 2002 20:19:32 +0000 (20:19 +0000)]
Don't try to print the arguments if the value of bsp is outside the
kernel - its asking for trouble.

22 years agoExport a (machine dependent) kernel variable bootdev as
luigi [Sun, 10 Mar 2002 20:08:44 +0000 (20:08 +0000)]
Export a (machine dependent) kernel variable bootdev as
machdep.guessed_bootdev, and add code to sysctl to parse its value
and give a (not necessarily correct) name to the device we booted
from (the main motivation for this code is to use the info in the
PicoBSD boot scripts, and the impact on the kernel is minimal).

NOTE: the information available in bootdev is not always reliable,
so you should not trust it too much.  The parsing code is the same
as in boot2.c, and cannot cover all cases -- as it is, it seems to
work fine with floppies and IDE disks recognised by the BIOS. It
_should_ work as well with SCSI disks recognised by the BIOS.
Booting from a CDROM in floppy emulation will return /dev/fd0 (because
this is what the BIOS tells us).
Booting off the network (e.g. with etherboot) leaves bootdev unset so
the value will be printed as "invalid (0xffffffff)".

Finally, this feature might go away at some point, hopefully when we
have a more reliable way to get the same information.

MFC-after: 5 days

22 years agoFix a breakage introduced in rev.1.75 (supposedly style cleanup), which results
sobomax [Sun, 10 Mar 2002 19:20:01 +0000 (19:20 +0000)]
Fix a breakage introduced in rev.1.75 (supposedly style cleanup), which results
in "missing dependencies" error when loading some kld modules. It is sad to
see how often these days style cleanus break doesn't broken things. Perhaps
people should recall good old principle: "don't fix it if it isn't broken".

22 years agoAdded upcoming FreeBSD 4.6
wosch [Sun, 10 Mar 2002 19:00:37 +0000 (19:00 +0000)]
Added upcoming FreeBSD 4.6

22 years agoFreeBSD 4.5 is releaseed "29 Jan 2002" (not 20 Jan)
wosch [Sun, 10 Mar 2002 18:57:44 +0000 (18:57 +0000)]
FreeBSD 4.5 is releaseed "29 Jan 2002" (not 20 Jan)

PR:  misc/35738
Submitted by: WAKABAYASHI Susumu <susumu@wakabaya.net>

22 years agoAllow '.' in identifiers - some ia64 register names contain '.'.
dfr [Sun, 10 Mar 2002 17:08:24 +0000 (17:08 +0000)]
Allow '.' in identifiers - some ia64 register names contain '.'.

22 years agoUse the right value for the region length in parse_spill_mask.
dfr [Sun, 10 Mar 2002 17:03:45 +0000 (17:03 +0000)]
Use the right value for the region length in parse_spill_mask.

22 years agoDo not call a synthesizer with a sequencer lock held.
tanimura [Sun, 10 Mar 2002 16:56:38 +0000 (16:56 +0000)]
Do not call a synthesizer with a sequencer lock held.

22 years agoFilesystem translation
gioria [Sun, 10 Mar 2002 15:37:56 +0000 (15:37 +0000)]
Filesystem translation

22 years ago/var/log/security gets almost no (if not no) activity on many FreeBSD
rwatson [Sun, 10 Mar 2002 15:20:36 +0000 (15:20 +0000)]
/var/log/security gets almost no (if not no) activity on many FreeBSD
systems due to sshd not using the security log class.  Tweak syslog.conf
so that /var/log/security also gets a useful set of
authentication-related logging.

Submitted by: aeonflux@synapse.subneural.net
MFC after: 4 weeks

22 years agoSetlocale returns static buffer, don't assume it will be unchanged
ache [Sun, 10 Mar 2002 14:54:59 +0000 (14:54 +0000)]
Setlocale returns static buffer, don't assume it will be unchanged

Pointed by: phantom

22 years ago"Base system/contributed software " section translation
gioria [Sun, 10 Mar 2002 14:50:34 +0000 (14:50 +0000)]
"Base system/contributed software " section translation

22 years agoAdding Multimedia section translation
gioria [Sun, 10 Mar 2002 14:05:41 +0000 (14:05 +0000)]
Adding Multimedia section translation

22 years agoCheck the <channel> arg a bit more.
sos [Sun, 10 Mar 2002 13:59:00 +0000 (13:59 +0000)]
Check the <channel> arg a bit more.

Submitted by: David Malone <dwmalone@maths.tcd.ie>

22 years agoPCCARD support translation
gioria [Sun, 10 Mar 2002 13:49:02 +0000 (13:49 +0000)]
PCCARD support translation

22 years agoAdding Disk and storage translation
gioria [Sun, 10 Mar 2002 12:33:02 +0000 (12:33 +0000)]
Adding Disk and storage translation

22 years agoAdd SONY VAIO psm controller ISA-PnP ID.
takawata [Sun, 10 Mar 2002 12:22:17 +0000 (12:22 +0000)]
Add SONY VAIO psm controller ISA-PnP ID.

22 years agocosmetic: spell 'cashe' as 'cache'
billf [Sun, 10 Mar 2002 12:08:28 +0000 (12:08 +0000)]
cosmetic: spell 'cashe' as 'cache'

22 years agoMake the proposed name arg to dev_stdclone() const.
phk [Sun, 10 Mar 2002 10:50:05 +0000 (10:50 +0000)]
Make the proposed name arg to dev_stdclone() const.

22 years agoDocument `sysctl variable=/dev/foo' syntax.
dd [Sun, 10 Mar 2002 09:53:39 +0000 (09:53 +0000)]
Document `sysctl variable=/dev/foo' syntax.

PR: 34184
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>

22 years agoLink scbus(4) to scsi(4). Most of the other CAM devices have their
dd [Sun, 10 Mar 2002 09:21:50 +0000 (09:21 +0000)]
Link scbus(4) to scsi(4).  Most of the other CAM devices have their
own manual pages, but this is better than nothing until someone writes
a real scbus(4).

PR: 35641
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoDon't refer the reader to look for a word that doesn't exist anywhere
dd [Sun, 10 Mar 2002 09:20:28 +0000 (09:20 +0000)]
Don't refer the reader to look for a word that doesn't exist anywhere
else in the page.

PR: 35623
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoThe chapter on kernel debugging is now in the Developers' Handbook.
dd [Sun, 10 Mar 2002 09:15:22 +0000 (09:15 +0000)]
The chapter on kernel debugging is now in the Developers' Handbook.
Add a trailing slash to a URL while I'm here.

PR: 35637
Submitted by: Gary W. Swearingen <swear@blarg.net>, setantae@submonkey.net

22 years agoRemove inappropriate .Op calls in examples.
dd [Sun, 10 Mar 2002 09:10:06 +0000 (09:10 +0000)]
Remove inappropriate .Op calls in examples.

PR: 35689
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoMinor English fixes.
dd [Sun, 10 Mar 2002 08:50:53 +0000 (08:50 +0000)]
Minor English fixes.

PR: 35730
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoFix one genuine bug and a potential one:
luigi [Sun, 10 Mar 2002 08:29:53 +0000 (08:29 +0000)]
Fix one genuine bug and a potential one:

  -#if defined(__FreeBSD__) && __FreeBSD_version__ >= 500023
  +#if defined(__FreeBSD__) && __FreeBSD_version >= 500023

is a genuine bug -- __FreeBSD_version__ does not exist.
The other one:

  -#if (__FreeBSD__ < 5)
  +#if (__FreeBSD_version < 500000)

pops out when you cross-compile the code:

  __FreeBSD__ is a compiler predefine,
  __FreeBSD_version is defined in <sys/param.h> .

Given that in this case (and all others in sys/dev/usb and sys/i4b)
the goal is to adapt to a different kernel interface, and not to
a compiler feature, I believe the correct form is the second one
(in the best case the two are synonyms so the change does not break
anything anyways).

22 years agoFree allocated buffer at siodetach().
nyan [Sun, 10 Mar 2002 07:22:42 +0000 (07:22 +0000)]
Free allocated buffer at siodetach().

MFC after: 3 days

22 years agoo Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>
mike [Sun, 10 Mar 2002 06:42:27 +0000 (06:42 +0000)]
o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>
  for POSIX.1-2001 conformance.
o Add magic to <netinet/in.h> and <netinet6/in6.h> to prevent
  redefining INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
o Add a note about missing typedefs in <arpa/inet.h>.

22 years agoMFi386: revision 1.501
nyan [Sun, 10 Mar 2002 06:19:37 +0000 (06:19 +0000)]
MFi386: revision 1.501

22 years agoSpell-check and fix some other typos.
bmah [Sun, 10 Mar 2002 02:52:44 +0000 (02:52 +0000)]
Spell-check and fix some other typos.

Pointed out by: tmm

22 years agoCondition the compilation of trapwrite() on I386_CPU.
alc [Sun, 10 Mar 2002 02:11:38 +0000 (02:11 +0000)]
Condition the compilation of trapwrite() on I386_CPU.

22 years agoAdd sparc64 ifdefs.
jake [Sun, 10 Mar 2002 01:34:22 +0000 (01:34 +0000)]
Add sparc64 ifdefs.

22 years agoMake this build on sparc64.
jake [Sun, 10 Mar 2002 01:25:47 +0000 (01:25 +0000)]
Make this build on sparc64.

22 years agoIncrease VM_KMEM_SIZE to 16 megs from 12. Define VM_KMEM_SIZE_SCALE so that
jake [Sat, 9 Mar 2002 23:35:50 +0000 (23:35 +0000)]
Increase VM_KMEM_SIZE to 16 megs from 12.  Define VM_KMEM_SIZE_SCALE so that
the number of physical pages per KVA page allocated scales properly with
memory size.  This fixes problems with kmem_map being too small.

Noticed by: mike, wollman
Submitted by: tmm

22 years agoRemove __P
alfred [Sat, 9 Mar 2002 22:44:37 +0000 (22:44 +0000)]
Remove __P

22 years agoAdd a driver for the mem and kmem devices, based off the i386 version.
tmm [Sat, 9 Mar 2002 22:33:16 +0000 (22:33 +0000)]
Add a driver for the mem and kmem devices, based off the i386 version.