]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoDisable the 'stats counter overflow' interrupts since they can happen
wpaul [Fri, 11 May 2001 20:15:41 +0000 (20:15 +0000)]
Disable the 'stats counter overflow' interrupts since they can happen
much more often that expected and negatively impact performance when
running at 100mbps. I need to figure out if there's a better way to
handle this, but for now this shouldn't hurt anything.

23 years agoAdd support for gigabit ethernet cards based on the NatSemi DP83820
wpaul [Fri, 11 May 2001 19:56:39 +0000 (19:56 +0000)]
Add support for gigabit ethernet cards based on the NatSemi DP83820
and DP83821 gigabit ethernet MAC chips and the NatSemi DP83861 10/100/1000
copper PHY. There are a whole bunch of very low cost cards available with
this chipset selling for $150USD or less. This includes the SMC9462TX,
D-Link DGE-500T, Asante GigaNIX 1000TA and 1000TPC, and a couple cards
from Addtron.

This chip supports TCP/IP checksum offload, VLAN tagging/insertion.
2048-bit multicast filter, jumbograms and has 8K TX and 32K RX FIFOs.
I have not done serious performance testing with this driver. I know
it works, and I want it under CVS control so I can keep tabs on it.
Note that there's no serious mutex stuff in here yet either: I need
to talk more with jhb to figure out the right way to do this. That
said, I don't think there will be any problems.

This driver should also work on the alpha. It's not turned on in
GENERIC.

23 years agoAS800 uses EDO DIMMs, not SDRAM
wilko [Fri, 11 May 2001 18:02:37 +0000 (18:02 +0000)]
AS800 uses EDO DIMMs, not SDRAM

Submitted by: Brodie Hynes <brodie@alum.mit.edu>

23 years agoAS800 uses EDO DIMMs, not SDRAM DIMMs.
wilko [Fri, 11 May 2001 18:01:27 +0000 (18:01 +0000)]
AS800 uses EDO DIMMs, not SDRAM DIMMs.

Submitted by: Brodie Hynes <brodie@alum.mit.edu>

23 years agoRegenerate.
tegge [Fri, 11 May 2001 17:05:47 +0000 (17:05 +0000)]
Regenerate.

23 years agogettimeofday() is MP safe on both -current and -stable.
tegge [Fri, 11 May 2001 17:05:12 +0000 (17:05 +0000)]
gettimeofday() is MP safe on both -current and -stable.

23 years agode-constify to make it compatible with (krb4) and make-print-version
assar [Fri, 11 May 2001 16:56:36 +0000 (16:56 +0000)]
de-constify to make it compatible with (krb4) and make-print-version

Submitted by: Peter Pentchev <roam@orbitel.bg> (just inverted)

23 years agoIn in_ifadown(), differentiate between whether the interface goes
ru [Fri, 11 May 2001 14:37:34 +0000 (14:37 +0000)]
In in_ifadown(), differentiate between whether the interface goes
down or interface address is deleted.  Only delete static routes
in the latter case.

Reported by: Alexander Leidinger <Alexander@leidinger.net>

23 years agoAdd utility PAMs for finer userland control
markm [Fri, 11 May 2001 10:12:55 +0000 (10:12 +0000)]
Add utility PAMs for finer userland control

23 years agoFix PAMized telnet in exactly the same way as BDE did it for the other
markm [Fri, 11 May 2001 09:39:11 +0000 (09:39 +0000)]
Fix PAMized telnet in exactly the same way as BDE did it for the other
telnet instances.

23 years agoFix make world in the kerberosIV case.
markm [Fri, 11 May 2001 09:36:17 +0000 (09:36 +0000)]
Fix make world in the kerberosIV case.

23 years agoAdd 470.status-named.
dirk [Fri, 11 May 2001 09:32:48 +0000 (09:32 +0000)]
Add 470.status-named.

Reminded by: gshapiro

23 years agoAdd exact names for suggested screenmaps
ache [Fri, 11 May 2001 08:45:34 +0000 (08:45 +0000)]
Add exact names for suggested screenmaps

