]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoPushdown Giant for nfs syscalls (nfssvc())
Matthew Dillon [Fri, 31 Aug 2001 22:39:36 +0000 (22:39 +0000)]
Pushdown Giant for nfs syscalls (nfssvc())

23 years agoMake various posix4 system calls MPSAFE (will fixup syscalls.master later)
Matthew Dillon [Fri, 31 Aug 2001 22:34:40 +0000 (22:34 +0000)]
Make various posix4 system calls MPSAFE (will fixup syscalls.master later)
    sched_setparam()
    sched_getparam()
    sched_setscheduler()
    sched_getscheduler()
    sched_yield()
    sched_get_priority_max()
    sched_get_priority_min()
    sched_rr_get_interval()

23 years agoAdd entries for 3wire terminals. (carrier not supplied, so we set nc).
Murray Stokely [Fri, 31 Aug 2001 22:18:50 +0000 (22:18 +0000)]
Add entries for 3wire terminals.  (carrier not supplied, so we set nc).

PR: conf/26420
Submitted by: Jon Passki <cykyc@yahoo.com>

23 years agomake swapon() MPSAFE (will adjust syscalls.master later)
Matthew Dillon [Fri, 31 Aug 2001 22:15:37 +0000 (22:15 +0000)]
make swapon() MPSAFE (will adjust syscalls.master later)

23 years agoAdd FD_SETSIZE warning to types.h
Matthew Dillon [Fri, 31 Aug 2001 22:12:32 +0000 (22:12 +0000)]
Add FD_SETSIZE warning to types.h

23 years agomark obreak() and ovadvise() as being MPSAFE
Matthew Dillon [Fri, 31 Aug 2001 22:10:03 +0000 (22:10 +0000)]
mark obreak() and ovadvise() as being MPSAFE

23 years agoAdd ID for the Best Data Smart One 56SPS Voice modem.
Murray Stokely [Fri, 31 Aug 2001 21:51:00 +0000 (21:51 +0000)]
Add ID for the Best Data Smart One 56SPS Voice modem.

PR: kern/24851
Submitted by: Daniel Rudy <dcrudy@aol.com>

23 years agoadd 2300/2312 notes
Matt Jacob [Fri, 31 Aug 2001 21:50:09 +0000 (21:50 +0000)]
add 2300/2312 notes

23 years agoExit gracefully when a SIGHUP is received. This prevents ee from going into
Mark Peek [Fri, 31 Aug 2001 21:50:06 +0000 (21:50 +0000)]
Exit gracefully when a SIGHUP is received. This prevents ee from going into
an infinite spin loop when the terminal window is forcibly blown away.

PR: 29553
Reported by: Sung N. Cho <sucho2@vt.edu>
MFC after: 1 day

23 years agoo Screw over users of the kern.{security.,}suser_permitted sysctl again,
Robert Watson [Fri, 31 Aug 2001 21:44:12 +0000 (21:44 +0000)]
o Screw over users of the kern.{security.,}suser_permitted sysctl again,
  by renaming it to kern.security.suser_enabled.  This makes the name
  consistent with other use: "permitted" now refers to a specific right
  or privilege, whereas "enabled" refers to a feature.  As this hasn't
  been MFC'd, and using this destroys a running system currently, I believe
  the user base of the sysctl will not be too unhappy.
o While I'm at it, un-staticize and export the supporting variable, as it
  will be used by kern_cap.c shortly.

Obtained from: TrustedBSD Project

23 years agoadd 2300/2312 references
Matt Jacob [Fri, 31 Aug 2001 21:43:35 +0000 (21:43 +0000)]
add 2300/2312 references

23 years agoCorrect the ID for the ALS0120 PnP Joystick. It is different from the
Murray Stokely [Fri, 31 Aug 2001 21:40:56 +0000 (21:40 +0000)]
Correct the ID for the ALS0120 PnP Joystick.  It is different from the
ALS0110.

PR: kern/22617
Submitted by: Mike Holling <myke@fks.bt>

23 years agonote 2300/2312 support
Matt Jacob [Fri, 31 Aug 2001 21:39:56 +0000 (21:39 +0000)]
note 2300/2312 support

23 years agoAdd 2 Gigabit Fibre Channel support (2300 && 2312 cards). This required
Matt Jacob [Fri, 31 Aug 2001 21:39:04 +0000 (21:39 +0000)]
Add 2 Gigabit Fibre Channel support (2300 && 2312 cards). This required
some reworking (and consequent cleanup) of the interrupt service code.

