]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoReconnect doscmd. It's been fixed.
Marcel Moolenaar [Wed, 29 Sep 1999 20:13:34 +0000 (20:13 +0000)]
Reconnect doscmd. It's been fixed.

24 years agoCareless use of struct proc *p caused major problems. 'p' is allowed to
Marcel Moolenaar [Wed, 29 Sep 1999 20:12:39 +0000 (20:12 +0000)]
Careless use of struct proc *p caused major problems. 'p' is allowed to
be NULL in this function (nfs_sigintr). Reorder the statements and guard
them all with a single if (p != NULL).

reported, reviewed and tested by: jdp

24 years agoUnbreak doscmd after the sigset_t change:
Marcel Moolenaar [Wed, 29 Sep 1999 20:09:19 +0000 (20:09 +0000)]
Unbreak doscmd after the sigset_t change:

doscmd heavily depends on struct sigcontext which luckily is mostly passed
between functions as usion regcontext_t. By redefining union regcontext_t in
terms of mcontext_t almost all bases are covered.

It also seems to me that doscmd was in a transitional state. The redundant
definitions made it difficult to get a clear overview and could easily cause
oversight. To make sure my changes were ok, I went as far as to complete the
transition. It was not exactly necessary, but I expect to have to come back
here some more ("whistle" if I'm wrong :-).

24 years agoRemove v_maxio from struct vnode.
Poul-Henning Kamp [Wed, 29 Sep 1999 20:05:33 +0000 (20:05 +0000)]
Remove v_maxio from struct vnode.

Replace it with mnt_iosize_max in struct mount.

Nits from: bde

24 years ago Make FreeBSD less conservative in determining when to return a cookie
Matthew Dillon [Wed, 29 Sep 1999 17:14:58 +0000 (17:14 +0000)]
Make FreeBSD less conservative in determining when to return a cookie
    error for a directory.  I have made this change after a great deal of
    review although I cannot be absolutely sure that this meets the spec.

    The issue devolves into whether changes in an underlying (UFS) directory
    can cause NFS directory blocks to be renumbered.  My read of the code
    indicates that NFS directory blocks will not be renumbered, which means
    that the cookies should still remain valid after a change is made to
    the underlying directory.  This being the case, a cookie error should
    not be returned when a change is made to the underlying directory and,
    instead, the NFS client should rely on mtime detection to invalidate and
    reload the directory.

    The use of mtime is problematic in of itself, due to insufficient
    resolution, which is why I believe the original conservative error
    handling was done.  Still, there have been dozens of bug reports by
    people needing solaris<->FreeBSD interoperability and these have to
    be accomodated.

24 years ago Bring kernel malloc documentation up to date, including the example.
Matthew Dillon [Wed, 29 Sep 1999 16:49:18 +0000 (16:49 +0000)]
Bring kernel malloc documentation up to date, including the example.

PR: docs/10059

24 years agosigset_t change (part 5 of 5)
Marcel Moolenaar [Wed, 29 Sep 1999 15:18:46 +0000 (15:18 +0000)]
sigset_t change (part 5 of 5)
-----------------------------

Most of the userland changes are in libc. For both the alpha
and the i386 setjmp has been changed to accomodate for the
new sigset_t. Internally, libc is mostly rewritten to use the
new syscalls. The exception is in compat-43/sigcompat.c

The POSIX thread library has also been rewritten to use the
new sigset_t. Except, that it currently only handles NSIG
signals instead of the maximum _SIG_MAXSIG. This should not
be a problem because current applications don't use any
signals higher than NSIG.

There are version bumps for the following libraries:
  libdialog
  libreadline
  libc
  libc_r
  libedit
  libftpio
  libss

These libraries either a) have one of the modified structures
visible in the interface, or b) use sigset_t internally and
may cause breakage if new binaries are used against libraries
that don't have the sigset_t change. This not an immediate
issue, but will be as soon as applications start using the
new range to its fullest.

NOTE: libncurses already had an version bump and has not been
      given one now.

NOTE: doscmd is a real casualty and has been disconnected for
      the moment. Reconnection will eventually happen after
      doscmd has been fixed. I'm aware that being the last one
      to touch it, I'm automaticly promoted to being maintainer.
      According to good taste this means that I will receive a
      badge which either will be glued or mechanically stapled,
      drilled or otherwise violently forced onto me :-)

NOTE: pcvt/vttest cannot be compiled with -traditional. The
      change cause sys/types to be included along the way which
      contains the const and volatile modifiers. I don't consider
      this a solution, but more a workaround.

