]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
27 years agoCatch up with the original.
Hiroyuki Hanai [Wed, 9 Apr 1997 03:05:58 +0000 (03:05 +0000)]
Catch up with the original.
Submitted by: Yoshiaki Uchikawa <yoshiaki@kt.rim.or.jp>

27 years agoEnsure that the remote host name is Nul terminated.
Mike Pritchard [Tue, 8 Apr 1997 20:36:36 +0000 (20:36 +0000)]
Ensure that the remote host name is Nul terminated.
Closes PR# 2589.

27 years agoImprove the wording in the NOTES section. Closes PR# 3223.
Mike Pritchard [Tue, 8 Apr 1997 20:27:48 +0000 (20:27 +0000)]
Improve the wording in the NOTES section.  Closes PR# 3223.

27 years agoFix a xref.
Mike Pritchard [Tue, 8 Apr 1997 20:01:15 +0000 (20:01 +0000)]
Fix a xref.

Obtained from: NetBSD-bus PR# 3464

27 years agoFix 8bit chars handling
Andrey A. Chernov [Tue, 8 Apr 1997 13:52:53 +0000 (13:52 +0000)]
Fix 8bit chars handling

27 years agoFix for expiration date test. Closes PR#3224.
David Nugent [Tue, 8 Apr 1997 12:32:17 +0000 (12:32 +0000)]
Fix for expiration date test. Closes PR#3224.

27 years agoAdded lnc driver.
KATO Takenori [Tue, 8 Apr 1997 12:01:11 +0000 (12:01 +0000)]
Added lnc driver.

27 years agoMissing newline caused too much text to be fed to the macro.
Peter Wemm [Tue, 8 Apr 1997 10:45:10 +0000 (10:45 +0000)]
Missing newline caused too much text to be fed to the macro.

Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3228

27 years agosetsid is declared in <unistd.h>, which is self sufficient (doesn't need
Peter Wemm [Tue, 8 Apr 1997 10:43:47 +0000 (10:43 +0000)]
setsid is declared in <unistd.h>, which is self sufficient (doesn't need
prior <sys/types.h>)

Fixes PR#3229, from Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>

27 years agoEnables lnc driver on PC-98 to support NEC SV-98/2-B06 PCI card.
KATO Takenori [Tue, 8 Apr 1997 10:33:24 +0000 (10:33 +0000)]
Enables lnc driver on PC-98 to support NEC SV-98/2-B06 PCI card.
Cascade mode of DMA is disabled when PC98 is defined because PC-98
doesn't support it.

27 years agoFix the typo about the DEC's NICs
Hiroyuki Hanai [Tue, 8 Apr 1997 02:28:58 +0000 (02:28 +0000)]
Fix the typo about the DEC's NICs
Submitted by: morimitsu@jrdvms.enet.dec.com

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:23:27 +0000 (02:23 +0000)]
Catch up with the original.

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:13:06 +0000 (02:13 +0000)]
Catch up with the original.

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:10:38 +0000 (02:10 +0000)]
Catch up with the original.
Submitted by: mihoko@pa.yokogawa.co.j

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:07:24 +0000 (02:07 +0000)]
Catch up with the original.
Submitted by: Takashi Saeki <saeki@saskg.semicon.sony.co.jp>

27 years agoLatest release is 2.2.1, not 2.1.7.
John Fieber [Tue, 8 Apr 1997 00:47:59 +0000 (00:47 +0000)]
Latest release is 2.2.1, not 2.1.7.

27 years agoMention the RELENG_2_2_1_RELEASE for getting FreeBSD-2.2.1.
John Polstra [Tue, 8 Apr 1997 00:14:00 +0000 (00:14 +0000)]
Mention the RELENG_2_2_1_RELEASE for getting FreeBSD-2.2.1.

27 years agoFix an infinite loop caused by calling ahc_run_done queue while the
Justin T. Gibbs [Mon, 7 Apr 1997 18:32:47 +0000 (18:32 +0000)]
Fix an infinite loop caused by calling ahc_run_done queue while the
driver is waiting a bus settle delay.  There should really be a facility
for the controller driver to "freeze" its queue during recovery operations
which would make all of this gymnastics unnecessary.

