]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoFixed warnings (missing .Ed call).
ru [Fri, 4 Jun 2004 19:24:57 +0000 (19:24 +0000)]
Fixed warnings (missing .Ed call).
Fixed grammar (missing punctuation).
Fixed screwup with the SEE ALSO section.

20 years agoReapply some local fixes that got lost with another NetBSD merge,
ru [Fri, 4 Jun 2004 19:24:35 +0000 (19:24 +0000)]
Reapply some local fixes that got lost with another NetBSD merge,
fix some more.

20 years agoTrim whitespace at EOL.
ru [Fri, 4 Jun 2004 19:24:21 +0000 (19:24 +0000)]
Trim whitespace at EOL.

20 years agoNit.
ru [Fri, 4 Jun 2004 19:23:39 +0000 (19:23 +0000)]
Nit.

20 years agoMarkup nits.
ru [Fri, 4 Jun 2004 19:23:12 +0000 (19:23 +0000)]
Markup nits.

20 years agoSpelling nit.
ru [Fri, 4 Jun 2004 19:22:20 +0000 (19:22 +0000)]
Spelling nit.

20 years agoReapply some lost fixes, fix some more.
ru [Fri, 4 Jun 2004 19:22:04 +0000 (19:22 +0000)]
Reapply some lost fixes, fix some more.

20 years agoFixed a typo.
ru [Fri, 4 Jun 2004 19:21:26 +0000 (19:21 +0000)]
Fixed a typo.

20 years agoExpand contraction.
ru [Fri, 4 Jun 2004 19:21:06 +0000 (19:21 +0000)]
Expand contraction.

20 years agoMarkup nit: make the list of options look better.
ru [Fri, 4 Jun 2004 19:20:43 +0000 (19:20 +0000)]
Markup nit: make the list of options look better.

20 years agoUpdate logical drive structure
ps [Fri, 4 Jun 2004 17:22:13 +0000 (17:22 +0000)]
Update logical drive structure

20 years agoWork around the preemption problem in acpi_cpu.c for shutting down.
peter [Fri, 4 Jun 2004 17:03:18 +0000 (17:03 +0000)]
Work around the preemption problem in acpi_cpu.c for shutting down.

Submitted by:  nate / jhb

20 years agoImplement support for controlling VLAN_HWTAGGING through ioctl(SIOCSIFCAP).
yar [Fri, 4 Jun 2004 16:57:18 +0000 (16:57 +0000)]
Implement support for controlling VLAN_HWTAGGING through ioctl(SIOCSIFCAP).
This includes not only toggling the flag in if_capenable, but also really
reconfiguring the hardware.

Approved by: tackerman (as the em(4) maintainer)

20 years agoMake the emu10k1 pcm driver INTR_MPSAFE. The locking is modeled
mux [Fri, 4 Jun 2004 16:42:33 +0000 (16:42 +0000)]
Make the emu10k1 pcm driver INTR_MPSAFE.  The locking is modeled
exactly as done in the cmi driver.  I am quite confident this is
safe since I'm runing this for more than two weeks now, on an SMP
box.  A few people tested this patch for me successfully as well.

20 years agoMachine generated patch which changes linedisc calls from accessing
phk [Fri, 4 Jun 2004 16:02:56 +0000 (16:02 +0000)]
Machine generated patch which changes linedisc calls from accessing
linesw[] directly to using the ttyld...() functions

The ttyld...() functions ar inline so there is no performance hit.

20 years agoIt is probably too early to drop the dev_t argument for the ttyld_open()
phk [Fri, 4 Jun 2004 16:01:12 +0000 (16:01 +0000)]
It is probably too early to drop the dev_t argument for the ttyld_open()
function.

20 years agoMove the line discipline related stuff out of <sys/conf.h> and into
phk [Fri, 4 Jun 2004 15:25:36 +0000 (15:25 +0000)]
Move the line discipline related stuff out of <sys/conf.h> and into
<sys/linedisc.h> (repocopied).

Temporarily use a nested include from <sys/tty.h> to get <sys/linedisc.h>
into relevant source files.

