]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoAlways set errno to ENOMEM after malloc failed (as workaround).
Andrey A. Chernov [Wed, 7 Aug 2002 22:03:46 +0000 (22:03 +0000)]
Always set errno to ENOMEM after malloc failed (as workaround).
Our malloc sometimes forget to set errno, f.e. for size overflow case.

21 years agoReset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one
Andrey A. Chernov [Wed, 7 Aug 2002 20:49:25 +0000 (20:49 +0000)]
Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one

21 years agoFix wrong address when EucInfo > "variable" size
Andrey A. Chernov [Wed, 7 Aug 2002 20:20:56 +0000 (20:20 +0000)]
Fix wrong address when EucInfo > "variable" size

21 years agoCorrect a bug introduced in 1.26: M_PKTHDR is set in the 'flags'
Robert Watson [Wed, 7 Aug 2002 20:15:29 +0000 (20:15 +0000)]
Correct a bug introduced in 1.26: M_PKTHDR is set in the 'flags'
argument, not the 'type' argument.  As a result of the buf, the
MAC label on some packet header mbufs might not be set in mbufs
allocated using m_getcl(), resulting in a page fault.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoCorrect an inaccuracy in this man page regarding detecting empty fields.
Archie Cobbs [Wed, 7 Aug 2002 20:08:50 +0000 (20:08 +0000)]
Correct an inaccuracy in this man page regarding detecting empty fields.

MFC after: 2 days

21 years agoUse the CPU_* OID constants instead of OID_AUTO for the clock-related
Thomas Moestl [Wed, 7 Aug 2002 19:43:54 +0000 (19:43 +0000)]
Use the CPU_* OID constants instead of OID_AUTO for the clock-related
sysctls for compatability with old applications.

21 years ago o Introduce pmap_page_is_mapped(). Its purpose is to obsolete
Alan Cox [Wed, 7 Aug 2002 19:37:22 +0000 (19:37 +0000)]
 o Introduce pmap_page_is_mapped().  Its purpose is to obsolete
   the PG_MAPPED flag.

21 years agoCache the credential provided during accton() for use in later accounting
Robert Watson [Wed, 7 Aug 2002 19:30:16 +0000 (19:30 +0000)]
Cache the credential provided during accton() for use in later accounting
vnode operations.  This permits the rights of the user (typically root)
used to turn on accounting to be used when writing out accounting entries,
rather than the credentials of the process generating the accounting
record.  This fixes accounting in a number of environments, including
file systems that offer revocation support, MAC environments, some
securelevel scenarios, and in some NFS environments.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoDocument file descriptor reopening and current standardization status.
Garrett Wollman [Wed, 7 Aug 2002 18:03:30 +0000 (18:03 +0000)]
Document file descriptor reopening and current standardization status.

21 years ago o Introduce pmap_page_is_mapped(). Its purpose is to obsolete
Alan Cox [Wed, 7 Aug 2002 18:03:00 +0000 (18:03 +0000)]
 o Introduce pmap_page_is_mapped().  Its purpose is to obsolete
   the PG_MAPPED flag.

21 years agoStyle fixes in preparation for rewritting
Andrey A. Chernov [Wed, 7 Aug 2002 18:02:45 +0000 (18:02 +0000)]
Style fixes in preparation for rewritting

21 years agoRefresh the credential on the first initproc thread following divorcing
Robert Watson [Wed, 7 Aug 2002 17:53:31 +0000 (17:53 +0000)]
Refresh the credential on the first initproc thread following divorcing
the initproc credential from the proc0 credential.  Otherwise, the
proc0 credential is used instead of initproc's credentil when authorizing
start_init() activities prior to initproc hitting userland for the
first time.  This could result in the incorrect credential being used
to authorize mounting of the root file system, which could in turn cause
problems for NFS when used in combination with uid/gid ipfw rules, or
with MAC.

Discussed with: julian

21 years agoAdded Russian translation of the .Ex -std macro.
Ruslan Ermilov [Wed, 7 Aug 2002 17:47:24 +0000 (17:47 +0000)]
Added Russian translation of the .Ex -std macro.

MFC after: 3 days