23 years agoUpdate the fsck command in /etc/rc to use the new background
mckusick [Fri, 11 May 2001 07:40:39 +0000 (07:40 +0000)]
Update the fsck command in /etc/rc to use the new background
fsck checking. Applying these changes (typically via mergemaster)
will cause your system to start running background checks on all
your soft update enabled filesystems (provided that you have
a kernel with the required functionality, e.g., one built since
the end of April). Please report any and all problems to
mckusick@mckusick.com (not mckusick@freebsd.org which I read
infrequently). See the comment above the fsck command in /etc/rc
for instructions on how to disable background checking should it
cause you too much trouble.

Several FAQs:

1) Can I reboot before the background checks are done?

Ans) Yes, when the system restarts the checks will pick up
     where they left off.

2) Can a crash during checking corrupt my filesystem?

Ans) No, recovered resources are returned to the system using soft
     updates which ensure that the freeing is done in a safe order.

3) How will I know if any background checks are being done?

Ans) Filesystems that are to be checked in background will be listed
     as `DEFER FOR BACKGROUND CHECKING' at the usual fsck check time
     during system startup.

4) What happens to the output of the background checks?

Ans) It is sent to syslog `daemon' facility log level `notice'.

5) When will this feature be available in the 4.X kernel?

Ans) Never. It is much too radical and extensive a change to be
     MFC'ed. Besides, it needs many months of experience and
     tuning before it is ready for widespread use.

6) What happens if a background fsck fails (i.e., fsck finds
   errors that would normally require a manual fsck)?

Ans) The filesystem will be marked as needing a manual fsck.
     At the next system reboot, the check will be done in
     foreground and the usual actions taken (usually a failure
     to go multi-user until fsck has been run by hand on the
     affected filesystem).

23 years agoSync picobsd script with the one in -stable, and also
luigi [Fri, 11 May 2001 07:39:40 +0000 (07:39 +0000)]
Sync picobsd script with the one in -stable, and also
patch boot2 so it goes to load /kernel right away

Perl code from Josef Karthauser

23 years agoRemove yet another deadlock case.
mckusick [Fri, 11 May 2001 07:12:03 +0000 (07:12 +0000)]
Remove yet another deadlock case.

23 years agoFix world-breaking typo in previous commit.
grog [Fri, 11 May 2001 07:06:06 +0000 (07:06 +0000)]
Fix world-breaking typo in previous commit.

23 years agoUn-swap irq/link byte values so that printf works.
msmith [Fri, 11 May 2001 04:52:29 +0000 (04:52 +0000)]
Un-swap irq/link byte values so that printf works.

23 years agoAllow mail(1) to be able to read Eudora mailboxes by transforming
mikeh [Fri, 11 May 2001 03:07:11 +0000 (03:07 +0000)]
Allow mail(1) to be able to read Eudora mailboxes by transforming
lines that end in <CR><LF> to just <LF>.

Reviewed by: imp
Obtained from: OpenBSD

23 years agomerge imported changes into HEAD
assar [Fri, 11 May 2001 00:14:02 +0000 (00:14 +0000)]
merge imported changes into HEAD

23 years agoNew release notes: statfs(2) and df(1) track blocks committed to being
bmah [Thu, 10 May 2001 23:38:32 +0000 (23:38 +0000)]
New release notes:  statfs(2) and df(1) track blocks committed to being
freed by softupdates, ifconfig(8) accepts CIDR notation, rc(8) clean-out
of /var/run and /var/spool/lock, c89(1) is now a binary, pax(1)
enhancements and cpio(1)/tar(1) compatability, Ukranian language console
support.

Other:  Update/make (more) consistent the list of WaveLAN devices
supported.

MFCs noted:  ln(1) -h/-n, find(1) timestamp flags.

23 years agoAdd information about the 2400A controllers. Fix erroneous reference to
scottl [Thu, 10 May 2001 22:34:45 +0000 (22:34 +0000)]
Add information about the 2400A controllers.  Fix erroneous reference to
BSD/OS.

23 years agoSync KOI8-U with latest KOI8-R changes. Also restore correct numbering
sobomax [Thu, 10 May 2001 21:04:36 +0000 (21:04 +0000)]
Sync KOI8-U with latest KOI8-R changes. Also restore correct numbering
in the font selection dialog broken by the removal of KOI8-R.

Prompted by: ache
MFC after: 2 weeks

23 years agoBring the doc up to date with regard to the /etc bootstrapping code
bsd [Thu, 10 May 2001 20:50:54 +0000 (20:50 +0000)]
Bring the doc up to date with regard to the /etc bootstrapping code
and the role of /conf/default/etc.