Introduce a set of inline functions named ttyld_...() to invoke
linedisc methods instead of groping around in the linesw array.

20 years agoNote the removal of the midi drivers.
tanimura [Fri, 4 Jun 2004 15:24:12 +0000 (15:24 +0000)]
Note the removal of the midi drivers.

Pointed out by: scottl
Shame on: myself

20 years agoFix a grammatical mistake: the PC3 character sequences *are* also supported.
roam [Fri, 4 Jun 2004 15:20:12 +0000 (15:20 +0000)]
Fix a grammatical mistake: the PC3 character sequences *are* also supported.

Submitted by: Warren Block <wblock@wonkity.com>
MFC after: 1 week

20 years agoRegenerate.
jhb [Fri, 4 Jun 2004 13:52:51 +0000 (13:52 +0000)]
Regenerate.

20 years agoMark linux_wait4() as MP Safe as it is so and holding Giant across all of
jhb [Fri, 4 Jun 2004 13:52:23 +0000 (13:52 +0000)]
Mark linux_wait4() as MP Safe as it is so and holding Giant across all of
kern_wait() trips an assert that Giant is not held in thread_wait().

PR: 67538
Submitted by: Nikos Ntarmos ntarmos at ceid dot upatras dot gr

20 years agoAdd missing <sys/module.h> #includes
phk [Fri, 4 Jun 2004 13:04:10 +0000 (13:04 +0000)]
Add missing <sys/module.h> #includes

20 years agoAdd missing <sys/module.h> #includes
phk [Fri, 4 Jun 2004 11:52:25 +0000 (11:52 +0000)]
Add missing <sys/module.h> #includes

20 years agoHandle read_block() failures by ignoring the disk rather than
brian [Fri, 4 Jun 2004 11:49:11 +0000 (11:49 +0000)]
Handle read_block() failures by ignoring the disk rather than
dumping core.

20 years agoAdd austrian calendar as install target.
josef [Fri, 4 Jun 2004 11:30:52 +0000 (11:30 +0000)]
Add austrian calendar as install target.

Approved by: le
Pointed out by: stefanf

20 years agoRemove a stale comment.
tjr [Fri, 4 Jun 2004 11:00:22 +0000 (11:00 +0000)]
Remove a stale comment.

20 years agoWhen we go to read the next tar header, if we get zero bytes, accept
kientzle [Fri, 4 Jun 2004 10:27:23 +0000 (10:27 +0000)]
When we go to read the next tar header, if we get zero bytes, accept
that as end-of-archive.  Otherwise, a short read at this point
generates an error.  This accomodates broken tar writers (such as the
one apparently in use at AT&T Labs) that don't even write a single
end-of-archive block.

Note that both star and pdtar behave this way as well.
In contrast, gtar doesn't complain in either case, and as a
result, will generate no warning for a lot of trashed archives.

Pointed out by: shells/ksh93 port  (Thanks to Kris Kennaway)

20 years agoAdd a devclass level to the dev sysctl tree, in order to support per-
des [Fri, 4 Jun 2004 10:23:00 +0000 (10:23 +0000)]
Add a devclass level to the dev sysctl tree, in order to support per-
class variables in addition to per-device variables.  In plain English,
this means that dev.foo0.bar is now called dev.foo.0.bar, and it is
possible to to have dev.foo.bar as well.

20 years agoAdd missing links.
pjd [Fri, 4 Jun 2004 10:14:55 +0000 (10:14 +0000)]
Add missing links.

20 years agoWhitespace cleanup.
des [Fri, 4 Jun 2004 10:11:06 +0000 (10:11 +0000)]
Whitespace cleanup.

20 years agoConvert fsbtoblk() from a macro to a function. The redundant
das [Fri, 4 Jun 2004 09:30:51 +0000 (09:30 +0000)]
Convert fsbtoblk() from a macro to a function.  The redundant
instances of 64-bit arithmetic were costing 775 bytes, and the
inlining offered no benefit.  Moreover, ambiguity as to the argument
types led to the introduction of a bug (see rev 1.56).

Also, remove some casts that are now clearly redundant.

