]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoBase the comparison on UIDs, not on user names.
Dag-Erling Smørgrav [Wed, 23 Jan 2002 15:16:01 +0000 (15:16 +0000)]
Base the comparison on UIDs, not on user names.

Sponsored by: DARPA, NAI Labs

22 years agoMake libssh.so useable (undefined reference to IPv4or6).
Ruslan Ermilov [Wed, 23 Jan 2002 15:06:47 +0000 (15:06 +0000)]
Make libssh.so useable (undefined reference to IPv4or6).

Reviewed by: des, markm
Approved by: markm

22 years agodhclient-script.conf lives in /etc and not /sbin.
Giorgos Keramidas [Wed, 23 Jan 2002 13:56:41 +0000 (13:56 +0000)]
dhclient-script.conf lives in /etc and not /sbin.

PR: docs/32008
Submitted by: John E Hein <jhein@timing.com>
Approved by: obrien

22 years agoAdd local/share/java/classes, local/share/sgml, local/share/xml
Dag-Erling Smørgrav [Wed, 23 Jan 2002 13:02:16 +0000 (13:02 +0000)]
Add local/share/java/classes, local/share/sgml, local/share/xml

Approved by: ru, silence on -ports
MFC after: 1 week

22 years agoThe sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
Ruslan Ermilov [Wed, 23 Jan 2002 12:48:08 +0000 (12:48 +0000)]
The sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
all interfaces, and ifnet.if_index value for a single interface.

22 years agoCG hard sentence breaks.
Maxim Sobolev [Wed, 23 Jan 2002 09:35:55 +0000 (09:35 +0000)]
CG hard sentence breaks.

Submitted by: ru

22 years agoin fget() return EINVAL when the descriptor requested is negative.
Alfred Perlstein [Wed, 23 Jan 2002 08:40:35 +0000 (08:40 +0000)]
in fget() return EINVAL when the descriptor requested is negative.

22 years agoRemove holdfp() prototype now that the function no longer exists
Alfred Perlstein [Wed, 23 Jan 2002 08:28:55 +0000 (08:28 +0000)]
Remove holdfp() prototype now that the function no longer exists

22 years agoforced commit, Previous revision also removed the holdfp() function
Alfred Perlstein [Wed, 23 Jan 2002 08:28:15 +0000 (08:28 +0000)]
forced commit, Previous revision also removed the holdfp() function
from the kernel.

22 years agomake pread use fget_read instead of holdfp.
Alfred Perlstein [Wed, 23 Jan 2002 08:22:59 +0000 (08:22 +0000)]
make pread use fget_read instead of holdfp.

22 years agoRoll to latest production level firmware.
Matt Jacob [Wed, 23 Jan 2002 06:42:54 +0000 (06:42 +0000)]
Roll to latest production level firmware.

MFC after: 1 day

22 years agoimprove sndstat output of feederchains so it can be understood without
Cameron Grant [Wed, 23 Jan 2002 06:02:15 +0000 (06:02 +0000)]
improve sndstat output of feederchains so it can be understood without
reading the feeder sourcecode

22 years agoprint warnings if a pcm*.buffersize hint is out of range or a non-power-of-2
Cameron Grant [Wed, 23 Jan 2002 05:49:41 +0000 (05:49 +0000)]
print warnings if a pcm*.buffersize hint is out of range or a non-power-of-2

22 years agofix some comments accidentally hit by search/replace several revisions ago
Cameron Grant [Wed, 23 Jan 2002 05:41:35 +0000 (05:41 +0000)]
fix some comments accidentally hit by search/replace several revisions ago

22 years agoset the speeds the right way round for recording using the rate feeder
Cameron Grant [Wed, 23 Jan 2002 05:35:12 +0000 (05:35 +0000)]
set the speeds the right way round for recording using the rate feeder

22 years agoadd more error checking in chn_init() and chn_reset()
Cameron Grant [Wed, 23 Jan 2002 05:21:27 +0000 (05:21 +0000)]
add more error checking in chn_init() and chn_reset()

22 years agomake the feederchain builder work for recording. this has not been tested
Cameron Grant [Wed, 23 Jan 2002 05:10:56 +0000 (05:10 +0000)]
make the feederchain builder work for recording.  this has not been tested
extensively as none of my testboxes have speakers or an audio source at
present, but the chains built look correct and reading /dev/audio (ulaw,
translated from signed 16 bit little-endian) gives values within the
expected range for silence.

