]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoXref setlocale(3), bump document date.
trhodes [Tue, 1 Nov 2005 19:36:17 +0000 (19:36 +0000)]
Xref setlocale(3), bump document date.

18 years agoNote which options are not part of the standards.
trhodes [Tue, 1 Nov 2005 19:31:25 +0000 (19:31 +0000)]
Note which options are not part of the standards.
Xref locale(1) and bump document date.

Reviewed by: keramida
No Objections: -standards

18 years agoPush down Giant into fdfree() and remove it from two of the callers.
jhb [Tue, 1 Nov 2005 17:13:05 +0000 (17:13 +0000)]
Push down Giant into fdfree() and remove it from two of the callers.
Other callers such as some rfork() cases weren't locking Giant anyway.

Reviewed by: csjp
MFC after: 1 week

18 years agoAdd proper debugging infrastructure for acpi_hpet.c.
scottl [Tue, 1 Nov 2005 15:57:15 +0000 (15:57 +0000)]
Add proper debugging infrastructure for acpi_hpet.c.

18 years agoAdd a "-H" argument to kdump, which causes kdump to print an additional
rwatson [Tue, 1 Nov 2005 14:48:23 +0000 (14:48 +0000)]
Add a "-H" argument to kdump, which causes kdump to print an additional
field holding the threadid.  This is more useful for libthr than
libpthread, but still quite useful in libpthread as it can be used to
process interlaced records from multiple threads over the course of a
system call.

Detect old ktr_buffer values using the heuristic "if it's negative,
then it must not be a valid threadid".  This may leave something to be
desired.

MFC after: 1 month
Reviewed by: davidxu

18 years agoReuse ktr_unused field in ktr_header structure as ktr_tid; populate
rwatson [Tue, 1 Nov 2005 14:46:37 +0000 (14:46 +0000)]
Reuse ktr_unused field in ktr_header structure as ktr_tid; populate
ktr_tid as part of gathering of ktr header data for new ktrace
records.  The continued use of intptr_t is required for file layout
reasons, and cannot be changed to lwpid_t at this point.

MFC after: 1 month
Reviewed by: davidxu

18 years agoFix some comments, eliminate a memory leak.
davidxu [Tue, 1 Nov 2005 13:05:47 +0000 (13:05 +0000)]
Fix some comments, eliminate a memory leak.

18 years agoReplace ktr_buffer pointer in struct ktr_header with a ktr_unused
rwatson [Tue, 1 Nov 2005 12:36:19 +0000 (12:36 +0000)]
Replace ktr_buffer pointer in struct ktr_header with a ktr_unused
intptr_t.  The buffer length needs to be written to disk as part
of the trace log, but the kernel pointer for the buffer does not.
Add a new ktr_buffer pointer to the kernel-only ktrace request
structure to hold that pointer.  This frees up an integer in the
ktrace record format that can be used to hold the threadid,
although older ktrace files will have a garbage ktr_buffer field
(or more accurately, a kernel pointer value).

MFC after: 2 weeks
Space requested by: davidxu

18 years agoo OpenBSD 3.8 added.
maxim [Tue, 1 Nov 2005 10:32:42 +0000 (10:32 +0000)]
o OpenBSD 3.8 added.

18 years agoClean up one remaining 'multiple DPC thread' bogon: only bzero() one
wpaul [Tue, 1 Nov 2005 09:24:35 +0000 (09:24 +0000)]
Clean up one remaining 'multiple DPC thread' bogon: only bzero() one
sizeof(kq_queue), not sizeof(kq_queue) * mp_ncpus.

18 years agoUse TIMERS_UNLOCK.
davidxu [Tue, 1 Nov 2005 07:05:32 +0000 (07:05 +0000)]
Use TIMERS_UNLOCK.

18 years agoAdd code to handle timer_delete(). The timer wrapper code is completely
davidxu [Tue, 1 Nov 2005 06:53:22 +0000 (06:53 +0000)]
Add code to handle timer_delete(). The timer wrapper code is completely
rewritten, now timers created with same sigev_notify_attributes will
run in same thread, this allows user to organize which timers can
run in same thread to save some thread resource.

18 years agoIn mode 'u', check for an error return from archive_read_open.
kientzle [Tue, 1 Nov 2005 06:41:05 +0000 (06:41 +0000)]
In mode 'u', check for an error return from archive_read_open.
This causes attempts to update a non-existent file to report
an actual error instead of triggering an assertion failure.

PR: bin/87911
Thanks to: roemer.ulrich
MFC after: 3 days

Note: This does not entirely fix bin/87911.  I need to decide on
the "correct" response when someone tries to update a non-existent
archive file.