Inspired by: 67467

20 years agoMake the remaining serial drivers call ttyioctl() rather than calling
phk [Fri, 4 Jun 2004 08:02:37 +0000 (08:02 +0000)]
Make the remaining serial drivers call ttyioctl() rather than calling
the linedisc directly.

20 years agoGet rid of ttyregister(). All drivers now use ttymalloc() for struct
phk [Fri, 4 Jun 2004 07:17:03 +0000 (07:17 +0000)]
Get rid of ttyregister().  All drivers now use ttymalloc() for struct
tty, so now we stand a chance of implementing refcounting and getting
rid of the damn things again.

20 years agoUse ttymalloc() instead of ttyregister().
phk [Fri, 4 Jun 2004 07:12:45 +0000 (07:12 +0000)]
Use ttymalloc() instead of ttyregister().

20 years agoUse ttymalloc() instead of ttyregister(). Use ttyioctl() instead of
phk [Fri, 4 Jun 2004 06:50:35 +0000 (06:50 +0000)]
Use ttymalloc() instead of ttyregister().  Use ttyioctl() instead of
direct calls to the linedisc.

20 years agoWrite segments to core dump files in maximally-sized chunks that neither
tjr [Fri, 4 Jun 2004 06:30:16 +0000 (06:30 +0000)]
Write segments to core dump files in maximally-sized chunks that neither
exceed vn_rdwr_inchunks()'s INT_MAX length limitation nor span a block
boundary. This fixes dumping segments larger than 2GB.

PR: 67546

20 years agoGrrr. Really check subr_ndis.c in this time. (fixed my_strcasecmp())
wpaul [Fri, 4 Jun 2004 04:45:38 +0000 (04:45 +0000)]
Grrr. Really check subr_ndis.c in this time. (fixed my_strcasecmp())

20 years agoUnbreak the Intel 2100 Centrino wireless driver (and probably others):
wpaul [Fri, 4 Jun 2004 04:43:36 +0000 (04:43 +0000)]
Unbreak the Intel 2100 Centrino wireless driver (and probably others):

- In subr_ndis.c, my_strcasecmp() actually behaved like my_strncasecmp():
  we really need it to behave like the former, not the latter. (It was
  falsely matching "RadioEnable", which defaults to 1 with "RadioEnableHW"
  which the driver creates itself and to 0, because we were using
  strlen("RadioEnable") as the length to test. This caused the radio to
  always be turned off. :( )

- In if_ndis.c, only set IEEE80211_CHAN_A for channels if we actually
  set any IEEE80211_MODE_11A rates. (ieee80211_attach() will "helpfully"
  add IEEE80211_MODE_11A to ic_modecaps for you if you initialize any
  802.11a channels. This caused "ndis0: 11a rates:" to erroneously be
  displayed during driver load.)

- Also in if_ndis.c, when using TESTSETRATE() to add in any missing 802.11b
  rates, remember to OR the rates with IEEE80211_RATE_BASIC, otherwise
  comparing against existing basic rates won't match. (1, 2, 5.5 and
  11Mbps are basic rates, according to the 802.11b spec.) This erroneously
  cause 11Mbps to be added to the 11b rate list twice.

20 years agoMark sun_noname as const since it's immutable. Update definitions
rwatson [Fri, 4 Jun 2004 04:07:08 +0000 (04:07 +0000)]
Mark sun_noname as const since it's immutable.  Update definitions
of functions that potentially accept &sun_noname (sbappendaddr(),
et al) to accept a const sockaddr pointer.

20 years agoMove the definitions of SWAPBLK_NONE and SWAPBLK_MASK from vm_page.h to
alc [Fri, 4 Jun 2004 04:03:26 +0000 (04:03 +0000)]
Move the definitions of SWAPBLK_NONE and SWAPBLK_MASK from vm_page.h to
blist.h, enabling the removal of numerous #includes from subr_blist.c.
(subr_blist.c and swap_pager.c are the only users of these definitions.)