27 years agoFix race
Guido van Rooij [Mon, 7 Apr 1997 18:01:10 +0000 (18:01 +0000)]
Fix race
Obtained from: Keith Bostic

27 years agoFixed bugs involving paths:
Bruce Evans [Mon, 7 Apr 1997 17:21:19 +0000 (17:21 +0000)]
Fixed bugs involving paths:
- LDADD was wrong for non-uniform obj trees.
- DPADD was wrong for separate obj tres.

Cleaned up nearby messes, mostly ones invoving paths:
- ../libtxi was useless.
- there were too many redefinitions and too many different names for the
  same paths.
- use INTERNALLIB* to simplify libtxi/Makefile.

27 years agoFixed bugs involving paths:
Bruce Evans [Mon, 7 Apr 1997 16:52:53 +0000 (16:52 +0000)]
Fixed bugs involving paths:
- LDADD was wrong for non-uniform obj trees.
- DPADD was wrong for separate obj tres.

Cleaned up nearby messes, mostly ones invoving paths:
- -I../libtxi was useless.
- there were too many redefinitions and too many different names for the
  same paths.
- use INTERNALLIB* to simplify libtxi/Makefile.

27 years agoInclude ${CURDIR}/../Makefile.inc as in most other `.mk' files. This
Bruce Evans [Mon, 7 Apr 1997 16:46:40 +0000 (16:46 +0000)]
Include ${CURDIR}/../Makefile.inc as in most other `.mk' files.  This
is most useful for centralizing the definitions of paths to contrib
directories.

Removed useless subshell and evil-hiding @ in the the rule for
initializing the info dir.

27 years agoLower the spl() of the new process from splhigh() right away, since
Peter Wemm [Mon, 7 Apr 1997 11:42:09 +0000 (11:42 +0000)]
Lower the spl() of the new process from splhigh() right away, since
nothing else will lower it until either much later, or never(?) for
kernel processes.

This basically re-fixes what Bruce fixed in rev 1.29 of kern_fork.c,
which was broken again now the child does not execute back up the fork()
calling tree.

27 years agoSynchronize with sys/i386/i386{machdep.c,trap.c} revisions 1.236 and
KATO Takenori [Mon, 7 Apr 1997 11:00:48 +0000 (11:00 +0000)]
Synchronize with sys/i386/i386{machdep.c,trap.c} revisions 1.236 and
1.91, respectively.

27 years agoSynchronize with sys/i386/isa/clock.c revision 1.80.
KATO Takenori [Mon, 7 Apr 1997 10:53:14 +0000 (10:53 +0000)]
Synchronize with sys/i386/isa/clock.c revision 1.80.

27 years agoterminfo_extensions.doc:
John-Mark Gurney [Mon, 7 Apr 1997 10:24:13 +0000 (10:24 +0000)]
terminfo_extensions.doc:
o) fix some typos
o) add missing comments from terminfo's man page

termcap.5
o) fix some types
o) add a reference to terminfo_extensions.doc

27 years agoRemove explicit zero of p_vmspace on creation, it's now in the startzero
Peter Wemm [Mon, 7 Apr 1997 09:38:39 +0000 (09:38 +0000)]
Remove explicit zero of p_vmspace on creation, it's now in the startzero
section of the proc struct.

27 years agoMove p_vmspace into the startzero section since we've just changed things
Peter Wemm [Mon, 7 Apr 1997 09:35:15 +0000 (09:35 +0000)]
Move p_vmspace into the startzero section since we've just changed things
and may as well get it over and done with.

27 years agoUse UPAGES_HOLE instead of UPAGES in case it's changed some time.
Peter Wemm [Mon, 7 Apr 1997 09:30:22 +0000 (09:30 +0000)]
Use UPAGES_HOLE instead of UPAGES in case it's changed some time.

Rename the PT* index KSTK* #defines to UMAX*, since we don't have a kernel
stack there any more..

