]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoThis commit was generated by cvs2svn to compensate for changes in r51885,
obrien [Sat, 2 Oct 1999 21:54:32 +0000 (21:54 +0000)]
This commit was generated by cvs2svn to compensate for changes in r51885,
which included commits to RCS files with non-trunk default branches.

24 years agoVirgin import of EGCS 1.1.2
obrien [Sat, 2 Oct 1999 21:54:32 +0000 (21:54 +0000)]
Virgin import of EGCS 1.1.2

24 years ago* We have /var/tmp, not /usr/tmp. So use that where EGCS used the latter.
obrien [Sat, 2 Oct 1999 21:50:07 +0000 (21:50 +0000)]
*  We have /var/tmp, not /usr/tmp.  So use that where EGCS used the latter.
*  In the absence of the env vars TMPDIR, TMP, TEMP (which override this
   ordering), attempt to create temperary files in /tmp, P_tmpdir (/var/tmp),
   /usr/tmp, and .  until successful.

24 years agoadd SA_1FM_AT_EOD option for scsi_sa- this causes a default behaviour of
mjacob [Sat, 2 Oct 1999 20:23:52 +0000 (20:23 +0000)]
add SA_1FM_AT_EOD option for scsi_sa- this causes a default behaviour of
one filemark at end of media for tapes otherwise neither quirked nor known.

24 years agoFix includes. I missed this the first time around.
mdodd [Sat, 2 Oct 1999 20:22:26 +0000 (20:22 +0000)]
Fix includes.  I missed this the first time around.

24 years agoIn some drivers we use two devices to be able to boot.
sos [Sat, 2 Oct 1999 20:21:49 +0000 (20:21 +0000)]
In some drivers we use two devices to be able to boot.
So if si_iosize_max is allready set, dont mess with it..

Also just log the problem with maxphys not being set once.

designed by: phk
tested by: sos

24 years agoDocument SA_1FM_AT_EOD option.
mjacob [Sat, 2 Oct 1999 20:20:32 +0000 (20:20 +0000)]
Document SA_1FM_AT_EOD option.

24 years agoAnother 1FM@EOD quirk (from mike@sentex.net for a Seagate STT20000),
mjacob [Sat, 2 Oct 1999 20:17:16 +0000 (20:17 +0000)]
Another 1FM@EOD quirk (from mike@sentex.net for a Seagate STT20000),
and add a config option that allows one to default to 1FM@EOD for tapes
otherwise unquirked or unknown as to which to prefer. Note that tcopy
will be broken for these tapes until tcopy is fixed.

24 years ago Print a warning that includes the mount source when the foreground
dillon [Sat, 2 Oct 1999 19:42:46 +0000 (19:42 +0000)]
Print a warning that includes the mount source when the foreground
    mount fails prior to going into the background when a background NFS
    mount is requested.

PR: misc/12376

24 years agoo Add $FreeBSD$ as a rcsid instead of in a comment
marcel [Sat, 2 Oct 1999 19:37:14 +0000 (19:37 +0000)]
o  Add $FreeBSD$ as a rcsid instead of in a comment
o  Remove bitrotted #undef directives
o  Actually set errno now and order the functions

Submitted by: bde

24 years agoRemove the inline versions of sigaddset, sigdelset, sigemptyset,
marcel [Sat, 2 Oct 1999 19:33:23 +0000 (19:33 +0000)]
Remove the inline versions of sigaddset, sigdelset, sigemptyset,
sigfillset and sigismember.

Submitted by: bde

24 years agoo Add $FreeBSD$ as a rcsid instead of in a comment.
marcel [Sat, 2 Oct 1999 19:24:24 +0000 (19:24 +0000)]
o  Add $FreeBSD$ as a rcsid instead of in a comment.
o  Fix formatting
o  Return the error if sigprocmask fails instead of undefined data.

Submitted by: bde

24 years agoUse the PRVERB() macro instead of 'if (bootverbose) printf()...
mdodd [Sat, 2 Oct 1999 17:40:07 +0000 (17:40 +0000)]
Use the PRVERB() macro instead of 'if (bootverbose) printf()...