20 years agoBe more careful about the initial read (used for "tasting" the compression):
kientzle [Fri, 4 Jun 2004 01:36:10 +0000 (01:36 +0000)]
Be more careful about the initial read (used for "tasting" the compression):
  * Check for and return input errors
  * Treat empty file (zero-length read) as a fatal error

20 years agoHave /usr/bin/tar be a symlink to /usr/bin/gtar rather
kientzle [Fri, 4 Jun 2004 00:39:46 +0000 (00:39 +0000)]
Have /usr/bin/tar be a symlink to /usr/bin/gtar rather
than a hardlink.  This will make it easier for people
to tell which system tar they're currently using.

20 years agoOops. Forced commit to document that the previous commit
kientzle [Thu, 3 Jun 2004 23:46:09 +0000 (23:46 +0000)]
Oops.  Forced commit to document that the previous commit
also included a Makefile change:  use a symlink
/usr/bin/tar -> /usr/bin/bsdtar rather than a hardlink so that
people can more easily tell which tar they're currently using.

20 years agoStyle-istic fix to a number of #define's that were not followed by a tab...
gad [Thu, 3 Jun 2004 23:44:38 +0000 (23:44 +0000)]
Style-istic fix to a number of #define's that were not followed by a tab...

MFC after: 16 days

20 years agoPointy hat: sticky bit 't' or 'T' is shown over IXOTH bit, not IXGRP. <sigh>
kientzle [Thu, 3 Jun 2004 23:43:40 +0000 (23:43 +0000)]
Pointy hat: sticky bit 't' or 'T' is shown over IXOTH bit, not IXGRP. <sigh>

20 years agoAdd a 'D' flag that can be specified on entries in newsyslog.conf.
gad [Thu, 3 Jun 2004 23:41:49 +0000 (23:41 +0000)]
Add a 'D' flag that can be specified on entries in newsyslog.conf.
If specified, the matching log files will have the NODUMP flag set
on them after they are created.

Submitted by: Sean Eric Fagan
MFC after: 16 days

20 years agoRefactor the extraction code somewhat. In particular,
kientzle [Thu, 3 Jun 2004 23:29:47 +0000 (23:29 +0000)]
Refactor the extraction code somewhat.  In particular,
push extract data down into archive_read_extract.c and out
of the library-global archive_private.h; push dir-specific
mode/time fixup down into dir restore function; now that the
fixup list is file-local, I can use somewhat more natural
naming.

Oh, yeah, update a bunch of comments to match current reality.

20 years agoAutomatically recognize the WRAP.1C and Soekris 4801 platforms and configure
phk [Thu, 3 Jun 2004 22:37:45 +0000 (22:37 +0000)]
Automatically recognize the WRAP.1C and Soekris 4801 platforms and configure
LEDS accordingly.

20 years agoAdd new bios_string() which will hunt for a string inside a given range
phk [Thu, 3 Jun 2004 22:36:24 +0000 (22:36 +0000)]
Add new bios_string() which will hunt for a string inside a given range
of the BIOS.  This can be used for finding arbitrary magic in the BIOS
in order to recognize particular platforms.

20 years agoPlug a file descriptor leak.
brian [Thu, 3 Jun 2004 22:33:50 +0000 (22:33 +0000)]
Plug a file descriptor leak.

When sed is asked to inline-edit files, it forgets to close the temporary
file and runs out of descriptors for long command lines (assuming you reset
kern.maxfilesperproc to something sane that's less than the number of files
passed to sed).

20 years agoChange standard processing to use the newer createlog() routine
gad [Thu, 3 Jun 2004 22:26:16 +0000 (22:26 +0000)]
Change standard processing to use the newer createlog() routine
that had been written some months ago for other processing.  This
should get rid of a few subtle situations where an existing log
file would not exist (for a short time) while it is being rotated.

MFC after: 16 days

20 years agoMFi386: add ixgp device
peter [Thu, 3 Jun 2004 21:40:41 +0000 (21:40 +0000)]
MFi386: add ixgp device

20 years agoThe NatSemi (now AMD) Geode SC1100 needs special treatment here and there
phk [Thu, 3 Jun 2004 21:14:53 +0000 (21:14 +0000)]
The NatSemi (now AMD) Geode SC1100 needs special treatment here and there
because it is an embedded gadget.  Give it it's own value for the "cpu"
variable and add code to reset it lacking a keyboard controller.