These are used to calculate VM_MAXUSER_ADDRESS and USRSTACK, and really
do not want to be changed with UPAGES since BSD/OS 2.x binary compatability
depends on it.

27 years agoDefine UPAGES_HOLE at 2 (same as current UPAGES) in case UPAGES changes
Peter Wemm [Mon, 7 Apr 1997 09:27:21 +0000 (09:27 +0000)]
Define UPAGES_HOLE at 2 (same as current UPAGES) in case UPAGES changes
later.  This is used to calculate the top of user address space.

27 years agoRestore PATH_LOCALE functionality using issetugid() call now
Andrey A. Chernov [Mon, 7 Apr 1997 08:54:38 +0000 (08:54 +0000)]
Restore PATH_LOCALE functionality using issetugid() call now

27 years agoClean up some dead wood. Kill the page table page for mapping the
Peter Wemm [Mon, 7 Apr 1997 08:38:19 +0000 (08:38 +0000)]
Clean up some dead wood.  Kill the page table page for mapping the
proc0/idlePTD/bootstrap stack into place in user space.  We save 4K.
Remove p0upa, it is now unneeded.

27 years agoAttempt to patch up gdb so that it has a chance of working with the new
Peter Wemm [Mon, 7 Apr 1997 08:08:20 +0000 (08:08 +0000)]
Attempt to patch up gdb so that it has a chance of working with the new
UPAGES layout.. it was entirely too comfortable with reading and writing
the U area before.  I've changed it to use PT_GETREGS/PT_PUTREGS
ptrace ops instead of READ_U etc.  The code to read the registers from
core dumps is a bandaid at best.  It seems to have problems reading
core dumps from dynamic linked executables still, but at least static
dumps work.

I desperately need help from a gdb/bfd expert. :-)  HELP!!

27 years agoThe biggie: Get rid of the UPAGES from the top of the per-process address
Peter Wemm [Mon, 7 Apr 1997 07:16:06 +0000 (07:16 +0000)]
The biggie: Get rid of the UPAGES from the top of the per-process address
space. (!)

Have each process use the kernel stack and pcb in the kvm space.  Since
the stacks are at a different address, we cannot copy the stack at fork()
and allow the child to return up through the function call tree to return
to user mode - create a new execution context and have the new process
begin executing from cpu_switch() and go to user mode directly.
In theory this should speed up fork a bit.

Context switch the tss_esp0 pointer in the common tss.  This is a lot
simpler since than swithching the gdt[GPROC0_SEL].sd.sd_base pointer
to each process's tss since the esp0 pointer is a 32 bit pointer, and the
sd_base setting is split into three different bit sections at non-aligned
boundaries and requires a lot of twiddling to reset.

