]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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

25 years agoPostpone call to usage() until after all options are processed so that
Sheldon Hearn [Fri, 18 Jun 1999 08:52:13 +0000 (08:52 +0000)]
Postpone call to usage() until after all options are processed so that
the -d debugging option produces consistent behaviour.

25 years agoSync with etc.i386/MAKEDEV version 1.199.
Doug Rabson [Fri, 18 Jun 1999 06:20:08 +0000 (06:20 +0000)]
Sync with etc.i386/MAKEDEV version 1.199.

25 years agoOn our final pass through ffs_fsync, do all I/O synchronously so that
Kirk McKusick [Fri, 18 Jun 1999 05:49:46 +0000 (05:49 +0000)]
On our final pass through ffs_fsync, do all I/O synchronously so that
we can find out if our flush is failing because of write errors. This
change avoids a "flush failed" panic during unrecoverable disk errors.

25 years agoAdd a MAINTAINER line to modules that I maintain.
Kenneth D. Merry [Fri, 18 Jun 1999 00:41:47 +0000 (00:41 +0000)]
Add a MAINTAINER line to modules that I maintain.

Suggested by: brian, markm

25 years agoReviewed by: the cast of thousands
Brian Feldman [Thu, 17 Jun 1999 23:54:50 +0000 (23:54 +0000)]
Reviewed by: the cast of thousands

This is the change to struct sockets that gets rid of so_uid and replaces
it with a much more useful struct pcred *so_cred. This is here to be able
to do socket-level credential checks (i.e. IPFW uid/gid support, to be added
to HEAD soon). Along with this comes an update to pidentd which greatly
simplifies the code necessary to get a uid from a socket. Soon to come:
a sysctl() interface to finding individual sockets' credentials.

25 years agoAdd a kernel config for PC-Card machines. This is part of the
Mark Murray [Thu, 17 Jun 1999 23:53:20 +0000 (23:53 +0000)]
Add a kernel config for PC-Card machines. This is part of the
(safe) PAO integration.

Submitted by: Tatsumi HOSOKAWA

25 years agoMinor English corrections were made; SEE ALSO was also fixed (no commas).
Brian Feldman [Thu, 17 Jun 1999 23:43:35 +0000 (23:43 +0000)]
Minor English corrections were made; SEE ALSO was also fixed (no commas).

25 years agoAdd Id strings
Gary Palmer [Thu, 17 Jun 1999 23:42:45 +0000 (23:42 +0000)]
Add Id strings

25 years agoReset our start time when the link comes up, correcting
Brian Somers [Thu, 17 Jun 1999 22:12:51 +0000 (22:12 +0000)]
Reset our start time when the link comes up, correcting
the reported connection time.

PR: 11943
Submitted by: Peter Mutsaers <plm@xs4all.nl>

25 years agoMore PAO-ish stuff. Wildcard the IRQ bits.
Mark Murray [Thu, 17 Jun 1999 21:39:57 +0000 (21:39 +0000)]
More PAO-ish stuff. Wildcard the IRQ bits.

25 years agovm_map_growstack uses vmspace::vm_ssize as though it contained
Alan Cox [Thu, 17 Jun 1999 21:29:38 +0000 (21:29 +0000)]
vm_map_growstack uses vmspace::vm_ssize as though it contained
the stack size in bytes when in fact it is the stack size in pages.

25 years agoMore uncontroversial PAO updates. Make the IRQ wildcarding work a lot better,
Mark Murray [Thu, 17 Jun 1999 21:07:59 +0000 (21:07 +0000)]
More uncontroversial PAO updates. Make the IRQ wildcarding work a lot better,
and improve the daemonizing code.

Submitted by: Tatsumi HOSOKAWA

25 years agoUpdate the comments on values than can be returned by DEVICE_PROBE.
Nick Hibma [Thu, 17 Jun 1999 19:22:12 +0000 (19:22 +0000)]
Update the comments on values than can be returned by DEVICE_PROBE.
DEVICE_PROBE can return priorities.

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

25 years agoAdd bits of PAO that are non-controversial.
Mark Murray [Thu, 17 Jun 1999 19:04:56 +0000 (19:04 +0000)]
Add bits of PAO that are non-controversial.

Submitted by: Tatsumi HOSOKAWA

25 years agoPlease forgive me, it's my first day on the block. Forgot to mention:
Sheldon Hearn [Thu, 17 Jun 1999 14:49:19 +0000 (14:49 +0000)]
Please forgive me, it's my first day on the block. Forgot to mention:

PR: 11987