21 years agoPOSIX.1-2001 says ``man -k'' should produce results equivalent to
Ruslan Ermilov [Wed, 7 Aug 2002 17:39:35 +0000 (17:39 +0000)]
POSIX.1-2001 says ``man -k'' should produce results equivalent to
the ``grep -Ei'' searching.

MFC after: 3 days

21 years agoAdd capability for limiting the maximum number of simultaneous
Hajimu UMEMOTO [Wed, 7 Aug 2002 17:03:14 +0000 (17:03 +0000)]
Add capability for limiting the maximum number of simultaneous
invocations of each service from a single IP address.

Requested by: matusita
Reviewed by: dwmalone
Tested by: matusita on snapshots.jp.FreeBSD.org
MFC after: 2 weeks

21 years agoStyle fixes
Andrey A. Chernov [Wed, 7 Aug 2002 16:49:20 +0000 (16:49 +0000)]
Style fixes

21 years agoStyle fixes in preparation of code rewritting
Andrey A. Chernov [Wed, 7 Aug 2002 16:45:23 +0000 (16:45 +0000)]
Style fixes in preparation of code rewritting

21 years agoUse new interface for ether_input().
Luigi Rizzo [Wed, 7 Aug 2002 16:08:54 +0000 (16:08 +0000)]
Use new interface for ether_input().
Remove some unnecessary assignments to mbuf fields in sis_newbuf(),
the "length" fields are of no use while the mbuf is in the receive ring.

MFC after: 3 days

21 years agoWe no longer have a COPY.
Ruslan Ermilov [Wed, 7 Aug 2002 16:01:06 +0000 (16:01 +0000)]
We no longer have a COPY.

21 years agoMakefile.inc1 may eventually be merged with Makefile, so fix an
Ruslan Ermilov [Wed, 7 Aug 2002 13:41:46 +0000 (13:41 +0000)]
Makefile.inc1 may eventually be merged with Makefile, so fix an
endless recursion bug similar to the one that has been fixed in
release/Makefile,v 1.698, in advance.  A related fix to make(1)
has been committed in make/main.c,v 1.68.

Requested by: bde (who has them merged already)

21 years agoPacify ``make -f /dev/null -V FOO''.
Ruslan Ermilov [Wed, 7 Aug 2002 13:25:51 +0000 (13:25 +0000)]
Pacify ``make -f /dev/null -V FOO''.

21 years agoImprove stack manipulation code of ACPI wakeup routine.
Mitsuru IWASAKI [Wed, 7 Aug 2002 12:48:28 +0000 (12:48 +0000)]
Improve stack manipulation code of ACPI wakeup routine.
The new code just override stack top value with saved return address
rather than pop/push operation.

Submitted by: jhb

21 years agoRemove an unnecessary cast.
Matthew N. Dodd [Wed, 7 Aug 2002 11:35:18 +0000 (11:35 +0000)]
Remove an unnecessary cast.

21 years agoMove code block added in 1.157 to a safer part of fork1().
Matthew N. Dodd [Wed, 7 Aug 2002 11:31:45 +0000 (11:31 +0000)]
Move code block added in 1.157 to a safer part of fork1().

Submitted by:  jake

21 years agoClose descriptor, if error happens in loadCat()
Andrey A. Chernov [Wed, 7 Aug 2002 07:02:37 +0000 (07:02 +0000)]
Close descriptor, if error happens in loadCat()

21 years agoBack out workaround of fixing "suspend/fg" by price of breaking "stop $$/fg".
Andrey A. Chernov [Wed, 7 Aug 2002 05:44:50 +0000 (05:44 +0000)]
Back out workaround of fixing "suspend/fg" by price of breaking "stop $$/fg".

This is real kernel bug (threads) and don't attempt to mask it by
workarounds to increase chances to fix it in the kernel.

21 years agoAdd Intersil and Symbol as vendors for 802.11 cards that the wi driver
Warner Losh [Wed, 7 Aug 2002 05:40:34 +0000 (05:40 +0000)]
Add Intersil and Symbol as vendors for 802.11 cards that the wi driver
supports.

Obtained from: NetBSD

21 years agoTypo: s/seperately/separately
Jens Schweikhardt [Tue, 6 Aug 2002 20:36:02 +0000 (20:36 +0000)]
Typo: s/seperately/separately