The 8K of memory at the top of the process space is now empty, and unmapped
(and unmappable, it's higher than VM_MAXUSER_ADDRESS).

Simplity the pmap code to manage process contexts, we no longer have to
double map the UPAGES, this simplifies and should measuably speed up fork().

The following parts came from John Dyson:

Set PG_G on the UPAGES that are now in kernel context, and invalidate
them when swapping them out.

Move the upages object (upobj) from the vmspace to the proc structure.

Now that the UPAGES (pcb and kernel stack) are out of user space, make
rfork(..RFMEM..) do what was intended by sharing the vmspace
entirely via reference counting rather than simply inheriting the mappings.

27 years agoNo longer use an i386tss as the basis of our pcb - it wasn't particularly
Peter Wemm [Mon, 7 Apr 1997 06:45:18 +0000 (06:45 +0000)]
No longer use an i386tss as the basis of our pcb - it wasn't particularly
convenient and makes life difficult for my next commit.  We still need
an i386tss to point to for the tss slot in the gdt, so we use a common
tss shared between all processes.

Note that this is going to break debugging until this series of commits
is finished.  core dumps will change again too. :-(  we really need
a more modern core dump format that doesn't depend on the pcb/upages.

This change makes VM86 mode harder, but the following commits will remove
a lot of constraints for the VM86 system, including the possibility of
extending the pcb for an IO port map etc.

Obtained from: bde

27 years agoNew translation which corresponds to the 1.11 -> 1.12 change of
Hiroyuki Hanai [Mon, 7 Apr 1997 04:56:51 +0000 (04:56 +0000)]
New translation which corresponds to the 1.11 -> 1.12 change of
original.
Submitted by: mihoko@pa.yokogawa.co.jp

27 years agoCatch up with the original.
Hiroyuki Hanai [Mon, 7 Apr 1997 04:09:47 +0000 (04:09 +0000)]
Catch up with the original.

27 years agoDocumented new serial console flags.
Bruce Evans [Mon, 7 Apr 1997 01:26:34 +0000 (01:26 +0000)]
Documented new serial console flags.

Removed dead serial console options.

Reorganised sio and serial console options.

Added undocumented options CLUSTERDEBUG and NPX_DEBUG.

27 years agoDocument how to debug LKMs with kgdb.
Doug Rabson [Sun, 6 Apr 1997 23:03:27 +0000 (23:03 +0000)]
Document how to debug LKMs with kgdb.

Reviewed by: J Wunsch <j@uriah.heep.sax.de>

27 years agoAdd BSD family tree to UNIX history section.
Wolfram Schneider [Sun, 6 Apr 1997 21:53:59 +0000 (21:53 +0000)]
Add BSD family tree to UNIX history section.

27 years agoCommit a typo fix that's been sitting in my tree for ages, quite forgotten.
Peter Wemm [Sun, 6 Apr 1997 16:16:11 +0000 (16:16 +0000)]
Commit a typo fix that's been sitting in my tree for ages, quite forgotten.
The typo was detected once apon a time with the -Wunused compile option.
The result was that a block of code for implementing
madvise(.. MADV_SEQUENTIAL..) behavior was "dead" and unused, probably
negating the effect of activating the option.

Reviewed by: dyson

27 years agoFixes to ibcs2_getdents, including using struct dirent instead of
Doug Rabson [Sun, 6 Apr 1997 14:10:50 +0000 (14:10 +0000)]
Fixes to ibcs2_getdents, including using struct dirent instead of
struct direct, not using UFS' definition of DIRBLKSIZ, using directory
seek cookies to make reading non-UFS directories reliable
(e.g. cd9660, ext2fs).

A special thanks to Robert Eckardt for providing an ISC binary of GNU
ls so that I could test these changes.

27 years agoPrevent wedging of the stat clock because of missed interrupts.
Stephen McKay [Sun, 6 Apr 1997 13:25:48 +0000 (13:25 +0000)]
Prevent wedging of the stat clock because of missed interrupts.
This should cure the "alternate system clock has died!" problem.

Discussed with: bde, joerg

27 years agoSynchronize with sys/i386/i386/trap.c revision 1.89.
KATO Takenori [Sun, 6 Apr 1997 11:49:46 +0000 (11:49 +0000)]
Synchronize with sys/i386/i386/trap.c revision 1.89.

27 years agoMake MOD_* macros almost consistent:
Peter Dufault [Sun, 6 Apr 1997 11:14:13 +0000 (11:14 +0000)]
Make MOD_* macros almost consistent:

Use the name argument almost the same in all LKM types.  Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name.  This is a candidate for change and I vote just the name without
the "_mod".

Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.

Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.

Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.

Change source in tree to use the new interface.

Reviewed by: Bruce Evans

27 years agoMake MOD_* macros almost consistent:
Peter Dufault [Sun, 6 Apr 1997 10:49:22 +0000 (10:49 +0000)]
Make MOD_* macros almost consistent:

Use the name argument almost the same in all LKM types.  Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name.  This is a candidate for change and I vote just the name without
the "_mod".

Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.

Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.

Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.

Change source in tree to use the new interface.

Reviewed by: Bruce Evans

27 years agoRemove dependancy on UFS' DIRBLKSIZ definition.
Doug Rabson [Sun, 6 Apr 1997 10:10:50 +0000 (10:10 +0000)]
Remove dependancy on UFS' DIRBLKSIZ definition.

2.2 candidate.

Submitted by: bde

27 years agoMake vm_map_protect be more complete about map simplification. This
John Dyson [Sun, 6 Apr 1997 03:04:31 +0000 (03:04 +0000)]
Make vm_map_protect be more complete about map simplification.  This
is useful when a process changes it's page range protections very
much.
Submitted by: Alan Cox <alc@cs.rice.edu>

27 years agoCorrection to the prototype for vm_fault.
John Dyson [Sun, 6 Apr 1997 02:30:56 +0000 (02:30 +0000)]
Correction to the prototype for vm_fault.

27 years agoFix the gdb executable modify problem. Thanks to the detective work
John Dyson [Sun, 6 Apr 1997 02:29:45 +0000 (02:29 +0000)]
Fix the gdb executable modify problem.  Thanks to the detective work
by Alan Cox <alc@cs.rice.edu>, and his description of the problem.

The bug was primarily in procfs_mem, but the mistake likely happened
due to the lack of vm system support for the operation.  I added
better support for selective marking of page dirty flags so that
vm_map_pageable(wiring) will not cause this problem again.

The code in procfs_mem is now less bogus (but maybe still a little
so.)

27 years agoSupport for -c, byte count.
Alexander Langer [Sun, 6 Apr 1997 00:54:27 +0000 (00:54 +0000)]
Support for -c, byte count.

27 years agomove top.1 -> top.local.1, and generate top.1 so that the man page
Peter Wemm [Sat, 5 Apr 1997 22:05:46 +0000 (22:05 +0000)]
move top.1 -> top.local.1, and generate top.1 so that the man page
is remotely useful

27 years agoInstead of testing for both SELDI and SELDO in SSTAT0 in the poll for work
Justin T. Gibbs [Sat, 5 Apr 1997 22:03:47 +0000 (22:03 +0000)]
Instead of testing for both SELDI and SELDO in SSTAT0 in the poll for work
loop, test for them separately.  The bug report from David Malone showed that
even though we had been reselected (SELDI was true), we sat in the poll for
work loop until the selection timeout timer expired.  It may be that the
SSTAT0 register doesn't like to have more than one bit tested at a time.
I've seen stranger things than this on these parts.

27 years agoFix a bug in the selection timeout handler that was introduced when the
Justin T. Gibbs [Sat, 5 Apr 1997 21:41:13 +0000 (21:41 +0000)]
Fix a bug in the selection timeout handler that was introduced when the
selection loop was merged with the poll_for_work loop.  We cannot assume
that the SCB for the selection timeout is the current SCB.  Instead we
must look at the SCB at the head of the waiting for selection list.

This fixes part of a problem reported by David Malone, but does not explain
why he was getting selection timeouts in the first place.

27 years agoChange IPX to use the pr_usrreqs structure.
John Hay [Sat, 5 Apr 1997 20:05:11 +0000 (20:05 +0000)]
Change IPX to use the pr_usrreqs structure.

27 years agoDisallow "-p" when linking, with a diagnostic that recommends using
John Polstra [Sat, 5 Apr 1997 16:19:08 +0000 (16:19 +0000)]
Disallow "-p" when linking, with a diagnostic that recommends using
"-pg" and gprof(1) instead.  FreeBSD does not support plain "-p" or
prof(1).

Plain "-p" is still allowed when just compiling.  In the compile
phase, "-p" is identical "-pg".  It is used by <bsd.lib.mk> for
building profiled object files.

27 years agoSynchronize with sys/i386/conf/options.i386 revision 1.39.
KATO Takenori [Sat, 5 Apr 1997 15:06:30 +0000 (15:06 +0000)]
Synchronize with sys/i386/conf/options.i386 revision 1.39.

27 years agoSynchronize with sys/i386/isa/sioreg.h revision 1.8.
KATO Takenori [Sat, 5 Apr 1997 15:05:16 +0000 (15:05 +0000)]
Synchronize with sys/i386/isa/sioreg.h revision 1.8.

27 years agoSynchronize with sys/i386/isa/sio.c revision 1.162.
KATO Takenori [Sat, 5 Apr 1997 15:04:32 +0000 (15:04 +0000)]
Synchronize with sys/i386/isa/sio.c revision 1.162.

27 years agoFix linux_getdents so that it can cope with filesystems which translate
Doug Rabson [Sat, 5 Apr 1997 14:50:56 +0000 (14:50 +0000)]
Fix linux_getdents so that it can cope with filesystems which translate
the directory format (ext2fs, cd9660).  For these filesystems, it must use
cookies to find the correct offset to use for subsequent reads.  Without it,
linux /bin/ls tends to loop re-reading the same block over and over again.

2.2 candidate.

27 years agoMoved COMCONSOLE, CONADDR and CONUNIT to defunct options.
Bruce Evans [Sat, 5 Apr 1997 13:21:08 +0000 (13:21 +0000)]
Moved COMCONSOLE, CONADDR and CONUNIT to defunct options.

27 years agoRemoved defaults for dead options CONADDR and CONUNIT.
Bruce Evans [Sat, 5 Apr 1997 13:15:50 +0000 (13:15 +0000)]
Removed defaults for dead options CONADDR and CONUNIT.

27 years agoUse device flags instead of options for serial console configuration
Bruce Evans [Sat, 5 Apr 1997 13:11:27 +0000 (13:11 +0000)]
Use device flags instead of options for serial console configuration
(see LINT).  There is a new low-level console type that is more suitable
for use with gdb-remote.

Fixed setting of speed at probe time for the serial console (if any).

Reviewed by: dfr

27 years agoDeclare issetugid()
Peter Wemm [Sat, 5 Apr 1997 13:03:15 +0000 (13:03 +0000)]
Declare issetugid()

Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3200

27 years agoSupport NFS cookies in VOP_READDIR, allowing ext2fs filesystems to be
Doug Rabson [Sat, 5 Apr 1997 12:23:44 +0000 (12:23 +0000)]
Support NFS cookies in VOP_READDIR, allowing ext2fs filesystems to be
exported via NFS.

2.2 candidate.

27 years agoUpdate run - try and use the correct release numbers for everything.
Jordan K. Hubbard [Sat, 5 Apr 1997 08:38:48 +0000 (08:38 +0000)]
Update run - try and use the correct release numbers for everything.

27 years agoRecognize ZNYX 314 cards that have a MAC address with the low bit set.
Poul-Henning Kamp [Sat, 5 Apr 1997 07:59:41 +0000 (07:59 +0000)]
Recognize ZNYX 314 cards that have a MAC address with the low bit set.

27 years agoYAMF22
Jordan K. Hubbard [Sat, 5 Apr 1997 07:08:14 +0000 (07:08 +0000)]
YAMF22

27 years agoReplace Sf/Sb with AF/AB for terminals with ANSI colors
Andrey A. Chernov [Sat, 5 Apr 1997 02:51:19 +0000 (02:51 +0000)]
Replace Sf/Sb with AF/AB for terminals with ANSI colors

27 years agoImplement dkstats for worm devices so they show up in iostat et al.
Jordan K. Hubbard [Fri, 4 Apr 1997 22:12:55 +0000 (22:12 +0000)]
Implement dkstats for worm devices so they show up in iostat et al.
I got tired of not seeing my worm stats show up during a burn. :)
[Joerg, I just stapled in 1MB/sec for a bogus xfer rate and left seek = 1,
 as suggested - I'm not going to dynamically calculate the xfer rate from
 a known device spectable, OK? :-)]