24 years agosigset_t change (part 4 of 5)
Marcel Moolenaar [Wed, 29 Sep 1999 15:12:18 +0000 (15:12 +0000)]
sigset_t change (part 4 of 5)
-----------------------------

The compatibility code and/or emulators have been updated:

iBCS2 now mostly uses the older syscalls. SVR4 now properly
handles all signals. This has been achieved by using the
new sigset_t throughout the emulator. The Linuxulator has
been severely updated. Internally the new Linux sigset_t is
made the default. These are then mapped to and from the
new FreeBSD sigset_t.

Also, rt_sigsuspend has been implemented in the Linuxulator.
Implementing this syscall basicly caused all this sigset_t
changing in the first place and the syscall has been used
throughout the change as a means for testing. It basicly is
too much work to undo the implementation so that it can
later be added again.

A special note on the use of sv_sigtbl and sv_sigsize in
struct sysentvec:
Every signal larger than sv_sigsize is not translated and is
passed on to the signal handler unmodified. Signals in the
range 1 upto and including sv_sigsize are translated.
The rationale is that only the system defined signals need to
be translated.

The emulators also have been updated so that the translation
tables are only indexed for valid (system defined) signals.
This change also fixes the translation bug already in the
SVR4 emulator.

24 years agosigset_t change (part 3 of 5)
Marcel Moolenaar [Wed, 29 Sep 1999 15:06:27 +0000 (15:06 +0000)]
sigset_t change (part 3 of 5)
-----------------------------

By introducing a new sigframe so that the signal handler operates
on the new siginfo_t and on ucontext_t instead of sigcontext, we
now need two version of sendsig and sigreturn.

A flag in struct proc determines whether the process expects an
old sigframe or a new sigframe. The signal trampoline handles
which sigreturn to call. It does this by testing for a magic
cookie in the frame.

The alpha uses osigreturn to implement longjmp. This means that
osigreturn is not only used for compatibility with existing
binaries. To handle the new sigset_t, setjmp saves it in
sc_reserved (see NOTE).

the struct sigframe has been moved from frame.h to sigframe.h
to handle the complex header dependencies that was caused by
the new sigframe.

NOTE: For the i386, the size of jmp_buf has been increased to hold
      the new sigset_t. On the alpha this has been prevented by
      using sc_reserved in sigcontext.

24 years agosigset_t change (part 2 of 5)
Marcel Moolenaar [Wed, 29 Sep 1999 15:03:48 +0000 (15:03 +0000)]
sigset_t change (part 2 of 5)
-----------------------------

The core of the signalling code has been rewritten to operate
on the new sigset_t. No methodological changes have been made.
Most references to a sigset_t object are through macros (see
signalvar.h) to create a level of abstraction and to provide
a basis for further improvements.

The NSIG constant has not been changed to reflect the maximum
number of signals possible. The reason is that it breaks
programs (especially shells) which assume that all signals
have a non-null name in sys_signame. See src/bin/sh/trap.c
for an example. Instead _SIG_MAXSIG has been introduced to
hold the maximum signal possible with the new sigset_t.

struct sigprop has been moved from signalvar.h to kern_sig.c
because a) it is only used there, and b) access must be done
though function sigprop(). The latter because the table doesn't
holds properties for all signals, but only for the first NSIG
signals.

signal.h has been reorganized to make reading easier and to
add the new and/or modified structures. The "old" structures
are moved to signalvar.h to prevent namespace polution.

Especially the coda filesystem suffers from the change, because
it contained lines like (p->p_sigmask == SIGIO), which is easy
to do for integral types, but not for compound types.

NOTE: kdump (and port linux_kdump) must be recompiled.

Thanks to Garrett Wollman and Daniel Eischen for pressing the
importance of changing sigreturn as well.

24 years agosigset_t change (part 1 of 5)
Marcel Moolenaar [Wed, 29 Sep 1999 15:01:21 +0000 (15:01 +0000)]
sigset_t change (part 1 of 5)
-----------------------------

Rename sigaction, sigprocmask, sigpending and sigsuspend to
osigaction, osigprocmask, osigpending and osigsuspend (resp)
and add new syscalls for them to support the new sisgset_t
without breaking existing binaries.

Change the prototype of sigaltstack to use the typedef stack_t
instead of struct sigaltstack to reflect that it is SUSv2
compliant.

Also, rename sigreturn to osigreturn and add a new syscall
to support the modified stackframe. The change is caused by
sigreturn operating on ucontext_t now and the fact that
siginfo_t has been updated to conform to SUSv2.

24 years agoFix world-breaking bug, add $FreeBSD$ tag.
Daniel C. Sobral [Wed, 29 Sep 1999 10:58:43 +0000 (10:58 +0000)]
Fix world-breaking bug, add $FreeBSD$ tag.