20 years agoMFi386: apic intpin programming updates etc.
peter [Thu, 3 Jun 2004 20:25:05 +0000 (20:25 +0000)]
MFi386: apic intpin programming updates etc.

20 years agoMFi386: remove debug printf
peter [Thu, 3 Jun 2004 20:22:48 +0000 (20:22 +0000)]
MFi386: remove debug printf

20 years agoMove module.h include to the same place as on i386 for diff reduction.
peter [Thu, 3 Jun 2004 20:21:30 +0000 (20:21 +0000)]
Move module.h include to the same place as on i386 for diff reduction.

20 years agoMFi386: move cpu_nameclass struct next to its only consumer
peter [Thu, 3 Jun 2004 20:18:15 +0000 (20:18 +0000)]
MFi386: move cpu_nameclass struct next to its only consumer

20 years ago- Comment out NULL, NULL barrier for Unix domain sockets section as the
jhb [Thu, 3 Jun 2004 20:07:44 +0000 (20:07 +0000)]
- Comment out NULL, NULL barrier for Unix domain sockets section as the
  double NULL entries signal Witness to stop processing the array of
  order entries meaning none of the spin locks are added resulting in
  panics on boot.
- Add a missing NULL, NULL terminator to the Slip locks list to keep them
  separate from the spin locks.

20 years agoAdd __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.
des [Thu, 3 Jun 2004 15:04:24 +0000 (15:04 +0000)]
Add __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.

MFC after: 1 week

20 years agoPlug small memory leak.
le [Thu, 3 Jun 2004 15:04:00 +0000 (15:04 +0000)]
Plug small memory leak.

PR:             bin/67392
Submitted by:   Matthew Emmerton <matt@gsicomp.on.ca>
MFC in:         1 week

20 years agoRemove checks for curthread == NULL - it can't happen.
tjr [Thu, 3 Jun 2004 10:22:47 +0000 (10:22 +0000)]
Remove checks for curthread == NULL - it can't happen.

20 years agoFix the ordering in the description of the dlsym() lookup procedure to
roam [Thu, 3 Jun 2004 10:13:26 +0000 (10:13 +0000)]
Fix the ordering in the description of the dlsym() lookup procedure to
reflect src/libexec/rtld-elf/rtld.c rev. 1.68 - the globally-loaded
objects (RTLD_GLOBAL) are searched before the local object's DAG's.

PR: 62770
Submitted by: Kimura Fuyuki <fuyuki@nigredo.org>

20 years agoAdd missing <sys/module.h> includes currently relying on nested include
phk [Thu, 3 Jun 2004 06:10:02 +0000 (06:10 +0000)]
Add missing <sys/module.h> includes currently relying on nested include
in <sys/kernel.h>

20 years agoAdd missing <sys/module.h> instances which were shadowed by the nested
phk [Thu, 3 Jun 2004 05:58:30 +0000 (05:58 +0000)]
Add missing <sys/module.h> instances which were shadowed by the nested
include in <sys/kernel.h>

20 years agoMove the locking of the pcb into raw_output(). Organize code so
bmilekic [Thu, 3 Jun 2004 03:15:29 +0000 (03:15 +0000)]
Move the locking of the pcb into raw_output().  Organize code so
that m_prepend() is not called with possibility to wait while the
pcb lock is held.  What still needs revisiting is whether the
ripcbinfo lock is really required here.

Discussed with: rwatson

20 years agoMove TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoid
tjr [Thu, 3 Jun 2004 01:47:37 +0000 (01:47 +0000)]
Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoid
having to acquire sched_lock when manipulating it in lockmgr(), uiomove(),
and uiomove_fromphys().

Reviewed by: jhb

20 years agoExpand the hard-coded WITNESS lock order to include the following
rwatson [Wed, 2 Jun 2004 23:28:06 +0000 (23:28 +0000)]
Expand the hard-coded WITNESS lock order to include the following
relationships:

