]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
25 years agoCreate score files root:games rather than bin:{games,bin}.
David E. O'Brien [Wed, 23 Jun 1999 04:26:37 +0000 (04:26 +0000)]
Create score files root:games rather than bin:{games,bin}.

related-to-PR: bin/8440
Submitted by: Stephen J. Roznowski sjr@home.net

25 years agoEliminate dead ntp servers.
Jordan K. Hubbard [Wed, 23 Jun 1999 03:52:10 +0000 (03:52 +0000)]
Eliminate dead ntp servers.

Submitted by: mharo

25 years agoMake UTC or local time message a little more clear.
Michael Haro [Wed, 23 Jun 1999 03:31:36 +0000 (03:31 +0000)]
Make UTC or local time message a little more clear.

25 years agoBackout last change. strerror doesn't exist in the kernel.
Greg Lehey [Wed, 23 Jun 1999 00:31:27 +0000 (00:31 +0000)]
Backout last change.  strerror doesn't exist in the kernel.

Spotted-by: "David E. Cross" <crossd@cs.rpi.edu>
25 years agoRemove an unnecessary panic when sparse PCI bus numbering is encountered.
Mike Smith [Tue, 22 Jun 1999 20:54:25 +0000 (20:54 +0000)]
Remove an unnecessary panic when sparse PCI bus numbering is encountered.
This is found eg. on some Compaq  Proliant systems.

Submitted by: peter

25 years agoWrap the definition of "XE_DEBUG" so it is overridable from the ``cc''
David E. O'Brien [Tue, 22 Jun 1999 19:21:00 +0000 (19:21 +0000)]
Wrap the definition of "XE_DEBUG" so it is overridable from the ``cc''
commandline or kernel conf file.

25 years agoFix conflicts.
David E. O'Brien [Tue, 22 Jun 1999 19:19:46 +0000 (19:19 +0000)]
Fix conflicts.

25 years agoThis commit was generated by cvs2svn to compensate for changes in r48114,
David E. O'Brien [Tue, 22 Jun 1999 19:12:08 +0000 (19:12 +0000)]
This commit was generated by cvs2svn to compensate for changes in r48114,
which included commits to RCS files with non-trunk default branches.

25 years agoVirgin import of Xircom PCCARD driver v1.20 (1999/06/13):
David E. O'Brien [Tue, 22 Jun 1999 19:12:08 +0000 (19:12 +0000)]
Virgin import of Xircom PCCARD driver v1.20 (1999/06/13):

* Conformance with Dingo specification. This includes:
Collision/error statistics gathering.
Multicast address filtering, eg. the hash filter.
Initialisation and interrupt handling sequences.
Note that I've started on some of this already in v1.20.

* The probe routine needs some more work, to identify oddities such as the
  REM10.

* There are still problems with the autonegotiation code; specifically, it
  won't autonegotiate with some 10/100 hubs.  This might simply be the hardware
  not getting along, in which case there's nothing we can do, but it's still
  worth investigating

* CEM28/CEM33 support.  Should be able to integrate this directly from the
  Linux code.

* Performance enhancements:
Full-duplex on 10Mbit networks.
Virtual shared-memory mode.
Early send and receive modes.

Developed by: Scott Mitchell <scott@uk.freebsd.org>
Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/

25 years agoVirgin import of Xircom PCCARD driver v1.20 (1999/06/13):
David E. O'Brien [Tue, 22 Jun 1999 19:12:08 +0000 (19:12 +0000)]
Virgin import of Xircom PCCARD driver v1.20 (1999/06/13):

* Conformance with Dingo specification. This includes:
Collision/error statistics gathering.
Multicast address filtering, eg. the hash filter.
Initialisation and interrupt handling sequences.
Note that I've started on some of this already in v1.20.

* The probe routine needs some more work, to identify oddities such as the
  REM10.

* There are still problems with the autonegotiation code; specifically, it
  won't autonegotiate with some 10/100 hubs.  This might simply be the hardware
  not getting along, in which case there's nothing we can do, but it's still
  worth investigating

* CEM28/CEM33 support.  Should be able to integrate this directly from the
  Linux code.

* Performance enhancements:
Full-duplex on 10Mbit networks.
Virtual shared-memory mode.
Early send and receive modes.

Developed by: Scott Mitchell <scott@uk.freebsd.org>
Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/

25 years agoCheck that we really have a boot0 mbr before treating it as one.
Robert Nordier [Tue, 22 Jun 1999 18:57:49 +0000 (18:57 +0000)]
Check that we really have a boot0 mbr before treating it as one.

Suggested by: peter

Also add a few comments.

25 years agoAdd man page for device_quiet and friends
Nick Hibma [Tue, 22 Jun 1999 18:09:54 +0000 (18:09 +0000)]
Add man page for device_quiet and friends

25 years agoAllow fpsetmask(3) and friends to be used from a C++ program on the Alpha.
Steve Price [Tue, 22 Jun 1999 17:08:25 +0000 (17:08 +0000)]
Allow fpsetmask(3) and friends to be used from a C++ program on the Alpha.