18 years agoInclude <sys/param.h> in order to get current __FreeBSD_version
kientzle [Tue, 1 Nov 2005 05:53:16 +0000 (05:53 +0000)]
Include <sys/param.h> in order to get current __FreeBSD_version
in order to properly set HAVE_NL_LANGINFO.  <whew!>

Thanks to: Andrey Chernov
PR: bin/88013
MFC after: 3 days

18 years agoSpell "--format" correctly in error message. (It hasn't been
kientzle [Tue, 1 Nov 2005 05:48:02 +0000 (05:48 +0000)]
Spell "--format" correctly in error message.  (It hasn't been
called "-F" for a very long time.)

PR: bin/86915
Thanks to: Gary W. Swearingen
MFC after: 3 days

18 years agoConsider the zero-copy transmission of a page that was wired by mlock(2).
alc [Tue, 1 Nov 2005 04:30:21 +0000 (04:30 +0000)]
Consider the zero-copy transmission of a page that was wired by mlock(2).
If a copy-on-write fault occurs on the page, the new copy should inherit
a part of the original page's wire count.

Submitted by: tegge
MFC after: 1 week

18 years agoUpdate SIGTHR's comment.
davidxu [Tue, 1 Nov 2005 03:14:39 +0000 (03:14 +0000)]
Update SIGTHR's comment.

18 years agoAdd items to unmount to the front of the list so they are unmounted in
brooks [Tue, 1 Nov 2005 01:36:58 +0000 (01:36 +0000)]
Add items to unmount to the front of the list so they are unmounted in
reverse (thus allowing /conf to be unmounted).

18 years agostatically configured IPv6 address is properly added/deleted now
suz [Mon, 31 Oct 2005 23:06:04 +0000 (23:06 +0000)]
statically configured IPv6 address is properly added/deleted now

Obtained from: KAME
Reported in: freebsd-net@freebsd
MFC after: 1 day

18 years agoSwitch from pax to tar for extracting cpio archives. pax requires a
brooks [Mon, 31 Oct 2005 22:00:44 +0000 (22:00 +0000)]
Switch from pax to tar for extracting cpio archives.  pax requires a
writable /tmp (or TMPDIR) and thus is unsuitable for this job.

Tested by: Joerg Pulz <Joerg dot Pulz at frm2 dot tum dot de>
PR: conf/88293

18 years agoTie acpi_hpet.c into the module and kernel.
phk [Mon, 31 Oct 2005 21:40:40 +0000 (21:40 +0000)]
Tie acpi_hpet.c into the module and kernel.

18 years agoAdd a basic HPET timecounter.
phk [Mon, 31 Oct 2005 21:39:50 +0000 (21:39 +0000)]
Add a basic HPET timecounter.

It has -200 quality for now so it will not get automatically selected.

18 years ago- Use callout_*() to manage the callout and make it MPSAFE.
jhb [Mon, 31 Oct 2005 21:37:27 +0000 (21:37 +0000)]
- Use callout_*() to manage the callout and make it MPSAFE.
- Fix locking in detach(), we only need to lock across vr_stop().

Tested by: Mike Tancsa mike at sentex dot net
MFC after: 1 week

18 years agoInstead of a panic()ing in pmap_insert_entry() if get_pv_entry()
alc [Mon, 31 Oct 2005 21:25:33 +0000 (21:25 +0000)]
Instead of a panic()ing in pmap_insert_entry() if get_pv_entry()
fails, reclaim a pv entry by destroying a mapping to an inactive
page.

Change the format strings in many of the assertions that were recently
converted from PMAP_DIAGNOSTIC printf()s so that they are compatible
with PAE.  Avoid unnecessary differences between the amd64 and i386
format strings.

18 years agoReformat socket control messages on input/output for 32bit compatibility
ps [Mon, 31 Oct 2005 21:09:56 +0000 (21:09 +0000)]
Reformat socket control messages on input/output for 32bit compatibility
on 64bit systems.

Submitted by: ps, ups
Reviewed by: jhb

18 years agoThe -x <format> option of pax is for creation of archives, not
brooks [Mon, 31 Oct 2005 21:07:14 +0000 (21:07 +0000)]
The -x <format> option of pax is for creation of archives, not
extraction.

This will allow cpio archive support to work, at least in situations
where /tmp is writable.  Because pax requires a writable /tmp it is
unsuitable for this task, but replacing it will come in a later commit.

Submitted by: Joerg Pulz <Joerg dot Pulz at frm2 dot tum dot de>
PR: conf/88293

18 years agoHook nve(4) up in i386 and amd64 NOTES.
jhb [Mon, 31 Oct 2005 20:45:37 +0000 (20:45 +0000)]
Hook nve(4) up in i386 and amd64 NOTES.

MFC after: 1 week

18 years agoRate limit filesystem full and out of inodes messages to once a
ps [Mon, 31 Oct 2005 20:33:28 +0000 (20:33 +0000)]
Rate limit filesystem full and out of inodes messages to once a
second.

18 years agoPut probe-time printf of adapter speed and duplex behind bootverbose:
rwatson [Mon, 31 Oct 2005 19:59:40 +0000 (19:59 +0000)]
Put probe-time printf of adapter speed and duplex behind bootverbose:
since the link takes a bit to negotiate, the information is pretty
much never available during the probe.  As such, the boot output
pretty much always prints N/A for speed and duplex.  Since we print
out the output of ifconfig during the user space boot, this early
boot information is also generally redundant, and added to the noise.

MFC after: 2 weeks

18 years agoCheck to see if the hash table is present in link_elf_lookup_symbol()
jhb [Mon, 31 Oct 2005 19:17:32 +0000 (19:17 +0000)]
Check to see if the hash table is present in link_elf_lookup_symbol()
before dereferencing it.  Certain corrupt kernel modules might not have
a valid hash table, and would cause a kernel panic when they were loaded.
Instead of panic'ing, the kernel now prints out a warning that it is
missing the symbol hash table.

Tested by: Benjamin Close Benjamin dot Close at clearchain dot com
MFC after: 1 week

18 years agoAdd the device ID for the VIA VT8235 south bridge.
jhb [Mon, 31 Oct 2005 18:43:28 +0000 (18:43 +0000)]
Add the device ID for the VIA VT8235 south bridge.

PR: kern/62438
Submitted by: FUJIMOTO Kou fujimoto at j dot dendai dot ac dot jp
Tested by: Oliver Fromme olli at secnetix dot de
MFC after: 1 week

18 years agoSome of the VIA pm and propm devices are actually the same device as the
jhb [Mon, 31 Oct 2005 18:31:16 +0000 (18:31 +0000)]
Some of the VIA pm and propm devices are actually the same device as the
PCI-ISA bridge.  Thus, when viapm0 or viapropm0 attaches, isab0 dosen't
attach so there is no isa0 bus hung off of that bridge.  In the non-ACPI
case, legacy0 will add an isa0 anyway as a fail-safe, but ACPI assumes that
any ISA bus will be enumerated via a bridge.  To fix this, call
isab_attach() to attach an isa0 ISA child bus device if the pm or propm
device we are probing is a PCI-ISA bridge.  Both drivers now have to
implement the bus_if interface via the generic methods for resource
allocation, etc. to work.  Also, we now add 2 new ISA bus drivers that
attach to viapm and viapropm devices.

PR: kern/87363
Reported by: Oliver Fromme olli at secnetix dot de
Tested by: glebius
MFC after: 1 week

18 years agoNew release notes:
hrs [Mon, 31 Oct 2005 16:52:11 +0000 (16:52 +0000)]
New release notes:
hw.pci.do_powerstate change,
FreeBSD/ia64 SMP support,
a kernel config for MAC added,
tnt4882(4) driver added,
agp(4) now supports ATI IGP chipsets,
re(4): D-Link DGE-528(T) Gigabit Ethernet card support,
aac(4): Adaptec 2610SA SATA-RAID controller support,
ata(4): ITE IT8211F, PDC40718, and PDC40719 support,
hptmv(4) update: amd64 and PAE support,
gpt(8) GPT partition label support,
kenv(1) and sysctl(8) -q flag added,
libedit updated,
rpcgen(1) now generate ANSI C code instead of K&R style, and
OpenSSH 4.0p1->4.2p1.

Update release notes:
Fix an entry about ifconfig_<ifn> NOAUTO keyword.

18 years agoMFamd64/i386
alc [Mon, 31 Oct 2005 16:14:07 +0000 (16:14 +0000)]
MFamd64/i386
 Eliminate unneeded diagnostic code.

18 years agoNormalize a significant number of kernel malloc type names:
rwatson [Mon, 31 Oct 2005 15:41:29 +0000 (15:41 +0000)]
Normalize a significant number of kernel malloc type names:

- Prefer '_' to ' ', as it results in more easily parsed results in
  memory monitoring tools such as vmstat.

- Remove punctuation that is incompatible with using memory type names
  as file names, such as '/' characters.

- Disambiguate some collisions by adding subsystem prefixes to some
  memory types.

- Generally prefer lower case to upper case.

- If the same type is defined in multiple architecture directories,
  attempt to use the same name in additional cases.

Not all instances were caught in this change, so more work is required to
finish this conversion.  Similar changes are required for UMA zone names.

18 years agoDocument the fact that sendfile(2) can EOPNOTSUPP if the underlying
jkoshy [Mon, 31 Oct 2005 04:08:28 +0000 (04:08 +0000)]
Document the fact that sendfile(2) can EOPNOTSUPP if the underlying
filesystem for the file being transferred doesn't support UIO_NOCOPY.

Reported by: Niki Denev <nike_d@cytexbg.com>

18 years agoSort error list.
jkoshy [Mon, 31 Oct 2005 04:00:20 +0000 (04:00 +0000)]
Sort error list.

18 years agoThe mediasize shouldn't be multipled by the sector size when it was
grehan [Mon, 31 Oct 2005 03:09:38 +0000 (03:09 +0000)]
The mediasize shouldn't be multipled by the sector size when it was
in bytes to start off with. This caused the GPT geom sniffer to attempt
a seek just back from the end of the 'disk', which resulted in a > 4G
seek, causing gdb psim to exit since it only supports 32-bit seeks.

The size of the disk should really be specified in the psim device tree,
but for now do the minimal amount of work to get psim to run again.

18 years agoPickup I/O lock in aac_get_bus_info, as this code will call
csjp [Mon, 31 Oct 2005 00:12:19 +0000 (00:12 +0000)]
Pickup I/O lock in aac_get_bus_info, as this code will call
aac_alloc_sync_fib(). aac_alloc_sync_fib() will assert that the I/O locks
are held. This fixes a panic on system boot up  when the aac(4) device's
bus_generic_attach() routine is called.

Reviewed by: scottl

18 years agoAdd thread exit handler in timer_loop to handle broken buggy code which
davidxu [Sun, 30 Oct 2005 23:59:01 +0000 (23:59 +0000)]
Add thread exit handler in timer_loop to handle broken buggy code which
could lead to memory leak.

18 years agoCopy SPRG0-3 registers at boot-time and restore when calling into
grehan [Sun, 30 Oct 2005 21:29:59 +0000 (21:29 +0000)]
Copy SPRG0-3 registers at boot-time and restore when calling into
OpenFirmware. FreeBSD/ppc uses SPRG0 as the per-cpu data area pointer,
and SPRG1-3 as temporary registers during exception handling. There
have been a few instances where OpenFirmware does require these to
be part of it's context, such as cd-booting an eMac.

reported by: many
MFC after: 3 days

18 years agonew committer: added my birthday to the calendar
aaron [Sun, 30 Oct 2005 21:02:09 +0000 (21:02 +0000)]
new committer: added my birthday to the calendar

Approved by: tobez

18 years agoReplace diagnostic printf()s by assertions. Use consistent style for
alc [Sun, 30 Oct 2005 20:47:42 +0000 (20:47 +0000)]
Replace diagnostic printf()s by assertions.  Use consistent style for
similar assertions.

18 years agoPush the assignment of a new or updated so_qlimit from solisten()
rwatson [Sun, 30 Oct 2005 19:44:40 +0000 (19:44 +0000)]
Push the assignment of a new or updated so_qlimit from solisten()
following the protocol pru_listen() call to solisten_proto(), so
that it occurs under the socket lock acquisition that also sets
SO_ACCEPTCONN.  This requires passing the new backlog parameter
to the protocol, which also allows the protocol to be aware of
changes in queue limit should it wish to do something about the
new queue limit.  This continues a move towards the socket layer
acting as a library for the protocol.

Bump __FreeBSD_version due to a change in the in-kernel protocol
interface.  This change has been tested with IPv4 and UNIX domain
sockets, but not other protocols.

18 years agoLocate __FreeBSD_cc_version's value beside __FreeBSD__'s value to make it
obrien [Sun, 30 Oct 2005 19:04:47 +0000 (19:04 +0000)]
Locate __FreeBSD_cc_version's value beside __FreeBSD__'s value to make it
easier to keep them in sync.

18 years agoRemove a stray return statement in the interrupt dispatch function
marcel [Sun, 30 Oct 2005 17:23:01 +0000 (17:23 +0000)]
Remove a stray return statement in the interrupt dispatch function
that caused a premature exit after calling a fast interrupt handler
and bypassing a much needed critical_exit() and the scheduling of
the interrupt thread for non-fast handlers. In short: unbreak :-)