23 years agoMFS: bring Luigi's updated diskless man page into -current.
bsd [Thu, 10 May 2001 20:45:46 +0000 (20:45 +0000)]
MFS: bring Luigi's updated diskless man page into -current.

23 years agoAdd Romania to ftp mirrors.
jkh [Thu, 10 May 2001 18:38:25 +0000 (18:38 +0000)]
Add Romania to ftp mirrors.

23 years agoTrim lots of stuff that is now in MI code along with MD alpha code.
jhb [Thu, 10 May 2001 17:58:35 +0000 (17:58 +0000)]
Trim lots of stuff that is now in MI code along with MD alpha code.

23 years ago- Split out the support for per-CPU data from the SMP code. UP kernels
jhb [Thu, 10 May 2001 17:45:49 +0000 (17:45 +0000)]
- Split out the support for per-CPU data from the SMP code.  UP kernels
  have per-CPU data and gdb on the i386 at least needs access to it.
- Clean up includes in kern_idle.c and subr_smp.c.

Reviewed by: jake

23 years agoAdd mousechar_start=3 for Russian font
ache [Thu, 10 May 2001 17:32:31 +0000 (17:32 +0000)]
Add mousechar_start=3 for Russian font
(-current only)

23 years agoTry to read the station address twice during the probe. I've seen
wpaul [Thu, 10 May 2001 17:17:24 +0000 (17:17 +0000)]
Try to read the station address twice during the probe. I've seen
a LinkSys card here in the office where reading the station address
fails the first time, but works find afterwards. Without this, the
probe fails. I don't think this will negatively impact any existing
cards, but I want to confirm this before MFC'ing.

23 years agoHandle sbsize as a size, not a number.
sheldonh [Thu, 10 May 2001 17:15:06 +0000 (17:15 +0000)]
Handle sbsize as a size, not a number.

Submitted by: Paul Herman <pherman@frenchfries.net>

23 years agoMove cons25w entry last, index is off by one otherwise if RunningAsInit
ache [Thu, 10 May 2001 17:14:29 +0000 (17:14 +0000)]
Move cons25w entry last, index is off by one otherwise if RunningAsInit

23 years agoRemove CP866 keyboard and KOI8-R font to not confuse users.
ache [Thu, 10 May 2001 17:03:14 +0000 (17:03 +0000)]
Remove CP866 keyboard and KOI8-R font to not confuse users.
Explain more about CP866 font usage.

23 years ago- Use sched_lock and critical regions to ensure that LDT updates are thread
jhb [Thu, 10 May 2001 17:03:03 +0000 (17:03 +0000)]
- Use sched_lock and critical regions to ensure that LDT updates are thread
  safe from preemption and concurrent access to the LDT.
- Move the prototype for i386_extend_pcb() to <machine/pcb_ext.h>.

Reviewed by: silence on -hackers

23 years agoAdd support for Ukrainian console.
sobomax [Thu, 10 May 2001 15:57:16 +0000 (15:57 +0000)]
Add support for Ukrainian console.

Submitted by: Olexander Kunytsa <kunia@istc.kiev.ua>
MFC after: 2 weeks

23 years agoAdd the ability to specify alternate PID file for syslogd.
dwmalone [Thu, 10 May 2001 15:48:33 +0000 (15:48 +0000)]
Add the ability to specify alternate PID file for syslogd.

PR: 25784
Submitted by: Jon Villarreal <jonv@ivmg.net>
Reviewed by: iedowse

23 years agoDelete everything that's not a directory in /var/run and /var/spool/lock
brian [Thu, 10 May 2001 09:25:10 +0000 (09:25 +0000)]
Delete everything that's not a directory in /var/run and /var/spool/lock
at boot time.

MFC after: 3 weeks

23 years agoTell the user what group they must be in to su to root.
obrien [Thu, 10 May 2001 07:37:25 +0000 (07:37 +0000)]
Tell the user what group they must be in to su to root.

Submitted by: Seth Kingsley <sethk@osd.bsdi.com>

23 years agomdoc(7) police: fix markup.
ru [Thu, 10 May 2001 07:29:35 +0000 (07:29 +0000)]
mdoc(7) police: fix markup.