Also begin to start a cleanup of target mode support that will (eventually)
not require more inforamtion routed with the ATIO to come back with the
CTIO other than tag.

MFC after: 4 weeks

23 years agoAdd 2300/2312 (2Gbit) firmware.
Matt Jacob [Fri, 31 Aug 2001 21:25:15 +0000 (21:25 +0000)]
Add 2300/2312 (2Gbit) firmware.

23 years agoAdd OMRON ME5614ISA PnP modem.
Murray Stokely [Fri, 31 Aug 2001 20:37:02 +0000 (20:37 +0000)]
Add OMRON ME5614ISA PnP modem.

PR: kern/22801
Submitted by: Ryuzo Okada <R.Okada@mm.neweb.ne.jp>

23 years agoAdd originally missing __sinit() call.
Andrey A. Chernov [Fri, 31 Aug 2001 20:36:19 +0000 (20:36 +0000)]
Add originally missing __sinit() call.

23 years agoSimplify offset underflow checks even more
Andrey A. Chernov [Fri, 31 Aug 2001 20:17:32 +0000 (20:17 +0000)]
Simplify offset underflow checks even more

23 years agoAdd PCI device IDs for Kuotech dual port serial cards.
Murray Stokely [Fri, 31 Aug 2001 20:16:00 +0000 (20:16 +0000)]
Add PCI device IDs for Kuotech dual port serial cards.
Also give example of the flags needed to use these cards.

PR: kern/21242
Submitted by: Shigeki Moride <moride@portside.net>

23 years agoPreserve /etc/hosts.allow and /etc/dhclient.conf during upgrades.
Jordan K. Hubbard [Fri, 31 Aug 2001 20:10:01 +0000 (20:10 +0000)]
Preserve /etc/hosts.allow and /etc/dhclient.conf during upgrades.

Noted by: Tim Zingelman <zingelman@fnal.gov>

23 years agoDescribe that we disallow ungetc at offset 0 now.
Andrey A. Chernov [Fri, 31 Aug 2001 20:03:49 +0000 (20:03 +0000)]
Describe that we disallow ungetc at offset 0 now.

23 years agoWhoops, forgot a hunk on the previous patch. Fix RTSOL variable handling
Jordan K. Hubbard [Fri, 31 Aug 2001 20:03:05 +0000 (20:03 +0000)]
Whoops, forgot a hunk on the previous patch.  Fix RTSOL variable handling
AND DHCP handling.

23 years agoPR: 26187
Jordan K. Hubbard [Fri, 31 Aug 2001 19:56:59 +0000 (19:56 +0000)]
PR:             26187
Submitted by:   Glenn Trewitt <glenn@trewitt.org>

23 years agoDisallow ungetc at offset 0 (to prevent negative offset happens), so simplify
Andrey A. Chernov [Fri, 31 Aug 2001 19:50:25 +0000 (19:50 +0000)]
Disallow ungetc at offset 0 (to prevent negative offset happens), so simplify
checks in ftell.

23 years agoDrop buffer first, _then_ ask for real position
Andrey A. Chernov [Fri, 31 Aug 2001 18:54:44 +0000 (18:54 +0000)]
Drop buffer first, _then_ ask for real position

23 years agoThe same big piece of ftell code repeated in 3 places. Simplify things moving
Andrey A. Chernov [Fri, 31 Aug 2001 18:23:29 +0000 (18:23 +0000)]
The same big piece of ftell code repeated in 3 places. Simplify things moving
it into one subfunction instead.
Try to use real offset in strange cases.

23 years agoDon't activate placeholder resources; it can be very expensive in the
Mike Smith [Fri, 31 Aug 2001 18:08:50 +0000 (18:08 +0000)]
Don't activate placeholder resources; it can be very expensive in the
SYS_RES_MEMORY case, and it shouldn't be necessary.

23 years agoWhitespace-only commit that can be ignored by translators.
Bruce A. Mah [Fri, 31 Aug 2001 17:26:18 +0000 (17:26 +0000)]
Whitespace-only commit that can be ignored by translators.

The 1.2->1.4 deltas caused the indentation of this document to become
massively...well...confused.  Try to fix this.

23 years agodiskcheckd(8) is gone from the base system, so undo its release note.
Bruce A. Mah [Fri, 31 Aug 2001 16:47:57 +0000 (16:47 +0000)]
diskcheckd(8) is gone from the base system, so undo its release note.