This happened to be my first "for real" broken world. I had broken
it once before, but nobody noticed, so it didn't count.

So, how do I get the "I broke world and all I got was the lousy t-shirt"
t-shirt?

24 years agoAdd ID for ESS ES1869.
Doug Rabson [Wed, 29 Sep 1999 07:27:35 +0000 (07:27 +0000)]
Add ID for ESS ES1869.

24 years agoFixes a silly bug that somehow escaped my notice all these months.
Daniel C. Sobral [Wed, 29 Sep 1999 04:46:01 +0000 (04:46 +0000)]
Fixes a silly bug that somehow escaped my notice all these months.

24 years agoBring in ficl version 2.03. No version bump for loader.
Daniel C. Sobral [Wed, 29 Sep 1999 04:43:16 +0000 (04:43 +0000)]
Bring in ficl version 2.03. No version bump for loader.

24 years agoAdd description of checkparity and rebuildparity.
Greg Lehey [Tue, 28 Sep 1999 23:03:29 +0000 (23:03 +0000)]
Add description of checkparity and rebuildparity.

Remove a half-started message.

Reported-by:       "Jeffrey J. Mountin" <jeff@mountin.net>

24 years agoBrucify comments.
Greg Lehey [Tue, 28 Sep 1999 23:02:14 +0000 (23:02 +0000)]
Brucify comments.

vinum_lpi: Add information about progress of rebuildparity and
           checkparity commands.

listconfig: Print object counts in a different format, don't refer to
the internal number of slots allocated:

Caused-confusion-to: Norbert Meissner <norbert.meissner@daimlerchrysler.com>
vinum_info: Change format of device numbers so that they fit in the
column (ignore high-order minor number bits, which aren't really of
much interest).

24 years agovinum_init: Fix message typo.
Greg Lehey [Tue, 28 Sep 1999 23:00:05 +0000 (23:00 +0000)]
vinum_init: Fix message typo.

vinum_start: bzero the statinfo.dinfo struct.  The lack of this was
causing sporadic failures of the start command.

Add body of vinum_checkparity command.

24 years agostruct plex: Add variables checkblock and rebuildblock to keep track
Greg Lehey [Tue, 28 Sep 1999 22:58:07 +0000 (22:58 +0000)]
struct plex: Add variables checkblock and rebuildblock to keep track
             of parity check and rebuild operations.  This enables us
             to stop the operation and restart at a later time.

enum parityop: Trivial enum to decide what parityops() is going to do.

24 years agorevive_block: set b_resid correctly.
Greg Lehey [Tue, 28 Sep 1999 22:57:29 +0000 (22:57 +0000)]
revive_block: set b_resid correctly.

parityops: New function to check and rebuild RAID-5 parity blocks.
Not yet usable.

24 years agologrq: add sdiodone case.
Greg Lehey [Tue, 28 Sep 1999 22:56:54 +0000 (22:56 +0000)]
logrq: add sdiodone case.

launch_requests: Remove debug code

sdio: Reformat log call.

24 years agoDon't count iterations while waiting for a lock to become free.
Greg Lehey [Tue, 28 Sep 1999 22:56:04 +0000 (22:56 +0000)]
Don't count iterations while waiting for a lock to become free.

24 years agoAdd ioctls VINUM_CHECKPARITY and VINUM_RESETPARITY, still to be fully
Greg Lehey [Tue, 28 Sep 1999 22:55:37 +0000 (22:55 +0000)]
Add ioctls VINUM_CHECKPARITY and VINUM_RESETPARITY, still to be fully
implemented.

24 years agoReduce MAX_IOCTL_REPLY to 1024; the previous value was more than ioctl
Greg Lehey [Tue, 28 Sep 1999 22:54:58 +0000 (22:54 +0000)]
Reduce MAX_IOCTL_REPLY to 1024; the previous value was more than ioctl
could stand.

Define the correct return lengths for a number of ioctls.

Add ioctls VINUM_CHECKPARITY and VINUM_RESETPARITY, still to be fully
implemented.

24 years agoopen_drive: Don't call set_drive_state to take a drive down, do it
Greg Lehey [Tue, 28 Sep 1999 22:46:39 +0000 (22:46 +0000)]
open_drive: Don't call set_drive_state to take a drive down, do it
            ourselves.  This breaks a vicious circle which caused
            vinum to dereference a null vp if device nodes were
            missing.

Reported-by: Brad Chisholm <sasblc@unx.sas.com>
Alec Wolman <wolman@cs.washington.edu>

check_drive: Don't take a drive down if it's only referenced.

read_drive: Remove unused variable.