22 years agodon't bother checking if an unsigned parameter is less than 0 in a KASSERT
Cameron Grant [Wed, 23 Jan 2002 04:50:51 +0000 (04:50 +0000)]
don't bother checking if an unsigned parameter is less than 0 in a KASSERT

22 years agoadd more error checking to open of /dev/dsp* and /dev/audio* - if the
Cameron Grant [Wed, 23 Jan 2002 04:44:03 +0000 (04:44 +0000)]
add more error checking to open of /dev/dsp* and /dev/audio* - if the
default format for the chosen subdevice cannot be obtained return an error
instead of returning success with an indeteterminate format selected.

note that this should never happen once the feederchain builder works for
recording.

22 years agodon't allow mmap beyond the end of the buffer
Cameron Grant [Wed, 23 Jan 2002 04:32:18 +0000 (04:32 +0000)]
don't allow mmap beyond the end of the buffer

Submitted by: Philippe Anel <philippe.anel@noos.fr> (partially)

22 years agoremove modules no longer built
Cameron Grant [Wed, 23 Jan 2002 03:43:16 +0000 (03:43 +0000)]
remove modules no longer built

22 years agoconsolidate bits that don't need to be seperate modules into the modules
Cameron Grant [Wed, 23 Jan 2002 03:32:36 +0000 (03:32 +0000)]
consolidate bits that don't need to be seperate modules into the modules
that want them

22 years agoAdd a stub for softdep_request_cleanup() so that compilation without
Kirk McKusick [Wed, 23 Jan 2002 02:18:56 +0000 (02:18 +0000)]
Add a stub for softdep_request_cleanup() so that compilation without
SOFTUPDATES option works properly.

Submitted by: Benno Rice <benno@jeamland.net>

22 years agoAdd missing destroy_dev().
Wes Peters [Wed, 23 Jan 2002 01:11:52 +0000 (01:11 +0000)]
Add missing destroy_dev().

Submitted by: Maxime Henrion <mux@sneakerz.org>
Reviewed by: msmith@
MFC after: 3 weeks

22 years agoMFen (1.264 --> 1.265).
Jun Kuriyama [Wed, 23 Jan 2002 00:46:49 +0000 (00:46 +0000)]
MFen (1.264 --> 1.265).
Refine translation (by y-koga@jp).

22 years agoUndo the work-around for the sendfile bug where nbytes needed the hdr/trl
David Greenman [Tue, 22 Jan 2002 23:35:09 +0000 (23:35 +0000)]
Undo the work-around for the sendfile bug where nbytes needed the hdr/trl
size added to it in order for it to work properly when nbytes != 0.

Reviewed by: alfred
MFC after: 3 days

22 years agoThe mode of files created by ctm_rmail was always 0600, even if the
Ian Dowse [Tue, 22 Jan 2002 22:54:52 +0000 (22:54 +0000)]
The mode of files created by ctm_rmail was always 0600, even if the
umask was less restrictive. This was caused by the use of mkstemp()
which internally passes a mode of 0600 to open(). Fix this by
explicitly chmod'ing the files to (0666 & ~umask).

PR: bin/16119
Submitted by: Sascha Blank <blank@uni-trier.de>

22 years agoAdd ngctl "write" command.
Archie Cobbs [Tue, 22 Jan 2002 22:01:25 +0000 (22:01 +0000)]
Add ngctl "write" command.

MFC after: 1 week

22 years agoRemove bogus _POSIX_ACL_PATH_MAX definition.
Brian Feldman [Tue, 22 Jan 2002 21:33:12 +0000 (21:33 +0000)]
Remove bogus _POSIX_ACL_PATH_MAX definition.

22 years agoFix a typo and fix indenting for struct sockaddr to match other structs.
Jens Schweikhardt [Tue, 22 Jan 2002 21:26:15 +0000 (21:26 +0000)]
Fix a typo and fix indenting for struct sockaddr to match other structs.
No content changes.
MFC after: 3 weeks

22 years agoDon't use `you'.
Maxim Sobolev [Tue, 22 Jan 2002 21:11:18 +0000 (21:11 +0000)]
Don't use `you'.

Submitted by: ru