23 years agoThe new order of things is that dwlpxN is now called pcibN- so hack around
mjacob [Thu, 10 May 2001 07:08:03 +0000 (07:08 +0000)]
The new order of things is that dwlpxN is now called pcibN- so hack around
*that* whilst we ponder the best way to decide how to register dwlpx interrupts
with TLSB.

23 years agoFix the panics for real this time. When something can't be allocated,
imp [Thu, 10 May 2001 06:55:39 +0000 (06:55 +0000)]
Fix the panics for real this time.  When something can't be allocated,
we need to delete the info from the list as well as zero out the res
pointer we saved in the code.

Also made a few style(9) changes while I was at it.  Don't use if
(ptr) or if (!ptr), but compare against NULL.  Compare against NULL
rather than 0.  Don't have useless blocks.

There are likely other problems as well, but at least the wi based
wireless card with memory listed in its cis doesn't panic the system
when the card is inserted.

23 years agoadd alpha_pci_route_interrupt method
mjacob [Thu, 10 May 2001 06:52:56 +0000 (06:52 +0000)]
add alpha_pci_route_interrupt method

23 years agoQuick hack to reintroduce the notion that there might be alpha platforms
mjacob [Thu, 10 May 2001 05:23:58 +0000 (05:23 +0000)]
Quick hack to reintroduce the notion that there might be alpha platforms
without an i8254 timer/counter. This really needs to be cleaned up.

23 years agoFICL 2.05 has a flawed definition of BASE. Fix it.
dcs [Thu, 10 May 2001 05:13:09 +0000 (05:13 +0000)]
FICL 2.05 has a flawed definition of BASE. Fix it.

Spotted by: Peter Jeremy <peter.jeremy@alcatel.com.au>

23 years agoThis file is not needed, use the default one
luigi [Thu, 10 May 2001 05:03:43 +0000 (05:03 +0000)]
This file is not needed, use the default one

23 years agoInclude sys/lock.h for witness_list_locks() and axe unneeded sys/mutex.h
jhb [Wed, 9 May 2001 22:08:28 +0000 (22:08 +0000)]
Include sys/lock.h for witness_list_locks() and axe unneeded sys/mutex.h
include.

23 years agoAvoid flushing IPv6 routes. `route flush' removes necessary
ume [Wed, 9 May 2001 20:30:55 +0000 (20:30 +0000)]
Avoid flushing IPv6 routes.  `route flush' removes necessary
routes for IPv6 as well as IPv4 routes.

23 years agoAdd in commented out entries for NEWCARD so that they are at least
jhb [Wed, 9 May 2001 19:37:25 +0000 (19:37 +0000)]
Add in commented out entries for NEWCARD so that they are at least
documented.  They cannot be turned on by default due to conflicting
symbols at link time between OLDCARD and NEWCARD.

Approved by: imp

23 years agoThe sk driver developed a bug when the multicast code was changed to
wpaul [Wed, 9 May 2001 18:22:42 +0000 (18:22 +0000)]
The sk driver developed a bug when the multicast code was changed to
use TAILQ macros. The sk_attach_xmac() routine calls sk_init_xmac()
before doing the transceiver probe, but *before* ether_ifattach()
is called. This causes sk_init_xmac() to call sk_setmulti(), which
tries to do a TAILQ_FOREACH(), which it can't do because ether_ifattach()
hasn't done a TAILQ_INIT() yet. This causes a NULL pointer dereference
and panic in sk_setmulti() at driver load/initialization time.

Fixed by calling ether_ifattach() before the MII probe.

The code in RELENG_4 still uses the old way of enumerating the
multicast list and doesn't have this problem. Yet.

23 years agoAdd include of sys/mutex.h and resort include of sys/lock.h.
jhb [Wed, 9 May 2001 16:56:48 +0000 (16:56 +0000)]
Add include of sys/mutex.h and resort include of sys/lock.h.

23 years agoAdd needed sys/lock.h include.
jhb [Wed, 9 May 2001 16:55:59 +0000 (16:55 +0000)]
Add needed sys/lock.h include.