PR: misc/41235
Submitted by: Fesskat Tudeer <freebsd-fesskat@fesskat.org>
MFC after: 3 days

21 years agoFix -o ac(reg|dir)(min|max) options. The appropriate flags weren't
Semen Ustimenko [Tue, 6 Aug 2002 20:26:30 +0000 (20:26 +0000)]
Fix -o ac(reg|dir)(min|max) options. The appropriate flags weren't
translated from ALTF_* to NFSMNT_* thus these options weren't accepted
by kernel.

PR: bin/30334
MFC after: 1 week

21 years agoOur awk does not implement the ARGIND variable, so we were attempting
Ian Dowse [Tue, 6 Aug 2002 19:31:04 +0000 (19:31 +0000)]
Our awk does not implement the ARGIND variable, so we were attempting
to parse the binary .kld file as a list of symbols. Fix this by
simply deleting the unwanted argument from the ARGV[] array instead
of trying to skip over it.

21 years agoSet the ident field of the struct kevent that is registered by _aio_aqueue()
Alan Cox [Tue, 6 Aug 2002 19:01:08 +0000 (19:01 +0000)]
Set the ident field of the struct kevent that is registered by _aio_aqueue()
to the address of the user's aiocb rather than the kernel's aiocb.  (In other
words, prior to this change, the ident field returned by kevent(2) on
completion of an AIO was effectively garbage.)

Submitted by: Romer Gil <rgil@cs.rice.edu>

21 years agoRemove new console devices with cnremove before initializing them in
Jake Burkholder [Tue, 6 Aug 2002 18:56:41 +0000 (18:56 +0000)]
Remove new console devices with cnremove before initializing them in
cninit.  This allows a console driver to replace the existing console
by calling cninit again, eg during the device probe.  Otherwise the
multiple console code sends output to both, which is unfortunate if
they're using the same hardware.

21 years agoprintf() formats fixes
Max Khon [Tue, 6 Aug 2002 17:00:02 +0000 (17:00 +0000)]
printf() formats fixes

21 years agoNew release notes: SA-02:35, SA-02:36, SA-02:37.
Bruce A. Mah [Tue, 6 Aug 2002 15:44:55 +0000 (15:44 +0000)]
New release notes:  SA-02:35, SA-02:36, SA-02:37.

21 years agoTry harder to "set signal flags proprly [sic] for ast()". See rev.1.154.
Bruce Evans [Tue, 6 Aug 2002 15:22:09 +0000 (15:22 +0000)]
Try harder to "set signal flags proprly [sic] for ast()".  See rev.1.154.

21 years agoRegen.
Robert Watson [Tue, 6 Aug 2002 15:16:55 +0000 (15:16 +0000)]
Regen.

21 years agoRename mac_policy() to mac_syscall() to be more reflective of its
Robert Watson [Tue, 6 Aug 2002 15:15:53 +0000 (15:15 +0000)]
Rename mac_policy() to mac_syscall() to be more reflective of its
purpose.

Submitted by: cvance@tislabs.com
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years ago- Use time.h not sys/time.h.
Matthew N. Dodd [Tue, 6 Aug 2002 12:46:14 +0000 (12:46 +0000)]
- Use time.h not sys/time.h.
- Fix printf format errors.

Submitted by:  bde

21 years agoDon't automagically call vslock() from SYSCTL_OUT(). Instead, complain
Don Lewis [Tue, 6 Aug 2002 11:28:09 +0000 (11:28 +0000)]
Don't automagically call vslock() from SYSCTL_OUT().  Instead, complain
about calls to SYSCTL_OUT() made with locks held if the buffer has not
been pre-wired.  SYSCTL_OUT() should not be called while holding locks,
but if this is not possible, the buffer should be wired by calling
sysctl_wire_old_buffer() before grabbing any locks.

21 years agoUse the new docproj-jadetex port for disc#3. Previously, docproj was
Murray Stokely [Tue, 6 Aug 2002 08:25:03 +0000 (08:25 +0000)]
Use the new docproj-jadetex port for disc#3.  Previously, docproj was
not included in its entirety because JADETEX was not defined.