22 years agoRestore C99 standard conformance information, isblank() _is_ in final
Andrey A. Chernov [Tue, 22 Jan 2002 20:14:35 +0000 (20:14 +0000)]
Restore C99 standard conformance information, isblank() _is_ in final
standard document

Pointed by: "Jacques A. Vidrine" <n@nectar.cc>

22 years agoShow arguments of command line options
Philippe Charnier [Tue, 22 Jan 2002 19:49:48 +0000 (19:49 +0000)]
Show arguments of command line options
Reviewed by: ru

22 years agoThe ENDPTS_EQ macro was comparing the one of the fports to itself. Fix.
Jonathan Lemon [Tue, 22 Jan 2002 17:54:28 +0000 (17:54 +0000)]
The ENDPTS_EQ macro was comparing the one of the fports to itself.  Fix.

Submitted by: emy@boostworks.com

22 years agoInitialize the sysctl_ctx list early, which avoids a panic in case other
Jonathan Lemon [Tue, 22 Jan 2002 17:51:44 +0000 (17:51 +0000)]
Initialize the sysctl_ctx list early, which avoids a panic in case other
allocatiosn fail and fxp_release() is called.

22 years agoNull commit - the previous log message should have read:
David Greenman [Tue, 22 Jan 2002 17:38:58 +0000 (17:38 +0000)]
Null commit -  the previous log message should have read:

  Fixed bug in calculation of amount of file sent when nbytes !=0 and
  headers or trailers are supplied. Reported by Vladislav Shabanov
  <vs@rambler-co.ru>.

22 years agoUse the proper type (gid_t) for (group)->gr_gid to be orthogonal
Mark Murray [Tue, 22 Jan 2002 17:32:53 +0000 (17:32 +0000)]
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal
with uid_t usage and (user)->pw_uid.

PR: 3242

22 years agoFixed bug in calculation of amount of file to send when nbytes !=0 and
David Greenman [Tue, 22 Jan 2002 17:32:10 +0000 (17:32 +0000)]
Fixed bug in calculation of amount of file to send when nbytes !=0 and
headers or trailers are supplied. Reported by Vladislav Shabanov
<vs@rambler-co.ru>.

PR: 33771
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
MFC after: 3 days

22 years agoDo not taint ::/124 for localhost reverse table.
Hajimu UMEMOTO [Tue, 22 Jan 2002 17:22:41 +0000 (17:22 +0000)]
Do not taint ::/124 for localhost reverse table.

22 years agoReincarnate SETUID code in man(1), not compiled in by default.
Ruslan Ermilov [Tue, 22 Jan 2002 15:15:38 +0000 (15:15 +0000)]
Reincarnate SETUID code in man(1), not compiled in by default.

The code will be fixed for all known security vulnerabilities,
and a make.conf(5) knob (ENABLE_SUID_MAN) will be provided for
those who still want it installed setuid for whatever reasons.

22 years agoRevert revision 1.57 -- ache@ axed /var/spool/uucp in BSD.var.dist,v 1.55.
Ruslan Ermilov [Tue, 22 Jan 2002 14:55:25 +0000 (14:55 +0000)]
Revert revision 1.57 -- ache@ axed /var/spool/uucp in BSD.var.dist,v 1.55.

22 years agoFix the description of the O_NONBLOCK flag to match reality.
Ruslan Ermilov [Tue, 22 Jan 2002 14:18:55 +0000 (14:18 +0000)]
Fix the description of the O_NONBLOCK flag to match reality.

Prodded by: Maxim Konovalov <maxim@macomnet.ru>
Obtained from: BSD/OS

22 years agoFix a typo I made in revision 1.5.
Ruslan Ermilov [Tue, 22 Jan 2002 12:38:43 +0000 (12:38 +0000)]
Fix a typo I made in revision 1.5.

Submitted by: trevor

22 years agoIn certain cases sbuf_printf() and sbuf_vprintf() could mistakely
Poul-Henning Kamp [Tue, 22 Jan 2002 11:22:55 +0000 (11:22 +0000)]
In certain cases sbuf_printf() and sbuf_vprintf() could mistakely
make extendable sbufs as overflowed.

Approved by: des

22 years agoMention that a minimal version of camcontrol(8) is now available in the
Joerg Wunsch [Tue, 22 Jan 2002 11:13:43 +0000 (11:13 +0000)]
Mention that a minimal version of camcontrol(8) is now available in the
installation environment (currently only for i386 releases).