18 years agoSSIDs are of length 32-bytes and not NUL terminated. Use the correct
brooks [Sun, 30 Oct 2005 16:31:05 +0000 (16:31 +0000)]
SSIDs are of length 32-bytes and not NUL terminated.  Use the correct
length and bail immediatly if the returned length is wrong rather than
attempting to set an correct value.

This commit differs from the patch in the PR in the use of exit instead
of return and the use of a defined value for the array.

Submitted by: Daan Vreeken [PA4DAN] <Danovitsch at Vitsch dot net>
PR: bin/74509

18 years agoMFi386: Enable beastie.4th.
nyan [Sun, 30 Oct 2005 15:59:08 +0000 (15:59 +0000)]
MFi386: Enable beastie.4th.

18 years agoFixed spelling of remquof() in its prototype.
bde [Sun, 30 Oct 2005 12:34:58 +0000 (12:34 +0000)]
Fixed spelling of remquof() in its prototype.

18 years agoFixed some comments added in rev.1.5.
bde [Sun, 30 Oct 2005 12:21:02 +0000 (12:21 +0000)]
Fixed some comments added in rev.1.5.

The log message for 1.5 said that some small (one or two ulp) inaccuracies
were fixed, and a comment implied that the critical change is to switch
the rounding mode to to-nearest, with a switch of the precision to
extended at no extra cost.  Actually, the errors are very large (ucbtest
finds ones of several hundred ulps), and it is the switch of the
precision that is critical.

