]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
25 years agoAdd Specialix SI/XIO/SX ISA, EISA and PCI serial expansion cards/modules
Jordan K. Hubbard [Mon, 8 Mar 1999 23:41:12 +0000 (23:41 +0000)]
Add Specialix SI/XIO/SX ISA, EISA and PCI serial expansion cards/modules

Submitted by: Nick Sayer <nsayer@quack.kfu.com>
PR: 10456

25 years agoReserve cdev 115 for University of Waikato DAG network capture boards
Jordan K. Hubbard [Mon, 8 Mar 1999 23:31:04 +0000 (23:31 +0000)]
Reserve cdev 115 for University of Waikato DAG network capture boards

25 years agoClean up and order register definitions.
Justin T. Gibbs [Mon, 8 Mar 1999 22:43:23 +0000 (22:43 +0000)]
Clean up and order register definitions.

25 years agoAdd necessary splcam() protection around target mode setup and teardown
Justin T. Gibbs [Mon, 8 Mar 1999 22:42:52 +0000 (22:42 +0000)]
Add necessary splcam() protection around target mode setup and teardown
routines as well as card access that occurs for the AC_LOST_DEVICE async
event.

25 years agoDon't destroy the old server socket another ``set server''
Brian Somers [Mon, 8 Mar 1999 22:35:19 +0000 (22:35 +0000)]
Don't destroy the old server socket another ``set server''
call fails.

25 years agoMove untimeout up before call to uhci_ii_done, avoids panic in
Nick Hibma [Mon, 8 Mar 1999 22:27:07 +0000 (22:27 +0000)]
Move untimeout up before call to uhci_ii_done, avoids panic in
untimeout.

Submitted by Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
and gehenna@jp.FreeBSD.org.

25 years agoAdd bt_port_probe() a routine shared by the EISA and ISA probe code to
Justin T. Gibbs [Mon, 8 Mar 1999 21:36:34 +0000 (21:36 +0000)]
Add bt_port_probe() a routine shared by the EISA and ISA probe code to
determine IRQ and DRQ information.

Fix a bug that would cause us to attempt to retrieve extended sync
rate information on cards/firmware revs that do not support that command.

25 years agoAsk the card where our interrupt is instead of attempting to use the EISA
Justin T. Gibbs [Mon, 8 Mar 1999 21:35:03 +0000 (21:35 +0000)]
Ask the card where our interrupt is instead of attempting to use the EISA
config info.  On early revision cards (742a), the EISA register space,
other than the location used to determine the address of the card's main
command ports, is write only.

25 years agoPull 'ISA style' probe where interrupt information is determined through
Justin T. Gibbs [Mon, 8 Mar 1999 21:32:59 +0000 (21:32 +0000)]
Pull 'ISA style' probe where interrupt information is determined through
commands sent to card, into the base driver module.  It is now used for
EISA board probes too.

25 years agoSpell David correctly.
Steve Price [Mon, 8 Mar 1999 21:21:43 +0000 (21:21 +0000)]
Spell David correctly.

25 years agoRestore \n at end of usage message.
Garrett Wollman [Mon, 8 Mar 1999 19:16:14 +0000 (19:16 +0000)]
Restore \n at end of usage message.

Complained-about-by: charnier
25 years agoIntegrate the new "nanokernel" PLL from Dave Mills.
Poul-Henning Kamp [Mon, 8 Mar 1999 12:36:14 +0000 (12:36 +0000)]
Integrate the new "nanokernel" PLL from Dave Mills.

This code is backwards compatible with the older "microkernel" PLL, but
allows ntpd v4 to use nanosecond resolution.  Many other improvements.

PPS_SYNC and hardpps() are NOT supported yet.

25 years agofix cosmetic ISDN startup problem mentioned in PR conf/9957
Hellmuth Michaelis [Mon, 8 Mar 1999 11:28:45 +0000 (11:28 +0000)]
fix cosmetic ISDN startup problem mentioned in PR conf/9957

25 years agoAdd MODINFO_ARGS, parameters passed to a module at load time.
Daniel C. Sobral [Mon, 8 Mar 1999 11:05:52 +0000 (11:05 +0000)]
Add MODINFO_ARGS, parameters passed to a module at load time.