22 years agoTiny style change. Whitespace only change.
Giorgos Keramidas [Tue, 22 Jan 2002 10:44:40 +0000 (10:44 +0000)]
Tiny style change.  Whitespace only change.
Use tab after #define ENOTSUP.

Reviewed by: mike

22 years agoFinish cleanup in chroot.c CSRG revision 5.6 by Keith Bostic
Ruslan Ermilov [Tue, 22 Jan 2002 10:44:02 +0000 (10:44 +0000)]
Finish cleanup in chroot.c CSRG revision 5.6 by Keith Bostic
(never installed setuid, so don't need to reset the uid).

PR: bin/34159

22 years agoFinish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile)
Ruslan Ermilov [Tue, 22 Jan 2002 10:07:03 +0000 (10:07 +0000)]
Finish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile)
argument to kvm_open() and kvm_openfiles() as unused.

BSD didn't read swap since kvm.c CSRG revision 5.21 (u-area is pageable
under new VM.  no need to read from swap.)

The old !NEWVM code was removed in CSRG revision 5.23 (~ten years ago).

22 years agoThis patch fixes a long standing complaint with soft updates in
Kirk McKusick [Tue, 22 Jan 2002 06:17:22 +0000 (06:17 +0000)]
This patch fixes a long standing complaint with soft updates in
which small and/or nearly full filesystems would fail with `file
system full' messages when trying to replace a number of existing
files (for example during a system installation). When the allocation
routines are about to fail with a file system full condition, they
make a call to softdep_request_cleanup() which attempts to accelerate
the flushing of pending deletion requests in an effort to free up
space. In the face of filesystem I/O requests that exceed the
available disk transfer capacity, the cleanup request could take
an unbounded amount of time. Thus, the softdep_request_cleanup()
routine will only try for tickdelay seconds (default 2 seconds)
before giving up and returning a filesystem full error. Under typical
conditions, the softdep_request_cleanup() routine is able to free
up space in under fifty milliseconds.

22 years agoMFen (1.263 --> 1.264).
Jun Kuriyama [Tue, 22 Jan 2002 06:04:46 +0000 (06:04 +0000)]
MFen (1.263 --> 1.264).
Fix typo.

22 years agohw.physmem is more properly a loader tunable, not an environment
Bruce A. Mah [Tue, 22 Jan 2002 05:21:21 +0000 (05:21 +0000)]
hw.physmem is more properly a loader tunable, not an environment
variable (which is ambiguous).

Submitted by: dwhite

22 years agoo Remove the -V [version number] option, since our version of at(1) no
Mike Barcroft [Tue, 22 Jan 2002 03:04:15 +0000 (03:04 +0000)]
o Remove the -V [version number] option, since our version of at(1) no
  longer resembles the original.
o Remove references to `you' in the manual.

Submitted by: Joe Halpin <joe.halpin@attbi.com>

22 years agoDon't read the sigcontext pointer directly from userspace. If the process
Andrew Gallatin [Tue, 22 Jan 2002 02:40:39 +0000 (02:40 +0000)]
Don't read the sigcontext pointer directly from userspace.  If the process
is swapped out, this can cause a system panic.  Copy it in, instead

tested by: Bernd Walter <ticso@cicely8.cicely.de>

22 years agoList bit 18 (reserved, apparently present on thunderbird cpus)
Peter Wemm [Tue, 22 Jan 2002 01:28:32 +0000 (01:28 +0000)]
List bit 18 (reserved, apparently present on thunderbird cpus)
and bit 19 (athlon XP/MP rev 0x662 and later) for amd_features.

Submitted by:  dwcjr

22 years agoThe idea of mapping non-existen characters to space (0x20) was nice alone,
Andrey A. Chernov [Mon, 21 Jan 2002 21:52:02 +0000 (21:52 +0000)]
The idea of mapping non-existen characters to space (0x20) was nice alone,
but those maps also used as backward maps for Paste, so space becomes mapped
to last non-existen character on Paste as result.

Fix it by mapping non-existen characters to another non-existen one, i.e. to
0x00, so unused 0x00 can be backward-mapped to some junk without real harm.

Pointed by: Alexander Kabaev <ak03@gte.com>