Another comment was wrong about NaNs being handled sloppily.

18 years agoAdd some safeguards to AIOSFMT:
des [Sun, 30 Oct 2005 10:03:11 +0000 (10:03 +0000)]
Add some safeguards to AIOSFMT:

 - Return EINVAL if play_format or rec_format is set but the corresponding
   sample rate is 0.

 - Don't try to set the playback or recording format to 0.  Previously,
   issuing an AIOSFMT ioctl with an all-zeroes snd_chan_param would
   trigger a KASSERT in chn_fmtchain(); I'm unsure about the effects on
   a kernel without INVARIANTS.  After this commit, issuing AIOSFMT with
   an all-zeroes snd_chan_param is equivalent to issuing AIOGFMT.

MFC after: 2 weeks

18 years agoIn stack_save, stop when a trap-frame is encountered. This prevents
grehan [Sun, 30 Oct 2005 07:56:10 +0000 (07:56 +0000)]
In stack_save, stop when a trap-frame is encountered. This prevents
trying to access user-space stack addresses when a user fault
is encountered, as occurs when GEOM KTR code is handling a page fault
and is using stack_save() to capture a trace for debug purposes.

It may be possible to walk beyond the trap-frame if it is a kernel fault,
as db_backtrace() does, but I don't think that complexity is needed in
this routine.