VS: ----------------------------------------------------------------------

25 years agoIncrease ficl's dictionary size, in preparation for the newer loader.rc.
Daniel C. Sobral [Mon, 8 Mar 1999 11:00:02 +0000 (11:00 +0000)]
Increase ficl's dictionary size, in preparation for the newer loader.rc.

25 years agoFix a number of memory leaks and other memory-related disorders.
Daniel C. Sobral [Mon, 8 Mar 1999 10:32:39 +0000 (10:32 +0000)]
Fix a number of memory leaks and other memory-related disorders.

Also, unbreak the breakage introduced at the last revision of module.c.
This changes the semantics of mod_searchfile() (and mod_searchmodule())
to make the caller's responsibility freeing the buffer returned. This
is different from other functions in loader's code, and was done as a
fix for kern/9631. If someone wants to revert this to the original
behavior, don't forget to fix kern/9631 in another way.

This should also fix bin/10462, which was introduced as a result of the
first try at kern/9631 (module.c last revision).

PR: bin/10462
Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>

25 years agoRemove an unused variable from vmspace_fork.
Alan Cox [Mon, 8 Mar 1999 03:53:07 +0000 (03:53 +0000)]
Remove an unused variable from vmspace_fork.

25 years agoThe 4 gig version of the Seagate Medalist Pro seems to have the same
Kenneth D. Merry [Sun, 7 Mar 1999 22:48:50 +0000 (22:48 +0000)]
The 4 gig version of the Seagate Medalist Pro seems to have the same
trouble with tagged queueing as the 6.5 gig version.

So, I've added a quirk entry for it to limit it to two outstanding
transactions at a time, just like the 6.5G version.  While I'm at it, add a
quirk for the 9G version of the drive, since it most likely has the same
problem.

Submitted by: Jeremy Lea <reg@shale.csir.co.za>

25 years agoZIP drives should now be working, I'm not sure about LS120 drives,
Søren Schmidt [Sun, 7 Mar 1999 21:49:14 +0000 (21:49 +0000)]
ZIP drives should now be working, I'm not sure about LS120 drives,
reports on those most welcome!

Fixed problems:

    Hang on probe on "fantom" devices.
The probe now use a timeout to avoid hangs if no interrupt
is recevied.

There has also been more general code clenaups, and some reorgs.