25 years agoNull commit to reflect that the previous commit added warnings for
Sheldon Hearn [Thu, 17 Jun 1999 14:48:02 +0000 (14:48 +0000)]
Null commit to reflect that the previous commit added warnings for
previously unreported malloc() failures, and changed the exit status
for those failures to encourage MTA retries.

25 years ago* Add a command-line option to enable debugging mode, which sends error
Sheldon Hearn [Thu, 17 Jun 1999 14:44:42 +0000 (14:44 +0000)]
* Add a command-line option to enable debugging mode, which sends error
  messages to stderr instead of syslog.

* Fix manpage with respect to diagnostics.

Reported by: rfg@monkeys.com (Ronald F. Guilmette)

25 years agoSync with sys/i386/i386/machdep.c revision up to 1.341.
KATO Takenori [Thu, 17 Jun 1999 11:09:39 +0000 (11:09 +0000)]
Sync with sys/i386/i386/machdep.c revision up to 1.341.

25 years agoSync with sys/i386/conf/options.i386 revision 1.117.
KATO Takenori [Thu, 17 Jun 1999 11:07:52 +0000 (11:07 +0000)]
Sync with sys/i386/conf/options.i386 revision 1.117.

25 years agoMerge from non-crypto version:
Ruslan Ermilov [Thu, 17 Jun 1999 09:24:37 +0000 (09:24 +0000)]
Merge from non-crypto version:
- "-N" option
- "-E" security fix
- "-s src_addr" option

Requested by: markm

25 years agoVarious fixes for inetd's TCP Wrappers support:
Sheldon Hearn [Thu, 17 Jun 1999 09:16:08 +0000 (09:16 +0000)]
Various fixes for inetd's TCP Wrappers support:

1) Handle forking and non-forking internal services correctly.
   Turn on wrapping for internal services because it works now.
2) Preserve server names for each service on HUP.
3) Honour hosts_options(5) severity option.
4) Add IMPLEMENTATION NOTES section to clarify TCP Wrappers
   usage and limitations.

This change may cause previously allowed builtin services (e.g. daytime)
to be denied in existing configurations.

PR: 12097
Reviewed by: markm
1)
Reported by: Pierre Beyssac <pb@fasterix.freenix.org>
2)
Submitted by: Masachika ISHIZUKA <ishizuka@ish.org>
3)
Submitted by: David Malone <dwmalone@maths.tcd.ie>

25 years agoAdd "-N" option to the SYNOPSIS and usage().
Ruslan Ermilov [Thu, 17 Jun 1999 07:12:39 +0000 (07:12 +0000)]
Add "-N" option to the SYNOPSIS and usage().

25 years agoFixed a missing userland dev_t to kernel dev_t conversion.
Bruce Evans [Thu, 17 Jun 1999 07:07:55 +0000 (07:07 +0000)]
Fixed a missing userland dev_t to kernel dev_t conversion.

25 years agovm_map_insert sometimes extends an existing vm_map entry, rather than
Alan Cox [Thu, 17 Jun 1999 05:49:00 +0000 (05:49 +0000)]
vm_map_insert sometimes extends an existing vm_map entry, rather than
creating a new entry.  vm_map_stack and vm_map_growstack can panic when
a new entry isn't created.  Fixed vm_map_stack and vm_map_growstack.

Also, when extending the stack, always set the protection to VM_PROT_ALL.

25 years agoReformat comment to match indentation of code around it.
Julian Elischer [Thu, 17 Jun 1999 01:25:25 +0000 (01:25 +0000)]
Reformat comment to match indentation of code around it.

25 years agoMove vm_map_stack and vm_map_growstack after the definition
Alan Cox [Thu, 17 Jun 1999 00:39:26 +0000 (00:39 +0000)]
Move vm_map_stack and vm_map_growstack after the definition
of the vm_map_clip_end macro.  (The next commit will modify
vm_map_stack and vm_map_growstack to use vm_map_clip_end.)

25 years agoRemove some unused declarations and duplicate initialization.
Alan Cox [Thu, 17 Jun 1999 00:27:39 +0000 (00:27 +0000)]
Remove some unused declarations and duplicate initialization.

25 years agoAdd a vnode argument to VOP_BWRITE to get rid of the last vnode
Kirk McKusick [Wed, 16 Jun 1999 23:27:55 +0000 (23:27 +0000)]
Add a vnode argument to VOP_BWRITE to get rid of the last vnode
operator special case. Delete special case code from vnode_if.sh,
vnode_if.src, umap_vnops.c, and null_vnops.c.