MFC after: 3 days

18 years agoAdd back some bits.
scottl [Sun, 30 Oct 2005 05:41:42 +0000 (05:41 +0000)]
Add back some bits.

18 years agoReplace loader_color with loader_logo
scottl [Sun, 30 Oct 2005 05:36:23 +0000 (05:36 +0000)]
Replace loader_color with loader_logo

18 years agoChange POSIX_TIMERS to 200112L.
davidxu [Sun, 30 Oct 2005 03:20:39 +0000 (03:20 +0000)]
Change POSIX_TIMERS to 200112L.

18 years agoAdd timer_create wrapper.
davidxu [Sun, 30 Oct 2005 03:16:30 +0000 (03:16 +0000)]
Add timer_create wrapper.

18 years agoAdd POSIX timer interfaces.
davidxu [Sun, 30 Oct 2005 03:15:05 +0000 (03:15 +0000)]
Add POSIX timer interfaces.

18 years agoLet itimer store itimerspec instead of itimerval, so I don't have to
davidxu [Sun, 30 Oct 2005 02:56:08 +0000 (02:56 +0000)]
Let itimer store itimerspec instead of itimerval, so I don't have to
convert to or from timeval frequently.

Introduce function itimer_accept() to ack a timer signal in signal
acceptance code, this allows us to return more fresh overrun counter
than at signal generating time. while POSIX says:
"the value returned by timer_getoverrun() shall apply to the most
recent expiration signal delivery or acceptance for the timer,.."
I prefer returning it at acceptance time.

Introduce SIGEV_THREAD_ID notification mode, it is used by thread
libary to request kernel to deliver signal to a specified thread,
and in turn, the thread library may use the mechanism to implement
SIGEV_THREAD which is required by POSIX.

Timer signal is managed by timer code, so it can not fail even if
signal queue is full filled by sigqueue syscall.

18 years agoRegen.
davidxu [Sun, 30 Oct 2005 02:14:37 +0000 (02:14 +0000)]
Regen.

18 years agoFix sigevent's POSIX incompatible problem by adding member fields
davidxu [Sun, 30 Oct 2005 02:12:49 +0000 (02:12 +0000)]
Fix sigevent's POSIX incompatible problem by adding member fields
sigev_notify_function and sigev_notify_attributes. AIO syscalls
use sigevent, so they have to be adjusted.

Reviewed by: alc

18 years agoInclude disabled options in the output of 'set +o'. POSIX says the output of
stefanf [Sat, 29 Oct 2005 18:41:35 +0000 (18:41 +0000)]
Include disabled options in the output of 'set +o'.  POSIX says the output of
set +o can be used to reload previous settings, for this to work disabled
options must be printed as well or otherwise options that were set in the mean
time won't be turned off.