Sockets:    filedesc->accept->sellck
Routing:    radix node head->rtentry->ifaddr
UDP:        udp->udpinp
TCP:        tcp->tcpinp
SLIP:       slip_mtx->slip sc_mtx

Drop in a place holder section for UNIX domain sockets.  Various
sections to be expanded over the next few days.

20 years agoTypedefing an array of incomplete structs is non-standard C code.
stefanf [Wed, 2 Jun 2004 23:02:31 +0000 (23:02 +0000)]
Typedefing an array of incomplete structs is non-standard C code.

Approved by: das (mentor)

20 years agoAbstract the locking in fxp(4) a bit more by using macros for
mux [Wed, 2 Jun 2004 22:59:57 +0000 (22:59 +0000)]
Abstract the locking in fxp(4) a bit more by using macros for
mtx_assert() and mtx_owned(), as it is done in other places,
for instance proc locking.

20 years agoUse the device sysctl tree instead of rolling our own. Some of the
mux [Wed, 2 Jun 2004 22:52:18 +0000 (22:52 +0000)]
Use the device sysctl tree instead of rolling our own.  Some of the
sysctls were global (hw.fxp_rnr and hw.fxp_noflow), all of them are
now per-device.  Sample output of "sysctl dev.fxp0" with this patch,
with the standard %foo nodes removed :

dev.fxp0.int_delay: 1000
dev.fxp0.bundle_max: 6
dev.fxp0.rnr: 0
dev.fxp0.noflow: 0

20 years agoAs discussed on arch@, flatten the device sysctl tree to make it
mux [Wed, 2 Jun 2004 22:43:35 +0000 (22:43 +0000)]
As discussed on arch@, flatten the device sysctl tree to make it
more convenient to deal with.  The notion of hierarchy is however
preserved by adding a new %parent node.

20 years agomkisofs(8) is now installed by sysutils/cdrtools.
marius [Wed, 2 Jun 2004 22:21:15 +0000 (22:21 +0000)]
mkisofs(8) is now installed by sysutils/cdrtools.

This will be instantly MFC'ed.

20 years agoAdd helper functions to calculate the standard ethernet CRC in
naddy [Wed, 2 Jun 2004 21:34:14 +0000 (21:34 +0000)]
Add helper functions to calculate the standard ethernet CRC in
little/big endian fashion, so that network drivers can just reference
the standard implementation and don't have to bring their own.

As discussed on arch@.

Obtained from: NetBSD

20 years agoRemove extra semicolon.
pjd [Wed, 2 Jun 2004 21:21:10 +0000 (21:21 +0000)]
Remove extra semicolon.

Inspired by: fjoe

20 years agoo Move NEED1 macro to the top of the source file.
csjp [Wed, 2 Jun 2004 21:12:55 +0000 (21:12 +0000)]
o Move NEED1 macro to the top of the source file.

o Add sanity checking to the firewall delete operation
  which tells the user that a firewall rule
  specification is required.

The previous behaviour was to exit without reporting any
errors to the user.

Approved by: bmilekic (mentor)

20 years agoImprove help handling:
kientzle [Wed, 2 Jun 2004 21:01:27 +0000 (21:01 +0000)]
Improve help handling:
   * --help produces long help message on systems with getopt_long
   * -h with no other options also produces long help message
     (If a mode is specified, -h has its usual meaning.)

20 years agoru's mdoc(7) style police was here.
joerg [Wed, 2 Jun 2004 20:21:28 +0000 (20:21 +0000)]
ru's mdoc(7) style police was here.

Submitted by: ru

20 years ago- Remove leading zero from document date [1]
krion [Wed, 2 Jun 2004 20:15:34 +0000 (20:15 +0000)]
- Remove leading zero from document date [1]
- Remove entry which tells about periodical INDEX updates in
  the CVS repository
- Add description for fetchindex target

Requested by: ru [1]
Approved by: josef (mentor)

20 years agoAdd missing dot and newline in a message.
fjoe [Wed, 2 Jun 2004 18:45:05 +0000 (18:45 +0000)]
Add missing dot and newline in a message.