23 years agoSECURITY: Drop `setgid kmem' bit as early as possible.
Ruslan Ermilov [Fri, 31 Aug 2001 16:26:37 +0000 (16:26 +0000)]
SECURITY: Drop `setgid kmem' bit as early as possible.

23 years agoSort predicates.
Ruslan Ermilov [Fri, 31 Aug 2001 15:48:00 +0000 (15:48 +0000)]
Sort predicates.

PR: docs/30237

23 years agoThe file_descriptor argument to -t isn't optional, so don't mark it up so.
Dima Dorfman [Fri, 31 Aug 2001 15:38:53 +0000 (15:38 +0000)]
The file_descriptor argument to -t isn't optional, so don't mark it up so.

23 years agoMake the 'echo' output for blanktime and scrnmap consistent with their
Dima Dorfman [Fri, 31 Aug 2001 15:29:24 +0000 (15:29 +0000)]
Make the 'echo' output for blanktime and scrnmap consistent with their
variable names.  There were minor differences in both cases, which were
needlessly confusing and inconsistent.

23 years agoIf file offset is smaller than internal buffer character left count, just drop
Andrey A. Chernov [Fri, 31 Aug 2001 14:11:14 +0000 (14:11 +0000)]
If file offset is smaller than internal buffer character left count, just drop
internal buffer and trust offset, not return error.

23 years agoAdd missing "opt_inet6.h" header.
Jonathan Lemon [Fri, 31 Aug 2001 13:49:03 +0000 (13:49 +0000)]
Add missing "opt_inet6.h" header.

23 years agoWhitespace change.
Jonathan Lemon [Fri, 31 Aug 2001 13:46:22 +0000 (13:46 +0000)]
Whitespace change.

23 years agoInitialize _offset to 0 in fopen(), it helps to optimize fseek/ftell
Andrey A. Chernov [Fri, 31 Aug 2001 13:14:49 +0000 (13:14 +0000)]
Initialize _offset to 0 in fopen(), it helps to optimize fseek/ftell

23 years agoDetect fp->_offset overflow on read
Andrey A. Chernov [Fri, 31 Aug 2001 12:55:22 +0000 (12:55 +0000)]
Detect fp->_offset overflow on read
Use errno to catch negative seek with -1 offset

23 years agomdoc(7) police: minor formatting tweaks.
Ruslan Ermilov [Fri, 31 Aug 2001 12:52:50 +0000 (12:52 +0000)]
mdoc(7) police: minor formatting tweaks.

23 years agoSynch with NetBSD and OpenBSD.
Ruslan Ermilov [Fri, 31 Aug 2001 12:31:09 +0000 (12:31 +0000)]
Synch with NetBSD and OpenBSD.

Allow non-superuser to open, listen to, and send safe commands on the
routing socket.  Superuser priviledge is required for all commands
but RTM_GET.