To avoid an excessively long output line I formatted the output to print only
six options per line.

Submitted by: Jilles Tjoelker
PR: 73500

18 years agoImplement inline functions to give the complex result x+I*y from float
bde [Sat, 29 Oct 2005 17:14:11 +0000 (17:14 +0000)]
Implement inline functions to give the complex result x+I*y from float
or double args x and y.  x+I*y cannot be used directly yet due to compiler
bugs.

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>

18 years agoUse double precision to simplify and optimize arg reduction for small
bde [Sat, 29 Oct 2005 16:34:50 +0000 (16:34 +0000)]
Use double precision to simplify and optimize arg reduction for small
and medium size args too: instead of conditionally subtracting a float
17+24, 17+17+24 or 17+17+17+24 bit approximation to pi/2, always
subtract a double 33+53 bit one.  The float version is now closer to
the double version than to old versions of itself -- it uses the same
33+53 bit approximation as the simplest cases in the double version,
and where the float version had to switch to the slow general case at
|x| == 2^7*pi/2, it now switches at |x| == 2^19*pi/2 the same as the
double version.

This speeds up arg reduction by a factor of 2 for |x| between 3*pi/4 and
2^7*pi/4, and by a factor of 7 for |x| between 2^7*pi/4 and 2^19*pi/4.

18 years agoRemove unused variable.
davidxu [Sat, 29 Oct 2005 13:40:31 +0000 (13:40 +0000)]
Remove unused variable.

Reviewed by: cognet

18 years agoDocument command -v and -V.
stefanf [Sat, 29 Oct 2005 13:08:35 +0000 (13:08 +0000)]
Document command -v and -V.

Glanced at by: simon

18 years agoCatch up with FreeBSD 7.
obrien [Sat, 29 Oct 2005 09:13:31 +0000 (09:13 +0000)]
Catch up with FreeBSD 7.

18 years agoDocument that read -t timeout returns 1 if the timeout elapses.
stefanf [Sat, 29 Oct 2005 08:22:09 +0000 (08:22 +0000)]
Document that read -t timeout returns 1 if the timeout elapses.

18 years agoStart trying to make the float precision trig functions actually worth
bde [Sat, 29 Oct 2005 08:15:29 +0000 (08:15 +0000)]
Start trying to make the float precision trig functions actually worth
using under FreeBSD.  Before this commit, all float precision functions
except exp2f() were implemented using only float precision, apparently
because Cygnus needed this in 1993 for embedded systems with slow or
inefficient double precision.  For FreeBSD, except possibly on systems
that do floating point entirely in software (very old i386 and now
arm), this just gives a more complicated implementation, many bugs,
and usually worse performance for float precision than for double
precision.  The bugs and worse performance were particulary large in
arg reduction for trig functions.  We want to divide by an approximation
to pi/2 which has as many as 1584 bits, so we should use the widest
type that is efficient and/or easy to use, i.e., double.  Use fdlibm's
__kernel_rem_pio2() to do this as Sun apparently intended.  Cygnus's
k_rem_pio2f.c is now unused.  e_rem_pio2f.c still needs to be separate
from e_rem_pio2.c so that it can be optimized for float args.  Similarly
for long double precision.

This speeds up cosf(x) on large args by a factor of about 2.  Correct
arg reduction on large args is still inherently very slow, so hopefully
these args rarely occur in practice.  There is much more efficiency
to be gained by using double precision to speed up arg reduction on
medium and small float args.

18 years agoForced commit to note the patch for the previous commit was
stefanf [Sat, 29 Oct 2005 07:19:11 +0000 (07:19 +0000)]
Forced commit to note the patch for the previous commit was

Submitted by: rodrigc

18 years agoMFp4: When doing lazy allocation, it turns out that we need to record the
imp [Sat, 29 Oct 2005 05:52:17 +0000 (05:52 +0000)]
MFp4: When doing lazy allocation, it turns out that we need to record the
actual resource values we received from the system rather than the range
we requested.  Since we request a range starting at 0, we would record
that number.  Later, since this == 0, we'd allocate again.  However,
we wouldn't write the new resource into the BAR.  This resulted in
a resource leak as well as a BAR that couldn't access the resource at
all since rman_get_start, et al, were wrong.

MFC After: 1 week (assuming RELENG_6 is open for business)

18 years agoUse symbolic name rather thanhard coding the cap pointer offset for
imp [Sat, 29 Oct 2005 05:49:06 +0000 (05:49 +0000)]
Use symbolic name rather thanhard coding the cap pointer offset for
type two devices.