21 years agoSort prototypes by function name.
Tim J. Robbins [Tue, 6 Aug 2002 06:26:06 +0000 (06:26 +0000)]
Sort prototypes by function name.

21 years agoConnect bmtphy to the mii module build.
Benno Rice [Tue, 6 Aug 2002 06:09:47 +0000 (06:09 +0000)]
Connect bmtphy to the mii module build.

Forgotten a long time ago by: benno

21 years agoWhitespace formatting changes: line up macro bodies, function names,
Tim J. Robbins [Tue, 6 Aug 2002 05:19:33 +0000 (05:19 +0000)]
Whitespace formatting changes: line up macro bodies, function names,
place tabs after #define and typedef. Sort typedefs by name.

Requested by: mike

21 years agoBuild iswctype.c and manual pages for the functions it defines.
Tim J. Robbins [Tue, 6 Aug 2002 00:49:59 +0000 (00:49 +0000)]
Build iswctype.c and manual pages for the functions it defines.

21 years agoRemove Australia from list of locations supposedly having a bank
Greg Lehey [Mon, 5 Aug 2002 23:54:22 +0000 (23:54 +0000)]
Remove Australia from list of locations supposedly having a bank
holiday on 6 August.  Since this claim isn't dependent on the weekday,
I have my strong doubts about the other locations too, but I can't
confirm, so I'm leaving them in.

21 years agoHandle PMTU discovery in syn-ack packets slightly differently;
Mike Silbersack [Mon, 5 Aug 2002 22:34:15 +0000 (22:34 +0000)]
Handle PMTU discovery in syn-ack packets slightly differently;
rely on syncache flags instead of directly accessing the route
entry.

MFC after: 3 days

21 years agoFix typo in vnode flags causing deadlock in msdosfs_fsync().
Pierre Beyssac [Mon, 5 Aug 2002 21:07:30 +0000 (21:07 +0000)]
Fix typo in vnode flags causing deadlock in msdosfs_fsync().

Reviewed by: jeff

21 years agoo Fix a memory leak.
Mike Barcroft [Mon, 5 Aug 2002 19:36:09 +0000 (19:36 +0000)]
o Fix a memory leak.
o Rewrite validmsgverb() so that it works (I'm not sure how it escaped
  my original testing).
o Document nextcomp().

21 years ago o The introduction of kevent() broke lio_listio(): _aio_aqueue() thought
Alan Cox [Mon, 5 Aug 2002 19:14:27 +0000 (19:14 +0000)]
 o The introduction of kevent() broke lio_listio(): _aio_aqueue() thought
   that LIO_READ and LIO_WRITE were requests for kevent()-based
   notification of completion.  Modify _aio_aqueue() to recognize LIO_READ
   and LIO_WRITE.

Notes: (1) The patch provided by the PR perpetuates a second bug in this
code, a direct access to user-space memory.  This change fixes that bug
as well. (2) This change is to code that implements a deprecated interface.
It should probably be removed after an MFC.

PR: kern/39556

21 years agoNetBSD style fixes.
Wolfram Schneider [Mon, 5 Aug 2002 18:58:46 +0000 (18:58 +0000)]
NetBSD style fixes.

PR:  misc/41164
Submitted by: Bang Jun-Young <junyoung@netbsd.org>

21 years agoMake driver portable:
Max Khon [Mon, 5 Aug 2002 18:14:16 +0000 (18:14 +0000)]
Make driver portable:
- bus_space'ify
- generate fake ethernet address using read_random() instead of reading
from timer i/o ports

Other minor fixes:
- remove "hack" in connect_to_master()
- use M_ZERO
- remove unused variable in sbni_ioctl()
- properly release irq in sbni_attach_isa() on attach errors

21 years agoDon't call softdep_slowdown() if soft updates are not active on the
Ian Dowse [Mon, 5 Aug 2002 17:59:20 +0000 (17:59 +0000)]
Don't call softdep_slowdown() if soft updates are not active on the
filesystem. This causes a panic for kernels compiled without
softupdates.

Reported by: luigi

21 years ago1) Use "pathstring" instead of "STRING" consistently.
Yaroslav Tykhiy [Mon, 5 Aug 2002 17:34:15 +0000 (17:34 +0000)]
1) Use "pathstring" instead of "STRING" consistently.
2) Remove unneeded "if not NULL" props from "pathstring",
   which will never be NULL by the lexer design.