22 years agoGah! last commit botched indentation, fix indentation and some other
Poul-Henning Kamp [Mon, 21 Jan 2002 20:57:03 +0000 (20:57 +0000)]
Gah! last commit botched indentation, fix indentation and some other
white-space nits while at it.

22 years agoRestructure slightly, eliminating some repetitive source lines and
Poul-Henning Kamp [Mon, 21 Jan 2002 20:50:06 +0000 (20:50 +0000)]
Restructure slightly, eliminating some repetitive source lines and
making GEOM patches simpler and more readable at the same time.

22 years agoLink pam_opieaccess, pam_self and pam_ssh into the static library.
Dag-Erling Smørgrav [Mon, 21 Jan 2002 20:43:01 +0000 (20:43 +0000)]
Link pam_opieaccess, pam_self and pam_ssh into the static library.

Sponsored by: DARPA, NAI Labs

22 years agoAdd the necessary dependencies and linker flags for linking with a
Dag-Erling Smørgrav [Mon, 21 Jan 2002 20:42:25 +0000 (20:42 +0000)]
Add the necessary dependencies and linker flags for linking with a
static PAM library that includes pam_ssh.

Sponsored by: DARPA, NAI Labs

22 years agoCorrect typos and macro usage.
Ollivier Robert [Mon, 21 Jan 2002 20:12:02 +0000 (20:12 +0000)]
Correct typos and macro usage.

PR: 33179, 33181, 33295
Submitted by: Norihiro Kumagai <kumagai@attbi.com>
Reviewed by: sheldonh (MAINTAINER)
MFC after: 2 days

22 years ago- Check the address family of the destination cached in a PCB.
Hajimu UMEMOTO [Mon, 21 Jan 2002 20:04:22 +0000 (20:04 +0000)]
- Check the address family of the destination cached in a PCB.
- Clear the cached destination before getting another cached route.
  Otherwise, garbage in the padding space (which might be filled in if it was
  used for IPv4) could annoy rtalloc.

Obtained from: KAME

22 years ago- Check the address family of a cached destination, in case of
Hajimu UMEMOTO [Mon, 21 Jan 2002 20:02:36 +0000 (20:02 +0000)]
- Check the address family of a cached destination, in case of
  sharing the cache with IPv4.
- Check if the cached route is up in in6_selectsrc().

Obtained from: KAME

22 years agoRemove my workaround fallback since PAM now do it properly.
Andrey A. Chernov [Mon, 21 Jan 2002 19:07:15 +0000 (19:07 +0000)]
Remove my workaround fallback since PAM now do it properly.

22 years agoOn second thought, getpwnam() failure should be treated just as if the user
Dag-Erling Smørgrav [Mon, 21 Jan 2002 19:05:45 +0000 (19:05 +0000)]
On second thought, getpwnam() failure should be treated just as if the user
existed, but had no OPIE key, i.e. PAM_IGNORE.

Pointed out by: ache
Sponsored by: DARPA, NAI Labs

22 years agoReturn PAM_SERVICE_ERR rather than PAM_USER_UNKNOWN if getpwnam() fails, as
Dag-Erling Smørgrav [Mon, 21 Jan 2002 18:53:03 +0000 (18:53 +0000)]
Return PAM_SERVICE_ERR rather than PAM_USER_UNKNOWN if getpwnam() fails, as
PAM_USER_UNKNOWN will break the chain, revealing to an attacker that the
user does not exist.

Sponsored by: DARPA, NAI Labs

22 years agoEnable OPIE by default, using the no_fake_prompts option to hide it from
Dag-Erling Smørgrav [Mon, 21 Jan 2002 18:51:24 +0000 (18:51 +0000)]
Enable OPIE by default, using the no_fake_prompts option to hide it from
users who don't wish to use it.  If the admin is worried about leaking
information about which users exist and which have OPIE enabled, the
no_fake_prompts option can simply be removed.

Also insert the appropriate pam_opieaccess lines after pam_opie to break
the chain in case the user is logging in from an untrusted host, or has a
.opiealways file.  The entire opieaccess / opiealways concept is slightly
unpammish, but admins familiar with OPIE will expect it to work.

Reviewed by: ache, markm
Sponsored by: DARPA, NAI Labs