23 years ago * Simplify the population of the /etc memory filesystem. To avoid
bsd [Wed, 9 May 2001 15:13:51 +0000 (15:13 +0000)]
  * Simplify the population of the /etc memory filesystem.  To avoid
    the null mount, we currently create a temporary mfs on /tmp, copy
    /etc to /tmp, then mount /etc as mfs and copy everything back from
    /tmp, then delete the /tmp mfs.

    The patch eliminates the temporary /tmp mfs and the subsequent
    copying and simply populates the /etc mfs by copying from
    /conf/default/etc.  This requires that /conf/default/etc contain a
    complete copy of all the /etc stuff instead of just overrides.  I
    don't think that is too much of an extra step in setting up a
    diskless environment.

  * Provide the ability to make /tmp a memory filesystem independent
    of /var.  This removes the requirement that /tmp be a symlink to
    /var/tmp and this makes the diskless code work with the default
    filesystem layout.  If a seperate /tmp memory filesystem is
    created, the 'tmpsize' environment variable is used to determine
    its size (default to 10 Meg).

  * Reduce diffs between the -current and -stable versions of these
    files to a bare minimum.  Only the definition of the shell
    function 'mount_md' is different.

Not Objected to by: -arch@, -small@

MFC after: 2 days

23 years agoFixed world breakage in previous commit. -lpam must never be used
bde [Wed, 9 May 2001 14:30:49 +0000 (14:30 +0000)]
Fixed world breakage in previous commit.  -lpam must never be used
directly (except in the definition of MINUSLPAM in bsd.libnames.mk)
since it doesn't give all the libraries necessary for static linkage.

Fixed missing ${LIBPAM} in DPADD.

Fixed some style bugs in DPADD and LDADD.

23 years agoFixed world breakage in previous commit. -lpam must never be used
bde [Wed, 9 May 2001 14:23:54 +0000 (14:23 +0000)]
Fixed world breakage in previous commit.  -lpam must never be used
directly (except in the definition of MINUSLPAM in bsd.libnames.mk)
since it doesn't give all the lbraries necessary for static linkage.