Inspired by: OpenBSD
MFC after: 1 week

21 years agoback out one change that crept in (will be committed later)
Max Khon [Mon, 5 Aug 2002 17:32:16 +0000 (17:32 +0000)]
back out one change that crept in (will be committed later)

21 years agostyle fixes
Max Khon [Mon, 5 Aug 2002 17:20:17 +0000 (17:20 +0000)]
style fixes

21 years agoStop eating all process memory if either of ${.CURDIR}/../kerberosIV
Ruslan Ermilov [Mon, 5 Aug 2002 16:57:43 +0000 (16:57 +0000)]
Stop eating all process memory if either of ${.CURDIR}/../kerberosIV
or ${.CURDIR}/../kerberos5 does not exist.

Spotted by: Alexandr Listopad <laa@reis.zp.ua>
MFC after: 3 days

21 years agoThe side effect of revision 1.687 (env -i) was that many useful knobs
Ruslan Ermilov [Mon, 5 Aug 2002 16:46:14 +0000 (16:46 +0000)]
The side effect of revision 1.687 (env -i) was that many useful knobs
are no longer propagated to the chrooted environment, e.g. NOKERBEROS.
On the other hand, TMPDIR and MAKEOBJDIRPREFIX should no longer be.

Spotted by: Alexandr Listopad <laa@reis.zp.ua>

21 years agoFix some style bugs.
Mike Barcroft [Mon, 5 Aug 2002 16:37:05 +0000 (16:37 +0000)]
Fix some style bugs.

Submitted by: bde

21 years agoThis commit was generated by cvs2svn to compensate for changes in r101386,
Jacques Vidrine [Mon, 5 Aug 2002 16:25:17 +0000 (16:25 +0000)]
This commit was generated by cvs2svn to compensate for changes in r101386,
which included commits to RCS files with non-trunk default branches.

21 years agoCorrect a bug in the ASN.1 decoder which was introduced with the
Jacques Vidrine [Mon, 5 Aug 2002 16:25:17 +0000 (16:25 +0000)]
Correct a bug in the ASN.1 decoder which was introduced with the
recent OpenSSL update.

Obtained from: OpenSSL CVS

21 years agoDo login cap calls _before_ descriptors are hardly closed because close may
Andrey A. Chernov [Mon, 5 Aug 2002 16:06:35 +0000 (16:06 +0000)]
Do login cap calls _before_ descriptors are hardly closed because close may
invalidate login cap descriptor.

Reviewed by: des

21 years agoCheck the far end before registering an EVFILT_WRITE filter on a pipe.
Dag-Erling Smørgrav [Mon, 5 Aug 2002 15:03:03 +0000 (15:03 +0000)]
Check the far end before registering an EVFILT_WRITE filter on a pipe.

21 years agoRemove extra space in output.
Matthew N. Dodd [Mon, 5 Aug 2002 14:56:20 +0000 (14:56 +0000)]
Remove extra space in output.

21 years agoSince GLOB_NOCHECK is set in the glob(3) call,
Yaroslav Tykhiy [Mon, 5 Aug 2002 14:40:38 +0000 (14:40 +0000)]
Since GLOB_NOCHECK is set in the glob(3) call,
glob(3) will return at least one pathname unless
a system error has occured.  It's not a "not found"
error otherwise.

MFC after: 3 days

21 years agoSpot places where "pathname" hasn't been checked
Yaroslav Tykhiy [Mon, 5 Aug 2002 14:26:40 +0000 (14:26 +0000)]
Spot places where "pathname" hasn't been checked
for NULL.  The "pathname" rule may return NULL
on a glob(3) error.

Obtained from: OpenBSD
MFC after: 1 week

21 years agoDisallow invalid numeric mode values for SITE CHMOD.
Yaroslav Tykhiy [Mon, 5 Aug 2002 14:10:57 +0000 (14:10 +0000)]
Disallow invalid numeric mode values for SITE CHMOD.
Earlier, a decimal number (e.g., 890) could be passed
for mode, leading to dangerous permissions set:
-1, that is, 07777.

Obtained from: OpenBSD
MFC after: 1 week