Reviewed by: joerg

27 years agoSpeedup in case locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 20:10:53 +0000 (20:10 +0000)]
Speedup in case locale not used

27 years agoSpeedup in case locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 19:40:49 +0000 (19:40 +0000)]
Speedup in case locale not used

27 years agoAdd a 1ms delay in the XS_BUSY case. This is the same error code returned
Justin T. Gibbs [Fri, 4 Apr 1997 19:37:20 +0000 (19:37 +0000)]
Add a 1ms delay in the XS_BUSY case.  This is the same error code returned
for the QUEUE FULL condition.  This may help avoid wedging a device by
immediately requeeuing the transaction in this case.

27 years agoNow that we use AAP, we have to explicitly unpause the sequencer when
Justin T. Gibbs [Fri, 4 Apr 1997 19:36:04 +0000 (19:36 +0000)]
Now that we use AAP, we have to explicitly unpause the sequencer when
queueing an abort SCB.

27 years agoAdd missing Id that was lost when the sequencer file format changed.
Justin T. Gibbs [Fri, 4 Apr 1997 19:35:30 +0000 (19:35 +0000)]
Add missing Id that was lost when the sequencer file format changed.

27 years agoSpeedup in case locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 19:16:08 +0000 (19:16 +0000)]
Speedup in case locale not used