18 years agoRecord renaming rc.d/ppp-user to rc.d/ppp.
yar [Sat, 29 Oct 2005 05:27:32 +0000 (05:27 +0000)]
Record renaming rc.d/ppp-user to rc.d/ppp.

18 years agoTransforming "ppp-user" into just "ppp", step 5:
yar [Sat, 29 Oct 2005 05:12:14 +0000 (05:12 +0000)]
Transforming "ppp-user" into just "ppp", step 5:
Finally, delete the old, unfittingly named file "ppp-user".

18 years agoTransforming "ppp-user" into just "ppp", step 4:
yar [Sat, 29 Oct 2005 05:08:00 +0000 (05:08 +0000)]
Transforming "ppp-user" into just "ppp", step 4:
The legacy script "/etc/netstart" will start "ppp", not "ppp-user".

18 years agoTransforming "ppp-user" into just "ppp", step 3:
yar [Sat, 29 Oct 2005 05:05:52 +0000 (05:05 +0000)]
Transforming "ppp-user" into just "ppp", step 3:
Install "ppp" (just repocopied) instead of "ppp-user".

18 years agoTransforming "ppp-user" into just "ppp", step 2:
yar [Sat, 29 Oct 2005 05:00:25 +0000 (05:00 +0000)]
Transforming "ppp-user" into just "ppp", step 2:
This file has been repo-copied from src/etc/rc.d/ppp-user.
(Forced commit.)

18 years agoAdd Billionton LNA-100B variation that Alan reported in arch. [1]
imp [Sat, 29 Oct 2005 03:49:44 +0000 (03:49 +0000)]
Add Billionton LNA-100B variation that Alan reported in arch. [1]
Also add Global Village lan modem, even though I'm unsure if it works.

Reported by: Alan newsletter at acsoftware dot org

18 years agoAdd Global Village lan modem.
imp [Sat, 29 Oct 2005 03:48:24 +0000 (03:48 +0000)]
Add Global Village lan modem.
Add Billionton LNA-100B[1]

Reported by: [1] Alan newsletter at acsoftware dot org

18 years agoShutdown a little better by commenting the shutdown code and acknowledging
imp [Sat, 29 Oct 2005 03:36:00 +0000 (03:36 +0000)]
Shutdown a little better by commenting the shutdown code and acknowledging
any interrupts after we turn off the interrupt mask.

18 years agoShut down the card bus bridge hardware on detach. Before we'd just
imp [Sat, 29 Oct 2005 03:27:43 +0000 (03:27 +0000)]
Shut down the card bus bridge hardware on detach.  Before we'd just
free the resoruces w/o actually turning off the interrupts.  This lead
to interrupt storms if you were to insert a card after kldunloading
the driver.

18 years agoKill unused variable declaration.
davidxu [Sat, 29 Oct 2005 03:08:43 +0000 (03:08 +0000)]
Kill unused variable declaration.

18 years agoRemove call to txp_set_filter() from txp_attach(). txp_set_filter() needs
wpaul [Sat, 29 Oct 2005 03:01:16 +0000 (03:01 +0000)]
Remove call to txp_set_filter() from txp_attach(). txp_set_filter() needs
the ifp, so you can't call it before doing if_alloc(). Also, there's
really no need to call it here anyway: the code I originally ported from
OpenBSD incorrectly set the station address only once at device attach
time, instead of setting in txp_init(). This meant you couldn't change
the address with ifconfig txp0 ether xx:xx:xx:xx:xx:xx. I added the
call to txp_set_filter() in txp_init() to correct this, but forgot to
remove the call from txp_attach(). Until now, it never mattered.

With this fix, the txp driver tests good:

txp0: <3Com 3cR990-TX-97 Etherlink with 3XP Processor> port 0xb800-0xb87f mem 0xe6800000-0xe683ffff irq 12 at device 10.0 on pci0
txp0: Ethernet address: 00:01:03:d4:91:4f

18 years agoAdd an ioctl framework for doing FC task management functions from
mjacob [Sat, 29 Oct 2005 02:46:59 +0000 (02:46 +0000)]
Add an ioctl framework for doing FC task management functions from
a user space tool- useful for doing FC target mode certification.

18 years agoFix ndis_getstate_80211() so that it properly reports the authmode
wpaul [Sat, 29 Oct 2005 02:18:27 +0000 (02:18 +0000)]
Fix ndis_getstate_80211() so that it properly reports the authmode
and channel to ifconfig. Also use the SSID and channel info from
the association info that we already have instead of using ndis_get_info()
to ask the driver for it again.

18 years agos/insure/ensure/ in previous commit. My dictionary and m-w.com say they
brooks [Fri, 28 Oct 2005 22:47:40 +0000 (22:47 +0000)]
s/insure/ensure/ in previous commit.  My dictionary and m-w.com say they
are synonymous, but ensure seems slightly closer and does not have the
connotation of buying insurance.