21 years agoReflect in the ftpd(8) manpage the fact that ASCII SIZE
Yaroslav Tykhiy [Mon, 5 Aug 2002 13:37:18 +0000 (13:37 +0000)]
Reflect in the ftpd(8) manpage the fact that ASCII SIZE
requests against large files will be denied.

MFC after: 10 days

21 years agoMake sure to set the DMA transfer length register, plus one
Mike Silbersack [Mon, 5 Aug 2002 13:24:06 +0000 (13:24 +0000)]
Make sure to set the DMA transfer length register, plus one
small style fix.

Submitted by: Thomas Nystrom <thn@saeab.se>

21 years agoDiff reduction.
Matthew N. Dodd [Mon, 5 Aug 2002 13:23:41 +0000 (13:23 +0000)]
Diff reduction.

21 years agoUse timespec not timeval.
Matthew N. Dodd [Mon, 5 Aug 2002 12:22:55 +0000 (12:22 +0000)]
Use timespec not timeval.

21 years agoAdd missing prototypes for extension functions to the SYNOPSIS.
Tim J. Robbins [Mon, 5 Aug 2002 11:02:04 +0000 (11:02 +0000)]
Add missing prototypes for extension functions to the SYNOPSIS.

21 years agoUse In macro instead of Fd. Add crossref to wctype(3). Refer to 1003.1-2001
Tim J. Robbins [Mon, 5 Aug 2002 10:50:39 +0000 (10:50 +0000)]
Use In macro instead of Fd. Add crossref to wctype(3). Refer to 1003.1-2001
in STANDARDS section. Document functions which are extensions to the standard.

21 years agoUse the In macro instead of Fd. Add crossref to wctrans(3). Refer to
Tim J. Robbins [Mon, 5 Aug 2002 10:48:05 +0000 (10:48 +0000)]
Use the In macro instead of Fd. Add crossref to wctrans(3). Refer to
1003.1-2001 in STANDARDS section.

21 years agoImplement the missing <wctype.h> functions: isw*() (iswalnum() etc.),
Tim J. Robbins [Mon, 5 Aug 2002 10:45:23 +0000 (10:45 +0000)]
Implement the missing <wctype.h> functions: isw*() (iswalnum() etc.),
towlower() and towupper() required by ISO C90 Amd. 1.

iswascii(), iswhexnumber(), iswideogram(), iswnumber(), iswphonogram(),
iswrune() and iswspecial() have also been implemented for consistency
with the BSD extensions in <ctype.h>.

21 years ago - Document more of the struct vnode locking protocol.
Jeff Roberson [Mon, 5 Aug 2002 10:25:56 +0000 (10:25 +0000)]
 - Document more of the struct vnode locking protocol.
 - Slightly reformat a comment block.

21 years ago - Move some logic from getnewvnode() to a new function vcanrecycle()
Jeff Roberson [Mon, 5 Aug 2002 10:15:56 +0000 (10:15 +0000)]
 - Move some logic from getnewvnode() to a new function vcanrecycle()
 - Unlock the free list mutex around vcanrecycle to prevent a lock order
   reversal.

21 years agoReject encoding > ENCODING_LEN at early stage instead of truncating it.
Andrey A. Chernov [Mon, 5 Aug 2002 09:58:45 +0000 (09:58 +0000)]
Reject encoding > ENCODING_LEN at early stage instead of truncating it.
Use ptr == NULL instead of !ptr in few places.
Move saverr declaration to global section.

21 years ago - Move a VOP assert to the right place.
Jeff Roberson [Mon, 5 Aug 2002 08:55:53 +0000 (08:55 +0000)]
 - Move a VOP assert to the right place.

Spotted by: i386 tinderbox

21 years ago - Add a missing VI_UNLOCK to an error case in nfs_flush.
Jeff Roberson [Mon, 5 Aug 2002 08:54:29 +0000 (08:54 +0000)]
 - Add a missing VI_UNLOCK to an error case in nfs_flush.

21 years agoAn empty CPUTYPE now means ``the default CPUTYPE'' in bsd.cpu.mk.
Ruslan Ermilov [Mon, 5 Aug 2002 08:54:26 +0000 (08:54 +0000)]
An empty CPUTYPE now means ``the default CPUTYPE'' in bsd.cpu.mk.
If there was no CPUTYPE assignment in /etc/make.conf, this would
cause the ``CPUTYPE assignment type'' check to falsely fail.