27 years agoEliminate some function calls when locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 19:08:19 +0000 (19:08 +0000)]
Eliminate some function calls when locale not used

27 years agoEliminate yet one function call when locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 19:07:02 +0000 (19:07 +0000)]
Eliminate yet one function call when locale not used

27 years agoSpeedup in case locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 18:44:19 +0000 (18:44 +0000)]
Speedup in case locale not used

27 years agoThis commit was generated by cvs2svn to compensate for changes in r24628,
Juli Mallett [Fri, 4 Apr 1997 18:41:29 +0000 (18:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r24628,
which included commits to RCS files with non-trunk default branches.

27 years agoImport OpenBSD m4 as of today.
Juli Mallett [Fri, 4 Apr 1997 18:41:29 +0000 (18:41 +0000)]
Import OpenBSD m4 as of today.

27 years agoSpeedup in case locale not used
Andrey A. Chernov [Fri, 4 Apr 1997 18:28:38 +0000 (18:28 +0000)]
Speedup in case locale not used

27 years agoFix various bugs in the locking protocol, allowing proper shared locks
Doug Rabson [Fri, 4 Apr 1997 17:49:35 +0000 (17:49 +0000)]
Fix various bugs in the locking protocol, allowing proper shared locks
to be used.  This should fix the lock panics that people are seeing.

27 years ago[Previous comment was incorrect for these files]
Doug Rabson [Fri, 4 Apr 1997 17:47:43 +0000 (17:47 +0000)]
[Previous comment was incorrect for these files]
Added calls to VFS lock debugging macros to make fixing filesystems' locking
easier.

27 years agoAdd a function vop_sharedlock which a copy of vop_nolock without the
Doug Rabson [Fri, 4 Apr 1997 17:46:21 +0000 (17:46 +0000)]
Add a function vop_sharedlock which a copy of vop_nolock without the
implementation #ifdef out.  This can be used for now by NFS.  As soon
as all the other filesystems' locking is fixed, this can go away.

Print the vnode address in vprint for easier debugging.

27 years agoAdd some debugging macros for tracing VFS locking bugs.
Doug Rabson [Fri, 4 Apr 1997 17:43:32 +0000 (17:43 +0000)]
Add some debugging macros for tracing VFS locking bugs.
Declare (hopefully short-lived) vop_sharedlock.

27 years agoDeleted <pc98/pc98/pc98_device.h>.
KATO Takenori [Fri, 4 Apr 1997 16:44:52 +0000 (16:44 +0000)]
Deleted <pc98/pc98/pc98_device.h>.

27 years agoSynchronize with sys/i386/isa/syscons.c revision 1.208.
KATO Takenori [Fri, 4 Apr 1997 15:23:55 +0000 (15:23 +0000)]
Synchronize with sys/i386/isa/syscons.c revision 1.208.

27 years agoSynchronize with sys/i386/isa/wd.c revision 1.128.
KATO Takenori [Fri, 4 Apr 1997 15:22:59 +0000 (15:22 +0000)]
Synchronize with sys/i386/isa/wd.c revision 1.128.

27 years agoFixed missing ${COPY} in install rule.
Bruce Evans [Fri, 4 Apr 1997 15:09:42 +0000 (15:09 +0000)]
Fixed missing ${COPY} in install rule.

27 years agoKilled unnecessary vp == NULL check after namei.
David Greenman [Fri, 4 Apr 1997 09:06:20 +0000 (09:06 +0000)]
Killed unnecessary vp == NULL check after namei.

27 years agoOops, only free component name buffer if namei() didn't. This bug has
David Greenman [Fri, 4 Apr 1997 07:30:06 +0000 (07:30 +0000)]
Oops, only free component name buffer if namei() didn't. This bug has
been in here since I wrote the code 3 years ago! Thanks, Bruce!

Submitted by: bde

27 years agoNOOP commit to correct the comment for the last commit:
Justin T. Gibbs [Fri, 4 Apr 1997 04:21:43 +0000 (04:21 +0000)]
NOOP commit to correct the comment for the last commit:
Bump the timeout for an "ordered tag" recovery action from 1 to 5 seconds.

Remove the multiple timeout panic.  Its very easy to get into a situation
where a timedout command will time out a second time even though the
recovery code is working fine.  A good example is:

1) Command times out during recovery
2) reset the timeout for the command
3) Recovery actions complete and all transactions are requeued
4) second timeout fires off which puts us back into recovery bogusly
5) another transaction that timedout once during the first recovery action
   times out causing the panic.