22 years agoFurther changes to allow enabling pam_opie(8) by default:
Dag-Erling Smørgrav [Mon, 21 Jan 2002 18:46:25 +0000 (18:46 +0000)]
Further changes to allow enabling pam_opie(8) by default:

 - Ignore the {try,use}_first_pass options by clearing PAM_AUTHTOK before
   challenging the user.  These options are meaningless for pam_opie(8)
   since the user can't possibly know the right response before she sees
   the challenge.

 - Introduce the no_fake_prompts option.  If this option is set, pam_opie(8)
   will fail - rather than present a bogus challenge - if the target user
   does not have an OPIE key.  With this option, users who haven't set up
   OPIE won't have to wonder what that "weird otp-md5 s**t" means :)

Reviewed by: ache, markm
Sponsored by: DARPA, NAI Labs

22 years agoWhen running on a local terminal, set PAM_RHOST to the local hostname.
Dag-Erling Smørgrav [Mon, 21 Jan 2002 16:19:38 +0000 (16:19 +0000)]
When running on a local terminal, set PAM_RHOST to the local hostname.

Sponsored by: DARPA, NAI Labs

22 years agoRFC1122 requires that addresses of the form { 127, <any> } MUST NOT
Ruslan Ermilov [Mon, 21 Jan 2002 13:59:42 +0000 (13:59 +0000)]
RFC1122 requires that addresses of the form { 127, <any> } MUST NOT
appear outside a host.

PR: 30792, 33996
Obtained from: ip_input.c
MFC after: 1 week

22 years agoAdd a new module, pam_opieaccess(8), which is responsible for checking
Dag-Erling Smørgrav [Mon, 21 Jan 2002 13:43:53 +0000 (13:43 +0000)]
Add a new module, pam_opieaccess(8), which is responsible for checking
/etc/opieaccess and ~/.opiealways so we can decide what to do after
pam_opie(8) fails.

Sponsored by: DARPA, NAI Labs
Reviewed by: ache, markm

22 years agoIspell sweep of share/man/man4/man4.i386.
Mike Pritchard [Mon, 21 Jan 2002 12:36:12 +0000 (12:36 +0000)]
Ispell sweep of share/man/man4/man4.i386.

22 years agoIspell sweep of share/man/man4.
Mike Pritchard [Mon, 21 Jan 2002 12:09:13 +0000 (12:09 +0000)]
Ispell sweep of share/man/man4.

22 years agoFix a typo in a comment field.
Mike Pritchard [Mon, 21 Jan 2002 11:10:32 +0000 (11:10 +0000)]
Fix a typo in a comment field.

22 years agoFix spelling errors.
Mike Pritchard [Mon, 21 Jan 2002 10:28:18 +0000 (10:28 +0000)]
Fix spelling errors.

22 years agoMerge from NetBSD:
Josef Karthauser [Mon, 21 Jan 2002 05:02:21 +0000 (05:02 +0000)]
Merge from NetBSD:

    ohci.c: -r1.69 to 1.71
    ohcireg.h: -r1.14

Some of these deltas are based upon patches that we submitted back to
NetBSD.  They got manifested slightly differently though, so I've brought
back those differences to bring our code bases closer together.

The logs from the NetBSD version of ohci.c:

revision 1.71
date: 2000/02/01 05:42:52;  author: augustss;  state: Exp;  lines: +13 -2
Put some #ifdefs around power and shutdown hooks.
----------------------------
revision 1.70
date: 2000/01/31 22:35:13;  author: augustss;  state: Exp;  lines: +7 -7
Rename TAILMASK to HEADMASK, since it really masks the head pointer.
From FreeBSD.
----------------------------
revision 1.69
date: 2000/01/31 22:09:13;  author: augustss;  state: Exp;  lines: +18 -14
Change where the has table for physical-to-virtual address translation
is handled.  Partly from FreeBSD.

22 years agoMerge from NetBSD:
Josef Karthauser [Mon, 21 Jan 2002 04:24:33 +0000 (04:24 +0000)]
Merge from NetBSD:

    ohci.c: -r1.68
    ohcireg.h: -r1.13

date: 2000/01/31 20:17:25;  author: augustss;  state: Exp;
Fiddle with over-current protect when turning on port power to make
things work for some OHCI controllers.

22 years agoMerge from NetBSD:
Josef Karthauser [Mon, 21 Jan 2002 04:15:39 +0000 (04:15 +0000)]
Merge from NetBSD:

revision 1.65
date: 2000/01/25 12:06:21;  author: augustss;  state: Exp;  lines: +10 -2
Add done method for root control transfers.