Add debuging for all failure cases in aha_cmd().

Always check DATAIN_REG_READY even if we're ready to exit the
read loop.

The last fix allows the AHA-1640 MCA SCSI adapter to operate
correctly and likely fixes problems on a few other oddball
adapters. (I suspect my Dell Drive Array in 1540 mode needs this.)

Reviewed by: Warner Losh

24 years agoFixed style bugs in prototype for aout_coredump() (mainly wrapping it with
bde [Sat, 2 Oct 1999 12:57:40 +0000 (12:57 +0000)]
Fixed style bugs in prototype for aout_coredump() (mainly wrapping it with
__BEGIN_DECLS/__END_DECLS to support C++ in 0.001% of the kernel).

24 years agoUpdate man page to loader.conf(5) days.
dcs [Sat, 2 Oct 1999 12:49:43 +0000 (12:49 +0000)]
Update man page to loader.conf(5) days.

24 years agoFixed breakage of userland K&R support in rev.1.39. Kernel inline functions
bde [Sat, 2 Oct 1999 12:46:59 +0000 (12:46 +0000)]
Fixed breakage of userland K&R support in rev.1.39.  Kernel inline functions
with new-style function definitions were exported.

24 years agoAdd -C flag to indicate the presence of comments. Files thus processed
dcs [Sat, 2 Oct 1999 12:33:37 +0000 (12:33 +0000)]
Add -C flag to indicate the presence of comments. Files thus processed
will be marked as having comments, which are indicated by two delimiter
characters at the beginning of a line.

24 years agoIgnore comment lines in files marked as having them.
dcs [Sat, 2 Oct 1999 12:32:27 +0000 (12:32 +0000)]
Ignore comment lines in files marked as having them.

24 years agoChange path order in makefile so newer fortune files will be built with
dcs [Sat, 2 Oct 1999 12:31:56 +0000 (12:31 +0000)]
Change path order in makefile so newer fortune files will be built with
the latest fortune (strfile/caesar) sources.

Correct a separator type in fortunes2.

Add Unix geeks dating instructions (reference card style).

24 years agoFixed style bugs in prototypes.
bde [Sat, 2 Oct 1999 12:27:51 +0000 (12:27 +0000)]
Fixed style bugs in prototypes.

24 years agoFix a problem relating to si_iosize_max which broke scsi devices.
phk [Sat, 2 Oct 1999 11:17:54 +0000 (11:17 +0000)]
Fix a problem relating to si_iosize_max which broke scsi devices.

24 years agoFix typo.
des [Sat, 2 Oct 1999 10:21:10 +0000 (10:21 +0000)]
Fix typo.

Pointed out by: Kelly Yancey <kbyanc@posi.net>

24 years agoRemoved unnecessary splclock() protection for getmicrotime() and
bde [Sat, 2 Oct 1999 07:34:11 +0000 (07:34 +0000)]
Removed unnecessary splclock() protection for getmicrotime() and
getmicrouptime().

Removed unused includes.

Reviewed by: ken

24 years agoncplib modules: bring up new ncp.ko and nwfs.ko
bp [Sat, 2 Oct 1999 06:32:36 +0000 (06:32 +0000)]
ncplib modules: bring up new ncp.ko and nwfs.ko

24 years agoncplib continued: add appropriate options to LINT.
bp [Sat, 2 Oct 1999 05:30:40 +0000 (05:30 +0000)]
ncplib continued: add appropriate options to LINT.

24 years agoImport kernel part of ncplib: netncp and nwfs
bp [Sat, 2 Oct 1999 04:06:24 +0000 (04:06 +0000)]
Import kernel part of ncplib: netncp and nwfs

Reviewed by: msmith, peter
Obtained from: ncplib

24 years agoAdd the apm_saver syscons screen saver module.
nsayer [Sat, 2 Oct 1999 03:56:42 +0000 (03:56 +0000)]
Add the apm_saver syscons screen saver module.

apm_saver uses the apm_display() routine from the apm system to
"suspend" the "display" part of the machine.

This is beneficial for some laptops (or other machines with
non-traditional displays) that choke on the 'green' saver's
effect.

Another way of looking at this is that it's the same as a screen
saver that does an 'apm -d 0' to blank the display and an 'apm -d 1'
to bring it back. One probably ought to use these commands to make
sure the effect will be correct before using it unattended.

24 years agoPrepare for the apm_saver screen saver module.
nsayer [Sat, 2 Oct 1999 03:34:15 +0000 (03:34 +0000)]
Prepare for the apm_saver screen saver module.

1. Break out the definition of the soft state structure into an include
file.

2. un-static the soft state and apm_display(), and group them under a
comment that notes the dependency.

24 years agoVirgin import of EGCS 1.1.2
obrien [Sat, 2 Oct 1999 01:46:57 +0000 (01:46 +0000)]
Virgin import of EGCS 1.1.2

24 years agoThis commit was generated by cvs2svn to compensate for changes in r51848,
obrien [Sat, 2 Oct 1999 01:46:57 +0000 (01:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r51848,
which included commits to RCS files with non-trunk default branches.

24 years agoBackout part of the changes made in 1.111
roger [Fri, 1 Oct 1999 16:58:40 +0000 (16:58 +0000)]
Backout part of the changes made in 1.111

For unknown devices the output will now be
  pci0: unknown card (vendor=0x109e, dev=0x0878) at 14.1 irq 19
instead of
  pci0: unknown card DD^0878 (vendor=0x109e, dev=0x0878) at 14.1 irq 19

Before this change, the code used to take the PCI vendor id and translate it
into a three letter ASCII name.
For PnP devices, the vendor id _does_ map to a nice ASCII name
(eg Creative Labs PnP ID maps to "CTL", ESS PnP ID maps to "ESS")

But there is no such mapping for PCI devices, as can be seen by the
example above where the Brooktree PCI vendor ID maps to "DD^"

The PCI Special Interest Group confirmed they do not have any mappings
from vendor ID to ASCII.

24 years agoOops. That'll teach me to commit without testing. I either replaced
peter [Fri, 1 Oct 1999 14:26:28 +0000 (14:26 +0000)]
Oops.  That'll teach me to commit without testing.  I either replaced
one trigraph with another, or completely missed the point.  Kill it for
real this time.

24 years agoZap a trigraph (???)
peter [Fri, 1 Oct 1999 14:23:36 +0000 (14:23 +0000)]
Zap a trigraph (???)

24 years agoForce the "calls" count for malloc types to be 64 bit where it keeps track
peter [Fri, 1 Oct 1999 14:21:50 +0000 (14:21 +0000)]
Force the "calls" count for malloc types to be 64 bit where it keeps track
of the number of times a particular type has been used.  It's rather easy
to overflow.  One site I'm looking at seems to do it in a matter of days.
On the Alpha this is a no-op since 'long' is 64 bit already.  The sole
user of this interface seems to be vmstat -m and friends which will need
a recompile.  The overheads of using a 64 bit int should be pretty light
as the kernel just does "calls++" type operations and that's it.

24 years agoUse the sys/wormio.h definitions of the CDRIOCNEXTWRITEABLEADDR and
peter [Fri, 1 Oct 1999 14:14:20 +0000 (14:14 +0000)]
Use the sys/wormio.h definitions of the CDRIOCNEXTWRITEABLEADDR and
CDRIOCBLANK ioctls rather than duplicating them.

24 years agoUse the sys/wormio.h definitions of CDRIOCNEXTWRITEABLEADDR and
peter [Fri, 1 Oct 1999 14:12:46 +0000 (14:12 +0000)]
Use the sys/wormio.h definitions of CDRIOCNEXTWRITEABLEADDR  and
CDRIOCBLANK ioctls.

24 years agoMove a couple of ioctl defines from wormcontrol.c to wormio.h. These are
peter [Fri, 1 Oct 1999 14:10:50 +0000 (14:10 +0000)]
Move a couple of ioctl defines from wormcontrol.c to wormio.h. These are
used in the dev/ata/atapi-cd driver too.

24 years agoSync w/ sys/i386/i386/machdep.c revision 1.364.
kato [Fri, 1 Oct 1999 12:46:08 +0000 (12:46 +0000)]
Sync w/ sys/i386/i386/machdep.c revision 1.364.

24 years agoSync w/ sys/i386/conf/files.i386 revision 1.275.
kato [Fri, 1 Oct 1999 12:29:49 +0000 (12:29 +0000)]
Sync w/ sys/i386/conf/files.i386 revision 1.275.

24 years agoIntroduce the disk mini-layer and devstat_end_transaction_buf() in cam/scsi.
phk [Fri, 1 Oct 1999 09:34:10 +0000 (09:34 +0000)]
Introduce the disk mini-layer and devstat_end_transaction_buf() in cam/scsi.

Somewhat reviewed by:   ken

24 years agoLet sleep(1) handle fractions of a second (up to nanosecond).
ru [Fri, 1 Oct 1999 07:53:40 +0000 (07:53 +0000)]
Let sleep(1) handle fractions of a second (up to nanosecond).

This is a conservative change.  It does the same thing in weird
cases like the old one.  For example, 'sleep abcd' still sleeps
for zero seconds.  `sleep 10.a' and `sleep 10.05aa' do the best
and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds).

24 years agoImplement the use of si_addr in siginfo_t.
marcel [Fri, 1 Oct 1999 07:49:37 +0000 (07:49 +0000)]
Implement the use of si_addr in siginfo_t.

Suggested by: jdp

24 years agoDon't check %cs *after* it has being set in sigreturn. If the check
marcel [Fri, 1 Oct 1999 07:22:50 +0000 (07:22 +0000)]
Don't check %cs *after* it has being set in sigreturn. If the check
fails, applications could end up running in kernel mode (oops).

Submitted by: bde

24 years agoBack out an unintended commit. This wasn't supposed to be
mdodd [Fri, 1 Oct 1999 05:31:27 +0000 (05:31 +0000)]
Back out an unintended commit.  This wasn't supposed to be
in my work directory on freefall.

24 years agoTurn off and remove the 'old' if_ep ISA/EISA/PCCARD driver.
mdodd [Fri, 1 Oct 1999 05:24:27 +0000 (05:24 +0000)]
Turn off and remove the 'old' if_ep ISA/EISA/PCCARD driver.

Turn on the 'new' if_ep driver which supports:

ISA 3c509
MCA 3c529
EISA 3c579
PCCARD 3c589

I think all we're missing is support for the VME bus and S-100 bus
Etherlink III cards.

The new code has been tested by a number of people and all the important
bits work.  I've not been able to test the EISA code but will do so once
my hardware arrives.  Since I've changed nothing in the EISA code I suspect
it will perform the same manner as before.

Future changes involve whacking the ISA and PCCARD front ends to use
newbus and to convert the driver to bus_space and make it use ifmedia.

This is the first working network driver that supports MCA bus devices btw.

Enjoy.

24 years agoAdd support for the AHA-1640 SCSI adapter.
mdodd [Fri, 1 Oct 1999 03:12:15 +0000 (03:12 +0000)]
Add support for the AHA-1640 SCSI adapter.

The changes to sys/dev/aha/aha.c that allow these
cards to function properly will be here in a day
or 2.

24 years agomake sure a trivial apm.h is created, as some people have assumed that
mjacob [Fri, 1 Oct 1999 02:41:30 +0000 (02:41 +0000)]
make sure a trivial apm.h is created, as some people have assumed that
all architectures have apm and have just included apm.h blindly.

24 years agoIf dumpdev exists, it's automatically enabled. Change comment to reflect.
billf [Fri, 1 Oct 1999 00:13:44 +0000 (00:13 +0000)]
If dumpdev exists, it's automatically enabled. Change comment to reflect.

24 years agoMake all slices/partitions correctly inherit si_* fields.
phk [Thu, 30 Sep 1999 21:14:28 +0000 (21:14 +0000)]
Make all slices/partitions correctly inherit si_* fields.

Lightly tested by: msmith

24 years agoUse sigemptyset rather than sa_mask = 0.
peter [Thu, 30 Sep 1999 19:55:00 +0000 (19:55 +0000)]
Use sigemptyset rather than sa_mask = 0.

Submitted by: "John W. DeBoskey" <jwd@unx.sas.com>

24 years agoPlug a potential filedescriptor leak. This will probably almost
guido [Thu, 30 Sep 1999 19:13:17 +0000 (19:13 +0000)]
Plug a potential filedescriptor leak. This will probably almost
never be triggered.

Reviewed by:  David Greenman

24 years agoThis fix allows cards inserted in one of the bottem-most slots on an xp1000
gallatin [Thu, 30 Sep 1999 19:09:22 +0000 (19:09 +0000)]
This fix allows cards inserted in one of the bottem-most slots on an xp1000
(behind the built-in ppb on hose 1) to be found:

When testing the adaptec controller on alpha, I realized I misread the xp1000
documentation and the way I'm calculating the bus number for PCI
config space accesses on the tsunami is wrong.  I had thought that a bus
behind a ppb should be numbered as the nth bus in that hose, but it
actually needs to be the nth global bus within the system.  The bus number
for the primary bus on a hose must always remain 0 when calculating config
space addresses.

24 years agoFix disk_close once more, and better this time.
phk [Thu, 30 Sep 1999 19:03:25 +0000 (19:03 +0000)]
Fix disk_close once more, and better this time.

Spotted by: bde

24 years agoMake the fxp driver work on alpha, rather than panic the machine on boot
gallatin [Thu, 30 Sep 1999 19:03:12 +0000 (19:03 +0000)]
Make the fxp driver work on alpha, rather than panic the machine on boot
and/or when using the card.

o Convert the driver to using bus_space.  This allows alphas with
fxp's to boot, rather than panic'ing because rman_get_virtual()
doesn't really return a virtual address on alphas.

o Fix an alpha unaligned access error caused by some misfeature of
gcc/egcs: if link_addr & rbd_addr in the fxp_rfa struct are 32 bit
quantities, egcs will assume they are naturally aligned. So it will do
a ldl & some shifty/masky to twiddle 16 bit values in fxp_lwcopy().
However, if they are 16-bit aligned, the ldl will actually be done on
a 16-bit aligned value & we will panic with an unaligned access
error... Changing their definition to an array of chars seems to fix
this.  I obtained this from NetBSD.

I've tested this on both i386 & alpha.

24 years agoAdd libcrypt. This previously/coincidentally worked for login,
markm [Thu, 30 Sep 1999 18:53:34 +0000 (18:53 +0000)]
Add libcrypt. This previously/coincidentally worked for login,
because login was already linked against it, but others have a
problem.

24 years agoAdd ahc driver. The adaptec driver works just dandy on my xp1000 using
gallatin [Thu, 30 Sep 1999 18:51:56 +0000 (18:51 +0000)]
Add ahc driver.  The adaptec driver works just dandy on my xp1000 using
a 2940UW.  The dp264 (and ds20, I think) have an AIC7895 on board so it
is important the ahc driver be in GENERIC so that FreeBSD can install on
these boxes.

24 years agoAdd sigprocmask to HIDDEN_SYSCALLS. This renames the syscall to
marcel [Thu, 30 Sep 1999 15:07:43 +0000 (15:07 +0000)]
Add sigprocmask to HIDDEN_SYSCALLS. This renames the syscall to
_thread_sys_sisprocmask in libc_r. This solves the undefined symbol...

Reported by: Kenneth Wayne Culver

24 years agoSort by date, reindent sigset_t entry
imp [Thu, 30 Sep 1999 14:54:48 +0000 (14:54 +0000)]
Sort by date, reindent sigset_t entry

24 years agoAdd the proper headers so that the SIGNOTEMPTY and SIGSETAND
marcel [Thu, 30 Sep 1999 14:51:31 +0000 (14:51 +0000)]
Add the proper headers so that the SIGNOTEMPTY and SIGSETAND
macros are defined.

24 years agoCorrectly escape a macro call in the description of the .D1 macro.
mpp [Thu, 30 Sep 1999 14:39:22 +0000 (14:39 +0000)]
Correctly escape a macro call in the description of the .D1 macro.

Also use the correct macro (.D1, not .Dl) to format the text,
and in the example output.

PR: docs/14051
Submitted by: <andrew@ugh.net.au>

24 years ago(null commit).
jkoshy [Thu, 30 Sep 1999 09:40:44 +0000 (09:40 +0000)]
(null commit).

> PR: docs/140007

That should be:

PR: docs/14007

24 years agoCorrect typos and -mdoc usage. Improve clarity of language.
jkoshy [Thu, 30 Sep 1999 09:35:54 +0000 (09:35 +0000)]
Correct typos and -mdoc usage.  Improve clarity of language.

PR: docs/140007
(partial)
Submitted by: Adam Wight <adamw@holonet.net>

24 years agoSigh, too many late nights!
jkh [Thu, 30 Sep 1999 08:32:35 +0000 (08:32 +0000)]
Sigh, too many late nights!

24 years agoCount bogus_page as wired.
dt [Thu, 30 Sep 1999 07:39:20 +0000 (07:39 +0000)]
Count bogus_page as wired.

24 years agoPlug an accounting leak: count pages in ZONE_INTERRUPT zones as wired.
dt [Thu, 30 Sep 1999 07:35:50 +0000 (07:35 +0000)]
Plug an accounting leak: count pages in ZONE_INTERRUPT zones as wired.

24 years agoSupport GRE packets
brian [Thu, 30 Sep 1999 07:23:13 +0000 (07:23 +0000)]
Support GRE packets

Submitted by: Harry Starr <starr@gccs.com.au>

24 years agoRemove the D_NOCLUSTER[RW] options which were added because vn had
phk [Thu, 30 Sep 1999 07:11:30 +0000 (07:11 +0000)]
Remove the D_NOCLUSTER[RW] options which were added because vn had
problems.  Now that Matt has fixed vn, this can go.  The vn driver
should have used d_maxio (now si_iosize_max) anyway.

24 years agoTest the slices for openness before we close them; doing it the other way
msmith [Thu, 30 Sep 1999 05:29:59 +0000 (05:29 +0000)]
Test the slices for openness before we close them; doing it the other way
around meant that the higher level close routine never gets called.
(phk is on the road; this is a quick fix to get things working and may need
 more polish)

24 years agoFix a typo in a comment.
mpp [Thu, 30 Sep 1999 04:55:23 +0000 (04:55 +0000)]
Fix a typo in a comment.

24 years agoFix typo in november
imp [Wed, 29 Sep 1999 22:29:15 +0000 (22:29 +0000)]
Fix typo in november
Add signal breakage

**** NEW KERNEL NEEDED FOR MAKE WORLD ****

24 years agoAdd and activate the man page for memcontrol(8).
chris [Wed, 29 Sep 1999 21:43:31 +0000 (21:43 +0000)]
Add and activate the man page for memcontrol(8).

Reviewed by: msmith

24 years agoFix misspelling of the "addq" opcode.
jdp [Wed, 29 Sep 1999 21:10:25 +0000 (21:10 +0000)]
Fix misspelling of the "addq" opcode.

24 years agoDo not follow symlinks when binding a unix domain socket.
guido [Wed, 29 Sep 1999 21:09:41 +0000 (21:09 +0000)]
Do not follow symlinks when binding a unix domain socket.

This fixes the ssh 1.2.27 vulnerability as reported in bugtraq.

24 years agoReconnect doscmd. It's been fixed.
marcel [Wed, 29 Sep 1999 20:13:34 +0000 (20:13 +0000)]
Reconnect doscmd. It's been fixed.

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

reported, reviewed and tested by: jdp

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

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

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

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

Replace it with mnt_iosize_max in struct mount.

Nits from: bde

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

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

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

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

PR: docs/10059

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

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

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

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

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

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

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

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

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

The compatibility code and/or emulators have been updated:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Remove a half-started message.

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

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

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

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

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

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

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

Add body of vinum_checkparity command.

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

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

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

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

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

launch_requests: Remove debug code

sdio: Reformat log call.

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

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

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

Define the correct return lengths for a number of ioctls.

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

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

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

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

read_drive: Remove unused variable.

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

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