In essence, the correct solution to the problem is to put every transaction
back up into the work queue and have their timeout handling done in the same
way that all commands are handled.  The CAM layer makes this easy, so it
will have to wait until then.

27 years agoVarious fixes:
David Greenman [Fri, 4 Apr 1997 04:17:11 +0000 (04:17 +0000)]
Various fixes:

1. imgp->image_header needs to be cleared for the bp == NULL && `goto
   interpret' case, else exec_fail_dealloc would free it twice after
   an error.

2. Moved the vp->v_writecount check in exec_check_permissions() to
   near the end.  This fixes execve("/dev/null", ...) returning the
   bogus errno ETXTBSY.  ETXTBSY is still returned for attempts to
   exec interpreted files that are open for writing.  The man page
   is very old and wrong here.  It says that ETXTBSY is for pure
   procedure (shared text) files that are open for writing or reading.

3. Moved the setuid disabling in exec_check_permissions() to the end.
   Cosmetic.  It's more natural to dispose of all the error cases
   first.

...plus a couple of other cosmetic changes.

Submitted by: bde

27 years agoWhen not using SCB paging, we can always directly index the SCB of interest
Justin T. Gibbs [Fri, 4 Apr 1997 04:09:29 +0000 (04:09 +0000)]
When not using SCB paging, we can always directly index the SCB of interest
either by looking it up in the array of pending, per target, untagged
transactions, or by using the tag value passed in during the identify.  The
old code only direct indexed for tagged transactions.  This makes the
"findSCB" routine only necessary when SCB paging is enabled, so appropriately
conditionalize it.  This greatly simplifies the non SCB paging code flow.

27 years agoRemove the etc-magic target since we no longer install the
Mike Pritchard [Fri, 4 Apr 1997 02:42:53 +0000 (02:42 +0000)]
Remove the etc-magic target since we no longer install the
/etc/magic symlink.

27 years agoThe magic file now lives in /usr/share/misc.
Mike Pritchard [Fri, 4 Apr 1997 02:41:01 +0000 (02:41 +0000)]
The magic file now lives in /usr/share/misc.
Closes PR# 3187.

Submitted by: Ollivier Robert <roberto@keltia.freenix.fr>

27 years agoBack out cd ${.CURDIR}, stale obj fault
Andrey A. Chernov [Fri, 4 Apr 1997 01:44:25 +0000 (01:44 +0000)]
Back out cd ${.CURDIR}, stale obj fault

27 years agoLose the vnode lock on a permissions failure.
David Greenman [Fri, 4 Apr 1997 01:30:33 +0000 (01:30 +0000)]
Lose the vnode lock on a permissions failure.

Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>

27 years agoFix a typo that prevented the proper flag from being set
Mike Pritchard [Fri, 4 Apr 1997 01:25:32 +0000 (01:25 +0000)]
Fix a typo that prevented the proper flag from being set
when USE_REFER is set.

Submitted by: Sandro Sigala <ssigala@globalnet.it>