]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoMake -n flag compliant to the Single Unix Specification.
chris [Mon, 23 Aug 1999 01:17:58 +0000 (01:17 +0000)]
Make -n flag compliant to the Single Unix Specification.

To quote their ls(1) specification:

   -n
          The same as -l, except that the owner's UID and GID numbers are
          written, rather than the associated character strings.

Reviewed by: green

24 years agoAn explination of how to keep these files in good working order.
rgrimes [Mon, 23 Aug 1999 01:16:26 +0000 (01:16 +0000)]
An explination of how to keep these files in good working order.

Reviewed by: bde

24 years agoRemove cross-reference to removed man page od.4
chris [Sun, 22 Aug 1999 23:52:01 +0000 (23:52 +0000)]
Remove cross-reference to removed man page od.4

sd(4) reference was also removed in the sentence:
  "In general the interfaces are similar to
   those described by wd(4) sd(4) and od(4)."

24 years agoThe previous fix didn't do anything if you didn't have pnp. The ICU
peter [Sun, 22 Aug 1999 23:49:00 +0000 (23:49 +0000)]
The previous fix didn't do anything if you didn't have pnp.  The ICU
macros are only called in the !APIC_IO case, include icu.h there.

24 years agoFinish unbreaking autoconf.c includes (for non-SMP.)
green [Sun, 22 Aug 1999 23:44:33 +0000 (23:44 +0000)]
Finish unbreaking autoconf.c includes (for non-SMP.)

24 years agoRemove od.4 -- Kenneth Merry writes:
chris [Sun, 22 Aug 1999 23:40:41 +0000 (23:40 +0000)]
Remove od.4 -- Kenneth Merry writes:

 It's not supported any more.  It was never ported to CAM, and that
 functionality has been taken over by the da driver.  So the man page can be
 removed.

Reviewed by: ken

24 years agoAallow ppp to work with Nortel Networks Extranet Switch
brian [Sun, 22 Aug 1999 23:32:01 +0000 (23:32 +0000)]
Aallow ppp to work with Nortel Networks Extranet Switch
product and Windows NT tunneling.

Submitted by: Chain Lee <chain@nortelnetworks.com>

24 years agoppp_alias -> ppp_nat
brian [Sun, 22 Aug 1999 23:26:05 +0000 (23:26 +0000)]
ppp_alias -> ppp_nat

Submitted by: Josef L. Karthauser <joe@FreeBSD.org.uk>

24 years agoDecrease the isdn recovery time to 1 second and mention that it
brian [Sun, 22 Aug 1999 23:18:42 +0000 (23:18 +0000)]
Decrease the isdn recovery time to 1 second and mention that it
should always be less than ppps redial timeout.

24 years agoNOALIAS -> NONAT
brian [Sun, 22 Aug 1999 23:17:57 +0000 (23:17 +0000)]
NOALIAS -> NONAT
Reminded by: jkh

24 years agoMake a comment I added a bit nicer.
green [Sun, 22 Aug 1999 22:32:41 +0000 (22:32 +0000)]
Make a comment I added a bit nicer.

24 years agoFix a small typo (missing comma) to make the alpha kernel build again
gallatin [Sun, 22 Aug 1999 21:47:32 +0000 (21:47 +0000)]
Fix a small typo (missing comma) to make the alpha kernel build again

24 years agoMajor PicoBSD update by luigi with some debugging help from myself.
dwhite [Sun, 22 Aug 1999 21:45:24 +0000 (21:45 +0000)]
Major PicoBSD update by luigi with some debugging help from myself.

. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
  type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel

THIS IS BROKEN ON CURRENT.  I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.

Submitted by: luigi

24 years agoOops, that wasn't so clever after all. struct isa_device is still a
peter [Sun, 22 Aug 1999 21:44:35 +0000 (21:44 +0000)]
Oops, that wasn't so clever after all.  struct isa_device is still a
prerequisite for this old pnp.h.

24 years agoZap a heap of unused cruft now. We don't need the ISA/EISA/PCI hooks
peter [Sun, 22 Aug 1999 19:59:29 +0000 (19:59 +0000)]
Zap a heap of unused cruft now.  We don't need the ISA/EISA/PCI hooks
here any more as they are self identifying.  Only PNP remains but that
will be replaced any day now.
Also reword a comment that had been XXX'ed to death to make it clear[er]
why we don't enable interrupts before probing.
PCIBIOS interrupt routing controls may make this possible to fix one day.