24 years agosdio_done: Log events if DEBUG_LASTREQS set.
Greg Lehey [Tue, 28 Sep 1999 22:45:21 +0000 (22:45 +0000)]
sdio_done: Log events if DEBUG_LASTREQS set.

24 years agoChange remove_drive_entry
Greg Lehey [Tue, 28 Sep 1999 22:43:59 +0000 (22:43 +0000)]
Change remove_drive_entry
Add parityops

24 years agoRemove some superfluous comments.
Greg Lehey [Tue, 28 Sep 1999 22:43:07 +0000 (22:43 +0000)]
Remove some superfluous comments.

get_empty_volume: initialize plexes to -1 (not allocated)

remove_drive_entry:
  Remove recurse parameter (there's nothing below a drive in the hierarchy).
  Use remove_sd_entry to remove sds, don't do it ourselves.
  Log errors, don't throw rude remarks.

remove_plex_entry:
  Don't use plex->subdisks as a loop limit, it gets changed in the
     loop.  This caused some removals to only remove half the subdisks.
  Change logging of some "impossible" situations.

remove_volume_entry:
  Use remove_plex_entry to remove plexes, don't do it ourselves.

update_sd_config:
  Use set_sd_state to do the work.

24 years agoMinor formatting changes (7th attempt)
Greg Lehey [Tue, 28 Sep 1999 22:42:06 +0000 (22:42 +0000)]
Minor formatting changes (7th attempt)

24 years agoAdd loginfo type for sdiodone.
Greg Lehey [Tue, 28 Sep 1999 22:27:10 +0000 (22:27 +0000)]
Add loginfo type for sdiodone.

24 years ago* add a non-reset device- will not reset the channel on open. you
Cameron Grant [Tue, 28 Sep 1999 21:43:35 +0000 (21:43 +0000)]
* add a non-reset device- will not reset the channel on open.  you
  will have to mknod yourself for now.
* don't eat the first write()
* partial rvplayer fix- don't panic on unaligned writes unless our
  feeder chain requires them for downconversion.  a fuller fix is
  on the way.

24 years agoadd a missing blank line
Cameron Grant [Tue, 28 Sep 1999 20:24:28 +0000 (20:24 +0000)]
add a missing blank line

24 years agoadd the ad1816 driver
Cameron Grant [Tue, 28 Sep 1999 20:02:44 +0000 (20:02 +0000)]
add the ad1816 driver

24 years agoseperate the ad1816 driver from the mss driver since it shares no code
Cameron Grant [Tue, 28 Sep 1999 20:00:06 +0000 (20:00 +0000)]
seperate the ad1816 driver from the mss driver since it shares no code

24 years agoUse rmand_get_bus{tag,handle} rather than hard wiring things to
Warner Losh [Tue, 28 Sep 1999 19:59:41 +0000 (19:59 +0000)]
Use rmand_get_bus{tag,handle} rather than hard wiring things to
I386_BUS_SPACE_IO.  Compiles now on the Alpha, but likely will not
work due to bus space address <-> virtual address mapping bogons that
work for i386 but not alpha.

24 years agoBack out my backout, it was already posix compliant. Any new fields are
Peter Wemm [Tue, 28 Sep 1999 16:58:46 +0000 (16:58 +0000)]
Back out my backout, it was already posix compliant.  Any new fields are
required to be "announced" by a new bit in sa_flags to indicate the
program is aware of and has taken care of them.  eg: SA_SIGINFO means
the program has used the sa_siginfo field (versus sa_handler).

24 years agoDocument the "noasync" option.
David E. O'Brien [Tue, 28 Sep 1999 15:49:47 +0000 (15:49 +0000)]
Document the "noasync" option.

24 years agoFix previous commit. The standards specifically say: "The structure
Peter Wemm [Tue, 28 Sep 1999 15:40:17 +0000 (15:40 +0000)]
Fix previous commit.  The standards specifically say:  "The structure
sigaction, used to describe an action to be taken, is defined in the
header <signal.h> to include at least the following members:"
                             ^^^^^^^^
A sigaction defined on stack with essentially random contents may have
just about anything underneath fields that the program doesn't know about.
It is not safe to delete the bzero.

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
Marcel Moolenaar [Tue, 28 Sep 1999 13:43:21 +0000 (13:43 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags added so that we can lose the bzero.
IIRC, this code is not used anymore since the addition of
ncurses. Commit the change anyway so, just to be safe.

$FreeBSD$ tag added

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
Marcel Moolenaar [Tue, 28 Sep 1999 13:33:13 +0000 (13:33 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags added so that the 'struct sigaction'
can be declared local in both functions that use the global
(static) declaration. Remove the global declaration.

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
Marcel Moolenaar [Tue, 28 Sep 1999 13:26:11 +0000 (13:26 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.

24 years agoExplicitly use sigemptyset to clear a sigset_t. Explicit
Marcel Moolenaar [Tue, 28 Sep 1999 13:24:13 +0000 (13:24 +0000)]
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.

$FreeBSD$ tag added.

24 years agoIn sbflush(), don't exit the while loop too early: this can cause
Pierre Beyssac [Tue, 28 Sep 1999 12:59:18 +0000 (12:59 +0000)]
In sbflush(), don't exit the while loop too early: this can cause
an empty mbuf to stay in the queue, then causing a needless panic
because sb_cc == 0 and sb_mbcnt != 0.

But we still need to panic rather than endlessly looping if, for
some reason, sb_cc == 0 and there are non-empty mbufs in the queue.

PR: kern/11988
Reviewed by: fenner

24 years agoIntroduce ttyread() and ttywrite() which do the canonical thing.
Poul-Henning Kamp [Tue, 28 Sep 1999 11:45:31 +0000 (11:45 +0000)]
Introduce ttyread() and ttywrite() which do the canonical thing.

Use them in many tty drivers.

Reviewed by: julian, bde

24 years agoAdd another ID for the AWE64.
Doug Rabson [Tue, 28 Sep 1999 08:25:08 +0000 (08:25 +0000)]
Add another ID for the AWE64.

24 years agoSync w/ sys/i386/isa/pcaudio.c revision 1.54.
KATO Takenori [Tue, 28 Sep 1999 08:19:53 +0000 (08:19 +0000)]
Sync w/ sys/i386/isa/pcaudio.c revision 1.54.

24 years agoRemoved aha driver.
KATO Takenori [Tue, 28 Sep 1999 08:16:37 +0000 (08:16 +0000)]
Removed aha driver.

24 years agoSync w/ sys/i386/conf/files.i386 revision 1.274.
KATO Takenori [Tue, 28 Sep 1999 08:07:42 +0000 (08:07 +0000)]
Sync w/ sys/i386/conf/files.i386 revision 1.274.

24 years agoDo not defer setting of the aliasing address from
Ruslan Ermilov [Tue, 28 Sep 1999 08:01:46 +0000 (08:01 +0000)]
Do not defer setting of the aliasing address from
interface name if not operating in dynamic mode.

Reviewed by: Ari Suutari <ari@suutari.iki.fi>

24 years agoReconnect 'bktr' now that world won't (I hope) break again from it.
Peter Wemm [Tue, 28 Sep 1999 07:28:59 +0000 (07:28 +0000)]
Reconnect 'bktr' now that world won't (I hope) break again from it.
'make depend' was falling over in it before.

24 years agoMake the bktr module build. The Makefile was badly mangled, including
Peter Wemm [Tue, 28 Sep 1999 07:23:59 +0000 (07:23 +0000)]
Make the bktr module build.  The Makefile was badly mangled, including
leaving the ".c" out of most of the SRCS= source files.

24 years ago Make sure file after VOP_OPEN is VMIO'd when transfering control from
Matthew Dillon [Tue, 28 Sep 1999 05:48:39 +0000 (05:48 +0000)]
Make sure file after VOP_OPEN is VMIO'd when transfering control from
    a lower layer to an upper layer.  I'm not sure how necessary this is
    for reading.

    Fix bug in union_lookup() (note: there are probably still several bugs
    in union_lookup()).  This one set lerror as a side effect without
    setting lowervp, causing copyup code further on down to crash on a null
    lowervp pointer.  Changed the side effect to use a temporary variable
    instead.

24 years ago.Nm += "rtld"
Alexey Zelkin [Tue, 28 Sep 1999 05:35:59 +0000 (05:35 +0000)]
.Nm += "rtld"
apropos(1) now knows about rtld(1) manpage.

24 years agoOoops- forgot to commit this.
Matt Jacob [Tue, 28 Sep 1999 05:14:52 +0000 (05:14 +0000)]
Ooops- forgot to commit this.
PR: 14009
Submitted by: jreynold@primenet.com

24 years agoXref strlcat, strlcpy
Warner Losh [Tue, 28 Sep 1999 04:11:47 +0000 (04:11 +0000)]
Xref strlcat, strlcpy

Inspired by: NetBSD commit message describing this.

24 years agoFix breakage caused by last commit. Also accommodate the new interfaces
Steve Price [Tue, 28 Sep 1999 03:42:32 +0000 (03:42 +0000)]
Fix breakage caused by last commit.  Also accommodate the new interfaces
to the bpf* routines so this driver has a fighting chance of actually
working once it's compiled.

Silently approved by: freebsd-alpha@freebsd.org

24 years agoMake aha a loadable module. Unloading doesn't work well. Fix slight
Warner Losh [Tue, 28 Sep 1999 02:47:36 +0000 (02:47 +0000)]
Make aha a loadable module.  Unloading doesn't work well.  Fix slight
disordering of SUBDIRs list while I was in modules/Makefile.

24 years ago/tmp/cvswGS523
Warner Losh [Tue, 28 Sep 1999 02:45:34 +0000 (02:45 +0000)]
/tmp/cvswGS523

24 years agoNewbusification of aha. dfr sent me the first cut, and I made it
Warner Losh [Tue, 28 Sep 1999 02:39:45 +0000 (02:39 +0000)]
Newbusification of aha.  dfr sent me the first cut, and I made it
work.  Be more verbose when one cannot allocate IRQ, et al since this
is a common configuration problem.  The cards have the IRQ soft wired
into their BIOS and do not try to do collision detection.  This can
cause problems when this IRQ is the same as another card/device.

The PNP hasn't been tested.  My PNP board is in a deployed system.
I'll sneak in testing of it sometime later.  I've been able to mount
the 3.3R cdrom that arrived today and access files off it.

Submitted by: dfr

24 years agoUse mkstemp(3) instead of tmpnam(3) when creating temporary files for mode
Kenneth D. Merry [Tue, 28 Sep 1999 02:01:46 +0000 (02:01 +0000)]
Use mkstemp(3) instead of tmpnam(3) when creating temporary files for mode
page editing.

Submitted by: roberto
Reviewed by: imp, ken

24 years agoOh bollocks, I really screwed up the "auto" check here. Time
Jordan K. Hubbard [Mon, 27 Sep 1999 21:48:28 +0000 (21:48 +0000)]
Oh bollocks, I really screwed up the "auto" check here.  Time
to crack the K&R; I must have forgotten the C language. :)

Embarrassingly noticed by: Howard Gutch <logix@foobar.franken.de>

24 years agoUpdate the upgrade instructions for awk 3.0.4.
Sheldon Hearn [Mon, 27 Sep 1999 09:09:08 +0000 (09:09 +0000)]
Update the upgrade instructions for awk 3.0.4.

24 years agoFix conflicts. Add $FreeBSD$ as needed.
Sheldon Hearn [Mon, 27 Sep 1999 08:57:04 +0000 (08:57 +0000)]
Fix conflicts.  Add $FreeBSD$ as needed.

24 years agoThis commit was generated by cvs2svn to compensate for changes in r51728,
Sheldon Hearn [Mon, 27 Sep 1999 08:51:04 +0000 (08:51 +0000)]
This commit was generated by cvs2svn to compensate for changes in r51728,
which included commits to RCS files with non-trunk default branches.

24 years agoVirgin import of GNU awk 3.0.4, which fixes at least a memory mis-
Sheldon Hearn [Mon, 27 Sep 1999 08:51:04 +0000 (08:51 +0000)]
Virgin import of GNU awk 3.0.4, which fixes at least a memory mis-
management problem involving custom print formats.

PR: 13615
Reported by: Scott Hazen Mueller <scott@zorch.sf-bay.org>

24 years agoProperly handle the case when either the aliasing or source address of
Ruslan Ermilov [Mon, 27 Sep 1999 08:40:36 +0000 (08:40 +0000)]
Properly handle the case when either the aliasing or source address of
the link are equal to the default aliasing address.  Do not zero them!

This will fix the problem with non-working links added with the source
and/or aliasing address equal to the default aliasing address, but the
default aliasing address is set later, after the link has been set up,
like both natd(8) and ppp(8) do (for objective reasons).

Reviewed by: Brian Somers <brian@FreeBSD.org>,
Eivind Eklund <eivind@FreeBSD.org>,
Charles Mott <cmott@srv.net>

24 years agoAdd auto-detection for Askey Dynalink Magic TView and
Roger Hardiman [Mon, 27 Sep 1999 08:04:55 +0000 (08:04 +0000)]
Add auto-detection for Askey Dynalink Magic TView and
Leadtek Winfast 2000 cards.
No audio support yet, just the card make is reported.

Submitted by:  Craig <crh@outpost.co.nz>
Submitted by:  Peter Wemm <peter@netplex.com.au>

24 years agoFix two rather embarrassing bugs in camcontrol. The first caused the
Kenneth D. Merry [Mon, 27 Sep 1999 06:12:57 +0000 (06:12 +0000)]
Fix two rather embarrassing bugs in camcontrol.  The first caused the
CAM_PASS_ERR_RECOVER flag to be set unconditionally on READ DEFECTS
commands, and also caused the CAM_DIR_IN flag to not be set.  This was
the cause of all of the "camcontrol defects doesn't work with my NCR
controller" bugs.

The second prevented camcontrol negotiate from negotiating any bus width
other than 8 bits.

Submitted by: groudier@club-internet.fr (Gerard Roudier)

24 years agoed driver re-activated.
KATO Takenori [Mon, 27 Sep 1999 03:39:15 +0000 (03:39 +0000)]
ed driver re-activated.

24 years agoRemoved pc98 code.
KATO Takenori [Mon, 27 Sep 1999 03:37:36 +0000 (03:37 +0000)]
Removed pc98 code.

24 years agoMake ed driver work again.
KATO Takenori [Mon, 27 Sep 1999 03:35:41 +0000 (03:35 +0000)]
Make ed driver work again.

isa_compat.c
  Copied from sys/i386/isa/isa_compat.c.  It includes
  sys/pc98/pc98/isa_compat.h instead of sys/i386/isa/isa_compat.h.

isa_compat.h
  Copied from sys/i386/isa/isa_compat.c.  The ed driver is registered
  in this file until pc98's ed driver is converted into new-bus style.

files.pc98
  Use sys/pc98/pc98/isa_compat.c instead of sys/i386/isa/isa_compat.c.

if_ed.c
  - Fixed the location of the include file.
  - Disalbed pnp support.

24 years agoMerge from sys/isa/fd.c revision 1.146, 1.153, 1.154 and 1.159.
Yoshihiro Takahashi [Mon, 27 Sep 1999 03:32:31 +0000 (03:32 +0000)]
Merge from sys/isa/fd.c revision 1.146, 1.153, 1.154 and 1.159.

24 years agoMove if_ed.c back to files.i386 since pc98 has a special ed driver.
KATO Takenori [Mon, 27 Sep 1999 03:11:36 +0000 (03:11 +0000)]
Move if_ed.c back to files.i386 since pc98 has a special ed driver.

Reviewed by: peter

24 years agoSpell 'timecounter' correctly.
Bill Fumerola [Mon, 27 Sep 1999 02:13:38 +0000 (02:13 +0000)]
Spell 'timecounter' correctly.

24 years agoRevert non-aha changes. They weren't supposed to go in.
Warner Losh [Mon, 27 Sep 1999 02:07:12 +0000 (02:07 +0000)]
Revert non-aha changes.  They weren't supposed to go in.

24 years agoSeperate pcaudio from isa/snd and isa/sound - it's not worth this breaking
Peter Wemm [Mon, 27 Sep 1999 01:52:37 +0000 (01:52 +0000)]
Seperate pcaudio from isa/snd and isa/sound - it's not worth this breaking
each time there is a change.

24 years agoCorrect typo in comment. putccdbuf() releases a buffer, it doesn't allocate one.
Greg Lehey [Mon, 27 Sep 1999 01:51:42 +0000 (01:51 +0000)]
Correct typo in comment.  putccdbuf() releases a buffer, it doesn't allocate one.

24 years agoMove aha driver to dev/aha like the other drivers.
Warner Losh [Mon, 27 Sep 1999 01:51:18 +0000 (01:51 +0000)]
Move aha driver to dev/aha like the other drivers.

Code relocation only, no code changes.

24 years agoZap some unused echo "#define NFOO 1" > foo.h style defunct stuff.
Peter Wemm [Mon, 27 Sep 1999 01:04:44 +0000 (01:04 +0000)]
Zap some unused echo "#define NFOO 1" > foo.h style defunct stuff.

24 years agoDon't set an unused make(1) variable (NBPF)
Peter Wemm [Mon, 27 Sep 1999 01:00:20 +0000 (01:00 +0000)]
Don't set an unused make(1) variable (NBPF)

24 years agobktr (as a module) doesn't build.
Peter Wemm [Mon, 27 Sep 1999 00:56:32 +0000 (00:56 +0000)]
bktr (as a module) doesn't build.

24 years agoZap #include "tun.h" (for NTUN) - which isn't used anymore.
Peter Wemm [Mon, 27 Sep 1999 00:55:29 +0000 (00:55 +0000)]
Zap #include "tun.h" (for NTUN) - which isn't used anymore.

24 years agozap #include "streams.h" (for NSTREAMS) - which isn't used.
Peter Wemm [Mon, 27 Sep 1999 00:54:20 +0000 (00:54 +0000)]
zap #include "streams.h" (for NSTREAMS) - which isn't used.

24 years agoZap #include "vn.h" - it's not used
Peter Wemm [Mon, 27 Sep 1999 00:53:24 +0000 (00:53 +0000)]
Zap #include "vn.h" - it's not used

24 years agoDon't generate 'bpf.h' since it's not used.
Peter Wemm [Mon, 27 Sep 1999 00:39:29 +0000 (00:39 +0000)]
Don't generate 'bpf.h' since it's not used.

24 years ago-Wall fixes.
Bill Fumerola [Mon, 27 Sep 1999 00:36:03 +0000 (00:36 +0000)]
-Wall fixes.

Submitted by: nrahlstr

24 years agoDon't generate 'bpf.h' since it's not used.
Peter Wemm [Mon, 27 Sep 1999 00:34:02 +0000 (00:34 +0000)]
Don't generate 'bpf.h' since it's not used.

24 years ago If the request crosses EOF and bp->b_bcount is not a multiple of
Matthew Dillon [Mon, 27 Sep 1999 00:27:32 +0000 (00:27 +0000)]
If the request crosses EOF and bp->b_bcount is not a multiple of
    the sector size, the new value for bp->b_bcount was incorrectly
    calculated.  Fixed.

Submitted by:  Tor.Egge@fast.no

24 years ago Fix process p_locks accounting. Conversions of the owner to LK_KERNPROC
Matthew Dillon [Mon, 27 Sep 1999 00:21:43 +0000 (00:21 +0000)]
Fix process p_locks accounting.  Conversions of the owner to LK_KERNPROC
    caused p_locks to be improperly accounted.

Submitted by: Tor.Egge@fast.no

24 years ago Buffer locking code failed to use BUF_KERNPROC and BUF_UNLOCK and
Matthew Dillon [Mon, 27 Sep 1999 00:12:36 +0000 (00:12 +0000)]
Buffer locking code failed to use BUF_KERNPROC and BUF_UNLOCK and
    BUF_LOCKFREE a buffer prior to physically freeing it.  While these
    bugs did not cause a crash, they might in the future.

    Added eof handling for unlabeled partitions.

Submitted by: Tor.Egge@fast.no

24 years agoShow an example of ``set cd off''
Brian Somers [Sun, 26 Sep 1999 23:18:54 +0000 (23:18 +0000)]
Show an example of ``set cd off''

24 years agoSupport ``set cd off'' to tell ppp not to even look for carrier on the
Brian Somers [Sun, 26 Sep 1999 23:02:18 +0000 (23:02 +0000)]
Support ``set cd off'' to tell ppp not to even look for carrier on the
device.

24 years agoBid a fond farewell to these files, they live on various forms in
Peter Wemm [Sun, 26 Sep 1999 22:20:29 +0000 (22:20 +0000)]
Bid a fond farewell to these files, they live on various forms in
dev/pcm/* and dev/pcm/isa/*

24 years agoThese files live on in sys/dev/pcm/pci/es1370*
Peter Wemm [Sun, 26 Sep 1999 22:15:49 +0000 (22:15 +0000)]
These files live on in sys/dev/pcm/pci/es1370*

24 years agoUpdate to use new Bt848 driver
Roger Hardiman [Sun, 26 Sep 1999 22:13:06 +0000 (22:13 +0000)]
Update to use new Bt848 driver

24 years agoAdd new Bt848 driver files
Roger Hardiman [Sun, 26 Sep 1999 22:08:55 +0000 (22:08 +0000)]
Add new Bt848 driver files

24 years agoSplit the Bt848 driver into seperate files for
Roger Hardiman [Sun, 26 Sep 1999 22:06:20 +0000 (22:06 +0000)]
Split the Bt848 driver into seperate files for
audio, tuner, card make, os dependent code and core bt848/i2c code.

Also, rewrite tuner code for FM Radio to make the code cleaner.

24 years ago[[ Forced commit for last (null) message ]]
Warner Losh [Sun, 26 Sep 1999 21:58:43 +0000 (21:58 +0000)]
[[ Forced commit for last (null) message ]]

Revert to using ointhand2_t rather than inthand2_t.  Use unwise casts
to pass pointers as ints in i386 only code.  This will be fixed in the
future as the transition to newbus completes.

This eliminates the warnings and still works.

Add $FreeBSD$ to driver.h and pcic.c

24 years ago*** empty log message ***
Warner Losh [Sun, 26 Sep 1999 21:52:43 +0000 (21:52 +0000)]
*** empty log message ***

24 years ago-Wall cleanups, handle unknown cases.
Bill Fumerola [Sun, 26 Sep 1999 21:44:16 +0000 (21:44 +0000)]
-Wall cleanups, handle unknown cases.

Submitted by: billf, ken
Reviewed by: ken