Submitted by: Igor Sysoev <is (at) rambler-co.ru>
MFC after: 3 days

20 years agoCollapse sync fib locking into normal i/o locking. The former didn't
scottl [Wed, 2 Jun 2004 18:15:48 +0000 (18:15 +0000)]
Collapse sync fib locking into normal i/o locking.  The former didn't
protect the registers so it was trivially possible for a sync command and
i/o command to fight each other and confuse the controller.  Make the
sync fib alloc/release functions inline and remove the somewhat worthless
AAC_SYNC_LOCK_FORCE flag.  Thanks to Adil Katchi for helping me to track
this down in RELENG_4.

20 years agoRemove extra semicolon.
fjoe [Wed, 2 Jun 2004 18:03:07 +0000 (18:03 +0000)]
Remove extra semicolon.

20 years agoFixed lots of 1 ULP errors caused by a broken approximation for pi/2.
bde [Wed, 2 Jun 2004 17:09:05 +0000 (17:09 +0000)]
Fixed lots of 1 ULP errors caused by a broken approximation for pi/2.
We approximate pi with more than float precision using pi_hi+pi_lo in
the usual way (pi_hi is actually spelled pi in the source code), and
expect (float)0.5*pi_lo to give the low part of the corresponding
approximation for pi/2.  However, the high part for pi/2 (pi_o_2) is
rounded to nearest, which happens to round up, while the high part for
pi was rounded down.  Thus pi_o_2+(float)0.5*pi (in infinite precision)
was a very bad approximation for pi/2 -- the low term has the wrong
sign and increases the error drom less than half an ULP to a full ULP.

This fix rounds up instead of down for pi_hi.  Consistently rounding
down instead of up should work, and is the method used in e_acosf.c
and e_asinf.c.  The reason for the difference is that we sometimes
want to return precisely pi/2 in e_atan2f.c, so it is convenient to
have a correctly rounded (to nearest) value for pi/2 in a variable.
a_acosf.c and e_asinf.c also differ in directly approximating pi/2
instead pi; they multiply by 2.0 instead of dividing by 0.5 to convert
the approximation.

These complications are not directly visible in the double precision
versions because rounding to nearest happens to round down.

20 years agodo not check super user privilege in ip6_savecontrol. It is
ume [Wed, 2 Jun 2004 15:41:18 +0000 (15:41 +0000)]
do not check super user privilege in ip6_savecontrol.  It is
meaningless and can even be harmful.

Obtained from: KAME
MFC after: 3 days

20 years ago- Bump the document date
krion [Wed, 2 Jun 2004 15:03:59 +0000 (15:03 +0000)]
- Bump the document date

Requested by: ru
Approved by: ru, josef (mentor)

20 years ago- Mention new targets from bsd.port.mk:
krion [Wed, 2 Jun 2004 14:15:35 +0000 (14:15 +0000)]
- Mention new targets from bsd.port.mk:
  * config
  * showconfig
  * rmconfig
  * describe
- Add OPTIONS description
- Word smithing

PR: docs/67342
Reviewed by: ru
Approved by: josef (mentor)

20 years agoFill the 06/02 slot.
jmz [Wed, 2 Jun 2004 12:24:34 +0000 (12:24 +0000)]
Fill the 06/02 slot.

20 years agoRemove a redundant "td = curthread" statement from profclock().
tjr [Wed, 2 Jun 2004 12:05:06 +0000 (12:05 +0000)]
Remove a redundant "td = curthread" statement from profclock().

20 years agofix typo in comment in my previous commit.
ume [Wed, 2 Jun 2004 09:58:18 +0000 (09:58 +0000)]
fix typo in comment in my previous commit.

20 years agoAdd ip6addrctl_enable and ip6_addrctl_verbose option. If
ume [Wed, 2 Jun 2004 09:39:49 +0000 (09:39 +0000)]
Add ip6addrctl_enable and ip6_addrctl_verbose option.  If
ip6addrctl_enable is set to YES, address selection policy is installed
into kernel.
If there is /etc/ip6addrctl.conf, it is used for address selection
policy.  Even if there is no /etc/ip6addrctl.conf, we install default
policy.  In this case, if ipv6_enable is set to YES, we use address
selection policy described in RFC 3484 as default.  Otherwise, we
install priority policy for IPv4 address.
The default of ip6addrctl_enable is NO for now.  However, it may
better to enable it by default.