Reported by: johan

Fixed this by making sure we always pass the non-empty CPUTYPE.
Also make sure we use the correct set of share/mk files in our
test.

21 years agoSuppress spurious warning messages about rm -rf TEMPROOT failing
Doug Barton [Mon, 5 Aug 2002 08:47:52 +0000 (08:47 +0000)]
Suppress spurious warning messages about rm -rf TEMPROOT failing
before chflags, and exit non-zero if the old TEMPROOT dir
can't be deleted for whatever reason.

21 years agoManual pages for wide character classification (isw*) and case conversion
Tim J. Robbins [Mon, 5 Aug 2002 08:04:58 +0000 (08:04 +0000)]
Manual pages for wide character classification (isw*) and case conversion
(tow*) functions from NetBSD, unmodified except for the addition of $FreeBSD$.

Obtained from: NetBSD

21 years agoFix minor typo in ID number in last commit
Warner Losh [Mon, 5 Aug 2002 07:48:31 +0000 (07:48 +0000)]
Fix minor typo in ID number in last commit

21 years agoUse wi_ltv_domains struct to print domains
Warner Losh [Mon, 5 Aug 2002 07:46:22 +0000 (07:46 +0000)]
Use wi_ltv_domains struct to print domains

21 years agoA definition of regulatory domains that matches the docs.
Warner Losh [Mon, 5 Aug 2002 07:45:57 +0000 (07:45 +0000)]
A definition of regulatory domains that matches the docs.

21 years agoAdd more (possibly useless) information to wicontrol's output (maybe
Warner Losh [Mon, 5 Aug 2002 07:36:11 +0000 (07:36 +0000)]
Add more (possibly useless) information to wicontrol's output (maybe
some of these need to be enabled for an extra verbose mode or
something):
o Try to print the dBm comms quality.  This may or may not be available
  for your card in your configuration.
o Print the PRI Id and STA Id.  These are in the raw format, so might
  be a little hard to read.
o Print CardID so that we can know exactly what kind of card the
  user has (this is important if you download firmware to it).
o Regulatory domains are now printed for the card.
o Temp range is printed.
o If you define WI_EXTRA_INFO you get more garbage than is listed
  here that you need the manual to decode.
o Channel list is now printed in hex for easier decoding.  This has
  lead to my discovery that my US symbol card supports channels 12-14
  as well as 1-11, which is not allowed in the us/canada.

This ain't pretty, but it isn't horrible either.

21 years agoDifferentiate between AT45DB011 compatible large serial flash parts
Warner Losh [Mon, 5 Aug 2002 07:24:02 +0000 (07:24 +0000)]
Differentiate between AT45DB011 compatible large serial flash parts
and the AT24C08 small serial flash parts.  We still report these as
the same part (since we group things already), but now we recognize
the small serial versions as well.

21 years agoAdd a comment that says it looks like lucent cards have a primary
Warner Losh [Mon, 5 Aug 2002 07:19:27 +0000 (07:19 +0000)]
Add a comment that says it looks like lucent cards have a primary
firmware revision as well (not sure which firmware versions are needed
for this, but the 6.x and 8.x 'software' versions that I have seem to
support it).

Add dBm comm quality RID.  This is like the normal comm quality rid,
except the signal and noise numbers are normalized to dBm.  Some
revisions of the prism firmware, however, don't support this RID, and
some that do support it return 0 for quality and/or noise.  Your
milage may vary.

21 years agoImplement POSIX.1-2001 (XSI)'s fmtmsg(3).
Mike Barcroft [Mon, 5 Aug 2002 06:49:58 +0000 (06:49 +0000)]
Implement POSIX.1-2001 (XSI)'s fmtmsg(3).

21 years agoRevert rev 1.356 and 1.352 (pmap_mapdev hacks). It wasn't worth the
Peter Wemm [Mon, 5 Aug 2002 06:10:03 +0000 (06:10 +0000)]
Revert rev 1.356 and 1.352 (pmap_mapdev hacks).  It wasn't worth the
pain.

