Warner Losh [Tue, 12 Feb 2002 05:32:58 +0000 (05:32 +0000)]
Two fixes from Jonathan Hanna:
1) We shouldn't continue when we get a RX complete because we ack it
and the TX complete.
2) Fix a couple of spl leaks
(why splbio is needed in ISR, I cannot understand).
Luigi Rizzo [Mon, 11 Feb 2002 23:56:18 +0000 (23:56 +0000)]
MFS: synchronize the code with the version in -stable, specifically:
+ SYSCTL_ULONG -> SYSCTL_UINT
+ some procedure renaming and variable rearrangement
+ fix the 'interface going deaf' problem same as in -stable.
Ruslan Ermilov [Mon, 11 Feb 2002 16:47:05 +0000 (16:47 +0000)]
Fixed -DMAKE_KERBEROS5 world breakage in kerberos5/lib/libroken
(make-roken is a build tool). This bug was hiding itself after
a just fixed bug in cross-linker (binutuils/ld/Makefile,v 1.20).
The bug was fatal for cross builds; for example, an alpha binary
(make-roken) was attempted to be run on i386.
Added make-roken to the list of build-tools in libasn1. It only
worked because another build tool needs make-roken implicitly:
Yaroslav Tykhiy [Mon, 11 Feb 2002 15:26:20 +0000 (15:26 +0000)]
Found a single point where rmuser(8) wasn't robust to strange
characters in a username: where it was inserted into a regexp.
Fix it by escaping metacharacters in the name with \Q-\E.
Josef Karthauser [Mon, 11 Feb 2002 02:57:50 +0000 (02:57 +0000)]
Merge from NetBSD: revs 1.12 and 1.21 - 1.23
Original NetBSD log messages are:
----------------------------
revision 1.23
date: 2001/12/12 15:48:18; author: augustss; lines: +132 -114
Add a scanner quirk for keeping the pipes open between device opening.
Idea from Enami.
----------------------------
revision 1.22
date: 2001/12/03 01:47:13; author: augustss; lines: +8 -16
Handle vendor/product lookup with a common routine.
----------------------------
revision 1.21
date: 2001/12/01 09:42:39; author: enami; lines: +4 -4
Shorten wmesg so that they can be distinguished in ps/top output.
----------------------------
revision 1.12
date: 2001/01/23 14:04:14; author: augustss; lines: +7 -1
Make sure driver attach/detach events are generated in a
consistent manner.
----------------------------
Daniel Baker [Mon, 11 Feb 2002 02:34:25 +0000 (02:34 +0000)]
Comment in the man page and warning in stlload (when stlload fails) to make
it clear that the recent PCI cards do not require firmware to be loaded,
unlike the completely different ISA cards that are branded with the same name.
Bruce Evans [Mon, 11 Feb 2002 02:13:18 +0000 (02:13 +0000)]
Move the declaration of panic() from sys/param.h back to sys/systm.h.
Almost all .c files have to include <sys/systm.h> for more than its
declaration of panic(), so little is gained from declaring panic() in
a wrong place. This probably depends on missing garbage collection
of the includes of <sys/systm.h> that were added to get snprintf()
declared for old versions of the ktr macros.
Ian Dowse [Mon, 11 Feb 2002 00:50:50 +0000 (00:50 +0000)]
Make dump's behaviour more sensible when the output file is a fifo.
Normally trewind() performs a close-open-close cycle to rewind the
tape when closing the device, but this is not ideal for fifos. We
now skip the final open-close if the output descriptor is a fifo.
Robert Watson [Sun, 10 Feb 2002 21:46:16 +0000 (21:46 +0000)]
Add a comment indicating that the locking protocol should be updated
to be 'L L L' for vop_getattr(). Don't update it yet, because there
are still many offenders.
Robert Watson [Sun, 10 Feb 2002 21:29:02 +0000 (21:29 +0000)]
Add a comment indicating that the vnode locking in this section of the
kernel linker code may be wrong: it fails to hold a lock across the
call to VOP_GETATTR(), and vn_rdwr() with IO_NODELOCKED.
Robert Watson [Sun, 10 Feb 2002 20:45:43 +0000 (20:45 +0000)]
Make sure to grab vnode lock on a vnode before calling VOP_GETATTR()
to perform an ownership test in revoke(). This is also required for
MAC hooks so that the vnode lock is held during a call to the MAC
framework. Release the lock before calling VOP_REVOKE().
Mark Murray [Sun, 10 Feb 2002 19:48:19 +0000 (19:48 +0000)]
Nice set of fixes to use SCRIPT instead of PROG, thus fixing up
a lot of nasty STRIP= problems. This has the added side effect
if neatening up some leaf makefiles very nicely.
Wilko Bulte [Sun, 10 Feb 2002 13:21:18 +0000 (13:21 +0000)]
Add some system code names. Explicitely list a few unsupported hardware
types that gave rise to emailed questions. Add quick note on Miata CPU
upgradeability.
KATO Takenori [Sun, 10 Feb 2002 11:23:14 +0000 (11:23 +0000)]
Cosmetic changes:
- Collected i486 identification codes in one place like
586 and 686.
- Merged two cases (0x470 and 0x490) for `Enhanced Am486DX4
Write-Back.'
- Replaced `unknown' into `Unknown'.
Robert Watson [Sun, 10 Feb 2002 06:13:14 +0000 (06:13 +0000)]
Teach getextattr to query the EA size and allocate appropriate sized
buffers before reading the memory. Arguably, the failure modes here
are poor, but we can now read >2k EAs. Also, update the copyrights
and licenses while I'm here.
Robert Watson [Sun, 10 Feb 2002 04:43:22 +0000 (04:43 +0000)]
Part I: Update extended attribute API and ABI:
o Modify the system call syntax for extattr_{get,set}_{fd,file}() so
as not to use the scatter gather API (which appeared not to be used
by any consumers, and be less portable), rather, accepts 'data'
and 'nbytes' in the style of other simple read/write interfaces.
This changes the API and ABI.
o Modify system call semantics so that extattr_get_{fd,file}() return
a size_t. When performing a read, the number of bytes read will
be returned, unless the data pointer is NULL, in which case the
number of bytes of data are returned. This changes the API only.
o Modify the VOP_GETEXTATTR() vnode operation to accept a *size_t
argument so as to return the size, if desirable. If set to NULL,
the size will not be returned.
o Update various filesystems (pseodofs, ufs) to DTRT.
These changes should make extended attributes more useful and more
portable. More commits to rebuild the system call files, as well
as update userland utilities to follow.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
Mark Peek [Sun, 10 Feb 2002 04:40:26 +0000 (04:40 +0000)]
- Add support for autodetection of *.euc?? and *.EUC locales.
- ja_JP.eucJP, ja_JP.EUC
- ko_KR.eucKR, ko_KR.EUC
- zn_CN.eucCN, zn_CN.EUC
- Add support for zh_TW.Big5
- Add ja_JP.Shift_JIS alias for ja_JP.SJIS
Warner Losh [Sun, 10 Feb 2002 03:34:44 +0000 (03:34 +0000)]
o Use bus_generic_setup_intr instead of bus_setup_intr.
o Call bus_generic_setup_intr and check its return value. Don't setup
func until we successfully get the interrupt from our parent.
o Add comments about some maybe questionable stuff so I can check later
to make sure that it really is that way.
Warner Losh [Sun, 10 Feb 2002 03:28:37 +0000 (03:28 +0000)]
o Use INTR_TYPE_AV (the highest possible) rather than INTR_TYPE_BIO
o Don't allow INTR_TYPE_FAST. Since we are sharing the interrupt between
CSC and the functions, they can't be FAST because fast interrupts can't
be shared.
o Add the same workaround for resume that we have in OLDCARD.
o Also, return the error from bus_generic_resume rather than ignoring it.
Robert Watson [Sun, 10 Feb 2002 01:34:04 +0000 (01:34 +0000)]
o No longer mount /proc by default on newly installed systems. Almost
all facilities that previously relied on /proc have been rewritten
to use ptrace(). procfs has presented a substantial security
hazard for years, with several user->root compromises in the last
few years. Procfs will continue to be available but will require
administrator intervention to use.
John Baldwin [Sat, 9 Feb 2002 21:16:54 +0000 (21:16 +0000)]
Fix MAKEDEV for RocketPort (rp(4)) cuaR* and ttyR* to work with the
updated driver. The newer driver in current outputs a version string
that contains a space, so we need to eat two words in between RocketPortX
and the number of ports on the board.
Daniel Eischen [Sat, 9 Feb 2002 19:58:41 +0000 (19:58 +0000)]
This has been sitting in my local tree long enough. Remove the use
of an alternate signal stack for handling signals. Let the kernel
send signals on the stack of the current thread and teach the threads
signal handler how to deliver signals to the current thread if it
needs to. Also, always store a threads context as a jmp_buf. Eventually
this will change to be a ucontext_t or mcontext_t.
Other small nits. Use struct pthread * instead of pthread_t in internal
library routines. The threads code wants struct pthread *, and pthread_t
doesn't necessarily have to be the same.
Daniel Eischen [Sat, 9 Feb 2002 19:48:55 +0000 (19:48 +0000)]
Silence a warning by initializing the return value. This wasn't
set in the case of a short write, and I think returning 0 for this
is what was intended.