Reviewed by: dfr

25 years agoReflect recent changes in syscons.
Kazutaka YOKOTA [Tue, 22 Jun 1999 14:15:46 +0000 (14:15 +0000)]
Reflect recent changes in syscons.

25 years agoThe second phase of syscons reorganization.
Kazutaka YOKOTA [Tue, 22 Jun 1999 14:14:06 +0000 (14:14 +0000)]
The second phase of syscons reorganization.

- Split syscons source code into manageable chunks and reorganize
  some of complicated functions.

- Many static variables are moved to the softc structure.

- Added a new key function, PREV.  When this key is pressed, the vty
  immediately before the current vty will become foreground.  Analogue
  to PREV, which is usually assigned to the PrntScrn key.
  PR: kern/10113
  Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>

- Modified the kernel console input function sccngetc() so that it
  handles function keys properly.

- Reorganized the screen update routine.

- VT switching code is reorganized.  It now should be slightly more
  robust than before.

- Added the DEVICE_RESUME function so that syscons no longer hooks the
  APM resume event directly.

- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING,
  SC_NO_HISTORY and SC_NO_SYSMOUSE.
  Various parts of syscons can be omitted so that the kernel size is
  reduced.

  SC_PIXEL_MODE
  Made the VESA 800x600 mode an option, rather than a standard part of
  syscons.

  SC_DISABLE_DDBKEY
  Disables the `debug' key combination.

  SC_ALT_MOUSE_IMAGE
  Inverse the character cell at the mouse cursor position in the text
  console, rather than drawing an arrow on the screen.
  Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG)

  SC_DFLT_FONT
  makeoptions "SC_DFLT_FONT=_font_name_"
  Include the named font as the default font of syscons.  16-line,
  14-line and 8-line font data will be compiled in.  This option replaces
  the existing STD8X16FONT option, which loads 16-line font data only.

- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.

- The video driver provides a set of ioctl commands to manipulate the
  frame buffer.

- New kernel configuration option: VGA_WIDTH90
  Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60.  These
  modes are mot always supported by the video card.
  PR: i386/7510
  Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx.

- The header file machine/console.h is reorganized; its contents is now
  split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h
  (another new file).  machine/console.h is still maintained for
  compatibility reasons.

- Kernel console selection/installation routines are fixed and
  slightly rebumped so that it should now be possible to switch between
  the interanl kernel console (sc or vt) and a remote kernel console
  (sio) again, as it was in 2.x, 3.0 and 3.1.

- Screen savers and splash screen decoders
  Because of the header file reorganization described above, screen
  savers and splash screen decoders are slightly modified.  After this
  update, /sys/modules/syscons/saver.h is no longer necessary and is
  removed.

25 years agoDisable TUNSLMODE when we first open the tun device.
Brian Somers [Tue, 22 Jun 1999 11:31:42 +0000 (11:31 +0000)]
Disable TUNSLMODE when we first open the tun device.

Submitted by: Ian West <ian@niw.com.au>

25 years agoDon't get caught in an infinite recursion when PKT_ALIAS_REVERSE
Brian Somers [Tue, 22 Jun 1999 11:20:03 +0000 (11:20 +0000)]
Don't get caught in an infinite recursion when PKT_ALIAS_REVERSE
is set.
Document PKT_ALIAS_REVERSE.

Pointed out by: Jonathan Hanna <jh@cr1003333-a.crdva1.bc.home.com>
PR: 12304

25 years agoPass the current timecounter to pps_event().
Poul-Henning Kamp [Tue, 22 Jun 1999 10:31:30 +0000 (10:31 +0000)]
Pass the current timecounter to pps_event().

25 years agoHandle suspend/resume methods
Peter Wemm [Tue, 22 Jun 1999 09:44:00 +0000 (09:44 +0000)]
Handle suspend/resume methods

Obtained from: Warner Losh <imp@freebsd.org>

25 years agoRemove (1) "extern" declarations for variables that were previously
Alan Cox [Tue, 22 Jun 1999 07:18:20 +0000 (07:18 +0000)]
Remove (1) "extern" declarations for variables that were previously
made "static" and (2) initialized but unused variables.

25 years agoDocument the -f flag to detach.
Greg Lehey [Tue, 22 Jun 1999 05:55:32 +0000 (05:55 +0000)]
Document the -f flag to detach.

Document the dangers of adding subdisks to striped and RAID-5 plexes.

25 years agoRemove ancient, mouldy comments.
Greg Lehey [Tue, 22 Jun 1999 05:54:39 +0000 (05:54 +0000)]
Remove ancient, mouldy comments.

25 years agovinum_ldi:
Greg Lehey [Tue, 22 Jun 1999 05:53:57 +0000 (05:53 +0000)]
vinum_ldi:
  Show the available sectors relative to the user-available part of
  the drive (don't include the config space at the beginning).  This
  stops an empty drive reporting only 99% available.

Requested-by: staylor
printconfig:

  Show sizes in sectors with the suffix 's' instead of the
  now-deprecated 'b'.

25 years agoAllow a 'start <drive>' command.
Greg Lehey [Tue, 22 Jun 1999 05:53:11 +0000 (05:53 +0000)]
Allow a 'start <drive>' command.

25 years agoAdd some comments about the VINUMMINOR macro, which is not for human
Greg Lehey [Tue, 22 Jun 1999 05:41:36 +0000 (05:41 +0000)]
Add some comments about the VINUMMINOR macro, which is not for human
consumption.

25 years agobre: Don't loop if we try to access an invalid plex type. This is
Greg Lehey [Tue, 22 Jun 1999 05:40:51 +0000 (05:40 +0000)]
bre: Don't loop if we try to access an invalid plex type.  This is
     typically the case when the expurgated version of Vinum tries to
     access a RAID-5 plex.

25 years agoBe more intelligent about attaching subdisks to plexes.
Greg Lehey [Tue, 22 Jun 1999 05:37:57 +0000 (05:37 +0000)]
Be more intelligent about attaching subdisks to plexes.

25 years agoPrint more legible error message if a drive open fails.
Greg Lehey [Tue, 22 Jun 1999 05:37:05 +0000 (05:37 +0000)]
Print more legible error message if a drive open fails.

25 years agoModify to work with phk's latest mods to cdevsw. This is a temporary
Greg Lehey [Tue, 22 Jun 1999 05:36:13 +0000 (05:36 +0000)]
Modify to work with phk's latest mods to cdevsw.  This is a temporary
fix; it doesn't address the problem of removing the module.  If you do
the following:

  vinum stop
  fsck /dev/vinum/VOLUME

you *will* get a system crash.  What we need is a cdevsw_remove
corresponding to cdevsw_add, but that hasn't been written yet.

Submitted-by: phk
25 years agotypo: Adviseroty -> Advisory
Tim Vanderhoek [Tue, 22 Jun 1999 02:34:47 +0000 (02:34 +0000)]
typo: Adviseroty -> Advisory

25 years agoWhen allocating new buffers in getnewbuf, there are several points
Kirk McKusick [Tue, 22 Jun 1999 01:39:53 +0000 (01:39 +0000)]
When allocating new buffers in getnewbuf, there are several points
at which we may sleep. So, after completing our buffer allocation
we must ensure that another process has not come along and allocated
a different buffer with the same identity. We do this by keeping a
global counter of the number of buffers that getnewbuf has allocated.
We save this count when we enter getnewbuf and check it when we are
about to return. If it has changed, then other buffers were allocated
while we were in getnewbuf, so we must return NULL to let our parent
know that it must recheck to see if it still needs the new buffer.
Hopefully this fix will eliminate the creation of duplicate buffers
with the same identity and the obscure corruptions that they cause.

25 years agoOnly print the device name once, during attach (device_quiet)
Nick Hibma [Mon, 21 Jun 1999 21:32:15 +0000 (21:32 +0000)]
Only print the device name once, during attach (device_quiet)

25 years agoDon't strip trailing .suffixes from filenames. Although obviously
Tim Vanderhoek [Mon, 21 Jun 1999 19:52:09 +0000 (19:52 +0000)]
Don't strip trailing .suffixes from filenames.  Although obviously
intentional, this behaviour is far too obnoxious given the number of
filenames such as rpc.statd we have.

Submitted by: Chris Costello [3]chris@calldei.com (bin/11303)

25 years agoUpdate the locate database even if user nobody can't stat root's
Sheldon Hearn [Mon, 21 Jun 1999 18:36:18 +0000 (18:36 +0000)]
Update the locate database even if user nobody can't stat root's
home directory.

PR: 10700
Submitted by: Sergey Korsak <skif@1plus1.net>

25 years agoFill in bi_bios_geom[] in the bootinfo structure passed to the kernel.
Robert Nordier [Mon, 21 Jun 1999 18:27:02 +0000 (18:27 +0000)]
Fill in bi_bios_geom[] in the bootinfo structure passed to the kernel.
This should resolve the problem raised in PR 12315, and incidentally
makes it easier to determine what geometry the BIOS is actually using
(by way of boot -v and dmesg).

25 years agoAdd missing declarations.
Sheldon Hearn [Mon, 21 Jun 1999 17:07:20 +0000 (17:07 +0000)]
Add missing declarations.

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

25 years agoCorrectly return ENOEXEC for really short zipped files. The way this is
Tim Vanderhoek [Mon, 21 Jun 1999 16:23:13 +0000 (16:23 +0000)]
Correctly return ENOEXEC for really short zipped files.  The way this is
done is less-than cute, but this whole file is suffering from some amount
of bitrot.  Execution of zipped files should probably be implemented in a
manner similar to that of #!/interpreted files.

PR: kern/10780

25 years agoSignal init(8) instead of executing halt(8) or reboot(8)
Ruslan Ermilov [Mon, 21 Jun 1999 16:06:21 +0000 (16:06 +0000)]
Signal init(8) instead of executing halt(8) or reboot(8)
when halting or rebooting the system.  It benefits from
running /etc/rc.shutdown by init(8).

``-o'' flag is provided for backward compatibility.

PR: 5451
Discussed with: des

25 years agoDon't allow users to prevent the updating of /etc/motd on machines for
Sheldon Hearn [Mon, 21 Jun 1999 15:59:42 +0000 (15:59 +0000)]
Don't allow users to prevent the updating of /etc/motd on machines for
which /tmp is not mounted in MFS, clear_tmp_enable="NO" and
update_motd="YES".

PR: 10005
Submitted by: Anton Voronin <anton@urc.ac.ru>

25 years agoLive & postmortem kernel debugging support for the alpha platform.
Andrew Gallatin [Mon, 21 Jun 1999 15:00:15 +0000 (15:00 +0000)]
Live & postmortem kernel debugging support for the alpha platform.
This was modeled after NetBSD's kernel debugging support.

Reviewed by: Doug Rabson <dfr@nlsystems.com>

25 years agoEnsure that an update takes place when the -m option is used.
Robert Nordier [Mon, 21 Jun 1999 14:40:59 +0000 (14:40 +0000)]
Ensure that an update takes place when the -m option is used.

25 years agoUndo some of the reversions from previous revisions, and attempt to
Kris Kennaway [Mon, 21 Jun 1999 13:23:23 +0000 (13:23 +0000)]
Undo some of the reversions from previous revisions, and attempt to
minimize diffs with {Net,Open}BSD

Hinted-More-Or-Less-By: bde

25 years agoAdd missing argument to synopsis.
Sheldon Hearn [Mon, 21 Jun 1999 12:09:31 +0000 (12:09 +0000)]
Add missing argument to synopsis.

PR: 11805

25 years agoUse Dq mdoc tag for double-quoted words.
Sheldon Hearn [Mon, 21 Jun 1999 11:43:13 +0000 (11:43 +0000)]
Use Dq mdoc tag for double-quoted words.

25 years agoFix handling of maximum children and connections per minute.
Sheldon Hearn [Mon, 21 Jun 1999 11:17:34 +0000 (11:17 +0000)]
Fix handling of maximum children and connections per minute.

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

25 years agoSync with sys/i386/i386/machdep.c revision 1.342.
KATO Takenori [Mon, 21 Jun 1999 11:14:27 +0000 (11:14 +0000)]
Sync with sys/i386/i386/machdep.c revision 1.342.

25 years agoSync with sys/i386/conf/majors.i386 revision 1.77.
KATO Takenori [Mon, 21 Jun 1999 11:12:25 +0000 (11:12 +0000)]
Sync with sys/i386/conf/majors.i386 revision 1.77.

25 years agoSync with sys/i386/conf/files.i386 revision 1.247.
KATO Takenori [Mon, 21 Jun 1999 11:11:39 +0000 (11:11 +0000)]
Sync with sys/i386/conf/files.i386 revision 1.247.

25 years agoCorrect troff sequence for backslashes in manual page.
Joseph Koshy [Mon, 21 Jun 1999 09:37:38 +0000 (09:37 +0000)]
Correct troff sequence for backslashes in manual page.

PR: docs/12322
Submitted by:   Marc Ramirez <mrami@gbtb.com>

25 years agoMention that data going from one internal address to another will
Brian Somers [Mon, 21 Jun 1999 07:58:25 +0000 (07:58 +0000)]
Mention that data going from one internal address to another will
not be processed by natd.
Requested by: Ludwig Pummer <ludwigp@bigfoot.com>

25 years agoMinor cleanups to shutdown(8):
Joseph Koshy [Mon, 21 Jun 1999 06:21:05 +0000 (06:21 +0000)]
Minor cleanups to shutdown(8):

- Make the -k "don't actually halt" flag incompatible with
  the halt/reboot options -h, -p, and -r.
- The -n "don't sync" option is ignored if -k is specified.
  Issue a warning message.
- Compute the actual shutdown time written to /var/run/nologin
  correctly in the case of "now" being specified.

25 years agodsopen: Print a message if the unit has an invalid sector size.
Greg Lehey [Mon, 21 Jun 1999 03:48:16 +0000 (03:48 +0000)]
dsopen: Print a message if the unit has an invalid sector size.

Reviewed-by: ken, bde

25 years agoThis fixes the problem of cancelling an FTP transfer resulting in
Brian Feldman [Mon, 21 Jun 1999 02:38:16 +0000 (02:38 +0000)]
This fixes the problem of cancelling an FTP transfer resulting in
a bogus error ("parsing URI".) I also fixed an inconsistency in
another fs_status.

25 years agoRemove vm_object::cache_count and vm_object::wired_count. They are
Alan Cox [Sun, 20 Jun 1999 21:47:02 +0000 (21:47 +0000)]
Remove vm_object::cache_count and vm_object::wired_count.  They are
not used.  (Nor is there any planned use by John who introduced them.)

Reviewed by: "John S. Dyson" <toor@dyson.iquest.net>

25 years agoTweak FIFO and DMA thresholds to improve performance and reduce likelyhood
Bill Paul [Sun, 20 Jun 1999 18:56:09 +0000 (18:56 +0000)]
Tweak FIFO and DMA thresholds to improve performance and reduce likelyhood
of RX FIFO overruns.

Submitted by: bde

25 years agoQuirk NOLUNS cabletron device.
Matt Jacob [Sun, 20 Jun 1999 18:19:44 +0000 (18:19 +0000)]
Quirk NOLUNS cabletron device.
PR: 11677
Submitted by: "Matthew N. Dodd" <winter@jurai.net>

25 years ago1) Do not include usbdivar.h and access the interface descriptor through
Nick Hibma [Sun, 20 Jun 1999 15:46:13 +0000 (15:46 +0000)]
1) Do not include usbdivar.h and access the interface descriptor through
   usbd_get_interface_descriptor
2) remove soft reset. It's been dropped from the USB Mass Storage Bulk-Only
   Specification
3) move the clear feature halt to the reset routine.

25 years agoThis is the second round of dd(1) changes. Some changes made/reversed by
Brian Feldman [Sun, 20 Jun 1999 14:58:55 +0000 (14:58 +0000)]
This is the second round of dd(1) changes. Some changes made/reversed by
request of Bruce. More changes may follow later. 'g' multiplier has
been added (i.e. dd seek=5g if=bigfile.) Some minor corrections were made
as well.

Noticed by: bde

25 years agoUse the proper interfaces to find if a device is enabled, don't dig into
Peter Wemm [Sun, 20 Jun 1999 13:10:09 +0000 (13:10 +0000)]
Use the proper interfaces to find if a device is enabled, don't dig into
the bus mechanism's private internals!

25 years agoAdd ipfw binary breakage, as well as inetd updates.
Warner Losh [Sun, 20 Jun 1999 09:56:32 +0000 (09:56 +0000)]
Add ipfw binary breakage, as well as inetd updates.

25 years agoBump the __FreeBSD_version number now that libc_r contains a wrapper
John Birrell [Sun, 20 Jun 1999 08:34:24 +0000 (08:34 +0000)]
Bump the __FreeBSD_version number now that libc_r contains a wrapper
for the poll syscall.

25 years agoRemove -DNOPOLL from the compilation flags now that there is a poll wrapper
John Birrell [Sun, 20 Jun 1999 08:32:37 +0000 (08:32 +0000)]
Remove -DNOPOLL from the compilation flags now that there is a poll wrapper
in libc_r.

Bump the library version number (the scheduler now uses a poll syscall
instead of select).

25 years agoIn the words of the author:
John Birrell [Sun, 20 Jun 1999 08:28:48 +0000 (08:28 +0000)]
In the words of the author:

  o The polling mechanism for I/O readiness was changed from
    select() to poll().  In additon, a wrapped version of poll()
    is now provided.

  o The wrapped select routine now converts each fd_set to a
    poll array so that the thread scheduler doesn't have to
    perform a bitwise search for selected fds each time file
    descriptors are polled for I/O readiness.

  o The thread scheduler was modified to use a new queue (_workq)
    for threads that need work.  Threads waiting for I/O readiness
    and spinblocks are added to the work queue in addition to the
    waiting queue.  This reduces the time spent forming/searching
    the array of file descriptors being polled.

  o The waiting queue (_waitingq) is now maintained in order of
    thread wakeup time.  This allows the thread scheduler to
    find the nearest wakeup time by looking at the first thread
    in the queue instead of searching the entire queue.

  o Removed file descriptor locking for select/poll routines.  An
    application should not rely on the threads library for providing
    this locking; if necessary, the application should use mutexes
    to protect selecting/polling of file descriptors.

  o Retrieve and use the kernel clock rate/resolution at startup
    instead of hardcoding the clock resolution to 10 msec (tested
    with kernel running at 1000 HZ).

  o All queues have been changed to use queue.h macros.  These
    include the queues of all threads, dead threads, and threads
    waiting for file descriptor locks.

  o Added reinitialization of the GC mutex and condition variable
    after a fork.  Also prevented reallocation of the ready queue
    after a fork.

  o Prevented the wrapped close routine from closing the thread
    kernel pipes.

  o Initialized file descriptor table for stdio entries at thread
    init.

  o Provided additional flags to indicate to what queues threads
    belong.

  o Moved TAILQ initialization for statically allocated mutex and
    condition variables to after the spinlock.

  o Added dispatching of signals to pthread_kill.  Removing the
    dispatching of signals from thread activation broke sigsuspend
    when pthread_kill was used to send a signal to a thread.

  o Temporarily set the state of a thread to PS_SUSPENDED when it
    is first created and placed in the list of threads so that it
    will not be accidentally scheduled before becoming a member
    of one of the scheduling queues.

  o Change the signal handler to queue signals to the thread kernel
    pipe if the scheduling queues are protected.  When scheduling
    queues are unprotected, signals are then dequeued and handled.

  o Ensured that all installed signal handlers block the scheduling
    signal and that the scheduling signal handler blocks all
    other signals.  This ensures that the signal handler is only
    interruptible for and by non-scheduling signals.  An atomic
    lock is used to decide which instance of the signal handler
    will handle pending signals.

  o Removed _lock_thread_list and _unlock_thread_list as they are
    no longer used to protect the thread list.

  o Added missing RCS IDs to modified files.

  o Added checks for appropriate queue membership and activity when
    adding, removing, and searching the scheduling queues.  These
    checks add very little overhead and are enabled when compiled
    with _PTHREADS_INVARIANTS defined.  Suggested and implemented
    by Tor Egge with some modification by me.

  o Close a race condition in uthread_close.  (Tor Egge)

  o Protect the scheduling queues while modifying them in
    pthread_cond_signal and _thread_fd_unlock.  (Tor Egge)

  o Ensure that when a thread gets a mutex, the mutex is on that
    threads list of owned mutexes.  (Tor Egge)

  o Set the kernel-in-scheduler flag in _thread_kern_sched_state
    and _thread_kern_sched_state_unlock to prevent a scheduling
    signal from calling the scheduler again.  (Tor Egge)

  o Don't use TAILQ_FOREACH macro while searching the waiting
    queue for threads in a sigwait state, because a change of
    state destroys the TAILQ link.  It is actually safe to do
    so, though, because once a sigwaiting thread is found, the
    loop ends and the function returns.  (Tor Egge)

  o When dispatching signals to threads, make the thread inherit
    the signal deferral flag of the currently running thread.
    (Tor Egge)

Submitted by: Daniel Eischen <eischen@vigrid.com> and
              Tor Egge <Tor.Egge@fast.no>

25 years agoSet cnt.v_page_size to PAGE_SIZE rather than DEFAULT_PAGE_SIZE so that
Alan Cox [Sun, 20 Jun 1999 04:55:29 +0000 (04:55 +0000)]
Set cnt.v_page_size to PAGE_SIZE rather than DEFAULT_PAGE_SIZE so that
"vmstat -s" reports the correct value on the Alpha.

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>

25 years agoCorrect description of Vinum.
Greg Lehey [Sun, 20 Jun 1999 04:35:22 +0000 (04:35 +0000)]
Correct description of Vinum.

25 years agoClean up some of the documentation at the top.
Jordan K. Hubbard [Sun, 20 Jun 1999 03:36:46 +0000 (03:36 +0000)]
Clean up some of the documentation at the top.

25 years agoFor consistency with other implementations, check for the existence
Alan Cox [Sat, 19 Jun 1999 23:53:13 +0000 (23:53 +0000)]
For consistency with other implementations, check for the existence
of the segment before checking its permissions.

PR: kern/11999
Submitted by: Brooks Davis <brooks@one-eyed-alien.net>

25 years agoImplement -m option to enable/disable slices.
Robert Nordier [Sat, 19 Jun 1999 21:44:43 +0000 (21:44 +0000)]
Implement -m option to enable/disable slices.

25 years agoProvide for enabling/disabling each slice individually.
Robert Nordier [Sat, 19 Jun 1999 21:40:55 +0000 (21:40 +0000)]
Provide for enabling/disabling each slice individually.

25 years agoFix use of e_phoff in place of e_phnum.
Robert Nordier [Sat, 19 Jun 1999 20:50:38 +0000 (20:50 +0000)]
Fix use of e_phoff in place of e_phnum.

25 years agoCorrect and clarify some comments.
Robert Nordier [Sat, 19 Jun 1999 20:40:32 +0000 (20:40 +0000)]
Correct and clarify some comments.

25 years agoAdd device rl0 to GENERIC. Also add al0 (ADMtek PCI ethernet) which I
Bill Paul [Sat, 19 Jun 1999 20:25:25 +0000 (20:25 +0000)]
Add device rl0 to GENERIC. Also add al0 (ADMtek PCI ethernet) which I
forgot to do previously.

25 years agoGoodbye to vaules, becasue, similiar, backgroud, aquired, freelisat, etc.
Robert Nordier [Sat, 19 Jun 1999 20:20:52 +0000 (20:20 +0000)]
Goodbye to vaules, becasue, similiar, backgroud, aquired, freelisat, etc.

25 years agoFix up the RealTek 8139 driver to work on FreeBSD/alpha. This involves a
Bill Paul [Sat, 19 Jun 1999 20:17:38 +0000 (20:17 +0000)]
Fix up the RealTek 8139 driver to work on FreeBSD/alpha. This involves a
few changes:

- there was a bug in rl_list_tx_init(): it was calculating the registers
  to initialize incorrectly. Not a problem on the x86 where unaligned
  access are allowed, but a problem on the alpha.

- set rl_btag accordingly depending on the machine type

- rl_rxeof() needs to be sure to longword-align the packet data. This
  is a little tricky since we copy the data out of the receive buffer
  using m_devget(), however there's no way to tell m_devget() to fill
  in the mbufs starting at a particular offset. To get around this,
  we tell m_devget to copy bytes+2 bytes starting at offset offset-2. This
  results in the proper alignment, and we can trim off the two leading
  bytes afterwards with m_adj(). We also allocate some extra space before
  the start of the receive buffer so that we don't get into trouble in
  the case where offset == 0.

- redefine vtophys() in if_rlreg.h for the alpha.

Making this chipset work on the alpha is sort of the inverse of putting
a jet engine on a rowboat (putting a propeller on a 747?) but when
you can get these things for $5 a pop, it's hard to stop people from
buying them.

25 years agoMove the IFSTATUS stuff after the address listing.
Poul-Henning Kamp [Sat, 19 Jun 1999 20:07:24 +0000 (20:07 +0000)]
Move the IFSTATUS stuff after the address listing.

25 years agoMiscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t,
Brian Feldman [Sat, 19 Jun 1999 19:49:35 +0000 (19:49 +0000)]
Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t,
off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY
big amounts of data.

25 years agoThanks to Bruce for noticing this.... compare against the *new* nfsnode's
Matt Jacob [Sat, 19 Jun 1999 19:33:44 +0000 (19:33 +0000)]
Thanks to Bruce for noticing this.... compare against the *new* nfsnode's
mount point for seeing whether or not the new nfsnode is already in the
hash queue. We're pretty much guaranteed that the old nfsnode is already
in the hash queue. Wank! Infinite Loop! Looks like just a minor typo....
(ah the influence of fortran ... np && np2... why not nfsnode_the_first &&
nfsnode_the_second???)...

25 years agoThis is the much-awaited cleaned up version of IPFW [ug]id support.
Brian Feldman [Sat, 19 Jun 1999 18:43:33 +0000 (18:43 +0000)]
This is the much-awaited cleaned up version of IPFW [ug]id support.
All relevant changes have been made (including ipfw.8).

25 years agoRemove some unused function and variable declarations.
Alan Cox [Sat, 19 Jun 1999 18:42:53 +0000 (18:42 +0000)]
Remove some unused function and variable declarations.

25 years agoAdd a new interface ioctl, to return "aux status".
Poul-Henning Kamp [Sat, 19 Jun 1999 18:42:31 +0000 (18:42 +0000)]
Add a new interface ioctl, to return "aux status".

This is inteded for to allow ifconfig to print various unstructured
information from an interface.

The data is returned from the kernel in ASCII form, see the comment in
if.h for some technicalities.

Canonical cut&paste example to be found in if_tun.c

Initial use:
        Now tun* interfaces tell the PID of the process which opened them.

Future uses could be (volounteers welcome!):
        Have ppp/slip interfaces tell which tty they use.
        Make sync interfaces return their media state: red/yellow/blue
        alarm, timeslot assignment and so on.
        Make ethernets warn about missing heartbeats and/or cables

25 years agoAdd a fast version of bcmp which compares longwords at a time.
Doug Rabson [Sat, 19 Jun 1999 16:30:28 +0000 (16:30 +0000)]
Add a fast version of bcmp which compares longwords at a time.

Submitted by: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>

25 years agoAdd again the ':' after the x option in th eargument list to getopt.
Nick Hibma [Sat, 19 Jun 1999 13:32:27 +0000 (13:32 +0000)]
Add again the ':' after the x option in th eargument list to getopt.

It disappeared in rev. 1.23 newfs.c

PR: 12292
Submitted by: Cy Schubert <cy@cschuber.net.gov.bc.ca>

25 years agoAdjust mcclock lines to avoid config(8) warning.
Doug Rabson [Sat, 19 Jun 1999 13:12:51 +0000 (13:12 +0000)]
Adjust mcclock lines to avoid config(8) warning.

25 years agoConvert signalling NaNs to quiet NaNs as specified by the Alpha Architecture
Doug Rabson [Sat, 19 Jun 1999 11:54:35 +0000 (11:54 +0000)]
Convert signalling NaNs to quiet NaNs as specified by the Alpha Architecture
Reference Manual.

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>

25 years agoAdd RCS strings to kernel ipfilter files.
Brian Feldman [Sat, 19 Jun 1999 11:35:41 +0000 (11:35 +0000)]
Add RCS strings to kernel ipfilter files.

25 years agosioprobe: Don't try to initialize disabled ports. In particular,
Greg Lehey [Sat, 19 Jun 1999 08:14:56 +0000 (08:14 +0000)]
sioprobe: Don't try to initialize disabled ports.  In particular,
attempting to initialize sio3 caused problems with ATI video boards,
which cleverly share the I/O space.

PR: kern/12295

25 years agoThis should fix ipfilter for everyone it was broken for. CDEV_MAJOR is _not_
Brian Feldman [Sat, 19 Jun 1999 02:54:04 +0000 (02:54 +0000)]
This should fix ipfilter for everyone it was broken for. CDEV_MAJOR is _not_
-1.

Noticed by: users on freebsd-current

25 years agoAdd a transmit descriptor usage counter and use it to absolutely,
Bill Paul [Sat, 19 Jun 1999 00:36:56 +0000 (00:36 +0000)]
Add a transmit descriptor usage counter and use it to absolutely,
positively not let ti_encap() fill up the TX ring all the way and wrap
around. This fixes a potential transmit lockup where a really fast
machine (or particular TX traffic pattern) can overrun the end of the
ring.

Reported by: John Plevyak <jplevyak@inktomi.com>

25 years agoChange active flag handling; sanity check passed drive number; pass
Robert Nordier [Fri, 18 Jun 1999 21:49:18 +0000 (21:49 +0000)]
Change active flag handling; sanity check passed drive number; pass
partition pointer to bootstrap; optimise away 10 bytes; cosmetics.

25 years agoK6-family MTRR support
Brian Feldman [Fri, 18 Jun 1999 19:56:02 +0000 (19:56 +0000)]
K6-family MTRR support

This is tested, but I really can't say whether it works entirely. I
don't know exactly what to look for when testing it. So let's say this
is open for testing. Send any results to green@FreeBSD.org

Reviewed by: msmith (long ago)

25 years agoHarmless change to prevent possible problems in the future. I made
Brian Feldman [Fri, 18 Jun 1999 19:24:40 +0000 (19:24 +0000)]
Harmless change to prevent possible problems in the future. I made
sure that i686_mem was only used when
1. CPUID had MTRR set (this was there before)
2. the CPU was GenuineIntel (not there)
3. the CPU is a 686 (also not there)

This should prevent any problems with CPUs that set MTRR but aren't
compatibile with Intel's interface (none that I know of yet.)

25 years agoClarified info on X release 3.3.1.
Nick Hibma [Fri, 18 Jun 1999 16:53:33 +0000 (16:53 +0000)]
Clarified info on X release 3.3.1.

Submitted/Reviewed by: Joe Touch <touch@ISI.EDU>

25 years agoNew parallel port support for PC98. Old PC98s which have
KATO Takenori [Fri, 18 Jun 1999 14:48:28 +0000 (14:48 +0000)]
New parallel port support for PC98.  Old PC98s which have
uni-directional parallel port should use olpt driver instead of lpt
driver.

Files ppc.c and ppcreg.h are copied form i386/isa directory with PC98
change.

Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>

25 years agoChanged the global `idt' from an array to a pointer so that npx.c
Bruce Evans [Fri, 18 Jun 1999 14:32:21 +0000 (14:32 +0000)]
Changed the global `idt' from an array to a pointer so that npx.c
automatically hacks on the active copy of the IDT if f00f_hack()
has changed it.  This also allows simplifications in setidt().
This fixes breakage of FP exception handling by rev.1.55 of
sys/kernel.h.  FP exceptions were sent to npx.c's probe handlers
because npx.c "restored" the old handlers to the wrong copy of the
IDT.  The SYSINIT for f00f_hack() was purposely run quite late to
avoid problems like this, but it is bogusly associated with the
SYSINIT for proc0 so it was moved with the latter.

Problem reported and fix tested by:  Martin Cracauer <cracauer@cons.org>

25 years agoFix a coredump with negative (due to overflow) offset values.
Ruslan Ermilov [Fri, 18 Jun 1999 14:26:07 +0000 (14:26 +0000)]
Fix a coredump with negative (due to overflow) offset values.

25 years agoDon't use the ``next'' redial timer if we have no phone number at all.
Brian Somers [Fri, 18 Jun 1999 13:49:01 +0000 (13:49 +0000)]
Don't use the ``next'' redial timer if we have no phone number at all.

25 years agoThis lets you specify "gemdosfs", "shortnames", "longnames", and
Jordan K. Hubbard [Fri, 18 Jun 1999 12:05:02 +0000 (12:05 +0000)]
This lets you specify "gemdosfs", "shortnames", "longnames", and
"nowin95" as arguments to the "-o" flag, as alternatives to "-G", "-s",
"-l", and "-9"; when running "mount_msdos" by hand, that doesn't let you
do anything you couldn't already do, but if you're letting "mount" run
it, it lets you specify those options, which is especially useful if,
for example, you have an entry in "/etc/fstab" for some file system,
with "noauto" set, so you can conveniently mount a DOS partition from a
removable drive and force it to treat the file system as VFAT rather
than boring old FAT.

Submitted by: Guy Harris <guy@netapp.com>

25 years agoTypo in previous commit.
Ruslan Ermilov [Fri, 18 Jun 1999 10:41:13 +0000 (10:41 +0000)]
Typo in previous commit.

25 years agoMention that pid 1 is not affected by kill(-1, SIGXXX) too.
Ruslan Ermilov [Fri, 18 Jun 1999 10:24:12 +0000 (10:24 +0000)]
Mention that pid 1 is not affected by kill(-1, SIGXXX) too.

25 years agoBring in System V run-level patches (turned off by default).
Ruslan Ermilov [Fri, 18 Jun 1999 09:08:09 +0000 (09:08 +0000)]
Bring in System V run-level patches (turned off by default).
While I'm here, fix some typos in the manpage.

Requested by: des