Orion Hodson [Wed, 21 Mar 2001 14:10:51 +0000 (14:10 +0000)]
Change type of channel speed variable from "int" to "u_int32_t" to
avoid overflow when scaling playback rate. Fixes 44.1k playback from
being 48k (I am deaf to this difference...).
Orion Hodson [Wed, 21 Mar 2001 12:51:37 +0000 (12:51 +0000)]
Change ordering of SPDIF register pokes. SPDIF enable needs to be the
last poke in sequence. Enabling SPDIF was coercing output rate to
48K, not good for 44.1K tracks.
Kirk McKusick [Wed, 21 Mar 2001 09:48:03 +0000 (09:48 +0000)]
Additions to run checks on live filesystems. This change will not
affect current systems until fsck is modified to use these new
facilities. To try out this change, set the fsck passno to zero
in /etc/fstab to cause the filesystem to be mounted without running
fsck, then run `fsck_ffs -p -B <filesystem>' after the system has
been brought up multiuser to run a background cleanup on <filesystem>.
Note that the <filesystem> in question must have soft updates enabled.
Paul Saab [Wed, 21 Mar 2001 08:49:02 +0000 (08:49 +0000)]
Add libssl and libcrypto compat4x libraries since the major number
changed. These were taken from the 4.2-RELEASE dist on ftp.freebsd.org.
This will be MFC'd shortly as it is required in RELENG_4 to maintain
compatability with binaries linked against these libraries.
Paul Richards [Wed, 21 Mar 2001 08:19:31 +0000 (08:19 +0000)]
Only flush rules that have a rule number above that set by a new
sysctl, net.inet.ip.fw.permanent_rules.
This allows you to install rules that are persistent across flushes,
which is very useful if you want a default set of rules that
maintains your access to remote machines while you're reconfiguring
the other rules.
Kirk McKusick [Wed, 21 Mar 2001 04:05:20 +0000 (04:05 +0000)]
Clear the fs_clean flag only when the FS_UNCLEAN flag is not set
(as is done in unmount).
Remove a snapshot inode from the superblock list when its last
name goes away rather than when its last reference goes away.
That way it will be properly reclaimed by fsck after a crash
rather than reenabled when the filesystem is mounted.
Matt Jacob [Wed, 21 Mar 2001 00:49:37 +0000 (00:49 +0000)]
For parallel SCSI, let us now do status with the final CTIO. For the 1080,
I was hanging after sending a xfer CTIO and a status CTIO for a non-discon
INQUIRY- the xfer CTIO was returned as completed OK, but the status CTIO
was dropped on the floor. All the fields looked good. I don't know why
it got dropped. But allowing status to go back with data xfer seemed to
work. I also noticed that with a non-disconnecting command that the
firmware handle in the ATIO is zero- this leads me to believe that the
f/w really can only handle one CTIO at a time in the discon case, and
it had no idea what to do with the second (status) CTIO.
Matt Jacob [Wed, 21 Mar 2001 00:46:44 +0000 (00:46 +0000)]
Check CT2_SENDSTATUS/CT_SENDSTATUS against cto->ct_flags, not
CAM_SEND_STATUS. Set a timeout of 2 seconds per CTIO. Make sure
that the 'real' tag value is being checked against- not the
one that also carries the firmware handle.
Bruce A. Mah [Tue, 20 Mar 2001 23:41:44 +0000 (23:41 +0000)]
New release notes: fxp(4) needs "device miibus", pkg_create(1)
dependency order (submitted by sobomax), "lprm -" works for remote
printers, mergemaster(8) updates, ftpd(8) updates.
Also make sure ESS Maestro-3/Allegro is mentioned in appropriate
hardware lists (submitted by scottl).
Ian Dowse [Tue, 20 Mar 2001 18:10:19 +0000 (18:10 +0000)]
Place the call to pccard_insert_beep() in the inserted() timeout
routine instead of pccard_event(). This avoids spurious extra calls
to pccard_insert_beep() at insert or remove time which could occur
due to noise on the card-present lines.
Clean up some code in pccard_beep.c; we were depending on the order
of evaluation of function arguments, which is undefined in C. Also,
use `0' rather than `NULL' for integer values.
Ruslan Ermilov [Tue, 20 Mar 2001 18:06:09 +0000 (18:06 +0000)]
If the MANSECT variable is specified, it will override the default
manual section. If, for example, MANSECT is set to 8, the default
MAN1=${PROG}.1 feature of bsd.prog.mk becomes MAN8=${PROG}.8.
Useful for games, libexec, sbin and usr.sbin subtrees.
Ian Dowse [Tue, 20 Mar 2001 17:22:48 +0000 (17:22 +0000)]
Reboot(8) normally waits 5 seconds after sending SIGTERMs to all
processes and then sends SIGKILLs. If a lot of processes are swapped
out, this delay may not be long enough, so processes such as an X
server may be killed before they have had time to clean up properly.
Make this delay more dynamic by waiting up to 60 seconds for swap
page-in activity to end. While I'm here, ANSIfy and remove a
`register' specifier.
Alfred Perlstein [Tue, 20 Mar 2001 10:27:03 +0000 (10:27 +0000)]
Unbreak LINT.
because rpcb_clnt.h is generated during buildworld and only installed into
/usr/include/rpc (and not present in src/include/rpc) we can fix it
by simply not including it when _KERNEL is defined.
this isn't the most elegant, way and might deserve some revisiting later.
Bruce A. Mah [Tue, 20 Mar 2001 06:08:45 +0000 (06:08 +0000)]
New release notes: Kerberos compatability with OpenSSH, dump(8)
and nodump flag, ISC DHCP client update to 2.0pl5, split(1) support
for large files, units(1) update, netstat(1) per-address packet
counting, manpage updates.
Fix up notes on Adaptec SCSI RAID and DPT SmartRAID V/VI SCSI RAID
controllers (reviewed by scottl).
Justin T. Gibbs [Tue, 20 Mar 2001 04:37:19 +0000 (04:37 +0000)]
This is an MFC candidate.
In our idle loop, use an or instruction to set PRELOADEN rather
than rewriting the contents of DMAPARAMS to DFCNTRL. The later
may re-enable the DMA engine if the idle loop is called to complete
the preload of at least one segment when a target disconnects on
an S/G segment boundary but before we have completed fetching the
next segment. This correts a hang, usually in message out phase,
when this situation occurs. This bug has been here for a long
time, so the situation is rare, but not impossible to reproduce.
It only affected Ultra2/U160 controllers.
Correct a few comments.
Extra Sanity. Make sure that SCSIEN is also turned off, along with
HDMAEN, at the end of the data phase.
Peter Wemm [Tue, 20 Mar 2001 02:10:18 +0000 (02:10 +0000)]
Use the same API as the example code.
Allow the initial hash value to be passed in, as the examples do.
Incrementally hash in the dvp->v_id (using the official api) rather than
add it. This seems to help power-of-two predictable filename trees
where the filenames repeat on a power-of-two cycle and the directory trees
have power-of-two components in it. The simple add then mask was causing
things like 12000+ entry collision chains while most other entries have
between 0 and 3 entries each. This way seems to improve things.
Brian Feldman [Tue, 20 Mar 2001 02:06:40 +0000 (02:06 +0000)]
Make password attacks based on traffic analysis harder by requiring that
"non-echoed" characters are still echoed back in a null packet, as well
as pad passwords sent to not give hints to the length otherwise.
Alfred Perlstein [Tue, 20 Mar 2001 01:36:41 +0000 (01:36 +0000)]
Included in the updated version of tirpc's sm_inter.x Sun added the
SM_NOTIFY procedure.
Remove our hand-coded one as it was causing world breakage for
worlds compiled with NOSHARED=yes because the static linker is a
bit less forgiving (or not as broken as) our dynamic linker.
Axe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
very specific scenarios, and now that we have had net.inet.tcp.blackhole for
quite some time there is really no reason to use it any more.
Axe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
very specific scenarios, and now that we have had net.inet.tcp.blackhole for
quite some time there is really no reason to use it any more.
Axe TCP_RESTRICT_RST. It was never a particularly good idea except for a few
very specific scenarios, and now that we have had net.inet.tcp.blackhole for
quite some time there is really no reason to use it any more.
Roger Hardiman [Mon, 19 Mar 2001 19:47:54 +0000 (19:47 +0000)]
Allow LQR periods of 1 second and FSM retry periods of 1 second. This allows us
to run PPP over Radiocontact T-Link Radio Modems which run best when something
is transmitted at least every 1.5 seconds.
Tested by: Jennifer Clark <jen@telepresence.strath.ac.uk>
Approved by: Brian
Jonathan Lemon [Mon, 19 Mar 2001 19:10:06 +0000 (19:10 +0000)]
Introduce the GLOB_MAXPATH flag, which allows the user to limit the
number of paths which glob(3) will return. Remove the hardcoded limit
from the last commit, which restores the previous unbounded behavior.
Robert Watson [Mon, 19 Mar 2001 18:09:25 +0000 (18:09 +0000)]
o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLs
from files and directories, and setfacl sets ACLs on files and directories.
Alfred Perlstein [Mon, 19 Mar 2001 12:50:13 +0000 (12:50 +0000)]
Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and
associated changes that had to happen to make this possible as well as
bugs fixed along the way.
Bring in required TLI library routines to support this.
Since we don't support TLI we've essentially copied what NetBSD
has done, adding a thin layer to emulate direct the TLI calls
into BSD socket calls.
This is mostly from Sun's tirpc release that was made in 1994,
however some fixes were backported from the 1999 release (supposedly
only made available after this porting effort was underway).
The submitter has agreed to continue on and bring us up to the
1999 release.
Several key features are introduced with this update:
Client calls are thread safe. (1999 code has server side thread
safe)
Updated, a more modern interface.
Many userland updates were done to bring the code up to par with
the recent RPC API.
There is an update to the pthreads library, a function
pthread_main_np() was added to emulate a function of Sun's threads
library.
While we're at it, bring in NetBSD's lockd, it's been far too
long of a wait.
New rpcbind(8) replaces portmap(8) (supporting communication over
an authenticated Unix-domain socket, and by default only allowing
set and unset requests over that channel). It's much more secure
than the old portmapper.
Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded
to support TI-RPC and to support IPV6.
Umount(8) is also fixed to unmount pathnames longer than 80 chars,
which are currently truncated by the Kernel statfs structure.
Ruslan Ermilov [Mon, 19 Mar 2001 09:16:16 +0000 (09:16 +0000)]
Invalidate cached forwarding route (ipforward_rt) whenever a new route
is added to the routing table, otherwise we may end up using the wrong
route when forwarding.
Add an example of a novel technique to the IPv6 code. This technique seems
to have been developed after the IPv6 code was written, it's called "checking
for error returns".
Ruslan Ermilov [Mon, 19 Mar 2001 08:08:22 +0000 (08:08 +0000)]
mdoc(7) police:
- lowercase Nd argument
- mark function arguments with Fa
- mark defined values with Dv
- simply copying POSIX text for RETURN VALUES and ERRORS sections is not
always a good idea. POSIX uses the word "shall" indicating the behavior
the correct implementation should follow.