]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoMaking a loadable null.ko for /dev/(null|zero) proved rather
markm [Tue, 3 Aug 2004 19:24:54 +0000 (19:24 +0000)]
Making a loadable null.ko for /dev/(null|zero) proved rather
unpopular, so remove this (mis)feature.

Encouragement provided by: jhb (and others)

20 years agoCorrect the description of the MFLAGS and .MAKEFLAGS variables. Add
harti [Tue, 3 Aug 2004 19:14:14 +0000 (19:14 +0000)]
Correct the description of the MFLAGS and .MAKEFLAGS variables. Add
the MFLAGS target. Document that variable assignments from the MAKEFLAGS
environment variable and the .MAKEFLAGS and .MFLAGS target have the
same precedence as command line variable assignments.

20 years agoPut variable assignments from the command line into the MAKEFLAGS
harti [Tue, 3 Aug 2004 18:56:31 +0000 (18:56 +0000)]
Put variable assignments from the command line into the MAKEFLAGS
variable as required by POSIX. This causes such variables to be
pushed into all sub-makes called by the make (except when the MAKEFLAGS
variable is explicitely changed in the sub-make's environment).
This makes them also mostly un-overrideable in sub-makes except on the
sub-make's command line. Therefor specifying 'make CC=icc' will cause
icc to be used as C compiler in all sub-makes no matter what the Makefiles
itself try to do to the CC variable.

This patch also corrects the handling of the MFLAGS variable. MFLAGS
contains all the command line flags but not the command line variable
assignments. The evaluation of the .MFLAGS or .MAKEFLAGS target now
changes both MFLAGS and MAKEFLAGS (they used to change MAKEFLAGS only).
Makefiles can use MFLAGS for their own purposes given that they do not
except MFLAGS to be undefined at the beginning and that they don't evaluate
.MFLAGS or .MAKEFLAGS. MFLAGS should be removed for POSIX compliance,
but it is unfortunately heavily used by the X makefiles.

This has been extensively tested by port builds (thanks to portmgr), new
worlds and kernels.

PR: standards/57295 (1st part above)
Submitted by: James E. Flemer <jflemer@alum.rpi.edu>
Approved by: portmgr
Obtained from: NetBSD (1st part above)
MFC after: 4 weeks

20 years agoInstead of calling ia32_pause() conditionally on __i386__ or __amd64__
mux [Tue, 3 Aug 2004 18:44:27 +0000 (18:44 +0000)]
Instead of calling ia32_pause() conditionally on __i386__ or __amd64__
being defined, define and use a new MD macro, cpu_spinwait().  It only
expands to something on i386 and amd64, so the compiled code should be
identical.

Name of the macro found by: jhb
Reviewed by: jhb

20 years agoTeach moused about Synaptics touchpads.
philip [Tue, 3 Aug 2004 18:43:45 +0000 (18:43 +0000)]
Teach moused about Synaptics touchpads.

While I'm here, document the existence of the '-l' option, which allows
one to use moused to use psm in some more interesting ways.

Approved by: njl (mentor)

20 years agoMake the SIGCHLD handler static and declare its argument
harti [Tue, 3 Aug 2004 18:43:43 +0000 (18:43 +0000)]
Make the SIGCHLD handler static and declare its argument
as unused, so that make can be compiled with WARNS=3 again.

20 years agoFix the ACPI_DEBUG case by removing a now unused variable.
njl [Tue, 3 Aug 2004 17:16:30 +0000 (17:16 +0000)]
Fix the ACPI_DEBUG case by removing a now unused variable.

20 years agoMinor cleanups:
wpaul [Tue, 3 Aug 2004 17:00:39 +0000 (17:00 +0000)]
Minor cleanups:

- Fix typo in comment
- Remember to free() sc->ndis_txarray on detach
- Remember to do an ifmedia_removeall() for ethernet devices

20 years agoFix comment.
pjd [Tue, 3 Aug 2004 15:41:33 +0000 (15:41 +0000)]
Fix comment.

20 years agoDon't skip permission checks when sending signals to zombie processes.
pjd [Tue, 3 Aug 2004 15:39:23 +0000 (15:39 +0000)]
Don't skip permission checks when sending signals to zombie processes.

Pointed out by: bde
Reviewed by: rwatson

20 years agoEnable packet mode by default. Disk drives have gotten so large now,
obrien [Tue, 3 Aug 2004 15:20:55 +0000 (15:20 +0000)]
Enable packet mode by default.  Disk drives have gotten so large now,
it is often the case the partition one wants to boot is above cylinder 1023.

20 years agoInitialize variables to fix kernel build on AMD64.
obrien [Tue, 3 Aug 2004 14:14:53 +0000 (14:14 +0000)]
Initialize variables to fix kernel build on AMD64.

20 years agoo Delayed checksums are now calculated in divert_packet() for diverted packets
andre [Tue, 3 Aug 2004 14:13:36 +0000 (14:13 +0000)]
o Delayed checksums are now calculated in divert_packet() for diverted packets
  Remove the XXX-escaped code that did it in ip_output()'s IPHACK section.

20 years agoThe inflight sysctls have moved to net.inet.tcp.inflight.*, so adjust
andre [Tue, 3 Aug 2004 14:06:12 +0000 (14:06 +0000)]
The inflight sysctls have moved to net.inet.tcp.inflight.*, so adjust
documentation accordingly.

20 years agoo Move the inflight sysctls to their own sub-tree under net.inet.tcp to be
andre [Tue, 3 Aug 2004 13:54:11 +0000 (13:54 +0000)]
o Move the inflight sysctls to their own sub-tree under net.inet.tcp to be
  more consistent with the other sysctls around it.

20 years agoUse lang="ru"
den [Tue, 3 Aug 2004 13:32:33 +0000 (13:32 +0000)]
Use lang="ru"

Obtained from: The FreeBSD Russian Documentation Project

20 years agoMerge from recent English versions
den [Tue, 3 Aug 2004 13:12:11 +0000 (13:12 +0000)]
Merge from recent English versions

Obtained from: The FreeBSD Russian Documentation Project

20 years agoo Move all parts of the IP reassembly process into the function ip_reass() to
andre [Tue, 3 Aug 2004 12:31:38 +0000 (12:31 +0000)]
o Move all parts of the IP reassembly process into the function ip_reass() to
  make it fully self-contained.
o ip_reass() now returns a new mbuf with the reassembled packet and ip->ip_len
  including the IP header.
o Computation of the delayed checksum is moved into divert_packet().

Reviewed by: silby

20 years agoMinor typo fix
den [Tue, 3 Aug 2004 12:16:44 +0000 (12:16 +0000)]
Minor typo fix

20 years agoAdd Wiretek UBRJ4 to the list of supported devices.
simon [Tue, 3 Aug 2004 10:18:33 +0000 (10:18 +0000)]
Add Wiretek UBRJ4 to the list of supported devices.

Submitted by: Soeren Vrist <seet@seet.dk>

20 years agoAdd regression tests for TLS.
dfr [Tue, 3 Aug 2004 09:04:01 +0000 (09:04 +0000)]
Add regression tests for TLS.

20 years agoUse RFC 3849 address for examples.
ume [Tue, 3 Aug 2004 08:58:34 +0000 (08:58 +0000)]
Use RFC 3849 address for examples.

Pointed out by: mistral@imasy.or.jp
MFC after: 1 week

20 years agoAdd stubs for TLS functions. These will be replaced at runtime by the
dfr [Tue, 3 Aug 2004 08:54:01 +0000 (08:54 +0000)]
Add stubs for TLS functions. These will be replaced at runtime by the
functional versions in rtld.

20 years agoAdd support for Thread Local Storage.
dfr [Tue, 3 Aug 2004 08:51:00 +0000 (08:51 +0000)]
Add support for Thread Local Storage.

20 years agoallow ::1 explicitly.
ume [Tue, 3 Aug 2004 08:47:35 +0000 (08:47 +0000)]
allow ::1 explicitly.

Pointed out by: mistral@imasy.or.jp
MFC after: 1 week

20 years agoAdd style(9) foolishness.
dfr [Tue, 3 Aug 2004 08:21:48 +0000 (08:21 +0000)]
Add style(9) foolishness.

20 years agoImplement minimalistic L2TP sessions statistics and correct man page
bz [Tue, 3 Aug 2004 06:52:55 +0000 (06:52 +0000)]
Implement minimalistic L2TP sessions statistics and correct man page
for L2TP tunnel statistics (which do not take an argument sessionID).

Reviewed by: archie
Approved by: pjd (mentor)

20 years agoUse the slot, not an otherwise unused index variable as the probe offset.
njl [Tue, 3 Aug 2004 06:48:36 +0000 (06:48 +0000)]
Use the slot, not an otherwise unused index variable as the probe offset.
This passed testing because the variable happened to be 0 in most cases.

Compile warning found by: David Syphers <dsyphers AT u.washington.edu>

20 years agoadd a new control message to set sequence numbers on an uninitialized node.
bz [Tue, 3 Aug 2004 06:45:38 +0000 (06:45 +0000)]
add a new control message to set sequence numbers on an uninitialized node.

Reviewed by: archie
Approved by: pjd (mentor)

20 years agoWhitespace nit.
ru [Tue, 3 Aug 2004 06:40:04 +0000 (06:40 +0000)]
Whitespace nit.

OK'ed by: kan

20 years agoCorrect L2TP header offset handling:
bz [Tue, 3 Aug 2004 06:37:46 +0000 (06:37 +0000)]
Correct L2TP header offset handling:
- according to RFC2661 an offset size of 0 is allowed.
- when skipping offset padding do not forget to also skip
  the 2 octets of the offset size field.

Reviewed by: archie
Approved by: pjd (mentor)

20 years agoDo not change link[n].conf.latency for internal usage but have
bz [Tue, 3 Aug 2004 06:34:55 +0000 (06:34 +0000)]
Do not change link[n].conf.latency for internal usage but have
link[n].latency calculated from user supplied value.
This prevents repeated NGM_PPP_SET_CONFIG/NGM_PPP_GET_CONFIG
from failing because of link[n].conf.latency being out of range.

Reviewed by: archie
Approved by: pjd (mentor)

20 years agoadopt structs to reflect code change from May 2000 for
bz [Tue, 3 Aug 2004 06:31:30 +0000 (06:31 +0000)]
adopt structs to reflect code change from May 2000 for
NGM_PPP_SET_CONFIG/NGM_PPP_GET_CONFIG.

Reviewed by: archie
Approved by: pjd (mentor)

20 years agoGNU and POSIX disagree about -o and -l.
kientzle [Tue, 3 Aug 2004 06:19:08 +0000 (06:19 +0000)]
GNU and POSIX disagree about -o and -l.

For -l, upset everyone by breaking it.  Specifically, -l now produces
a lengthy error message that suggests --check-links (POSIX -l) or
--one-file-system (GNU -l) instead.  However, if POSIXLY_CORRECT is set,
use the POSIX interpretation.

For -o, please everyone by making it work both ways:
  * -xo uses POSIX behavior
  * -co uses "almost GNU" behavior (as close as we can get until
    libarchive implements a true V7 tar format)

20 years agoForced commit to note intended log message for previous revision:
njl [Tue, 3 Aug 2004 05:15:56 +0000 (05:15 +0000)]
Forced commit to note intended log message for previous revision:

Cleanup to prepare for locking commit.  Add comments, clarify printfs,
remove old unused locking macros.  Additional changes:

* Remove an old workaround for the bug in AcpiEnterSleepState() that
  caused it to return with the hardware mutex still held.  It no longer
  can fail this way.
* Remove ACPI_DEBUGGER checkpoints in the probe.  We have a reasonably
  stable probe/attach process now.
* Use an sbuf instead of sprintf/strcat for a sysctl.  Also, use strlcpy
  instead of a bzero/strncpy.
* Simplify acpi_name, acpi_Enable, and acpi_Disable.
* Don't bzero the softc

20 years ago/tmp/m
njl [Tue, 3 Aug 2004 05:13:56 +0000 (05:13 +0000)]
/tmp/m

20 years agoRemove race condition between reading of MSR, setting md_savecrit,
grehan [Tue, 3 Aug 2004 04:14:55 +0000 (04:14 +0000)]
Remove race condition between reading of MSR, setting md_savecrit,
and setting MSR. This was most evident with the idle proc running
with interrupts disabled and causing a lockup. Switch over to the
i386 style which does things in the right order.

debug assisted by:  gallatin, and the invaluable KTR option.

20 years agoStandardize pipe locking, ensuring that everything is locked via
silby [Tue, 3 Aug 2004 02:59:15 +0000 (02:59 +0000)]
Standardize pipe locking, ensuring that everything is locked via
pipelock(), not via a mixture of mutexes and pipelock().  Additionally,
add a few KASSERTS, and change some statements that should have been
KASSERTS into KASSERTS.

As a result of these cleanups, some segments of code have become
significantly shorter and/or easier to read.

20 years agoRemove redundant definition.
davidxu [Tue, 3 Aug 2004 02:39:24 +0000 (02:39 +0000)]
Remove redundant definition.

20 years agos/TMDF_DONOTRUNUSER/TMDF_SUSPEND/g
davidxu [Tue, 3 Aug 2004 02:23:06 +0000 (02:23 +0000)]
s/TMDF_DONOTRUNUSER/TMDF_SUSPEND/g

Dicussed with: deischen

20 years agoFix bug with tracking the previous element in a list.
hsu [Tue, 3 Aug 2004 02:01:44 +0000 (02:01 +0000)]
Fix bug with tracking the previous element in a list.

Found by: edrt@citiz.net
Submitted by: pavlin@icir.org

20 years agoRepeat after me:
julian [Tue, 3 Aug 2004 01:43:29 +0000 (01:43 +0000)]
Repeat after me:
"Do not apply your tested patches to your commit tree by hand"

20 years agoChange EISA probing to be less invasive. Instead of probing all slots
njl [Tue, 3 Aug 2004 00:41:47 +0000 (00:41 +0000)]
Change EISA probing to be less invasive.  Instead of probing all slots
unconditionally, stop after the first one (system board) if no EISA hardware
is detected.  This fixes a boot hang (i.e. Thinkpad) when ACPI is disabled.
Also, split the probe code into a separate function and do some style cleanup.

Note that the Adaptec 2842 VLB controller probe is broken by this change
and will fail to probe.  It should be fixed separately.

20 years agoRemove an argument that is never used.
julian [Mon, 2 Aug 2004 23:48:43 +0000 (23:48 +0000)]
Remove an argument that is never used.

20 years agoAdd the PM1564 to the list of supported controllers.
marius [Mon, 2 Aug 2004 23:33:15 +0000 (23:33 +0000)]
Add the PM1564 to the list of supported controllers.

OK'ed by: scottl

20 years ago- Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP
marius [Mon, 2 Aug 2004 23:32:23 +0000 (23:32 +0000)]
- Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP
  in case of a CHECK CONDITION.
- Make this driver return SCSI status information.
- While here, factor out the clearing of the CAM status from every
  element of the switch statement to only once before the switch.

This fixes burning CDs with recent cdrecord 2.01 alpha versions and
burners attached to asr(4) controllers but there could have been
other applications and da(4) etc. also affected.

Reviewed by: gibbs, scottl
MFC after: 2 weeks

20 years agoMove the inclusion of libdisk.h from sysinstall.h to the source files
marcel [Mon, 2 Aug 2004 23:18:48 +0000 (23:18 +0000)]
Move the inclusion of libdisk.h from sysinstall.h to the source files
that actually need it. This makes it easier for a platform porter to
find the files that may need tweaking to support whatever MD specific
partitioning is needed. It also helps to prevent that the libdisk API
gets exposed and/or used where it's not needed.

20 years agoAdd some style(9) touch ups; style(9) states that new code should follow
trhodes [Mon, 2 Aug 2004 22:55:23 +0000 (22:55 +0000)]
Add some style(9) touch ups; style(9) states that new code should follow
these conventions and, well, this is a new driver.

Tested on: i386, sparc64
Reviewed by: scottl

20 years agoPut a cap on the auto-tuning of kern.maxvnodes.
obrien [Mon, 2 Aug 2004 21:52:43 +0000 (21:52 +0000)]
Put a cap on the auto-tuning of kern.maxvnodes.

Cap value chosen by: scottl

20 years agoReinstate a usb_transfer_complete() call that got lost in the
iedowse [Mon, 2 Aug 2004 20:53:31 +0000 (20:53 +0000)]
Reinstate a usb_transfer_complete() call that got lost in the
previous revision.

20 years agoAdd module versions.
markm [Mon, 2 Aug 2004 20:42:28 +0000 (20:42 +0000)]
Add module versions.

20 years agoDiff reduction WRT i386 version.
markm [Mon, 2 Aug 2004 20:36:47 +0000 (20:36 +0000)]
Diff reduction WRT i386 version.

20 years agoSort includes; minor whitespace.
markm [Mon, 2 Aug 2004 20:32:56 +0000 (20:32 +0000)]
Sort includes; minor whitespace.

20 years agoGo back to the historical minor numbers. Add a module version while
markm [Mon, 2 Aug 2004 19:59:41 +0000 (19:59 +0000)]
Go back to the historical minor numbers. Add a module version while
I'm here.

Asked for minor numbers by: jhb

20 years agoTypo in comment.
le [Mon, 2 Aug 2004 19:57:37 +0000 (19:57 +0000)]
Typo in comment.

20 years agoAdd Linux swap partition and MS reserved partition descriptions.
marcel [Mon, 2 Aug 2004 19:28:03 +0000 (19:28 +0000)]
Add Linux swap partition and MS reserved partition descriptions.
While here:
o  Make the UUIDs static to avoid runtime initialization,
o  Rename ext to mslinux,
o  Replace the use of memcmp() with uuid_equal(),
o  Various style(9) improvements,
o  Order the comparisons based on importance,
o  Remove the word partition from all the descriptions,
o  Other description improvements.

Includes patch from: T. Muthu Mohan < Muthu_T at dell dot com >

20 years agoWhat's in a name: s/disklabel/bsdlabel/
marcel [Mon, 2 Aug 2004 19:22:11 +0000 (19:22 +0000)]
What's in a name: s/disklabel/bsdlabel/

20 years agoReally back out rev 1.388.
obrien [Mon, 2 Aug 2004 19:21:51 +0000 (19:21 +0000)]
Really back out rev 1.388.

20 years agoIgnore geom_vinum providers.
le [Mon, 2 Aug 2004 19:14:58 +0000 (19:14 +0000)]
Ignore geom_vinum providers.

20 years agoAdd definitions for TLS relocations.
dfr [Mon, 2 Aug 2004 19:12:17 +0000 (19:12 +0000)]
Add definitions for TLS relocations.

20 years agoToday, RealTek sent me a driver to test which had been compiled with
wpaul [Mon, 2 Aug 2004 18:54:01 +0000 (18:54 +0000)]
Today, RealTek sent me a driver to test which had been compiled with
some debug support turned on. It turns out the sections in this driver
binary had relative virtual addresses (RVAs) that were different
from the raw addresses, and it had a .data section where the virtual size
was much larger than the raw size. (Most production binaries produced
with the Microsoft DDK have RVA == PA.)

There's code in the ndiscvt(8) utility that's supposed to handle
the vsize != rsize case, but it turns out it was slightly broken,
and it failed to handle the RVA != RA case at all. Hopefully, this
commit will fix all that.

20 years agoBack out 1.388.
obrien [Mon, 2 Aug 2004 18:48:14 +0000 (18:48 +0000)]
Back out 1.388.
Demanded by: jhb

20 years agoRemove GPT_ENT_TYPE_FREEBSD_UFS2. It was speculatively added before
marcel [Mon, 2 Aug 2004 18:46:52 +0000 (18:46 +0000)]
Remove GPT_ENT_TYPE_FREEBSD_UFS2. It was speculatively added before
UFS2 was here. It so happened that UFS2 did not need a seperate
partition type. Keep the definition as a comment for documentation
purposes. If there is a benefit for UFS2 file systems to have a
seperate partition type under GPT, then this definition should be
restored as that was the intention of the definition.

20 years agoFix 2 typos in previous commit: both s/strct/struct/
marcel [Mon, 2 Aug 2004 18:37:55 +0000 (18:37 +0000)]
Fix 2 typos in previous commit: both s/strct/struct/

20 years agoNew release notes (changes in the first half of July 2004):
hrs [Mon, 2 Aug 2004 18:24:58 +0000 (18:24 +0000)]
New release notes (changes in the first half of July 2004):
bus_dma(9) alignment and boundary compensation support,
kqueue(2) EVFILT_FS,
KDB framework,
sound and snd_* driver reorganization,
natd(8) globalports option[*],
ppp(8) LQM support[*] and "rad_alive N" option,
GEOM_STRIPE FAST mode support,
MSDOSFS_LARGE[*],
ALTQ framework support added to various network drivers[*],
bsdtar(1) now the default tar(1) utility,
cvs(1) iso8601 option keyword,
multibyte characters support:
fgetwln(3), join(1), nextwctype(3), od(1), regex(3), rev(1),
sed(1) 'y' command, and tr(1),
ftw(3) and nftw(3) implemented,
C99 functions: nearbyint(3),
am-utils 6.0.9->6.0.10p1 import,
GNU grep 2.4d->2.5.1 import, and
tcsh 6.11->6.13.00 import.

MFC:
IPFilter 3.4.31->3.4.35.

[*]Based on work by: josef

20 years agoDon't build and install a mem.ko module.
obrien [Mon, 2 Aug 2004 18:14:06 +0000 (18:14 +0000)]
Don't build and install a mem.ko module.
Currently one cannot load the mem.ko module without panicing if mem is
compiled into the kernel and one cannot build a kernel w/o "device mem"
right now either.  Thus it is too dangerous to install mem.ko right now
because if one puts 'mem_load="YES"' in /etc/loader.conf they cannot
boot an "old" kernel (at the time that a kernel doesn't have to be built
with "device mem).

20 years agoAdd the mem and null devices now that they are optional.
marcel [Mon, 2 Aug 2004 17:53:06 +0000 (17:53 +0000)]
Add the mem and null devices now that they are optional.

20 years agoSort the miscellaneous devices to restore ordering after the insertion
marcel [Mon, 2 Aug 2004 17:50:39 +0000 (17:50 +0000)]
Sort the miscellaneous devices to restore ordering after the insertion
of the mem and null devices.

20 years agoMake the USB subsystem unloadable and detachable, though currently
iedowse [Mon, 2 Aug 2004 15:37:35 +0000 (15:37 +0000)]
Make the USB subsystem unloadable and detachable, though currently
a significant amount of memory may be leaked each time a host
controller is detached.

20 years agoOptimize intr_execute_handlers() by combining the pic_disable_source() and
scottl [Mon, 2 Aug 2004 15:31:10 +0000 (15:31 +0000)]
Optimize intr_execute_handlers() by combining the pic_disable_source() and
pic_eoi_source() into one call.  This halves the number of spinlock operations
and indirect function calls in the normal case of handling a normal (ithread)
interrupt.  Optimize the atpic and ioapic drivers to use inlines where
appropriate in supporting the intr_execute_handlers() change.

This knocks 900ns, or roughly 1350 cycles, off of the time spent servicing an
interrupt in the common case on my 1.5GHz P4 uniprocessor system.  SMP systems
likely won't see as much of a gain due to the ioapic being more efficient than
the atpic.  I'll investigate porting this to amd64 soon.

Reviewed by: jhb

20 years agoWhen searching for a suitable block of memory on the free list,
iedowse [Mon, 2 Aug 2004 13:59:02 +0000 (13:59 +0000)]
When searching for a suitable block of memory on the free list,
skip blocks that are too big by a factor of two or greater. This
avoids some cases of extremely inefficient memory use that can occur
when large (e.g. 64k) blocks on the free list get used when allocating
a 4k chunk of 64-byte fragments. Because fragments have their own
free list, the 60k difference got lost forever every time.

20 years agoAttempt to follow the correct procedure for synchronising with the
iedowse [Mon, 2 Aug 2004 12:56:01 +0000 (12:56 +0000)]
Attempt to follow the correct procedure for synchronising with the
system BIOS to disable legacy device emulation as per the "EHCI
Extended Capability: Pre-OS to OS Handoff Synchronisation" section
of the EHCI spec. BIOSes that implement legacy emulation using SMIs
are supposed to disable the emulation when this procedure is performed.

20 years agoRemove la_LN.* from the list of bogus locales. They're incomplete, but
tjr [Mon, 2 Aug 2004 12:50:12 +0000 (12:50 +0000)]
Remove la_LN.* from the list of bogus locales. They're incomplete, but
still potentially useful.

20 years agoExclude bogus la_LN.* and UTF-8 locales from the output of locale -a
tjr [Mon, 2 Aug 2004 12:28:28 +0000 (12:28 +0000)]
Exclude bogus la_LN.* and UTF-8 locales from the output of locale -a
to discourage people from using them.

20 years ago*blush*
cognet [Mon, 2 Aug 2004 12:24:18 +0000 (12:24 +0000)]
*blush*
Fix htonl and htons.

20 years agoFix comments.
cognet [Mon, 2 Aug 2004 12:23:53 +0000 (12:23 +0000)]
Fix comments.

Spotted out by: mux

20 years agoAdd cross-reference to fmt(1) and a fairly standard ENVIRONMENT section.
tjr [Mon, 2 Aug 2004 11:15:01 +0000 (11:15 +0000)]
Add cross-reference to fmt(1) and a fairly standard ENVIRONMENT section.

20 years agoCross-reference fold(1).
tjr [Mon, 2 Aug 2004 11:12:13 +0000 (11:12 +0000)]
Cross-reference fold(1).

20 years agoAdd support for multibyte characters.
tjr [Mon, 2 Aug 2004 11:10:20 +0000 (11:10 +0000)]
Add support for multibyte characters.

20 years agoRemove 'device mem' from GENERIC, which markm@ mistakingly added.
ssouhlal [Mon, 2 Aug 2004 11:08:48 +0000 (11:08 +0000)]
Remove 'device mem' from GENERIC, which markm@ mistakingly added.
We don't have mem/kmem yet.

Approved by: grehan (mentor)

20 years agoUnbreak DEVICE_POLLING build / LINT. Sorry!
mlaier [Mon, 2 Aug 2004 10:08:28 +0000 (10:08 +0000)]
Unbreak DEVICE_POLLING build / LINT. Sorry!

Submitted by: roam

20 years agoDon't use version number in library name. The library version is checked
pjd [Mon, 2 Aug 2004 09:05:29 +0000 (09:05 +0000)]
Don't use version number in library name. The library version is checked
after dlopen() anyway, so we should be safe.

Suggested by: ru

20 years agoRemove an implicit int parameter by using prototypes.
stefanf [Mon, 2 Aug 2004 08:46:23 +0000 (08:46 +0000)]
Remove an implicit int parameter by using prototypes.

20 years agoDon't pass function pointers via a void * parameter.
stefanf [Mon, 2 Aug 2004 08:18:43 +0000 (08:18 +0000)]
Don't pass function pointers via a void * parameter.

20 years ago- Signal handlers must have an int argument.
stefanf [Mon, 2 Aug 2004 08:10:28 +0000 (08:10 +0000)]
- Signal handlers must have an int argument.
- Use prototypes.
- Add a cast for a signed vs unsigned comparison.
- Mark as WARNS?=3 clean.

20 years agoImprove the wording of the last commit, and update the document date. (1)
murray [Mon, 2 Aug 2004 07:28:02 +0000 (07:28 +0000)]
Improve the wording of the last commit, and update the document date. (1)
While here, update an example.

(1) Submitted by: ru

20 years agoConsistently list _CPUCFLAGS.
obrien [Mon, 2 Aug 2004 04:19:22 +0000 (04:19 +0000)]
Consistently list _CPUCFLAGS.

20 years agoEliminate the acquisition and release of Giant around the call to
alc [Mon, 2 Aug 2004 03:31:05 +0000 (03:31 +0000)]
Eliminate the acquisition and release of Giant around the call to
pmap_mincore() in mincore(2).  Either pmap locking exists (alpha, amd64,
i386, ia64) or pmap_mincore() is unimplemented (arm, powerpc, sparc64).

20 years agoDocument incorrect handling of multibyte characters with -I and -J options.
tjr [Mon, 2 Aug 2004 03:07:42 +0000 (03:07 +0000)]
Document incorrect handling of multibyte characters with -I and -J options.

20 years agoAdd PowerPC bridge instruction flag to the assembler to help out
grehan [Mon, 2 Aug 2004 03:06:21 +0000 (03:06 +0000)]
Add PowerPC bridge instruction flag to the assembler to help out
with test code written in the loader.

20 years agoG5 support: handle the case where the OpenFirmware memory array uses
grehan [Mon, 2 Aug 2004 03:05:09 +0000 (03:05 +0000)]
G5 support: handle the case where the OpenFirmware memory array uses
64 bits for the phys address, but only 32 for the virtual address.

20 years agoKernel traps were not being passed to trap_fatal in some
grehan [Mon, 2 Aug 2004 02:37:29 +0000 (02:37 +0000)]
Kernel traps were not being passed to trap_fatal in some
circumstances.

Spotted by:  gallatin

20 years agoDocument machdep.enable_panic_key.
scottl [Mon, 2 Aug 2004 02:07:56 +0000 (02:07 +0000)]
Document machdep.enable_panic_key.

Submitted by: Craig Rodrigues

20 years agoFix the build by providing 'PHYS_TO_DMAP' and 'M_MEMDESC'.
obrien [Mon, 2 Aug 2004 02:07:20 +0000 (02:07 +0000)]
Fix the build by providing 'PHYS_TO_DMAP' and 'M_MEMDESC'.

20 years agoBump __FreeBSD_version to designate uma_zone functions changing type.
green [Mon, 2 Aug 2004 01:49:22 +0000 (01:49 +0000)]
Bump __FreeBSD_version to designate uma_zone functions changing type.

20 years agoAdd what appears to be a missing '*/' at the end of a comment.
rwatson [Mon, 2 Aug 2004 01:38:27 +0000 (01:38 +0000)]
Add what appears to be a missing '*/' at the end of a comment.

20 years ago- Fix unloading by the same way it is done in my other classes:
pjd [Mon, 2 Aug 2004 00:37:40 +0000 (00:37 +0000)]
- Fix unloading by the same way it is done in my other classes:
  set gp->softc to NULL and return ENXIO when it is NULL, so GEOM
  will not panic or hang, but unload one device on every 'unload'.
  This make 'unload' command usable, but it have to be executed
  <number of devices> + 1 times.
- Made use of 'pp' variable.

20 years ago* Add a "how" argument to uma_zone constructors and initialization functions
green [Mon, 2 Aug 2004 00:18:36 +0000 (00:18 +0000)]
* Add a "how" argument to uma_zone constructors and initialization functions
  so that they know whether the allocation is supposed to be able to sleep
  or not.
* Allow uma_zone constructors and initialation functions to return either
  success or error.  Almost all of the ones in the tree currently return
  success unconditionally, but mbuf is a notable exception: the packet
  zone constructor wants to be able to fail if it cannot suballocate an
  mbuf cluster, and the mbuf allocators want to be able to fail in general
  in a MAC kernel if the MAC mbuf initializer fails.  This fixes the
  panics people are seeing when they run out of memory for mbuf clusters.
* Allow debug.nosleepwithlocks on WITNESS to be disabled, without changing
  the default.

Both bmilekic and jeff have reviewed the changes made to make failable
zone allocations work.

20 years agoSecond part of ALTQ driver modifications, covering:
mlaier [Sun, 1 Aug 2004 23:58:04 +0000 (23:58 +0000)]
Second part of ALTQ driver modifications, covering:
an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4)

Please help testing: http://people.freebsd.org/~mlaier/ALTQ_driver/

Tested by: Vaidas Damosevicius (an, ath, wi)
Roman Divacky (vr)
Submitted by: yongari (hme)

20 years agoComment kse_create() and make a few minor code cleanups
julian [Sun, 1 Aug 2004 23:02:00 +0000 (23:02 +0000)]
Comment kse_create() and make a few minor code cleanups

Reviewed by: davidxu