22 years agoMerge from NetBSD:
Josef Karthauser [Mon, 21 Jan 2002 03:44:00 +0000 (03:44 +0000)]
Merge from NetBSD:

revision 1.84
date: 2000/01/28 00:44:27;  author: augustss;  state: Exp;  lines: +9 -2
Add uhci_root_ctrl_done() method.

22 years agoMerge from NetBSD:
Josef Karthauser [Mon, 21 Jan 2002 03:35:55 +0000 (03:35 +0000)]
Merge from NetBSD:

    uhci.c: -r1.82
    uhcivar.h: -r1.22

date: 2000/01/26 10:04:39;  author: augustss;  state: Exp;
Try to avoid accessing the HC if it is dead.  Suggested by mycroft.

22 years agoAllow dump device be configured as early as possible using loader(8) tunable.
Maxim Sobolev [Mon, 21 Jan 2002 01:16:11 +0000 (01:16 +0000)]
Allow dump device be configured as early as possible using loader(8) tunable.
This allows obtaining crash dumps from the panics occured during late stages
of kernel initialisation before system enters into single-user mode.

MFC after: 2 weeks

22 years agoAdd support for Linksys WDT11 PCI adaptors.
Brooks Davis [Mon, 21 Jan 2002 00:59:59 +0000 (00:59 +0000)]
Add support for Linksys WDT11 PCI adaptors.

Submitted by: Eric Liedtke <eliedtke@apogeetelecom.com>

22 years agoRemove some unused code, in line with NetBSD's version.
Josef Karthauser [Sun, 20 Jan 2002 23:56:46 +0000 (23:56 +0000)]
Remove some unused code, in line with NetBSD's version.

22 years agoMerge from NetBSD:
Josef Karthauser [Sun, 20 Jan 2002 23:48:43 +0000 (23:48 +0000)]
Merge from NetBSD:

revision 1.125
date: 2000/09/23 21:00:10;  author: augustss;  state: Exp;  lines: +19 -3
Avoid "bandwidth reclamation" for control transfers.  The kue device chokes
on it.

22 years agoMerge from NetBSD:
Josef Karthauser [Sun, 20 Jan 2002 23:38:33 +0000 (23:38 +0000)]
Merge from NetBSD:

    uhci.c: -r1.124
    uhcireg.h: -r1.13

date: 2000/08/13 18:20:14;  author: augustss;  state: Exp;
Fix race condition when unlinking xfers.  Thanks to IWAMOTO Toshihiro
<iwamoto@sat.t.u-tokyo.ac.jp> for analyzing the problem and suggesting a fix.
Fixes PR 10662.

22 years agoMFS 1.536.2.52 (partial) and 1.536.2.70: kgzip loader if i386 (only).
Makoto Matsushita [Sun, 20 Jan 2002 23:17:52 +0000 (23:17 +0000)]
MFS 1.536.2.52 (partial) and 1.536.2.70: kgzip loader if i386 (only).

5.0-CURRENT-20020121-JPSNAP was failed to build since kern.flp has no
space.  There is already a hack to kgzip loader, and it makes:

-r-xr-xr-x  1 root  wheel  163840 Jan 21 07:40 loader*
-r-xr-xr-x  1 root  wheel   90121 Jan 21 08:06 loader.kgz*

73719 bytes of free spaces to us.

22 years agouse mutex pools for "struct file" locking.
Alfred Perlstein [Sun, 20 Jan 2002 22:58:08 +0000 (22:58 +0000)]
use mutex pools for "struct file" locking.
fix indentation of FILE_LOCK/UNLOCK macros while I'm here.

22 years agouse mutex pool mutexes for uidinfo locking.
Alfred Perlstein [Sun, 20 Jan 2002 22:48:49 +0000 (22:48 +0000)]
use mutex pool mutexes for uidinfo locking.
replace mutex_lock calls on uidinfo with macro calls:
  mtx_lock(&uidp->ui_mtx) -> UIDINFO_LOCK(uidp)

Terry Lambert <tlambert2@mindspring.com> helped with this.

22 years agosnprintf bloat -> strlcpy
Andrey A. Chernov [Sun, 20 Jan 2002 20:56:47 +0000 (20:56 +0000)]
snprintf bloat -> strlcpy
Add getpwnam return check

Approved by: des, markm