24 years agoTake advantage of the apm/npx code and let them identify themselves rather
peter [Sun, 22 Aug 1999 19:56:55 +0000 (19:56 +0000)]
Take advantage of the apm/npx code and let them identify themselves rather
than having explicit hooks here.
Treat the eisa/isa attach a little differently so that we defer the
decision about to attach eisa/isa to the motherboard directly only if
the PCI probe (if it exists) fails to turn up a PCI->EISA/ISA bridge.
This restores the original device geometry where ISA and/or EISA attach
to their bridge rather than bypassing and going to the root.

24 years agoMake the identify routine add itself with priority 100 to make sure it
peter [Sun, 22 Aug 1999 19:54:11 +0000 (19:54 +0000)]
Make the identify routine add itself with priority 100 to make sure it
goes after the npx/apm devices and any other motherboard devices that
may get added down the track.

24 years agoAdd an identify method to allow npx to arrange itself to be attached to
peter [Sun, 22 Aug 1999 19:52:51 +0000 (19:52 +0000)]
Add an identify method to allow npx to arrange itself to be attached to
the nexus without explicit code in the nexus to do so.

24 years agoAdd an identify method to allow apm to attach itself to the nexus
peter [Sun, 22 Aug 1999 19:51:33 +0000 (19:51 +0000)]
Add an identify method to allow apm to attach itself to the nexus
without hooks in there.

24 years agomake pnp.h self contained, for what good it'll do since it's days are
peter [Sun, 22 Aug 1999 19:46:05 +0000 (19:46 +0000)]
make pnp.h self contained, for what good it'll do since it's days are
numbered (new pnp-aware isa code in the pipeline).

24 years agoGrammar and formatting touch-ups to comments.
hoek [Sun, 22 Aug 1999 19:42:40 +0000 (19:42 +0000)]
Grammar and formatting touch-ups to comments.

24 years agoTypo: 102 => 192 (PR: docs/13310 - Maxim Sobolev <sobomax@altavista.net>)
hoek [Sun, 22 Aug 1999 19:23:33 +0000 (19:23 +0000)]
Typo: 102 => 192  (PR: docs/13310 - Maxim Sobolev <sobomax@altavista.net>)

24 years agoSlightly sanitize the isa/eisa bridge detection. The pci->eisa bridge
peter [Sun, 22 Aug 1999 19:10:39 +0000 (19:10 +0000)]
Slightly sanitize the isa/eisa bridge detection.  The pci->eisa bridge
logic (I use the term loosely) was a bit whacky.

24 years agoThe vty monster has feasted and now provides 8 vtys by default.
hoek [Sun, 22 Aug 1999 19:09:19 +0000 (19:09 +0000)]
The vty monster has feasted and now provides 8 vtys by default.

PR: docs/13310 (Maxim Soboleva <sobomax@altavista.ne>)

24 years agoCatch an at_shutdown I didn't think of in the last batch.
msmith [Sun, 22 Aug 1999 18:50:43 +0000 (18:50 +0000)]
Catch an at_shutdown I didn't think of in the last batch.

Note to self: port to AS2100 so as to have a test system.

Submitted by: jkh

24 years agoUse the final version of the patch for the overflow, not the next to
imp [Sun, 22 Aug 1999 17:24:25 +0000 (17:24 +0000)]
Use the final version of the patch for the overflow, not the next to
final.

Noticed by: eivind

24 years agoGo back to using microtime() to get the timestamps for {f,l,}utimes(path,
jdp [Sun, 22 Aug 1999 16:50:30 +0000 (16:50 +0000)]
Go back to using microtime() to get the timestamps for {f,l,}utimes(path,
NULL) for now.  Bruce says I jumped the gun with my change in
revision 1.131, or maybe it should use nanotime(), or maybe it
shouldn't be decided in the VFS layer at all.  I'm leaving it with
the old behavior until the Trans-Pacific Internet Vulcan Mind Meld
yields fuller understanding.

24 years agoMention that the 3Com 3cSOHO100-TX adapter (cheap version of the 3c905B) is
wpaul [Sun, 22 Aug 1999 16:34:52 +0000 (16:34 +0000)]
Mention that the 3Com 3cSOHO100-TX adapter (cheap version of the 3c905B) is
supported, as well as the 3c980B server adapter (newer rev of the 3c980,
same PCI ID) and the 3c905C-TX.

24 years ago1) Add HEADER section. Similar to CODE.
n_hibma [Sun, 22 Aug 1999 16:21:29 +0000 (16:21 +0000)]
1) Add HEADER section. Similar to CODE.
2) deindent the two sections (CODE and HEADER), based on the indent found
   on the first line of the section; to make the output more readable.