Fixed new and old bugs in DPADD.  ${LIBPAM} was missing, and the
library order was different from that in LDADD so `make checkdpadd'
reported a non-bug.

23 years agoRemove the error var, it hides the real one.
sos [Wed, 9 May 2001 13:01:10 +0000 (13:01 +0000)]
Remove the error var, it hides the real one.

PR 27213.

BTW the CDIOCREADAUDIO ioctl is deprecated, its not longer needed
and was an ugly hack from start on.

23 years agoAvoid overflow when converting ticks to jiffies.
des [Wed, 9 May 2001 11:41:54 +0000 (11:41 +0000)]
Avoid overflow when converting ticks to jiffies.

PR: 27215
Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>

23 years agoFix operation of df on unmounted filesystems, and add the ability to run df
kris [Wed, 9 May 2001 08:44:15 +0000 (08:44 +0000)]
Fix operation of df on unmounted filesystems, and add the ability to run df
on unmounted non-UFS filesystem using '-t'

Submitted by: bde

23 years agoPatches from OpenBSD:
kris [Wed, 9 May 2001 08:37:18 +0000 (08:37 +0000)]
Patches from OpenBSD:
        - check the msg.tsp_type value prior to using it as an
          index into char *tsptype[]
        - use strlcpy's instead of strcpy's
        - & handle short packets properly.

Submitted by: "Andrew R. Reiter" <arr@watson.org>
Obtained from: OpenBSD

23 years agoFix what was clearly a 3am brain-o; Boolean should be signed, not
jkh [Wed, 9 May 2001 08:01:56 +0000 (08:01 +0000)]
Fix what was clearly a 3am brain-o; Boolean should be signed, not
unsigned.  C is kinda loose about this sort of thing but it's no excuse.

Spotted by: kenny

23 years agos/ssh_host_key/ssh_host_rsa_key/ since that is what openssh uses now
peter [Wed, 9 May 2001 07:46:44 +0000 (07:46 +0000)]
s/ssh_host_key/ssh_host_rsa_key/ since that is what openssh uses now
after a mergemaster.

23 years agoClarify that the Adaptec 2400A is an ATA controller.
scottl [Wed, 9 May 2001 05:58:01 +0000 (05:58 +0000)]
Clarify that the Adaptec 2400A is an ATA controller.

23 years agoAdd the Adaptec 2400A as an ATA RAID controller. Remove reference to the
scottl [Wed, 9 May 2001 05:56:49 +0000 (05:56 +0000)]
Add the Adaptec 2400A as an ATA RAID controller.  Remove reference to the
non-existant Adaptec 1400 controller.

23 years agoFix a typo (pasto?).
dd [Wed, 9 May 2001 05:03:35 +0000 (05:03 +0000)]
Fix a typo (pasto?).

23 years agoFix some of the handling in the pam module, don't unregister things
alfred [Wed, 9 May 2001 03:40:37 +0000 (03:40 +0000)]
Fix some of the handling in the pam module, don't unregister things
that were never registered.  At the same time handle a failure from
pam_setcreds with a bit more paranioa than the previous fix.

Sync a bit with the "Portable OpenSSH" work to make comparisons a easier.

23 years agoUnbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while and
alfred [Wed, 9 May 2001 03:38:02 +0000 (03:38 +0000)]
Unbreak world, IN_SHLOCK/IN_EXLOCK haven't existed in a while and
Kirk finally has ditched them.  While I'm here also ditch FSHLOCK.

23 years agorcsid style fix.
obrien [Wed, 9 May 2001 01:38:28 +0000 (01:38 +0000)]
rcsid style fix.

23 years agoA WIP snuck in the rev 1.34 commit.
obrien [Wed, 9 May 2001 01:37:49 +0000 (01:37 +0000)]
A WIP snuck in the rev 1.34 commit.

23 years agoEliminate some panics for errors we can recover from.
dmlb [Wed, 9 May 2001 00:03:19 +0000 (00:03 +0000)]
Eliminate some panics for errors we can recover from.

Reduce the verbose memory map setup reports and work with pccardd to
set the common memory map up.

Use enumeration values for CARD_SET_RES_FLAGS.

Use DELAY when spinning waiting for the card to come free instead of a loop.

MFC: after 1 week

23 years agoUse enumeration values for CARD_SET_RES_FLAGS.
dmlb [Tue, 8 May 2001 23:59:13 +0000 (23:59 +0000)]
Use enumeration values for CARD_SET_RES_FLAGS.

Remove panic on out of range io window and return ENXIO. Add a similar
check for memory windows.

Approved by: imp

23 years agoUse enumeration types for CARD_SET_RES_FLAGS.
dmlb [Tue, 8 May 2001 23:57:32 +0000 (23:57 +0000)]
Use enumeration types for CARD_SET_RES_FLAGS.

Approved by: imp

23 years agoAdd additional enumeration types for CARD_SET_RES_FLAGS.
dmlb [Tue, 8 May 2001 23:56:47 +0000 (23:56 +0000)]
Add additional enumeration types for CARD_SET_RES_FLAGS.

Approved by: imp
MFC: after 1 week

23 years agoAdd a sysctl pair for the pcic memory allocation range
dmlb [Tue, 8 May 2001 22:51:05 +0000 (22:51 +0000)]
Add a sysctl pair for the pcic memory allocation range
machdep.pccard.pcic_mem_start
machdep.pccard.pcic_mem_end
and default the range to IOM_BEGIN/IOM_END.

This may prove useful to if_ray users (and others) on more modern
hardware that maps BIOS stuff into 0xd000-0xdffff.

MFC: after 1 week

Approved by: imp

23 years agoSince PAM is broken, let pam_setcred() failure be non-fatal.
green [Tue, 8 May 2001 22:30:18 +0000 (22:30 +0000)]
Since PAM is broken, let pam_setcred() failure be non-fatal.

23 years agoremove a reference to a nonexisting script, "clean", when
luigi [Tue, 8 May 2001 20:44:37 +0000 (20:44 +0000)]
remove a reference to a nonexisting script, "clean", when
building all images. Also, build "bridge" image as well.

Reported-by: Bruce Montague
23 years agoMFS: use absolute, not relative path for tinyware
luigi [Tue, 8 May 2001 20:38:52 +0000 (20:38 +0000)]
MFS: use absolute, not relative path for tinyware

23 years agoHere comes the forgotten C source, oopsy.
schweikh [Tue, 8 May 2001 20:27:14 +0000 (20:27 +0000)]
Here comes the forgotten C source, oopsy.
Turned the shell script into a binary fixing several minor buglets.
Mention _POSIX_SOURCE feature test macro in man page.
PR:           bin/19337
Submitted by: schweikh
Reviewed by:  joerg, bde
MFC after:    2 weeks

23 years agoTurned the shell script into a binary fixing several minor buglets.
schweikh [Tue, 8 May 2001 19:47:01 +0000 (19:47 +0000)]
Turned the shell script into a binary fixing several minor buglets.
Mention _POSIX_SOURCE feature test macro in man page.
PR: bin/19337
Submitted by: myself way back when I was a nobody :-) (schweikh)
Reviewed by: joerg, bde
MFC after: 2 weeks

23 years agoCleanups, more consistent use of <screen> etc.
wilko [Tue, 8 May 2001 18:42:46 +0000 (18:42 +0000)]
Cleanups, more consistent use of <screen> etc.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r76371,
assar [Tue, 8 May 2001 14:57:13 +0000 (14:57 +0000)]
This commit was generated by cvs2svn to compensate for changes in r76371,
which included commits to RCS files with non-trunk default branches.

23 years agomdoc(ng) fixes
assar [Tue, 8 May 2001 14:57:13 +0000 (14:57 +0000)]
mdoc(ng) fixes

Submitted by: ru

23 years agomdoc(ng) fixes
assar [Tue, 8 May 2001 14:57:13 +0000 (14:57 +0000)]
mdoc(ng) fixes

Submitted by: ru

23 years ago- Eliminate locks in functions called only during probe and attach.
tanimura [Tue, 8 May 2001 12:15:26 +0000 (12:15 +0000)]
- Eliminate locks in functions called only during probe and attach.
- Finish transmitting data to mpu when a buffer gets empty.

Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp>

23 years agogethostbyname2() can't do AF_INET6 lookups over NIS.
alex [Tue, 8 May 2001 11:21:15 +0000 (11:21 +0000)]
gethostbyname2() can't do AF_INET6 lookups over NIS.
getaddrinfo(3) must be used.

Submitted by: ume

23 years agoWhen opening the file to broadcast, do it with the user's gid, not the
kris [Tue, 8 May 2001 11:11:42 +0000 (11:11 +0000)]
When opening the file to broadcast, do it with the user's gid, not the
egid (tty).

Obtained from: OpenBSD
Submitted by: Maxime Henrion <mux@qualys.com>
Reviewed by: imp

23 years agoPolish error handling with biofinish().
phk [Tue, 8 May 2001 09:10:27 +0000 (09:10 +0000)]
Polish error handling with biofinish().

23 years agoPolish error handling code using biofinish()
phk [Tue, 8 May 2001 09:09:32 +0000 (09:09 +0000)]
Polish error handling code using biofinish()

23 years agoRemove an 'optimization' I hope to never see again.
alfred [Tue, 8 May 2001 09:09:18 +0000 (09:09 +0000)]
Remove an 'optimization' I hope to never see again.

The pipe code could not handle running out of kva, it would panic
if that happened.  Instead return ENFILE to the application which
is an acceptable error return from pipe(2).

There was some slightly tricky things that needed to be worked on,
namely that the pipe code can 'realloc' the size of the buffer if
it detects that the pipe could use a bit more room.  However if it
failed the reallocation it could not cope and would panic.  Fix
this by attempting to grow the pipe while holding onto our old
resources.  If all goes well free the old resources and use the
new ones, otherwise continue to use the smaller buffer already
allocated.

While I'm here add a few blank lines for style(9) and remove
'register'.

23 years agoBe a little clearer all characters after a # are ignored unless the
brian [Tue, 8 May 2001 08:58:57 +0000 (08:58 +0000)]
Be a little clearer all characters after a # are ignored unless the
# is escaped or quoted.  Add an example of # characters as part of
a phone number.

PR: 26605

23 years agoExploit recent improvements in the disk minilayer to simplify error
phk [Tue, 8 May 2001 08:30:48 +0000 (08:30 +0000)]
Exploit recent improvements in the disk minilayer to simplify error
handling a bit.

Dogmatic lingupurists can celebrate that a number of gotos got removed.

Reviewed by: mjacob, ken

23 years agoAlways initialize bio_resid from bio_bcount in the disk mini-layer so
phk [Tue, 8 May 2001 08:24:54 +0000 (08:24 +0000)]
Always initialize bio_resid from bio_bcount in the disk mini-layer so
that the drivers don't have to do it umpteen times.

23 years agomdoc(7) police: fix markup, rename and reorder some sections.
ru [Tue, 8 May 2001 08:12:53 +0000 (08:12 +0000)]
mdoc(7) police: fix markup, rename and reorder some sections.

23 years agoRemove all the mutex stuff - suggested by jhb
brian [Tue, 8 May 2001 07:55:33 +0000 (07:55 +0000)]
Remove all the mutex stuff - suggested by jhb

Tidy up includes, credit Slawa Olhovchenkov, John Prince and Eric Hernes
for their efforts and add a couple of missing parenthesis around return
expressions.

23 years agoWhen running with soft updates, track the number of blocks and files
mckusick [Tue, 8 May 2001 07:42:20 +0000 (07:42 +0000)]
When running with soft updates, track the number of blocks and files
that are committed to being freed and reflect these blocks in the
counts returned by statfs (and thus also by the `df' command). This
change allows programs such as those that do news expiration to
know when to stop if they are trying to create a certain percentage
of free space. Note that this change does not solve the much harder
problem of making this to-be-freed space available to applications
that want it (thus on a nearly full filesystem, you may still
encounter out-of-space conditions even though the free space will
show up eventually). Hopefully this harder problem will be the
subject of a future enhancement.