21 years agoAdd a macro for SLIST traversal 'SLIST_FOREACH_PREVPTR',
Alfred Perlstein [Mon, 5 Aug 2002 05:18:43 +0000 (05:18 +0000)]
Add a macro for SLIST traversal 'SLIST_FOREACH_PREVPTR',
this macro keeps a pointer to the previous element's next
pointer to allow for search and O(1) removal.

21 years agoCleanup:
Alfred Perlstein [Mon, 5 Aug 2002 05:16:09 +0000 (05:16 +0000)]
Cleanup:
Fix line wrapping.
Remove 'register'.
malloc(9) with M_WAITOK can't fail, so remove checks for that.

21 years ago o Introduce pmap_page_is_mapped(). Its purpose is to obsolete
Alan Cox [Mon, 5 Aug 2002 03:40:28 +0000 (03:40 +0000)]
 o Introduce pmap_page_is_mapped().  Its purpose is to obsolete
   the PG_MAPPED flag.

21 years agoFix a couple DESTDIR related problems. Credit for the "Only in" section
Doug Barton [Mon, 5 Aug 2002 01:03:12 +0000 (01:03 +0000)]
Fix a couple DESTDIR related problems. Credit for the "Only in" section
goes to James <James_Bond_79@yahoo.com>, and Cyrille Lefevre
<cyrille.lefevre@laposte.net>. The make variables problem was found
by jon.

21 years agoUse m_getcl() to allocate buffers for the receive ring.
Luigi Rizzo [Mon, 5 Aug 2002 00:21:24 +0000 (00:21 +0000)]
Use m_getcl() to allocate buffers for the receive ring.

MFC after: 3 days

21 years ago o Don't set PG_MAPPED or PG_WRITEABLE when a page is mapped
Alan Cox [Mon, 5 Aug 2002 00:04:18 +0000 (00:04 +0000)]
 o Don't set PG_MAPPED or PG_WRITEABLE when a page is mapped
   using pmap_kenter() or pmap_qenter().
 o Use VM_ALLOC_WIRED in pmap_new_thread().

21 years agoExtend the interface to ether_input(): a NULL eh pointer means that
Luigi Rizzo [Sun, 4 Aug 2002 23:55:06 +0000 (23:55 +0000)]
Extend the interface to ether_input(): a NULL eh pointer means that
the mbuf contains the ethernet header (eh) as well, which ether_input()
will strip off as needed.

This permits the removal (in a backward compatible way) of the
header removal code which right now is replicated in all drivers,
sometimes in an inconsistent way. Also, because many functions
called after ether_input() require the eh in the mbuf, eventually
we can propagate the interface and handle outdated drivers just
in ether_input().

Individual driver changes to use the new interface will follow as
we have a chance to touch them.

NOTE THAT THIS CHANGE IS FULLY BACKWARD COMPATIBLE AND DOES NOT BREAK
BINARY COMPATIBILITY FOR DRIVERS.

MFC after: 3 days

21 years agoFix handling of Receiver Not Ready errors when doing polling.
Luigi Rizzo [Sun, 4 Aug 2002 22:33:28 +0000 (22:33 +0000)]
Fix handling of Receiver Not Ready errors when doing polling.
Also take this chance to cleanup the code in fxp_intr_body.

Add a missing block of code to disable interrupts when
reinitializing the interface while doing polling (the RELENG_4
version was correct).

MFC after: 3 days

21 years agoKerberos 5 no longer needs -lmd
Max Khon [Sun, 4 Aug 2002 22:23:48 +0000 (22:23 +0000)]
Kerberos 5 no longer needs -lmd

Approved by: nectar

21 years agoPass envp to crunched program's main() routines as some depend on it.
Gregory Neil Shapiro [Sun, 4 Aug 2002 22:14:44 +0000 (22:14 +0000)]
Pass envp to crunched program's main() routines as some depend on it.
Note that crunchgen's stub .c programs already have the code to use it:

    "int _crunched_%s_stub(int argc, char **argv, char **envp)"
    "{return main(argc,argv,envp);}\" >%s_stub.c\n",

Add $FreeBSD$ to allow the commit.

Reviewed by: luigi
MFC after: 3 days