Lose `setuid root' bit of route(8).

Reviewed by: wollman, dd

23 years agoFinal way: Don't include /etc/defaults/make.conf at all. It wasn't
Alexander Langer [Fri, 31 Aug 2001 12:20:43 +0000 (12:20 +0000)]
Final way:  Don't include /etc/defaults/make.conf at all.  It wasn't
supposed to be edited by the user and didn't define important things,
thus we can just skip it (that's where it differs from the make.conf.local
change).

Submitted by: ru

23 years agoAdd myself.
Jose M. Alcaide [Fri, 31 Aug 2001 11:35:18 +0000 (11:35 +0000)]
Add myself.

23 years agoDon't .error, if /etc/defaults/make.conf exists. This breaks -CURRENT
Alexander Langer [Fri, 31 Aug 2001 11:18:24 +0000 (11:18 +0000)]
Don't .error, if /etc/defaults/make.conf exists.  This breaks -CURRENT
buildworlds on a -STABLE machine.

Reminded by: ru

23 years agoFixed style bugs in rev.1.4, including clobbering of the "Don't generate
Bruce Evans [Fri, 31 Aug 2001 11:15:49 +0000 (11:15 +0000)]
Fixed style bugs in rev.1.4, including clobbering of the "Don't generate
y.output" part of rev.1.11.

23 years agoDon't clobber the default for CFLAGS.
Bruce Evans [Fri, 31 Aug 2001 11:05:24 +0000 (11:05 +0000)]
Don't clobber the default for CFLAGS.

23 years agoDon't clobber the default for CFLAGS.
Bruce Evans [Fri, 31 Aug 2001 11:01:20 +0000 (11:01 +0000)]
Don't clobber the default for CFLAGS.

Reviewed by: dfr

23 years agoAdd manpage for inet_net_ntop(3) and inet_net_pton(3).
Ruslan Ermilov [Fri, 31 Aug 2001 10:54:44 +0000 (10:54 +0000)]
Add manpage for inet_net_ntop(3) and inet_net_pton(3).

Obtained from: NetBSD

23 years agoUse ``.Rv -std'' wherever possible.
Ruslan Ermilov [Fri, 31 Aug 2001 09:57:38 +0000 (09:57 +0000)]
Use ``.Rv -std'' wherever possible.

Submitted by: yar

23 years agoo Move definition of CAP_MAX_BUF_LEN to sys/capability.h
Robert Watson [Fri, 31 Aug 2001 07:07:28 +0000 (07:07 +0000)]
o Move definition of CAP_MAX_BUF_LEN to sys/capability.h

(I could have sworn I committed this before, but apparently I missed it
 during the merge, breaking world)

Submitted by: tmm
Obtained from: TrustedBSD Project
Pointed out by: Mike Barcroft <mike@FreeBSD.org>

23 years agoSimilar to changes on i386/alpha/etc pmap.c; converge on a similar
Peter Wemm [Fri, 31 Aug 2001 06:42:45 +0000 (06:42 +0000)]
Similar to changes on i386/alpha/etc pmap.c; converge on a similar
look/feel on pmap_new_proc() with some cosmetic style changes.

23 years agoConverge with i386/alpha/etc pmap.c for pmap_new_proc/pmap_dispose_proc().
Peter Wemm [Fri, 31 Aug 2001 06:30:27 +0000 (06:30 +0000)]
Converge with i386/alpha/etc pmap.c for pmap_new_proc/pmap_dispose_proc().

23 years agoSame as i386/i386/pmap.c: clean up some style. This is irrelevant since
Peter Wemm [Fri, 31 Aug 2001 06:25:28 +0000 (06:25 +0000)]
Same as i386/i386/pmap.c: clean up some style.  This is irrelevant since
it is inside #if 0'ed code, but it would be a shame if this stuff got
cut/pasted elsewhere.

23 years agoSame treatment as i386/isa/pmap.c - clean up some style to sync towards
Peter Wemm [Fri, 31 Aug 2001 06:19:08 +0000 (06:19 +0000)]
Same treatment as i386/isa/pmap.c - clean up some style to sync towards
KSE diff.

23 years agoCall OS-independent resume routine to execute _WAK .. etc.
Takanori Watanabe [Fri, 31 Aug 2001 05:36:48 +0000 (05:36 +0000)]
Call OS-independent resume routine to execute _WAK .. etc.
This should also recover GPE bit,comment says, though not implemented yet.

23 years agoRevert previous delta; <arpa/inet.h> isn't quite ready to stop including
Mike Barcroft [Fri, 31 Aug 2001 03:29:48 +0000 (03:29 +0000)]
Revert previous delta; <arpa/inet.h> isn't quite ready to stop including
<sys/types.h>.

23 years agoAttempt to make key behavior more clear.
Eric Melville [Fri, 31 Aug 2001 03:29:25 +0000 (03:29 +0000)]
Attempt to make key behavior more clear.

23 years agoo Deprecate byteorder(3) prototypes from <sys/types.h>, these are
Mike Barcroft [Fri, 31 Aug 2001 03:12:01 +0000 (03:12 +0000)]
o Deprecate byteorder(3) prototypes from <sys/types.h>, these are
  now prototyped indirectly in <arpa/inet.h>.
o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these
  are now typedef'd in <arpa/inet.h>.

Discussed with: bde
PR: 29946

23 years agoDo a style cleanup pass for the pmap_{new,dispose,etc}_proc() functions
Peter Wemm [Fri, 31 Aug 2001 02:28:01 +0000 (02:28 +0000)]
Do a style cleanup pass for the pmap_{new,dispose,etc}_proc() functions
to get them closer to the KSE tree.  I will do the other $machine/pmap.c
files shortly.

23 years agoRemove already commented out entry for pci/fxp.c
Jonathan Lemon [Fri, 31 Aug 2001 02:22:48 +0000 (02:22 +0000)]
Remove already commented out entry for pci/fxp.c

23 years agoThe fxp driver has lived in dev/fxp for some time, remove old files.
Jonathan Lemon [Fri, 31 Aug 2001 02:21:03 +0000 (02:21 +0000)]
The fxp driver has lived in dev/fxp for some time, remove old files.

23 years agoPrototypes for cap_equal_np() and cap_subset_np().
Robert Watson [Fri, 31 Aug 2001 02:17:43 +0000 (02:17 +0000)]
Prototypes for cap_equal_np() and cap_subset_np().

Submitted by: tmm
Obtained from: TrustedBSD Project

23 years agoNote that ASU is now deprecated.
Robert Watson [Fri, 31 Aug 2001 02:15:13 +0000 (02:15 +0000)]
Note that ASU is now deprecated.

Submitted by: tmm
Obtained from: TrustedBSD Project

23 years agoRevert previous "fix"; bus mice still have to be manually probed even in
Mike Smith [Fri, 31 Aug 2001 02:14:34 +0000 (02:14 +0000)]
Revert previous "fix"; bus mice still have to be manually probed even in
the presence of PnP data.

Submitted by: yokota

23 years agoo Use .Fx to refer to FreeBSD
Robert Watson [Fri, 31 Aug 2001 02:12:54 +0000 (02:12 +0000)]
o Use .Fx to refer to FreeBSD

Submitted by: tmm
Obtained from: TrustedBSD Project

23 years agoo Remove definition of CAP_MAX_BUF_LEN since it is defined in
Robert Watson [Fri, 31 Aug 2001 02:11:59 +0000 (02:11 +0000)]
o Remove definition of CAP_MAX_BUF_LEN since it is defined in
  sys/capability.h now.

Submitted by: tmm
Obtained from: TrustedBSD Project

23 years agoTidy up cpu_fork() a little. This is mainly for changes I've been
Peter Wemm [Fri, 31 Aug 2001 02:11:24 +0000 (02:11 +0000)]
Tidy up cpu_fork() a little.  This is mainly for changes I've been
working on in the KSE area.

23 years ago Introduce implementations of POSIX.1e non-portable form capability
Robert Watson [Fri, 31 Aug 2001 02:07:48 +0000 (02:07 +0000)]
 Introduce implementations of POSIX.1e non-portable form capability
  support functions:
     cap_subset_np()    - Is cap1 a subset of cap2
     cap_equal_np()     - Is cap1 equal to cap2

o Introduce implementations of POSIX.1e capability support functions:
     cap_copy_ext()     - Externalize capability
     cap_copy_int()     - Internalize capability
     cap_size()         - Determine size required for cap_copy_ext()

Submitted by: tmm
Obtained from: TrustedBSD Project

23 years agoProperly move cursor when home and end keys are used.
Eric Melville [Fri, 31 Aug 2001 01:56:06 +0000 (01:56 +0000)]
Properly move cursor when home and end keys are used.

23 years agoCleanup
Matthew Dillon [Fri, 31 Aug 2001 01:26:30 +0000 (01:26 +0000)]
Cleanup

23 years agoGet rid of most of the GIANT_XXX assertion defines. Nobody is going to use
Matthew Dillon [Fri, 31 Aug 2001 00:51:35 +0000 (00:51 +0000)]
Get rid of most of the GIANT_XXX assertion defines.  Nobody is going to use
them, including me.

23 years agoGiant pushdown syscalls in kern/uipc_syscalls.c. Affected calls:
Matthew Dillon [Fri, 31 Aug 2001 00:37:34 +0000 (00:37 +0000)]
Giant pushdown syscalls in kern/uipc_syscalls.c.  Affected calls:

recvmsg(), sendmsg(), recvfrom(), accept(), getpeername(), getsockname(),
socket(), connect(), accept(), send(), recv(), bind(), setsockopt(), listen(),
sendto(), shutdown(), socketpair(), sendfile()

23 years agoAdd a UGAR() macro to simplify the diff's for the Giant pushdown.
John Baldwin [Fri, 31 Aug 2001 00:36:29 +0000 (00:36 +0000)]
Add a UGAR() macro to simplify the diff's for the Giant pushdown.

23 years agoMake my Grandfather famous by showing the world my middle name,
Adrian Chadd [Fri, 31 Aug 2001 00:25:16 +0000 (00:25 +0000)]
Make my Grandfather famous by showing the world my middle name,
as seems to be the trend.

(Thanks Josef. :-)

23 years agoGiant Pushdown: sysv shm, sem, and msg calls.
Matthew Dillon [Fri, 31 Aug 2001 00:02:18 +0000 (00:02 +0000)]
Giant Pushdown:  sysv shm, sem, and msg calls.

23 years agoAdd names for the TI PCI-1210, TI PCI-4410 and TI PCI-4450 parts. I had
Warner Losh [Thu, 30 Aug 2001 22:48:47 +0000 (22:48 +0000)]
Add names for the TI PCI-1210, TI PCI-4410 and TI PCI-4450 parts.  I had
this for a while, and don't know how it didn't make it into the tree.

23 years agoMove /etc/defaults/make.conf to /usr/share/examples/etc/make.conf as
Alexander Langer [Thu, 30 Aug 2001 22:44:51 +0000 (22:44 +0000)]
Move /etc/defaults/make.conf to /usr/share/examples/etc/make.conf as
discussed on the arch@ mailinglist (after repo-copy).

sys.mk will .error if it finds /etc/defaults/make.conf but include
it anyways (this is the same behaviour as with the make.conf.local
removal).

/usr/share/examples/etc/make.conf has BDEFLAGS commented out now,
since it's only an example file.

Adjust all textes that talk about make.conf or defaults/make.conf to
match the new situation.

23 years agoAdd safety belts. A control endpoint doesn't have an endpoint descriptor.
Nick Hibma [Thu, 30 Aug 2001 21:45:28 +0000 (21:45 +0000)]
Add safety belts. A control endpoint doesn't have an endpoint descriptor.

23 years agoAdd Xref to make.conf(5).
Alexander Langer [Thu, 30 Aug 2001 21:44:46 +0000 (21:44 +0000)]
Add Xref to make.conf(5).

23 years agoNuke all ports related options. This file has to be re-edited once
Alexander Langer [Thu, 30 Aug 2001 21:40:55 +0000 (21:40 +0000)]
Nuke all ports related options.  This file has to be re-edited once
the ports-team has decided about the ports.conf issue.

23 years agoadd a missing -o.
Luigi Rizzo [Thu, 30 Aug 2001 21:39:14 +0000 (21:39 +0000)]
add a missing -o.
There might be some other bug related to OBJDIR handling, once
fixed these changes can be MFC immediately.

23 years agoNote the new cards supported by the asr and aac drivers.
Scott Long [Thu, 30 Aug 2001 21:37:09 +0000 (21:37 +0000)]
Note the new cards supported by the asr and aac drivers.

MFC after: 1 day

23 years agoCorrected a typo.
Valentino Vaschetto [Thu, 30 Aug 2001 21:12:35 +0000 (21:12 +0000)]
Corrected a typo.

Submitted by: Seth Kingsley <seth.kingsley@windriver.com>
Approved by: murray

23 years agoNew release note: SA-01:58.
Bruce A. Mah [Thu, 30 Aug 2001 21:06:43 +0000 (21:06 +0000)]
New release note:  SA-01:58.

23 years agoAdd some missing words, markup tweaks.
Bruce A. Mah [Thu, 30 Aug 2001 20:56:42 +0000 (20:56 +0000)]
Add some missing words, markup tweaks.

Commit from: SIGCOMM 2001

23 years agoTake CAM_REQUEUE_REQ out of the class of things we were trying to honor
Matt Jacob [Thu, 30 Aug 2001 20:54:00 +0000 (20:54 +0000)]
Take CAM_REQUEUE_REQ out of the class of things we were trying to honor
retry count on.

MFC after: 4 weeks

23 years agoTry to discard some ungetc data in saved internal buffer checks too,
Andrey A. Chernov [Thu, 30 Aug 2001 20:49:47 +0000 (20:49 +0000)]
Try to discard some ungetc data in saved internal buffer checks too,
if offset tends to be negative.

23 years agogoto dumb; if can't obtain curoff for whence != SEEK_CUR cases, as supposed
Andrey A. Chernov [Thu, 30 Aug 2001 20:19:45 +0000 (20:19 +0000)]
goto dumb; if can't obtain curoff for whence != SEEK_CUR cases, as supposed

23 years agoAdd more EOVERFLOW checks.
Andrey A. Chernov [Thu, 30 Aug 2001 19:54:04 +0000 (19:54 +0000)]
Add more EOVERFLOW checks.

When file offset tends to be negative due to internal and ungetc buffers
additions counted, try to discard some ungetc data first, then return EBADF.
Later one can happens if lseek(fileno(fd),...) called f.e. POSIX says that
ungetc beyond beginning of the file results are undefined, so we can just
discard some of ungetc data in that case.

Don't rely on gcc cast when checking for overflow, use OFF_MAX.

Cosmetique.

23 years agoFix kernel crash when VLANs are combined with ng_ether(4), by attaching
Archie Cobbs [Thu, 30 Aug 2001 19:09:10 +0000 (19:09 +0000)]
Fix kernel crash when VLANs are combined with ng_ether(4), by attaching
interfaces of type IFT_L2VLAN as well as IFT_ETHER during module load.

Submitted by: yar

23 years agoRemove the MPSAFE keyword from the parser for syscalls.master.
Matthew Dillon [Thu, 30 Aug 2001 18:50:57 +0000 (18:50 +0000)]
Remove the MPSAFE keyword from the parser for syscalls.master.
Instead introduce the [M] prefix to existing keywords.  e.g.
MSTD is the MP SAFE version of STD.  This is prepatory for a
massive Giant lock pushdown.  The old MPSAFE keyword made
syscalls.master too messy.

Begin comments MP-Safe procedures with the comment:
/*
 * MPSAFE
 */
This comments means that the procedure may be called without
Giant held (The procedure itself may still need to obtain
Giant temporarily to do its thing).

sv_prepsyscall() is now MP SAFE and assumed to be MP SAFE
sv_transtrap() is now MP SAFE and assumed to be MP SAFE

ktrsyscall() and ktrsysret() are now MP SAFE (Giant Pushdown)
trapsignal() is now MP SAFE (Giant Pushdown)

Places which used to do the if (mtx_owned(&Giant)) mtx_unlock(&Giant)
test in syscall[2]() in */*/trap.c now do not.  Instead they
explicitly unlock Giant if they previously obtained it, and then
assert that it is no longer held to catch broken system calls.

Rebuild syscall tables.

23 years agoAxe all the plists and supporting scripts to manage them and use them to
John Baldwin [Thu, 30 Aug 2001 18:11:42 +0000 (18:11 +0000)]
Axe all the plists and supporting scripts to manage them and use them to
roll dists.

23 years agoOverhaul this script a bit:
John Baldwin [Thu, 30 Aug 2001 18:10:26 +0000 (18:10 +0000)]
Overhaul this script a bit:
- build_x.sh now does all the steps to build an X dist rather than being
  a child script of package_x_dists.sh
- Update the usage information to list the ports you need to install
  before running this script as well as needing to set CVSROOT.
- Make sure CVSROOT is set.  If not, exit with an error.
- We now take two parameters: a work directory and an output directory.
  The work directory is used as scratch space.  All of the bindist will
  end up in the output directory.
- Only apply XF86.patch to the checked out XFree86 port if it exists.
- Use XFree86's build-bindist tool to package up the dists using their
  distfiles rather than using our own packing lists that have to be
  manually updated each time the port changes.

Example usage:
env CVSROOT=/home/ncvs ./build_x.sh /usr/xtmp /usr/x11dists

23 years agoThe current XFree86 port needs some help in the BUILD_XDIST case. Commit
John Baldwin [Thu, 30 Aug 2001 17:53:00 +0000 (17:53 +0000)]
The current XFree86 port needs some help in the BUILD_XDIST case.  Commit
this patch here until I can get the port fixed.

23 years agoRevert the previous delta and apply a better fix which corrects
Mike Barcroft [Thu, 30 Aug 2001 17:13:15 +0000 (17:13 +0000)]
Revert the previous delta and apply a better fix which corrects
a check on the final snprintf and reduces duplicated code.

Submitted by: brian

23 years agoRemove old acpica module
Mike Smith [Thu, 30 Aug 2001 17:11:11 +0000 (17:11 +0000)]
Remove old acpica module

23 years agoACPI no longer has an ISA attachment.
Mike Smith [Thu, 30 Aug 2001 17:00:33 +0000 (17:00 +0000)]
ACPI no longer has an ISA attachment.

23 years agoClear SA_FLAG_ERR_PENDING for MTREW, MTERASE and MTRETENS ioctl cases.
Matt Jacob [Thu, 30 Aug 2001 16:25:24 +0000 (16:25 +0000)]
Clear SA_FLAG_ERR_PENDING for MTREW, MTERASE and MTRETENS ioctl cases.
Clear residual counts after a successful samount (the user doesn't
care that we got an N-kbyte residual on our test read).

Change a lot of error handling code.

1. If we end up in saerror, check more carefully about the kind of
error. If it is a CAM_SCSI_STATUS_ERROR and it is a read/write
command, we'll be handling this in saerror.  If it isn't a read/write
command, check to see whether this is just an EOM/EOP check condition-
if it is, just set residual and return normally. A residual and
then a NO SENSE check condiftion with the ASC of 0 and ASCQ of
between 1 and 4 are normal 'signifying' events, not errors per se,
and we shouldn't give the command to cam_periph_error to do something
relatively unpredictable with.

2. If we get a Bus Reset, had a BDR sent, or get the cam status of
CAM_REQUEUE_REQ, check the retry count on the command. The default
error handler, cam_periph_error, doesn't honor retry count in these
cases. This may change in the future, but for now, make sure we
set EIO and return without calling cam_periph_error if the retry
count for the command with an error is zero.

3. Clean up the pending error case goop and handle cases more
sensibly.

The rules are:

 If command was a Write:

  If we got a SSD_KEY_VOLUME_OVERFLOW, the resid is
  propagated and we set ENOSPC as the error.

  Else if we got an EOM condition- just mark EOM pending.

And set a residual of zero. For the longest time I was just
        propagating residual from the sense data- but my tape
        comparison tests were always failing because all drives I
        tested with actually *do* write the data anyway- the EOM
        (early warning) condition occurred *prior* to all of the
        data going out to media- that is, it was still buffered by
        the drive. This case is described in SCSI-2, 10.2.14,
        paragraph #d for the meaning of 'information field'. A
        better fix for this would be to issue a WFM command of zero
        to cause the drive to flush any buffered data, but this
        would require a fairly extensive rewrite.

 Else if the command was a READ:

  If we got a SSD_KEY_BLANK_CHECK-
If we have a One Filemark EOT model- mark EOM as pending,
otherwise set EIO as the erorr.
  Else if we found a Filemark-
If we're in Fixed Block mode- mark EOF pending.

 If we had an ILI (Incorrect Length Indicator)-
  If the residual is less than zero, whine about tape record
  being too big for user's buffer, otherwise if we were in
  Fixed Block mode, mark EIO as pending.

All 'pending' conditions mean that the command in question completes
without error indication. It had succeeded, but a signifying event
occurred during its execution which will apply to the *next* command
that would be exexcuted. Except for the one EOM case above, we always
propagate residual.

Now, way back in sastart- if we notice any of the PENDING bits set,
we don't run the command we've just pulled off the wait queue. Instead,
we then figure out it's disposition based upon a previous command's
association with a signifying event.

 If SA_FLAG_EOM_PENDING is set, we don't set an error. We just complete
 the command with residual set to the request count (not data moved,
 but no error). We continue on.

 If SA_FLAG_EOF_PENDING- if we have this, it's only because we're in
 Fixed Block mode- in which case we traverse all waiting buffers (which
 we can get in fixed block mode because physio has split things up) and
 mark them all as no error, but no data moved and complete them.

 If SA_FLAG_EIO_PENDING, just mark the buffer with an EIO error
 and complete it.

Then we clear all of the pending state bits- we're done.

MFC after: 4 weeks

23 years agoRecognise VIA Apollo KT133A bridge.
Doug Rabson [Thu, 30 Aug 2001 14:17:48 +0000 (14:17 +0000)]
Recognise VIA Apollo KT133A bridge.

PR: 30061
Submitted by: John Merryweather Cooper <jmcoopr@webmail.bmi.net>
MFC after: 1 week

23 years agoRestore the `-perm +mode' feature.
Ruslan Ermilov [Thu, 30 Aug 2001 13:17:58 +0000 (13:17 +0000)]
Restore the `-perm +mode' feature.

Broken in the "close a PR" race, in revision 1.30.
Note that the patch in the PR did not have this bug!

23 years agoMake my Dad famous by showing the world my middle name, as seems
Josef Karthauser [Thu, 30 Aug 2001 13:17:26 +0000 (13:17 +0000)]
Make my Dad famous by showing the world my middle name, as seems
to be the trend.