24 years agoPut full month names in another form ("genitive case"), the only form
dt [Sun, 22 Aug 1999 16:12:13 +0000 (16:12 +0000)]
Put full month names in another form ("genitive case"), the only form
suitable for printing dates (like in strftime(... "%e %B %Y" ...)).

24 years agoModify yp_mkdb so that it only checks for bogus '+' and '-' characters
wpaul [Sun, 22 Aug 1999 15:34:47 +0000 (15:34 +0000)]
Modify yp_mkdb so that it only checks for bogus '+' and '-' characters
in source input if the -f flag is used, and modify Makefile.yp to only
use -f for the passwd, master.passwd and group maps. These should be
the only ones for which the + and - characters have special meaning
that make it important for us to avoid letting them into any of the map
databases. In some cases (namely the automounter maps) we have to allow
at least the - character through in order to create the map properly.

This closes PR #8699.

24 years agoAdd a missing underscore that made EVENTHANDLER_FAST_INVOKE broken.
green [Sun, 22 Aug 1999 15:21:52 +0000 (15:21 +0000)]
Add a missing underscore that made EVENTHANDLER_FAST_INVOKE broken.

24 years agoFix `key release event prevent suspend' problem. We don't need
iwasaki [Sun, 22 Aug 1999 14:48:00 +0000 (14:48 +0000)]
Fix `key release event prevent suspend' problem.  We don't need
`sleep 1; zzz' trick now.

- APM BIOS Call for suspend/standby now should be issued with delay.
- Delay for suspend/standby can be adjusted by using sysctl(8) interface
  (eg. sysctl -w machdep.apm_suspend_delay=3).

24 years ago- Remove cdevsw entry points in individual keyboard drivers;
yokota [Sun, 22 Aug 1999 09:52:33 +0000 (09:52 +0000)]
- Remove cdevsw entry points in individual keyboard drivers;
  instead, use generic entry points for all drivers.
- Eliminate bogus makedev().
- Eliminate softc in the lower drivers, as it is no longer necessary.

Submitted (95%) by: phk

24 years agoRevise description on moused options:
yokota [Sun, 22 Aug 1999 06:12:58 +0000 (06:12 +0000)]
Revise description on moused options:
- Clearly distinguish PS/2, bus, and serial protocols.
- Explicitly state that serial mouse protocols don't work with
  the PS/2 and bus mice.

24 years agoImprove the detection code for GlidePoint. This is still a kludge,
yokota [Sun, 22 Aug 1999 06:11:52 +0000 (06:11 +0000)]
Improve the detection code for GlidePoint.  This is still a kludge,
but better than before...

PR: kern/13215

24 years agoMake "s_unlock" an inline function. (Inlining this function takes
alc [Sun, 22 Aug 1999 05:37:18 +0000 (05:37 +0000)]
Make "s_unlock" an inline function.  (Inlining this function takes
less space than calling it.  A callable version still exists for
use by some assembly code.)

24 years agoFix a temp file race occurring only when -j is used.
hoek [Sun, 22 Aug 1999 05:28:13 +0000 (05:28 +0000)]
Fix a temp file race occurring only when -j is used.

Noticed by: ru
Obtained from: OpenBSD

24 years agoFix assorted style problems and bring up to date.
jkh [Sun, 22 Aug 1999 05:14:23 +0000 (05:14 +0000)]
Fix assorted style problems and bring up to date.

Submitted by: Alexey M. Zelkin <phantom@cris.net>
PR: 13271

24 years agoFix potential buffer overflow when using gtags.
hoek [Sun, 22 Aug 1999 03:48:31 +0000 (03:48 +0000)]
Fix potential buffer overflow when using gtags.

Submitted by: Shigio Yamaguchi [3]shigio@wafu.netgate.net (gtags author)
PR: bin/7607

24 years agoAssorted bug fixes.
yokota [Sun, 22 Aug 1999 03:31:13 +0000 (03:31 +0000)]
Assorted bug fixes.

keyboard.c
- Call tcsetattr() in VGLKeyboardEnd() to restore tty, only when
  tty attributes have been previously saved.
  PR: misc/9524
  Submitted by: Katusyuki 'kei' Maeda (kei@nanet.co.jp)
- Set up the tty raw mode correctly.

main.c
- Restore VESA_800x600 raster text mode correctly in VGLEnd().
  Submitted by: des

text.c
- Allocate the correct size of a font buffer in VGLSetFontFile().
  I forgot the submitter ;-(

simple.c, bitmap.c
- Fix address calculation for the VGA mode X in VGLGetXY() and
  VGLBitmapCopy().
- Fix typo (dsty -> dstx) in __VGLBitmapCopy().

Reviewed by: sos

24 years agoUse the new vfs_timestamp() function to create the timestamps used
jdp [Sun, 22 Aug 1999 01:46:57 +0000 (01:46 +0000)]
Use the new vfs_timestamp() function to create the timestamps used
by utimes(path, NULL).  This gives them the same precision as the
timestamps produced by write operations.  Do likewise for lutimes()
and futimes().

Suggested by bde.

24 years agoAllow authkey to be changed independently of the current phase.
brian [Sun, 22 Aug 1999 01:29:53 +0000 (01:29 +0000)]
Allow authkey to be changed independently of the current phase.

24 years agoCrap, I knew I was going to forget something: add missing miibus method
wpaul [Sun, 22 Aug 1999 00:56:39 +0000 (00:56 +0000)]
Crap, I knew I was going to forget something: add missing miibus method
description file which slipped through the cracks.

Pointed out by: Doug <Doug@gorean.org>

24 years agoSupport full-precision file timestamps. Until now, only the seconds
jdp [Sun, 22 Aug 1999 00:15:16 +0000 (00:15 +0000)]
Support full-precision file timestamps.  Until now, only the seconds
have been maintained, and that is still the default.  A new sysctl
variable "vfs.timestamp_precision" can be used to enable higher
levels of precision:

      0 = seconds only; nanoseconds zeroed (default).
      1 = seconds and nanoseconds, accurate within 1/HZ.
      2 = seconds and nanoseconds, truncated to microseconds.
    >=3 = seconds and nanoseconds, maximum precision.

Level 1 uses getnanotime(), which is fast but can be wrong by up
to 1/HZ.  Level 2 uses microtime().  It might be desirable for
consistency with utimes() and friends, which take timeval structures
rather than timespecs.  Level 3 uses nanotime() for the higest
precision.

I benchmarked levels 0, 1, and 3 by copying a 550 MB tree with
"cpio -pdu".  There was almost negligible difference in the system
times -- much less than 1%, and less than the variation among
multiple runs at the same level.  Bruce Evans dreamed up a torture
test involving 1-byte reads with intervening fstat() calls, but
the cpio test seems more realistic to me.

This feature is currently implemented only for the UFS (FFS and
MFS) filesystems.  But I think it should be easy to support it in
the others as well.

An earlier version of this was reviewed by Bruce.  He's not to
blame for any breakage I've introduced since then.

Reviewed by: bde (an earlier version of the code)

24 years agoRemove two unused variable declarations.
alc [Sun, 22 Aug 1999 00:01:46 +0000 (00:01 +0000)]
Remove two unused variable declarations.

24 years agoClean up after removing sys/eventhandler.h from sys/systm.h at the last
msmith [Sat, 21 Aug 1999 22:10:49 +0000 (22:10 +0000)]
Clean up after removing sys/eventhandler.h from sys/systm.h at the last
minute.  This should cover all of the missed cases (and should let LINT
build again).

24 years agoDon't print a "," after the last superblock.
billf [Sat, 21 Aug 1999 22:07:27 +0000 (22:07 +0000)]
Don't print a "," after the last superblock.

Submitted by: adrian

24 years agoAdd missing include.
billf [Sat, 21 Aug 1999 21:35:59 +0000 (21:35 +0000)]
Add missing include.

Submitted by: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Reviewed by: Alex Perel <veers@disturbed.net>

24 years agoUfff. cflags -> chflags. I could have sworn this change has been in
imp [Sat, 21 Aug 1999 20:54:40 +0000 (20:54 +0000)]
Ufff.  cflags -> chflags.  I could have sworn this change has been in
my last three successful make buildworlds...

Noticed by: phk

24 years agoMention rwhod(8) in the SEE ALSO section
brian [Sat, 21 Aug 1999 20:26:59 +0000 (20:26 +0000)]
Mention rwhod(8) in the SEE ALSO section

24 years agoRemove MII/PHY related junk from here. It's not needed anymore.
wpaul [Sat, 21 Aug 1999 19:03:37 +0000 (19:03 +0000)]
Remove MII/PHY related junk from here. It's not needed anymore.

24 years agoTo christen the brand new security category for syslog, we get IPFW
green [Sat, 21 Aug 1999 18:35:55 +0000 (18:35 +0000)]
To christen the brand new security category for syslog, we get IPFW
using syslog(3) (log(9)) for its various purposes! This long-awaited
change also includes such nice things as:
* macros expanding into _two_ comma-delimited arguments!
* snprintf!
* more snprintf!
* linting and criticism by more people than you can shake a stick at!
* a slightly more uniform message style than before!
 and last but not least
* no less than 5 rewrites!

Reviewed by: committers

24 years agoThis commit adds device driver support for the Sundance Technologies ST201
wpaul [Sat, 21 Aug 1999 18:34:58 +0000 (18:34 +0000)]
This commit adds device driver support for the Sundance Technologies ST201
PCI fast ethernet controller. Currently, the only card I know that uses
this chip is the D-Link DFE-550TX. (Don't ask me where to buy these: the
only cards I have are samples sent to me by D-Link.)

This driver is the first to make use of the miibus code once I'm sure
it all works together nicely, I'll start converting the other drivers.

The Sundance chip is a clone of the 3Com 3c90x Etherlink XL design
only with its own register layout. Support is provided for ifmedia,
hardware multicast filtering, bridging and promiscuous mode.

24 years agoFix possible buffer overflow with finger and fingerd.
imp [Sat, 21 Aug 1999 18:25:38 +0000 (18:25 +0000)]
Fix possible buffer overflow with finger and fingerd.

Submitted by: Lukasz Luzar <lluzar@noname.kki.krakow.pl> and
Eivind Eklund <eivind@yes.no>

This patch is actually a combination of those two patches.

24 years agoThis is the addition of a syslog(3) security.* top-level category. This
green [Sat, 21 Aug 1999 18:24:29 +0000 (18:24 +0000)]
This is the addition of a syslog(3) security.* top-level category. This
should be used from now on for anything security but not auth-related.
Included are updates for all relevant manpages and also to /etc files,
creating a new /var/log/security. Nothing in the system logs to
/var/log/security yet as of the time of this commit.

Reviewed by: rgrimes, imp, chris

24 years agoUse more compiler friendly test for overflow.
phk [Sat, 21 Aug 1999 18:22:44 +0000 (18:22 +0000)]
Use more compiler friendly test for overflow.

Submitted by: bde

24 years agoClear all file flags when taking ownership of devices. Do not ignore
imp [Sat, 21 Aug 1999 18:19:49 +0000 (18:19 +0000)]
Clear all file flags when taking ownership of devices.  Do not ignore
chown failures in some places, but instead log them like we do all
other errors.

24 years agoRemove all flags from devices before we try to assert ownership and
imp [Sat, 21 Aug 1999 18:15:55 +0000 (18:15 +0000)]
Remove all flags from devices before we try to assert ownership and
set permissions.

Bug not fixed:
We silently ignore failures of chflags, chmod and chown.

24 years agoadded usb0 to 'all' target for usbd(8)
gehenna [Sat, 21 Aug 1999 18:01:42 +0000 (18:01 +0000)]
added usb0 to 'all' target for usbd(8)

24 years agoAdd warnings, ala mktemp, to tempnam and tmpnam as a reminder that
imp [Sat, 21 Aug 1999 17:56:44 +0000 (17:56 +0000)]
Add warnings, ala mktemp, to tempnam and tmpnam as a reminder that
these are inherently unsafe interfaces.

Do not allow TMPDIR to override path for setuid/setgid programs.

24 years agoThis commit adds support for the NetBSD MII abstraction layer and
wpaul [Sat, 21 Aug 1999 17:40:53 +0000 (17:40 +0000)]
This commit adds support for the NetBSD MII abstraction layer and
MII-compliant PHY drivers. Many 10/100 ethernet NICs available today
either use an MII transceiver or have built-in transceivers that can
be programmed using an MII interface. It makes sense then to separate
this support out into common code instead of duplicating it in all
of the NIC drivers. The mii code also handles all of the media
detection, selection and reporting via the ifmedia interface.

This is basically the same code from NetBSD's /sys/dev/mii, except
it's been adapted to FreeBSD's bus architecture. The advantage to this
is that it automatically allows everything to be turned into a
loadable module. There are some common functions for use in drivers
once an miibus has been attached (mii_mediachg(), mii_pollstat(),
mii_tick()) as well as individual PHY drivers. There is also a
generic driver for all PHYs that aren't handled by a specific driver.
It's possible to do this because all 10/100 PHYs implement the same
general register set in addition to their vendor-specific register
sets, so for the most part you can use one driver for pretty much
any PHY. There are a couple of oddball exceptions though, hence
the need to have specific drivers.

There are two layers: the generic "miibus" layer and the PHY driver
layer. The drivers are child devices of "miibus" and the "miibus" is
a child of a given NIC driver. The "miibus" code and the PHY drivers
can actually be compiled and kldoaded as completely separate modules
or compiled together into one module. For the moment I'm using the
latter approach since the code is relatively small.

Currently there are only three PHY drivers here: the generic driver,
the built-in 3Com XL driver and the NS DP83840 driver. I'll be adding
others later as I convert various NIC drivers to use this code.

I realize that I'm cvs adding this stuff instead of importing it
onto a separate vendor branch, but in my opinion the import approach
doesn't really offer any significant advantage: I'm going to be
maintaining this stuff and writing my own PHY drivers one way or
the other.

24 years agoThe "depends-list" target disappeared in r.1.300 (Dec. 12, 1998) of
hoek [Sat, 21 Aug 1999 17:22:29 +0000 (17:22 +0000)]
The "depends-list" target disappeared in r.1.300 (Dec. 12, 1998) of
bsd.port.mk.  Replace its occurrence in this file with a synonym.

PR: docs/13255

24 years agoQuiet some overly chatty debug output, do some minor cleanups to
jkh [Sat, 21 Aug 1999 07:13:20 +0000 (07:13 +0000)]
Quiet some overly chatty debug output, do some minor cleanups to
the DHCP support code.

24 years agoMFS: Revert shared lib major version number back to 3.
obrien [Sat, 21 Aug 1999 07:10:11 +0000 (07:10 +0000)]
MFS:  Revert shared lib major version number back to 3.

24 years agoDetect if the the offset used to read from a raw device loose bits
phk [Sat, 21 Aug 1999 06:48:16 +0000 (06:48 +0000)]
Detect if the the offset used to read from a raw device loose bits
when converted to block number.

24 years agoImplement a new generic mechanism for attaching handler functions to
msmith [Sat, 21 Aug 1999 06:24:40 +0000 (06:24 +0000)]
Implement a new generic mechanism for attaching handler functions to
events, in order to pave the way for removing a number of the ad-hoc
implementations currently in use.

Retire the at_shutdown family of functions and replace them with
new event handler lists.

Rework kern_shutdown.c to take greater advantage of the use of event
handlers.

Reviewed by: green

24 years agoRemove superfluous `preserve' entry.
chris [Sat, 21 Aug 1999 04:43:59 +0000 (04:43 +0000)]
Remove superfluous `preserve' entry.

PR: docs/13279

24 years agoFix spelling error: compliment -> complement
chris [Sat, 21 Aug 1999 04:37:39 +0000 (04:37 +0000)]
Fix spelling error: compliment -> complement

24 years agoFix power management register definitions.
wpaul [Sat, 21 Aug 1999 01:10:45 +0000 (01:10 +0000)]
Fix power management register definitions.

24 years agoAdd a NULL pointer check whose absence could cause segmentation
jdp [Fri, 20 Aug 1999 22:33:44 +0000 (22:33 +0000)]
Add a NULL pointer check whose absence could cause segmentation
violations in certain obscure cases involving failed dlopens.  Many
thanks to Archie Cobbs for providing me with a good test case.

Eliminate a block that existed only to localize a declaration.

24 years agoLoosen up the constructed argument segment generation slightly; rather than
msmith [Fri, 20 Aug 1999 21:08:41 +0000 (21:08 +0000)]
Loosen up the constructed argument segment generation slightly; rather than
trying to size it intelligently just make it 64k and leave it up to the caller
to ensure that the arguments all fit within that range.

This should resolve the issue that some people were seeing with the PnP BIOS
scan crashing on a large PnP node.

24 years agomove sanity check of timeval struct so as not to segfault when passed
alfred [Fri, 20 Aug 1999 21:06:20 +0000 (21:06 +0000)]
move sanity check of timeval struct so as not to segfault when passed
a null pointer.

Pointed out by: Thomas Gellekum <tg@ihf.rwth-aachen.de>
Reviewed by:    eivind

24 years agoFirst small steps at merging DEVFS and PHK's Dev_t stuff.
julian [Fri, 20 Aug 1999 20:25:00 +0000 (20:25 +0000)]
First small steps at merging DEVFS and PHK's Dev_t stuff.

24 years agoFixes for some style bugs in the initial version of this file:
ken [Fri, 20 Aug 1999 19:42:01 +0000 (19:42 +0000)]
Fixes for some style bugs in the initial version of this file:

- missing reformatting protection in copyright.
- missing blank line after copyright.
- unusual spelling of idempotency macro (no trailing underscore).
- unusual value of idempotency macro (1 instead of <empty>).
- space instead of tab after #define's.
- unnecessary namespace pollution and extra code to give it.
- tab instead of space after #endif.

Submitted by: bde

24 years agoRestore INTERNALLIB.
abial [Fri, 20 Aug 1999 18:32:45 +0000 (18:32 +0000)]
Restore INTERNALLIB.

Noticed by: bde,jdp

24 years agoMAXLINE not MAX_CMDLINE
mdodd [Fri, 20 Aug 1999 17:40:33 +0000 (17:40 +0000)]
MAXLINE not MAX_CMDLINE

Noticed by: Norman C. Rice <nrice@emu.sourcee.com>

24 years agoFix MLINKS.
mdodd [Fri, 20 Aug 1999 17:37:22 +0000 (17:37 +0000)]
Fix MLINKS.

Noticed by: Norman C. Rice <nrice@emu.sourcee.com>

24 years agoFinally: fix test -x as completely as possible.
green [Fri, 20 Aug 1999 16:19:26 +0000 (16:19 +0000)]
Finally: fix test -x as completely as possible.

Reviewed by: bde
Reworked by: bde

24 years agoFix stupid error (xse -> xsc).
mdodd [Fri, 20 Aug 1999 14:36:40 +0000 (14:36 +0000)]
Fix stupid error (xse -> xsc).
Notice that 'unit' wasn't defined once I changed the parameters of the func.

These things make me feel like wading in with a flamethrowr or something.

Too much cruft!
</rant>

24 years agoFix a nasty kld bug where modules with objects of type GLOB_DAT which had
gallatin [Fri, 20 Aug 1999 14:21:35 +0000 (14:21 +0000)]
Fix a nasty kld bug where modules with objects of type GLOB_DAT which had
non-zero addends were being loaded incorrectly

24 years agoSet ifp->if_init to the right function.
mdodd [Fri, 20 Aug 1999 14:12:14 +0000 (14:12 +0000)]
Set ifp->if_init to the right function.
if_init_f_t is passed void * containing the address of ifp->if_softc
not the unit number.

Someone tell me if these things don't work as I don't have the hardware
needed to test them. (thats a first.)

I'll get if_ze and if_zp later.

Pointed out by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>

24 years agoWhen checking if there is a stack to free, observe the fact that it
jb [Fri, 20 Aug 1999 12:17:09 +0000 (12:17 +0000)]
When checking if there is a stack to free, observe the fact that it
might have been mmapped, and if so, passing the pointer to free() is
really not a good idea.

[ In the next millenium, when I've taken over the world, I'm going
  to ban 8 character tabs. You've been warned. ]

24 years agoRemove unused MANBIN directive.
ru [Fri, 20 Aug 1999 10:44:51 +0000 (10:44 +0000)]
Remove unused MANBIN directive.

24 years agoThere may exist two kinds of IBM BlueLightning CPU. One is that 5/2
kato [Fri, 20 Aug 1999 09:31:18 +0000 (09:31 +0000)]
There may exist two kinds of IBM BlueLightning CPU.  One is that 5/2
test does not change undefined flag like Cyrix CPUs.  Another is that
5/2 test changes undefined flag like Intel CPUs.  Latter one could not
be detected and was recognized 486DX CPU.  To solve this,
finishidentcpu() calls identblue() when cpu_vendor is null string
(that is, CPUID instruction is not supported) and cpu == CPU_486.
Tests have been done on IBM BlueLightning CPUs, i486SX and i486DX.

24 years ago* Consistantly surround macro parameters with ()
obrien [Fri, 20 Aug 1999 09:01:55 +0000 (09:01 +0000)]
* Consistantly surround macro parameters with ()
* Consistantly put spaces after "," in macro param lists
* Consistantly align continuation characters.
* Don't need to supply all variations of __FOO__ in CPP_PREDEFINES,
  gcc will do that for us.

24 years agoA "=" should have been "+=".
obrien [Fri, 20 Aug 1999 08:53:23 +0000 (08:53 +0000)]
A "=" should have been "+=".

Submitted by: Mikhail Teterin <mi@aldan.algebra.com>

24 years agoFix some cut and paste damage.
mdodd [Fri, 20 Aug 1999 07:14:46 +0000 (07:14 +0000)]
Fix some cut and paste damage.

Noticed by: Norman C. Rice <nrice@emu.sourcee.com>

24 years agoFix EINVAL related descriptions.
rse [Fri, 20 Aug 1999 07:00:22 +0000 (07:00 +0000)]
Fix EINVAL related descriptions.

24 years agovm_page_alloc and contigmalloc1:
alc [Fri, 20 Aug 1999 06:32:00 +0000 (06:32 +0000)]
vm_page_alloc and contigmalloc1:
Verify that free pages are not dirty.

Submitted by: dillon

24 years agoUpdate blackhole(4)
csgr [Fri, 20 Aug 1999 05:47:05 +0000 (05:47 +0000)]
Update blackhole(4)

24 years agoFix short timeout problems with the pt(4) driver:
ken [Fri, 20 Aug 1999 03:48:11 +0000 (03:48 +0000)]
Fix short timeout problems with the pt(4) driver:

- increase the default timeout from 10 seconds to 60 seconds
- add a new kernel option, SCSI_PT_DEFAULT_TIMEOUT, that lets users specify
  the default timeout for the pt driver to use
- add two new ioctls, one to get the timeout for a given pt device, the
  other to set the timeout for a given pt device.  The idea is that
  userland applications using the device can set the timeout to suit their
  purposes.  The ioctls are defined in a new header file, sys/ptio.h

PR: 10266
Reviewed by: gibbs, joerg

24 years agoReduce default timeout on remote serial debugging sessions from 20
grog [Fri, 20 Aug 1999 02:58:16 +0000 (02:58 +0000)]
Reduce default timeout on remote serial debugging sessions from 20
seconds to 1 second.  This fixes a problem where gdb would appear to
hang on flaky serial connections.  There's a theoretical problem that
the relatively short timeout could cause problems on slow links, but
you can override the default value with the 'set remotetimeout'
command.

Approved-by: dfr

24 years agoWhat the heck was I thinking? Nobody else saw this? Sheesh.
mdodd [Fri, 20 Aug 1999 01:24:35 +0000 (01:24 +0000)]
What the heck was I thinking?  Nobody else saw this?  Sheesh.

(num > MAX) ? MAX : num

rather than

(MAX > num) ? MAX : num

Also, make things a little easier to read while I'm here.

24 years agoAdd 2 functions: el_data_set() and el_data_get() which do what you
mdodd [Fri, 20 Aug 1999 01:17:12 +0000 (01:17 +0000)]
Add 2 functions: el_data_set() and el_data_get() which do what you
would expect.  (Allow user data to be associated with an EditLine context).

As this changes no existing interfaces and doesn't alter any structs
visable to the user I've been told that its not necessary to bump
the version of the library.

24 years agoChange the name of the static variable 'files' to 'linker_files' in
grog [Fri, 20 Aug 1999 00:18:07 +0000 (00:18 +0000)]
Change the name of the static variable 'files' to 'linker_files' in
order to be able to refer to it uniquely from the kernel debugger.

Approved-by:  peter

24 years agotime_to_sleep->tv_nsec > 1000000000
alfred [Thu, 19 Aug 1999 23:18:07 +0000 (23:18 +0000)]
time_to_sleep->tv_nsec > 1000000000
-to-
time_to_sleep->tv_nsec >= 1000000000

24 years agoSanity check time structures passed in, return EINVAL like the system
alfred [Thu, 19 Aug 1999 23:06:11 +0000 (23:06 +0000)]
Sanity check time structures passed in, return EINVAL like the system
calls do to avoid corrupting the thread library's concept of wakeup
time.

PR: kern/12141
Reviewed by: deischen, eivind

24 years agoMake gcc work on the Alpha again. alpha/alpha.h is used instead of svr4.h
peter [Thu, 19 Aug 1999 21:19:36 +0000 (21:19 +0000)]
Make gcc work on the Alpha again.  alpha/alpha.h is used instead of svr4.h

24 years agoQuieten ppp at startup.
brian [Thu, 19 Aug 1999 21:15:16 +0000 (21:15 +0000)]
Quieten ppp at startup.