25 years agoChange vm_map_growstack to acquire and hold a read lock (instead of a write
Alan Cox [Sun, 7 Mar 1999 21:25:42 +0000 (21:25 +0000)]
Change vm_map_growstack to acquire and hold a read lock (instead of a write
lock) until it actually needs to modify the vm_map.

Note: it is legal to modify vm_map::hint without holding a write lock.

Submitted by: "Richard Seaman, Jr." <dick@tar.com> with minor changes
by myself.

25 years agoDon't forget to call modem_Found() when connecting
Brian Somers [Sun, 7 Mar 1999 20:58:48 +0000 (20:58 +0000)]
Don't forget to call modem_Found() when connecting
via an external program - otherwise we get no
throughput stats and connection count increase.

25 years agoAdd leading 0 in front of octal file permissions number.
Guy Helmer [Sun, 7 Mar 1999 20:27:45 +0000 (20:27 +0000)]
Add leading 0 in front of octal file permissions number.

OK'ed by: Brian Somers <brian@freebsd.org>
PR: docs/9843

25 years agoFix display of example usage.
Guy Helmer [Sun, 7 Mar 1999 19:24:39 +0000 (19:24 +0000)]
Fix display of example usage.

PR: docs/9833

25 years agoerst0 -> ersa0
Guy Helmer [Sun, 7 Mar 1999 18:57:50 +0000 (18:57 +0000)]
erst0 -> ersa0

PR: docs/9860

25 years agoMAKEDEV pty# makes 32 pty pairs, not 16.
Guy Helmer [Sun, 7 Mar 1999 18:53:10 +0000 (18:53 +0000)]
MAKEDEV pty# makes 32 pty pairs, not 16.

PR: docs/9879

25 years agoExplain ENXIO error status with respect to fifos.
Guy Helmer [Sun, 7 Mar 1999 18:45:35 +0000 (18:45 +0000)]
Explain ENXIO error status with respect to fifos.

PR: docs/8559

25 years agoUpgrade (almost) to natd 2.0b1
Brian Somers [Sun, 7 Mar 1999 18:23:56 +0000 (18:23 +0000)]
Upgrade (almost) to natd 2.0b1

  - Transparent proxy support.
  - PERMANENT_LINK IS NOW OBSOLETE, use redirect_port instead.
  - Drop support for early FreeBSD 2.2 versions
  - If separate input & output sockets are being used
    use them to find out packet direction instead of
    normal mechanism. This can be handy in complex environments
    with multiple interfaces.
  - PPTP redirect support by Dru Nelson <dnelson@redwoodsoft.com> added.
  - Logging enhancements from Martin Machacek <mm@i.cz> added.

Obtained from: Ari Suutari <ari@suutari.iki.fi>

25 years agoSupport PPTP via libalias (``alias pptp addr'').
Brian Somers [Sun, 7 Mar 1999 18:13:44 +0000 (18:13 +0000)]
Support PPTP via libalias (``alias pptp addr'').

25 years agoDocument PacketAliasPptp() and allow it to be disabled
Brian Somers [Sun, 7 Mar 1999 18:13:23 +0000 (18:13 +0000)]
Document PacketAliasPptp() and allow it to be disabled
by passing INADDR_NONE.

25 years agoupdate misc i4b documentation to i4b release 0.71.00
Hellmuth Michaelis [Sun, 7 Mar 1999 17:18:28 +0000 (17:18 +0000)]
update misc i4b documentation to i4b release 0.71.00

25 years agoadd the dtmfdecode program (added to i4b with 0.71.00) to the i4b userland
Hellmuth Michaelis [Sun, 7 Mar 1999 17:09:03 +0000 (17:09 +0000)]
add the dtmfdecode program (added to i4b with 0.71.00) to the i4b userland

25 years agoupdate the i4b userland to i4b release 0.71.00
Hellmuth Michaelis [Sun, 7 Mar 1999 16:12:47 +0000 (16:12 +0000)]
update the i4b userland to i4b release 0.71.00

25 years agoadd kernel config support for i4b driver for AVM Fritz PCI
Hellmuth Michaelis [Sun, 7 Mar 1999 16:11:12 +0000 (16:11 +0000)]
add kernel config support for i4b driver for AVM Fritz PCI

25 years agoupdate the i4b include files to i4b release 0.71.00
Hellmuth Michaelis [Sun, 7 Mar 1999 16:09:45 +0000 (16:09 +0000)]
update the i4b include files to i4b release 0.71.00

25 years agoupdate the i4b kernel part to i4b release 0.71.00
Hellmuth Michaelis [Sun, 7 Mar 1999 16:08:20 +0000 (16:08 +0000)]
update the i4b kernel part to i4b release 0.71.00

25 years ago* Register sysctl nodes before running sysinits when loading files and
Doug Rabson [Sun, 7 Mar 1999 16:06:41 +0000 (16:06 +0000)]
* Register sysctl nodes before running sysinits when loading files and
  unregister them after sysuninits when unloading.
* Add code to vfs_register() to set the oid number of vfs sysctls to
  the type number of the filesystem.

Reviewed by: bde

25 years agoRemove unused function stubs.
Brian Somers [Sun, 7 Mar 1999 15:36:58 +0000 (15:36 +0000)]
Remove unused function stubs.

25 years agoSupport proxying & transparent proxying curtesy of libalias(3).
Brian Somers [Sun, 7 Mar 1999 15:02:38 +0000 (15:02 +0000)]
Support proxying & transparent proxying curtesy of libalias(3).
Order the alias command descriptions.
Order the SEE ALSO entries.

25 years agoMention that PacketAliasProxyRule() doesn't accept host names,
Brian Somers [Sun, 7 Mar 1999 15:02:22 +0000 (15:02 +0000)]
Mention that PacketAliasProxyRule() doesn't accept host names,
just IP numbers.

25 years agoCorrectly drop existing connections when reopening the diagnostic
Brian Somers [Sun, 7 Mar 1999 11:54:43 +0000 (11:54 +0000)]
Correctly drop existing connections when reopening the diagnostic
socket.

25 years agoOops, the test for "no-cpu" was inverted.
Bruce Evans [Sun, 7 Mar 1999 06:55:47 +0000 (06:55 +0000)]
Oops, the test for "no-cpu" was inverted.

Submitted by: Seigo TANIMURA <tanimura@naklab.dnj.ynu.ac.jp>

25 years agoAlso add 1000baseSX, 1000baseLX, 1000baseCX and 1000baseTX media types. At
Bill Paul [Sun, 7 Mar 1999 04:39:25 +0000 (04:39 +0000)]
Also add 1000baseSX, 1000baseLX, 1000baseCX and 1000baseTX media types. At
this point I don't know if there are any actual gigabit ethernet devices
that support media other than 1000baseSX (multi-mode fiber) but who knows.

25 years agoRead from fd[0] and write to fd[1] where `fd' is the
Brian Somers [Sun, 7 Mar 1999 01:41:40 +0000 (01:41 +0000)]
Read from fd[0] and write to fd[1] where `fd' is the
result of a pipe().  This matters under OpenBSD.

25 years agoUse socketpair() instead of pipe()... pipe() doesn't return
Brian Somers [Sun, 7 Mar 1999 01:41:27 +0000 (01:41 +0000)]
Use socketpair() instead of pipe()... pipe() doesn't return
two bi-directional descriptors under OpenBSD.

25 years agoReopen descriptor 0 as /dev/tty when in interactive mode
Brian Somers [Sun, 7 Mar 1999 01:02:39 +0000 (01:02 +0000)]
Reopen descriptor 0 as /dev/tty when in interactive mode
in OpenBSD as well as FreeBSD (I still don't know why).
Add a debug diagnostic when creating a child process as
a link.

25 years agoWhen an incoming packet is reflected back as an ICMP reply, make sure we
Archie Cobbs [Sat, 6 Mar 1999 23:10:42 +0000 (23:10 +0000)]
When an incoming packet is reflected back as an ICMP reply, make sure we
zero "m->m_pkthdr.rcvif", otherwise ipfw may wrongly match the outgoing packet.
PR: kern/9723
Submitted by: David Malone <dwmalone@maths.tcd.ie>

25 years agoFix callout_init(). This didn't have any practical effect since it
Garrett Wollman [Sat, 6 Mar 1999 22:27:02 +0000 (22:27 +0000)]
Fix callout_init().  This didn't have any practical effect since it
was only used to initialize the static timeouts, which unconditionally
clears the only bits which could have caused problems.

25 years agoDocument PacketAliasProxyRule() and fix a typo.
Brian Somers [Sat, 6 Mar 1999 21:58:43 +0000 (21:58 +0000)]
Document PacketAliasProxyRule() and fix a typo.

25 years agoRemoved old scsi section 9 man pages. Only cd.9 has been converted to
Bruce Evans [Sat, 6 Mar 1999 19:03:31 +0000 (19:03 +0000)]
Removed old scsi section 9 man pages.  Only cd.9 has been converted to
cam.  scsiconf.9, sd.9, and st.9 can now be found in the Attic.

Reviewed by: ken

25 years agoFixed bitrot in synopsis (devfs_link was renamed to devfs_makelink).
Bruce Evans [Sat, 6 Mar 1999 17:37:20 +0000 (17:37 +0000)]
Fixed bitrot in synopsis (devfs_link was renamed to devfs_makelink).
Didn't fix bitrot in this page's name; just install a link.

25 years agoFixed wrong function prototype(s) in synopsis.
Bruce Evans [Sat, 6 Mar 1999 17:25:50 +0000 (17:25 +0000)]
Fixed wrong function prototype(s) in synopsis.

25 years agoFixed bitrot in synopsis (u_long changed to uintptr_t for portability).
Bruce Evans [Sat, 6 Mar 1999 17:21:14 +0000 (17:21 +0000)]
Fixed bitrot in synopsis (u_long changed to uintptr_t for portability).

25 years agoAdd 1000baseFX, 10baseSTP and 10baseFL media types. The 1000baseFX
Bill Paul [Sat, 6 Mar 1999 17:17:57 +0000 (17:17 +0000)]
Add 1000baseFX, 10baseSTP and 10baseFL media types. The 1000baseFX
type may become necessary soon. :)

Also add a couple of additional macros that NetBSD has which we don't.
Nothing in FreeBSD uses these (yet) so adding them in shouldn't hurt
anything.

25 years agoFixed C syntax error in synopsis.
Bruce Evans [Sat, 6 Mar 1999 17:14:24 +0000 (17:14 +0000)]
Fixed C syntax error in synopsis.

25 years agoFixed bitrot in synopsis (const poisoning hadn't reached here).
Bruce Evans [Sat, 6 Mar 1999 17:10:15 +0000 (17:10 +0000)]
Fixed bitrot in synopsis (const poisoning hadn't reached here).

25 years agoFixed missing headers in synopsis.
Bruce Evans [Sat, 6 Mar 1999 17:07:29 +0000 (17:07 +0000)]
Fixed missing headers in synopsis.

25 years agoFixed bitrot in synopsis (fuword() and suword() changed to support alpha).
Bruce Evans [Sat, 6 Mar 1999 17:04:18 +0000 (17:04 +0000)]
Fixed bitrot in synopsis (fuword() and suword() changed to support alpha).

25 years agoFixed pedantic syntax error (trailing comma in enum).
Bruce Evans [Sat, 6 Mar 1999 16:57:12 +0000 (16:57 +0000)]
Fixed pedantic syntax error (trailing comma in enum).

25 years agoInclude <sys/queue.h> so that this file is almost self-sufficient, as is
Bruce Evans [Sat, 6 Mar 1999 16:52:04 +0000 (16:52 +0000)]
Include <sys/queue.h> so that this file is almost self-sufficient, as is
specified in about 40 section 9 man pages.

Translated to C (C doesn't support forward declarations of enums).

25 years agoSync with sys/i386/i386/machdpe.c revision 1.327.
KATO Takenori [Sat, 6 Mar 1999 09:43:01 +0000 (09:43 +0000)]
Sync with sys/i386/i386/machdpe.c revision 1.327.

25 years agoUpgrading a map's lock to exclusive status should increment
Alan Cox [Sat, 6 Mar 1999 07:11:33 +0000 (07:11 +0000)]
Upgrading a map's lock to exclusive status should increment
the map's timestamp.  In general, whenever an exclusive lock is
acquired the timestamp should be incremented.

25 years agoDon't depend on <ufs/ufs/quota.h> or another (old) prerequisite including
Bruce Evans [Sat, 6 Mar 1999 05:21:09 +0000 (05:21 +0000)]
Don't depend on <ufs/ufs/quota.h> or another (old) prerequisite including
<sys/queue.h>.  This fixes my recent breakage of biosboot by unpolluting
<ufs/ufs/quota.h> in the !KERNEL case.

25 years agoMove kernel-only declaration inside #ifdef KERNEL section.
Garrett Wollman [Sat, 6 Mar 1999 04:51:41 +0000 (04:51 +0000)]
Move kernel-only declaration inside #ifdef KERNEL section.

25 years agoExpose a slightly-lower-level interface to timeouts which allows callers
Garrett Wollman [Sat, 6 Mar 1999 04:46:20 +0000 (04:46 +0000)]
Expose a slightly-lower-level interface to timeouts which allows callers
to manage their own memory.  Tested on my machine (make buildworld).
I've made analogous changes on the alpha, but don't have a machine
to test.

Not-objected-to by: dg, gibbs

25 years agoBlock cam hardware interrupts at splvm(). Controller drivers may
Justin T. Gibbs [Fri, 5 Mar 1999 23:39:02 +0000 (23:39 +0000)]
Block cam hardware interrupts at splvm().  Controller drivers may
perform malloc(NO_WAIT) and free operations that could touch the
page queues.

Noticed by: Tor Egge <tegge@FreeBSd.org>

25 years agoPoll for bus reset completion instead of assuming that our interrupt
Justin T. Gibbs [Fri, 5 Mar 1999 23:37:07 +0000 (23:37 +0000)]
Poll for bus reset completion instead of assuming that our interrupt
is enabled.

25 years agoKeep track of negotiated transfer parameters for each initiator<->target
Justin T. Gibbs [Fri, 5 Mar 1999 23:35:48 +0000 (23:35 +0000)]
Keep track of negotiated transfer parameters for each initiator<->target
connection.

Clean up support for devices featuring the multiple target SCSI ID feature.
On aic7890/91/96/97 chips, we can now assume the target role on multiple
target ids simultaneously.  Although these chips also have sufficient
instruction space to hold to support the initiator and target role at the
same time, the initiator role is currently disabled as it will conflict
(chip design restriction) with the multi-tid feature.  I'll probably add
a nob to enable the initiator (there-by disabling multi-tid) some time
in the future.

Return queue full or busy, depending on the tagged nature of the incoming
request, if our command input queue fills up in host memeory.

Deal with accept target I/O resource shortages.

If we get an underrun on a transaction that wasn't supposed to transmit
any data, don't attempt to print out the S/G list.  The code would
run until hitting a non-present page. (oops)

25 years agoModify to deal with changes in the storage of user negotiation settings.
Justin T. Gibbs [Fri, 5 Mar 1999 23:28:42 +0000 (23:28 +0000)]
Modify to deal with changes in the storage of user negotiation settings.

25 years agoAdd untested code to support the aha2930U2W.
Justin T. Gibbs [Fri, 5 Mar 1999 23:28:36 +0000 (23:28 +0000)]
Add untested code to support the aha2930U2W.

Modify to deal with changes in the storage of user negotiation settings.

25 years agoImplement the control device for the "targ" target mode processor target
Justin T. Gibbs [Fri, 5 Mar 1999 23:25:11 +0000 (23:25 +0000)]
Implement the control device for the "targ" target mode processor target
emulator so that instances can be dynamically added and removed from the
system.

Properly reference count peripheral instances so they are cleaned up when
destroyed by the control device.

Set a timeout for test unit ready commands.  Before it was uninitialized
and could cause us to drop off the bus when no real timeout had occurred.

25 years agoSilence errors.
Justin T. Gibbs [Fri, 5 Mar 1999 23:21:28 +0000 (23:21 +0000)]
Silence errors.

Reduce the number of accept target I/O entries we allow to better
exercise the resource shortage handling code in controller drivers.

25 years agoSilence complaints about synchronize cache requests that fail with illegal
Justin T. Gibbs [Fri, 5 Mar 1999 23:20:20 +0000 (23:20 +0000)]
Silence complaints about synchronize cache requests that fail with illegal
request.

25 years agoxpt_done has no reason to take a volatile ccb *.
Justin T. Gibbs [Fri, 5 Mar 1999 23:18:56 +0000 (23:18 +0000)]
xpt_done has no reason to take a volatile ccb *.

25 years agoProtect access to the EDT with splcam() to protect against corruption
Justin T. Gibbs [Fri, 5 Mar 1999 23:18:16 +0000 (23:18 +0000)]
Protect access to the EDT with splcam() to protect against corruption
caused by temporary EDT allocations performed by controller drivers in
their interrupt routiens.

Reference count bus entries in the EDT in preparation for support for
dynamic controller arrival and departure.

Have children of the EDT hold references to their parents.

Correct routing of the XPT_IMMED_NOTIFY ccb type for use in
target mode applications.

Fix a few cases where the generation count for EDT data members was
not being updated when a modification occurred.

splcam() problem Noticed by: Tor Egge <tegge@FreeBSD.org>

25 years agoAdd constants and macros for dealing with XPT opcode group types.
Justin T. Gibbs [Fri, 5 Mar 1999 23:13:20 +0000 (23:13 +0000)]
Add constants and macros for dealing with XPT opcode group types.

25 years agoAllocate a target mode instance to handle our target mode session, clean
Justin T. Gibbs [Fri, 5 Mar 1999 23:12:02 +0000 (23:12 +0000)]
Allocate a target mode instance to handle our target mode session, clean
it up on exit.  The address for attaching the emulator (path, target id,
lun) is now specified on the command line.  Some attempt at cathing
signals and cleaning up target mode instances is now made.

25 years agoAdd targ.ctl, a device node for allocating and configuring instances
Justin T. Gibbs [Fri, 5 Mar 1999 23:08:45 +0000 (23:08 +0000)]
Add targ.ctl, a device node for allocating and configuring instances
of the "targ" processor target target mode emulator.

25 years agoFixed bitrot in the types of fusword() and susword(). swords will
Bruce Evans [Fri, 5 Mar 1999 19:27:22 +0000 (19:27 +0000)]
Fixed bitrot in the types of fusword() and susword().  swords will
probably always be 16 bits if they exist at all, and fusword() and
susword() are only used in i386 code, so there aren't any portability
functions with them.

25 years agoFixed prototype for fetchParseURL().
Bruce Evans [Fri, 5 Mar 1999 18:45:32 +0000 (18:45 +0000)]
Fixed prototype for fetchParseURL().

25 years agoFixed bitrot in synopsis (some const poisoning hadn't reached here).
Bruce Evans [Fri, 5 Mar 1999 18:43:00 +0000 (18:43 +0000)]
Fixed bitrot in synopsis (some const poisoning hadn't reached here).

25 years agoUse __i386__ instead of i386 in an ifdef.
Bruce Evans [Fri, 5 Mar 1999 18:15:05 +0000 (18:15 +0000)]
Use __i386__ instead of i386 in an ifdef.

25 years agoDon't use u_long in the synopsis, since u_long is not part of the kvm
Bruce Evans [Fri, 5 Mar 1999 17:32:53 +0000 (17:32 +0000)]
Don't use u_long in the synopsis, since u_long is not part of the kvm
interface.

25 years agoFixed missing header in synopsis (<devstat.h> unfortunately depends on
Bruce Evans [Fri, 5 Mar 1999 17:14:05 +0000 (17:14 +0000)]
Fixed missing header in synopsis (<devstat.h> unfortunately depends on
<sys/dkstat.h>).

25 years agoFixed missing header in synopsis (<camlib.h> includes half the universe
Bruce Evans [Fri, 5 Mar 1999 17:11:37 +0000 (17:11 +0000)]
Fixed missing header in synopsis (<camlib.h> includes half the universe
but not <stdio.h>).

25 years agoFixed bitrot in synopsis (some const poisoning had not reached here).
Bruce Evans [Fri, 5 Mar 1999 17:08:23 +0000 (17:08 +0000)]
Fixed bitrot in synopsis (some const poisoning had not reached here).

25 years agoThe magic "no-cpu" cpu number is 0xff. Don't misrepresent cpu
Bruce Evans [Fri, 5 Mar 1999 16:38:13 +0000 (16:38 +0000)]
The magic "no-cpu" cpu number is 0xff.  Don't misrepresent cpu
numbers as chars or use bogus casts in an attempt to unmisrepresnt
them.  In top, don't assume that 0xff is the only negative cpu
number when cpu numbers are (mis)represented.

25 years agoFixed bitrot in synopsis (some const poisoning hadn't reached here).
Bruce Evans [Fri, 5 Mar 1999 15:50:07 +0000 (15:50 +0000)]
Fixed bitrot in synopsis (some const poisoning hadn't reached here).

25 years agoDon't bogotify the synopsis by attempting to describe err_set_file() there.
Bruce Evans [Fri, 5 Mar 1999 15:36:23 +0000 (15:36 +0000)]
Don't bogotify the synopsis by attempting to describe err_set_file() there.

Fixed some disorder.

25 years agoFixed references to unmount(2) specified as umount.
Alexander Langer [Fri, 5 Mar 1999 15:16:31 +0000 (15:16 +0000)]
Fixed references to unmount(2) specified as umount.

Submitted by: Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
via OpenBSD

25 years agoDon't use backslash-newline to split the too-long line for
Bruce Evans [Fri, 5 Mar 1999 14:43:29 +0000 (14:43 +0000)]
Don't use backslash-newline to split the too-long line for
".Fn dialog_ftree ...", since my synopsis checker doesn't support it
and no other too-long .Fn lines are split.

25 years agoFixed disordering and incoinsistent style in previous commit.
Bruce Evans [Fri, 5 Mar 1999 13:01:22 +0000 (13:01 +0000)]
Fixed disordering and incoinsistent style in previous commit.

25 years agoThe pseudocode in the synopsis didn't come close to actually
Bruce Evans [Fri, 5 Mar 1999 12:56:37 +0000 (12:56 +0000)]
The pseudocode in the synopsis didn't come close to actually
compiling, since <stdio.h> correctly doesn't declare off_t although
the pseudo-prototypes for the new fseeko() and ftello() functions
use it.  Handle this like the corresponding problem for va_list
versus the vprintf() family.

Fixed some English errors.

25 years agoMoved kernel declarations inside the KERNEL ifdef, and removed
Bruce Evans [Fri, 5 Mar 1999 11:25:31 +0000 (11:25 +0000)]
Moved kernel declarations inside the KERNEL ifdef, and removed
include of <sys/queue.h> in the !KERNEL case.  The prerequisites
for <ufs/ufs/quota.h> were broken in Lite2 by converting some of
the kernel declarations to use queue macros without including
<sys/queue.h>.  <sys/queue.h> was included in applications in
/usr/src instead.  We polluted this file instead of merging the
changes in the applications.

Include <sys/queue.h> in the KERNEL case, and forward-declare all
structs that are used in prototypes, so that this file is almost
self-sufficient even in the kernel.

Obtained from: mostly from NetBSD

25 years agoDon't use undocumented markup "{}". Use 32767 instead of LINK_MAX to
Bruce Evans [Fri, 5 Mar 1999 10:39:50 +0000 (10:39 +0000)]
Don't use undocumented markup "{}".  Use 32767 instead of LINK_MAX to
give bug for bug compatibility with intro.2.

25 years agoBacked out most of rev.1.4. I didn't submit it; I only submitted a
Bruce Evans [Fri, 5 Mar 1999 10:29:34 +0000 (10:29 +0000)]
Backed out most of rev.1.4.  I didn't submit it; I only submitted a
request for it something like it.  It was poorly worded and too
far from both POSIX wording and normal (mal)practice by referring to
sysconf(_SC_NGROUPS_MAX) instead of {NGROUPS_MAX} or NGROUPS.  POSIX.1
uses curly braces to mark up "symbolic constants or limits [that may
be] defined in certain headers".  Since we don't document this markup,
don't use it.  Just use NGROUPS_MAX.

25 years agoUse sysctlbyname() instead of sysctl().
Poul-Henning Kamp [Fri, 5 Mar 1999 10:01:24 +0000 (10:01 +0000)]
Use sysctlbyname() instead of sysctl().

25 years agoForgot to add $Id$ and change date in previous commit.
Bruce Evans [Fri, 5 Mar 1999 09:44:59 +0000 (09:44 +0000)]
Forgot to add $Id$ and change date in previous commit.

25 years agoNow all actual probing of both ATA & ATAPI devices are done after
Søren Schmidt [Fri, 5 Mar 1999 09:43:30 +0000 (09:43 +0000)]
Now all actual probing of both ATA & ATAPI devices are done after
interrupts are enabled, this kills the last "unwanted interrupts"
(and there is no ugly hacks like in the old driver to avoid them).
COmmand interrupt devices are now supported, this applies mostly
to older CDROM's and apparently also the ZIP.

Fixed problems:

    Number of total sectors wrong on some older drives.
        Fixed by not using the LBA size unless we know its valid.

There has also been more general code clenaups, some reorgs also.

25 years agoChanged the type of quotactl()'s 4th arg from `char *' to `void *'
Bruce Evans [Fri, 5 Mar 1999 09:28:33 +0000 (09:28 +0000)]
Changed the type of quotactl()'s 4th arg from `char *' to `void *'
so that non-sloppy applications can call it without using disgusting
casts to avoid warnings.  The 4th arg is sort of varargs -- it must
sometimes represent a filename, sometimes a struct pointer, and is
sometimes unused.  The arg type is still caddr_t in the kernel.

Obtained from: mostly from NetBSD

25 years agoFix an SMP-only TLB invalidation bug. Specifically, disable
Alan Cox [Fri, 5 Mar 1999 08:05:44 +0000 (08:05 +0000)]
Fix an SMP-only TLB invalidation bug.  Specifically, disable
a TLB invalidation optimization that won't work given the
limitations of our current SMP support.

This patch should be applied to -stable ASAP.

Thanks to John Capo <jc@irbs.com>,
          Steve Kargl <sgk@troutmask.apl.washington.edu>, and
          Chuck Robey <chuckr@mat.net>
for testing.