25 years agoAdd the -p switch - tells rwhod to ignore POINTOPOINT interfaces.
Brian Somers [Wed, 16 Jun 1999 21:05:21 +0000 (21:05 +0000)]
Add the -p switch - tells rwhod to ignore POINTOPOINT interfaces.

Mostly submitted by: Stefan Zehl <sec@42.org>
PR: 12216

25 years agoInit(8) will halt the system if sent USR1 signal,
Ruslan Ermilov [Wed, 16 Jun 1999 20:01:19 +0000 (20:01 +0000)]
Init(8) will halt the system if sent USR1 signal,
or halt and turn the power off if sent SIGUSR2.

PR: 5451
Submitted by: Leif Neland <leifn@image.dk>
Reworked by: ru
Reviewed by: -hackers

25 years agoClose a race window where a tcp socket is closed while tcp_pcblist is
Tor Egge [Wed, 16 Jun 1999 19:05:17 +0000 (19:05 +0000)]
Close a race window where a tcp socket is closed while tcp_pcblist is
copying out tcp socket info, causing a NULL pointer to be dereferenced.

25 years agoMake syscall tracing work: include "opt_ktrace.h" and make it compile.
Dmitrij Tejblum [Wed, 16 Jun 1999 18:55:35 +0000 (18:55 +0000)]
Make syscall tracing work: include "opt_ktrace.h" and make it compile.

25 years agoSyscall arguments are now properly aligned. Print them, and syscall return
Dmitrij Tejblum [Wed, 16 Jun 1999 18:46:40 +0000 (18:46 +0000)]
Syscall arguments are now properly aligned. Print them, and syscall return
values, as longs, instead of int.

25 years agoMake sure syscall arguments properly aligned in ktrace records.
Dmitrij Tejblum [Wed, 16 Jun 1999 18:37:01 +0000 (18:37 +0000)]
Make sure syscall arguments properly aligned in ktrace records.

Make syscall return value a register_t.

Based on a patch from Hidetoshi Shimokawa.
Mostly reviewed by: Hidetoshi Shimokawa and Bruce Evans.

25 years agoUse vput instead of vrele.
Matt Jacob [Wed, 16 Jun 1999 18:35:58 +0000 (18:35 +0000)]
Use vput instead of vrele.
Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>
Submitted by: Ville-Pertti Keinonen <will@iki.fi>
Obtained from: Matthew Dillon <dillon@apollo.backplane.com>

25 years agoRemove option USBVERBOSE
Nick Hibma [Wed, 16 Jun 1999 17:34:36 +0000 (17:34 +0000)]
Remove option USBVERBOSE
Add the options for debugging used in dev/usb/*.c

Submitted by: Kazu

25 years agoGrrr! The PNIC II's multicast hash table is only 128 bits wide, not 512
Bill Paul [Wed, 16 Jun 1999 16:27:30 +0000 (16:27 +0000)]
Grrr! The PNIC II's multicast hash table is only 128 bits wide, not 512
like the original PNIC and the MX98715A (from which the PNIC II is derived).
This requires special handling. Save the card type, and in mx_calchash(),
if we see that the card is a PNIC, return only the low 7 bits of the
hash instead of the low 9 bits.

25 years agoChanged trypbuf to a getpbuf to work around a problem where redundant writes
David Greenman [Wed, 16 Jun 1999 15:54:30 +0000 (15:54 +0000)]
Changed trypbuf to a getpbuf to work around a problem where redundant writes
would occur when clustering them - caused by running out of buffers
and taking a degenerate code path as a result. It appears that waiting
instead for buffers to become available is okay.

Submitted by: Matthew Dillon <dillon@apollo.backplane.com>
Discovered by: Craig A Soules <soules+@andrew.cmu.edu>

25 years agoAdd "-s src_addr" option to allow setting of the source IP address.
Ruslan Ermilov [Wed, 16 Jun 1999 15:26:22 +0000 (15:26 +0000)]
Add "-s src_addr" option to allow setting of the source IP address.

25 years agoPrint verbose messages when there is error.
Kazutaka YOKOTA [Wed, 16 Jun 1999 14:04:45 +0000 (14:04 +0000)]
Print verbose messages when there is error.
Oked by: des

25 years agoFix non-benign typo.
Bill Fumerola [Wed, 16 Jun 1999 12:26:40 +0000 (12:26 +0000)]
Fix non-benign typo.

Submitted by: Daniel Baker <dbaker@cuckoo.com>

25 years agoClean up bitrot in interrupt tracing code.
Tor Egge [Wed, 16 Jun 1999 03:53:52 +0000 (03:53 +0000)]
Clean up bitrot in interrupt tracing code.