22 years agoMerge from NetBSD:
Josef Karthauser [Sun, 20 Jan 2002 20:12:25 +0000 (20:12 +0000)]
Merge from NetBSD:

    uhci.c: -r1.123 (and a tiny bit of -r1.92)
    uhcivar.h: -r1.32

date: 2000/08/13 16:18:09;  author: augustss;  state: Exp;
Implement what in Intel-speech is known as "bandwidth
reclamation".  It means that we continously poll USB devices
that have a pending transfer instead of polling just once
every ms.  This speeds up some transfers at the expense of
using more PCI bandwidth.

22 years agoCheck the return value from read() when reading the CR/LF at the end of a
Dag-Erling Smørgrav [Sun, 20 Jan 2002 19:53:12 +0000 (19:53 +0000)]
Check the return value from read() when reading the CR/LF at the end of a
chunk.

PR: bin/33608
MFC after: 2 weeks

22 years agoMark uploads as O_WRONLY, not O_RDONLY.
Dag-Erling Smørgrav [Sun, 20 Jan 2002 19:52:25 +0000 (19:52 +0000)]
Mark uploads as O_WRONLY, not O_RDONLY.

PR: misc/34043
MFC after: 2 weeks

22 years ago o Remove the unused vestiges of JOBST_JOBQPROC and
Alan Cox [Sun, 20 Jan 2002 18:59:58 +0000 (18:59 +0000)]
 o Remove the unused vestiges of JOBST_JOBQPROC and
   the per-thread jobtorun queue.
 o Use TAILQ_EMPTY() instead of TAILQ_FIRST(...) == NULL.

22 years agoWARNS=4 fixes.
Mark Murray [Sun, 20 Jan 2002 17:54:33 +0000 (17:54 +0000)]
WARNS=4 fixes.

OK'ed by: des

22 years agoAdd `-h' to the chown command so that symbolic links copied from
Ian Dowse [Sun, 20 Jan 2002 17:05:07 +0000 (17:05 +0000)]
Add `-h' to the chown command so that symbolic links copied from
the skeleton directory are chown'd to the new user.

PR: bin/10601
Submitted by: Adrian Filipi-Martin <adrian2ubergeeks.com@gosub.cstone.net>
MFC after: 1 month

22 years agoMinor typo fix: uquad_t -> u_quad_t.
Yaroslav Tykhiy [Sun, 20 Jan 2002 16:50:29 +0000 (16:50 +0000)]
Minor typo fix: uquad_t -> u_quad_t.

22 years agoRemove very outdated comment from the Bugs section that states that
Scott Long [Sun, 20 Jan 2002 16:09:18 +0000 (16:09 +0000)]
Remove very outdated comment from the Bugs section that states that
the driver cannot do U160.

Submitted by: ladisalv.kostal@fem.uniag.sk
MFC after: 1 day

22 years agofrom select(2):
Bill Fumerola [Sun, 20 Jan 2002 12:13:28 +0000 (12:13 +0000)]
from select(2):
Any of readfds, writefds, and exceptfds may be given as nil
pointers if no descriptors are of interest.

neither wfds nor efds were of interest so now they are nil.

also, do a little better then making an educated guess for nfds.

22 years agoMerge from NetBSD:
Josef Karthauser [Sun, 20 Jan 2002 12:08:09 +0000 (12:08 +0000)]
Merge from NetBSD:

    uchireg.h: -r1.12
    uchi.c: -r1.121

    date: 2000/07/23 19:43:38;  author: augustss;  state: Exp;
    Be a little more explicit and careful about setting links in TDs and QHs.

22 years agoCorrect the majors entry for 'iir'. 163 is vacated now.
Mike Smith [Sun, 20 Jan 2002 09:01:07 +0000 (09:01 +0000)]
Correct the majors entry for 'iir'.  163 is vacated now.

22 years agoAdd the 'iir' driver, for the Intel Integrated RAID controllers and
Mike Smith [Sun, 20 Jan 2002 08:51:08 +0000 (08:51 +0000)]
Add the 'iir' driver, for the Intel Integrated RAID controllers and
prior ICP Vortex models.  This driver was developed by Achim Leubner
of Intel (previously with ICP Vortex) and Boji Kannanthanam of Intel.

Submitted by: "Kannanthanam, Boji T" <boji.t.kannanthanam@intel.com>
MFC after: 2 weeks