23 years agoSeveral fixes for units errors:
mckusick [Tue, 8 May 2001 07:29:03 +0000 (07:29 +0000)]
Several fixes for units errors:
1) Do not assume that the superblock will be of size fs->fs_bsize.
   This fixes a panic when taking a snapshot on a filesystem with
   a block size bigger than 8K.
2) Properly calculate the number of fragments that follow the
   superblock summary information. This fixes a bug with inconsistent
   snapshots.
3) When cleaning up a snapshot that is about to be removed, properly
   calculate the number of blocks that need to be checked. This fixes
   a bug that created partially allocated inodes.
4) When moving blocks from a snapshot that is about to be removed
   to another snapshot, properly account for the reduced number of
   blocks in the snapshot from which they are taken. This fixes a
   bug in which the number of blocks released from a snapshot did not
   match the number that it claimed to have.

23 years agomdoc(7) police: sort xrefs.
ru [Tue, 8 May 2001 07:19:19 +0000 (07:19 +0000)]
mdoc(7) police: sort xrefs.

23 years agoWhen syncing out snapshot metadata, we must temporarily allow recursive
mckusick [Tue, 8 May 2001 07:13:00 +0000 (07:13 +0000)]
When syncing out snapshot metadata, we must temporarily allow recursive
buffer locking so as to avoid locking against ourselves if we need to
write filesystem metadata.