20 years agoSome embedded platforms have no keyboard controller. Give up waiting
phk [Wed, 2 Jun 2004 09:38:32 +0000 (09:38 +0000)]
Some embedded platforms have no keyboard controller.  Give up waiting
for it to react after a timeout.

20 years agoAdd MLINKS for new API functions.
kientzle [Wed, 2 Jun 2004 08:16:21 +0000 (08:16 +0000)]
Add MLINKS for new API functions.

20 years agoRefactor read_data:
kientzle [Wed, 2 Jun 2004 08:14:43 +0000 (08:14 +0000)]
Refactor read_data:
 * New read_data_block is both sparse-file aware and uses zero-copy semantics
 * Push read_data_block down into specific formats (opens door to
   various encoded entry bodies, such as zip or gtar -S)
 * Reimplement read_data, read_data_skip, read_data_into_fd in terms
   of new read_data_block.
 * Update documentation
It's unfortunate that I couldn't just call the new interface
archive_read_data, but didn't want to upset the API that much.

20 years agoMove TDF_SA from td_flags to td_pflags (and rename it accordingly)
tjr [Wed, 2 Jun 2004 07:52:36 +0000 (07:52 +0000)]
Move TDF_SA from td_flags to td_pflags (and rename it accordingly)
so that it is no longer necessary to hold sched_lock while
manipulating it.

Reviewed by: davidxu

20 years agotypos.
phk [Wed, 2 Jun 2004 07:31:11 +0000 (07:31 +0000)]
typos.

Pointed out by: ru

20 years agoBoth "foo/" and "foo" should match "foo/bar", so strip
kientzle [Wed, 2 Jun 2004 07:23:54 +0000 (07:23 +0000)]
Both "foo/" and "foo" should match "foo/bar", so strip
trailing '/' characters on include patterns for extraction.

Pointed out by: games/quakeforge port (thanks to Kris!)

20 years agoGive du(1) a -m option to report in megabytes.
phk [Wed, 2 Jun 2004 07:09:34 +0000 (07:09 +0000)]
Give du(1) a -m option to report in megabytes.

Submitted by: Vasily Korytov <deskpot@msk.yell.ru>
PR: 66976

20 years agouse source address as a hint to determine destination address
ume [Wed, 2 Jun 2004 06:49:36 +0000 (06:49 +0000)]
use source address as a hint to determine destination address
by getipnodebyname().

20 years agoGive daemon(8) the ability to create a pid-file. Since the target program
phk [Wed, 2 Jun 2004 06:48:13 +0000 (06:48 +0000)]
Give daemon(8) the ability to create a pid-file.  Since the target program
does not know anything about the pid-file and we don't keep a babysitting
process for the task, the pid-file will linger.

Submitted by: mi
PR: 56398

20 years ago - Run sched_balance() and sched_balance_groups() from hardclock via
jeff [Wed, 2 Jun 2004 05:46:48 +0000 (05:46 +0000)]
 - Run sched_balance() and sched_balance_groups() from hardclock via
   sched_clock() rather than using callouts.  This means we no longer have to
   take the load of the callout thread into consideration while balancing and
   should make the balancing decisions simpler and more accurate.

Tested on: x86/UP, amd64/SMP

20 years agoPort a bugfix from FDLIBM 5.3. The bug really only applies to tan()
das [Wed, 2 Jun 2004 04:39:44 +0000 (04:39 +0000)]
Port a bugfix from FDLIBM 5.3.  The bug really only applies to tan()
and not tanf() because float type can't represent numbers large enough
to trigger the problem.  However, there seems to be a precedent that
the float versions of the fdlibm routines should mirror their double
counterparts.

Also update to the FDLIBM 5.3 license.

Obtained from: FDLIBM
Reviewed by: exhaustive comparison