Reported by: Jason McIntyre <jmc at kerhand dot co dot uk>

18 years agoDon't crash when given an invalid nwkey string.
brooks [Fri, 28 Oct 2005 21:57:04 +0000 (21:57 +0000)]
Don't crash when given an invalid nwkey string.

PR: misc/88159

18 years agoReturn the right format (LBA/MSF) in TOC entries.
sos [Fri, 28 Oct 2005 21:41:42 +0000 (21:41 +0000)]
Return the right format (LBA/MSF) in TOC entries.
Null the TOC on media change even if no media present.

Reported by: des

18 years agoAdd some significant Ukrainian dates.
ru [Fri, 28 Oct 2005 21:25:28 +0000 (21:25 +0000)]
Add some significant Ukrainian dates.

PR: 88076
Submitted by: Andriy Gapon

18 years agoFirst fill in structure with valid values, and only then attach it
glebius [Fri, 28 Oct 2005 20:29:42 +0000 (20:29 +0000)]
First fill in structure with valid values, and only then attach it
to the global list.

Reviewed by: rwatson

18 years agoFix possible live-lock under heavy load where we can't allocate more
pjd [Fri, 28 Oct 2005 20:25:02 +0000 (20:25 +0000)]
Fix possible live-lock under heavy load where we can't allocate more
memory for request.
I was sure graid3 should handle such situations well, but green@ reported
it is not and we want to fix it before 6.0.

Submitted by: green

18 years agoDocument NGM_IFACE_GET_IFINDEX.
ru [Fri, 28 Oct 2005 19:05:44 +0000 (19:05 +0000)]
Document NGM_IFACE_GET_IFINDEX.

18 years agoFix this:
cracauer [Fri, 28 Oct 2005 18:39:00 +0000 (18:39 +0000)]
Fix this:
kern/87959 cracauer ext2fs: no cp(1) possible, mmap returns EINVAL

ext2fs was missing vnode_create_vobject.

(Reisefs probably has the same problem but I want to get this in quick
for 6-release)

18 years agoAdd the POSIX options -v and -V to the 'command' builtin. Both describe the
stefanf [Fri, 28 Oct 2005 18:37:09 +0000 (18:37 +0000)]
Add the POSIX options -v and -V to the 'command' builtin.  Both describe the
type of their argument, if it is a shell function, an alias, a builtin, etc.
-V is more verbose than -v.

PR: 77259, 84539

18 years agoUse ${name} in pathnames where appropriate.
yar [Fri, 28 Oct 2005 16:55:38 +0000 (16:55 +0000)]
Use ${name} in pathnames where appropriate.
The sendmail script already was on this way,
but it didn't reach the end of it yet.

18 years agoUse:
yar [Fri, 28 Oct 2005 16:10:56 +0000 (16:10 +0000)]
Use:

command="/path/to/${name}"

since it's applicable here.  It's the current style of rc.d.

Pointed out by: pjd

18 years agoTransforming "ppp-user" into just "ppp", step 1:
yar [Fri, 28 Oct 2005 16:07:52 +0000 (16:07 +0000)]
Transforming "ppp-user" into just "ppp", step 1:
The rcorder(8) condition PROVIDE'd by the script
and REQUIRE'd by the others becomes "ppp".

The ultimate goal of the transformation is to reduce
confusion resulting from the fact that $name has been
"ppp" already.

Discussed with: pjd, -rc

18 years agoFinally complete some work on generalizing the PCF8584-based I2C
joerg [Fri, 28 Oct 2005 15:58:19 +0000 (15:58 +0000)]
Finally complete some work on generalizing the PCF8584-based I2C
drivers I started quite some time before.

Retire the old i386-only pcf driver, and activate the new general
driver that has been sitting in the tree already for quite some
time.

Build the i2c modules for sparc64 architectures as well (where I've
been developing all this on).

18 years agoMove the isa, npx, mem and io devices and the PC98 option from GENERIC
nyan [Fri, 28 Oct 2005 15:30:51 +0000 (15:30 +0000)]
Move the isa, npx, mem and io devices and the PC98 option from GENERIC
into DEFAULTS.

18 years agoUse variable-sized arrays where appropriate.
ru [Fri, 28 Oct 2005 14:41:28 +0000 (14:41 +0000)]
Use variable-sized arrays where appropriate.

18 years agoBelatedly document the NGM_KSOCKET_ACCEPT ("accept") control message.
ru [Fri, 28 Oct 2005 14:15:54 +0000 (14:15 +0000)]
Belatedly document the NGM_KSOCKET_ACCEPT ("accept") control message.