23 years agoGC some dead code relating to running df on unmounted block devices,
kris [Tue, 8 May 2001 06:58:25 +0000 (06:58 +0000)]
GC some dead code relating to running df on unmounted block devices,
and remove the setgid operator bit from the installed binary: if you want
to view free disk space on an unmounted device, you should have read
permissions to access it.

Reviewed by: phk

23 years agoJust notify us once when encountering a partially allocated inode.
mckusick [Tue, 8 May 2001 06:41:56 +0000 (06:41 +0000)]
Just notify us once when encountering a partially allocated inode.

23 years agoSync up with OpenBSD. Too many changes to note, but the major features
kris [Tue, 8 May 2001 06:19:06 +0000 (06:19 +0000)]
Sync up with OpenBSD.  Too many changes to note, but the major features
are:
* Implement cpio compatibility mode when pax is invoked as cpio
* Extend tar compatibility mode to cover many of the GNU tar single-letter
  options (bzip2 mode, aka -y/-j is not present in OpenBSD).  When
  invoked as tar, pax is now full-featured enough for use by the ports
  collection to extract distfiles and create packages.
* Many bug fixes to the operation of pax and the tar compatibility modes
* Code fixes for things like correct string buffer termination.

I tried to preserve existing FreeBSD fixes to this utility; please let me
know if I have inadvertently spammed something.

23 years agoRicoh RL5C46x cardbus bridges have the bits for 3E0 and 3E2. The
imp [Tue, 8 May 2001 02:28:41 +0000 (02:28 +0000)]
Ricoh RL5C46x cardbus bridges have the bits for 3E0 and 3E2.  The
RL5C47x cards do not.  Only set them for that set of bridges.

Submitted by: shiba (Takeshi Shibagaki-san)