]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years ago- remove device keyword from makefs manpage
eadler [Mon, 17 Oct 2011 21:31:03 +0000 (21:31 +0000)]
- remove device keyword from makefs manpage

PR: docs/144408
Submitted by: gcooper
Approved by: gjb
Approved by: sahil (mentor)
MFC after: 1 week

12 years agoMake sure to report media change status to caller. Previously it
yongari [Mon, 17 Oct 2011 20:03:38 +0000 (20:03 +0000)]
Make sure to report media change status to caller. Previously it
always reported success.

12 years agoAdd missing driver lock in media status handler.
yongari [Mon, 17 Oct 2011 19:58:34 +0000 (19:58 +0000)]
Add missing driver lock in media status handler.

12 years agoClose a race where SIOCGIFMEDIA ioctl get inconsistent link status.
yongari [Mon, 17 Oct 2011 19:51:38 +0000 (19:51 +0000)]
Close a race where SIOCGIFMEDIA ioctl get inconsistent link status.
Because driver is accessing a common MII structure in
mii_pollstat(), updating user supplied structure should be done
before dropping a driver lock.

Reported by: Karim (fodillemlinkarimi <> gmail dot com)

12 years agoClose a race where SIOCGIFMEDIA ioctl get inconsistent link status.
yongari [Mon, 17 Oct 2011 19:49:00 +0000 (19:49 +0000)]
Close a race where SIOCGIFMEDIA ioctl get inconsistent link status.
Because driver is accessing a common MII structure in
mii_pollstat(), updating user supplied structure should be done
before dropping a driver lock.

Reported by: Karim (fodillemlinkarimi <> gmail dot com)

12 years agoFix whitespace.
ed [Mon, 17 Oct 2011 19:40:26 +0000 (19:40 +0000)]
Fix whitespace.

12 years agoReturn BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing
delphij [Mon, 17 Oct 2011 19:21:42 +0000 (19:21 +0000)]
Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing
vendor provided driver to override in kernel driver.

MFC after: 3 days

12 years agoUpdate llvm/clang's target triple (confusingly named LLVM_HOSTTRIPLE) to
dim [Mon, 17 Oct 2011 18:30:18 +0000 (18:30 +0000)]
Update llvm/clang's target triple (confusingly named LLVM_HOSTTRIPLE) to
$arch-unknown-freebsd10.0.

12 years agoMake the usbdump utility work again by using the correct BPF structures.
hselasky [Mon, 17 Oct 2011 15:54:20 +0000 (15:54 +0000)]
Make the usbdump utility work again by using the correct BPF structures.

MFC after: 3 days

12 years agoAdd missing default values for daily/800.scrub-zfs for documentation
se [Mon, 17 Oct 2011 14:37:24 +0000 (14:37 +0000)]
Add missing default values for daily/800.scrub-zfs for documentation
purposes. No functional change, since all parameters are set to their
default values.
MFC after: 1 week

12 years agoFix error message in case the backup storage directory does not exist and
se [Mon, 17 Oct 2011 14:33:41 +0000 (14:33 +0000)]
Fix error message in case the backup storage directory does not exist and
cannot be created ($daily_backup_pkgdb_dbdir -> $daily_backup_pkgdb_dir).
MFC after: 1 week

12 years agoDon't enable the PHY radar errors in calcrxfilter.
adrian [Mon, 17 Oct 2011 14:17:37 +0000 (14:17 +0000)]
Don't enable the PHY radar errors in calcrxfilter.
That way the radar errors aren't enabled prematurely.

A DFS tester has reported that radar events are reported
during channel scanning, before DFS is actually enabled.

12 years agoSort header file names.
ed [Mon, 17 Oct 2011 13:54:55 +0000 (13:54 +0000)]
Sort header file names.

Spotted by: des

12 years agoFix build after r226465.
bz [Mon, 17 Oct 2011 13:51:00 +0000 (13:51 +0000)]
Fix build after r226465.
Cast void * to char * for arithmetics and make function return "no error".

MFC after: 3 days

12 years agoFDT changes for 64 bit kernel
jchandra [Mon, 17 Oct 2011 13:44:33 +0000 (13:44 +0000)]
FDT changes for 64 bit kernel

Use the offset into the device tree from fdtp as the phandle instead
of using pointer into the device tree.  This will make sure that the
phandle fits into a uint32_t type, even when compiled for 64bit.

Reviewed by: raj, nathanw, marcel

12 years agoFix an issue with 11g beacon frames which looks to be a limitation
adrian [Mon, 17 Oct 2011 13:12:47 +0000 (13:12 +0000)]
Fix an issue with 11g beacon frames which looks to be a limitation
on the largest multi-write size.

From the submitter:

==
I looked further into the magic 88-byte threshold after which the bug
occurs.  It turns out that figure included the 24-byte tx_desc, and up
to 64 bytes of beacon frame (header+data).

rum_write_multi doesn't seem happy with writing >64 bytes at a time to
the MAC register.  If I break it up into separate calls (e.g. bytes
0-63, then bytes 64-65, written at the appropriate offset) I see the
proper beacon frames being transmitted now.
==

Submitted by: Steven Chamberlain <steven@pyro.eu.org>
MFC after: 3 days

12 years agoThe rc_force test was inverted in the previous commit, so that dhclient ran
des [Mon, 17 Oct 2011 13:05:57 +0000 (13:05 +0000)]
The rc_force test was inverted in the previous commit, so that dhclient ran
for interfaces which were not configured for DHCP *unless* rc_force was set;
the correct logic is to run dhclient for those interfaces *only if* rc_force
is set.

Broken by: des@
Noticed by: everybody and his dog
Submitted by: rea@
PR: bin/161733

12 years agoAllow to specify pidfile in HAST configuration file.
pjd [Mon, 17 Oct 2011 12:22:09 +0000 (12:22 +0000)]
Allow to specify pidfile in HAST configuration file.

MFC after: 1 week

12 years agoRemove redundant space.
pjd [Mon, 17 Oct 2011 09:59:04 +0000 (09:59 +0000)]
Remove redundant space.

MFC after: 1 week

12 years agoWhen path to the configuration file is relative, obtain full path,
pjd [Mon, 17 Oct 2011 09:54:07 +0000 (09:54 +0000)]
When path to the configuration file is relative, obtain full path,
so we can always find the file, even after daemonizing and changing
working directory to /.

MFC after: 1 week

12 years agoIt's no longer accurate to say that math.h "constitute[s] the C math
das [Mon, 17 Oct 2011 06:10:32 +0000 (06:10 +0000)]
It's no longer accurate to say that math.h "constitute[s] the C math
library," since complex.h, tgmath.h, and fenv.h are also part of the
math library.  Replace the outdated sentence with some references to
the other parts.

12 years agoFix for crash on MIPS /dev/mem read.
jchandra [Mon, 17 Oct 2011 05:42:53 +0000 (05:42 +0000)]
Fix for crash on MIPS /dev/mem read.

Reading /dev/mem in 64 bit kernel crashes.  This is because the page
used to call uiomove_fromphys() from memrw() does not have md.pv_list
initialized correctly.

The fix is to call pmap_page_init() on the page to initialize it.

12 years agoAdd c{cos,sin,tan}{,h}{,f} functions. This is joint work with
das [Mon, 17 Oct 2011 05:41:03 +0000 (05:41 +0000)]
Add c{cos,sin,tan}{,h}{,f} functions.  This is joint work with
bde and kargl.

12 years agoAdd syntactic sugar missed in r226437 and then not added either when moving
bz [Mon, 17 Oct 2011 00:05:31 +0000 (00:05 +0000)]
Add syntactic sugar missed in r226437 and then not added either when moving
things around in r226448 but desperately needed to always make things
compile successfully.

MFC after: 1 week

12 years agoThe code change made in r226040 was incomplete and resulted in
qingli [Sun, 16 Oct 2011 22:24:04 +0000 (22:24 +0000)]
The code change made in r226040 was incomplete and resulted in
routes such as fe80::1%lo0 no being installed. This patch completes
the original intended fix.

Reviewed by: hrs, bz
MFC after: 3 days

12 years agoDefine dtrace_cmpset_long in terms of atomic_cmpset_long
marcel [Sun, 16 Oct 2011 22:18:08 +0000 (22:18 +0000)]
Define dtrace_cmpset_long in terms of atomic_cmpset_long
and not by virtue of inline assembly. Now this file
compiles on all supported architectures.

12 years agoThe IPv6 code was influx at the time of r196865 due to the L2/L3
qingli [Sun, 16 Oct 2011 22:15:13 +0000 (22:15 +0000)]
The IPv6 code was influx at the time of r196865 due to the L2/L3
separation rewrite changes. r196865 was committed to fix a scope
violation problem in the following test scenario:

  box-1# ifconfig em0 inet6 2001:db8:1:: prefixlen 64 anycast
  box-1# ifconfig em1 inet6 2001:db8:2::1 prefixlen 64

  box-2# ifconfig re0 inet6 2001:db8:1::6 prefixlen 64

  em0 and re0 are on the same link.

  box-2# ping6 2001:db8:1::
  PING6(56=40+8+8 bytes) 2001:db8:1::6 --> 2001:db8:1::

the ICMPv6 response should have a source address of em1, which
is 2001:db8:2::1, not the link-local address of em0.

That code is no longer necessary and breaks the IPv6-Ready logo
testing, so revert it now.

Reviewed by: hrs
MFC after: 3 days

12 years agoIn pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet)
pjd [Sun, 16 Oct 2011 21:30:15 +0000 (21:30 +0000)]
In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet)
and the caller requested other process' PID by passing non-NULL pidptr
argument, we will wait at most 100ms for the PID to show up in the file and if
it won't, we will store -1 in *pidptr.

From now on, pidfile_open() function never sets errno to EAGAIN on failure.

In collaboration with: des
MFC after: 1 week

12 years agoAdd support for special keys (volume/brightness/eject) on Apple laptops with
nwhitehorn [Sun, 16 Oct 2011 21:01:42 +0000 (21:01 +0000)]
Add support for special keys (volume/brightness/eject) on Apple laptops with
ADB keyboards.

Submitted by: Justin Hibbits <jrh29 at alumni dot cwru dot edu>
MFC after: 9.0-RELEASE

12 years agoMove the tcp_sendspace and tcp_recvspace sysctl's from
andre [Sun, 16 Oct 2011 20:18:39 +0000 (20:18 +0000)]
Move the tcp_sendspace and tcp_recvspace sysctl's from
the middle of tcp_usrreq.c to the top of tcp_output.c
and tcp_input.c respectively next to the socket buffer
autosizing controls.

MFC after: 1 week

12 years agoRemove the ss_fltsz and ss_fltsz_local sysctl's which have
andre [Sun, 16 Oct 2011 20:06:44 +0000 (20:06 +0000)]
Remove the ss_fltsz and ss_fltsz_local sysctl's which have
long been superseded by the RFC3390 initial CWND sizing.

Also remove the remnants of TCP_METRICS_CWND which used the
TCP hostcache to set the initial CWND in a non-RFC compliant
way.

MFC after: 1 week

12 years agoFix a problem that an interface unexpectedly becomes IFF_UP by
hrs [Sun, 16 Oct 2011 19:46:52 +0000 (19:46 +0000)]
Fix a problem that an interface unexpectedly becomes IFF_UP by
just doing "ifconfing inet6 -ifdisabled" when the interface has
ND6_IFF_AUTO_LINKLOCAL flag and no link-local address.

12 years agoAdd missing #include.
ed [Sun, 16 Oct 2011 19:23:43 +0000 (19:23 +0000)]
Add missing #include.

Note to myself: don't write patches while watching a movie.

12 years agoDon't cast SIZE_T_MAX to off_t.
ed [Sun, 16 Oct 2011 19:15:25 +0000 (19:15 +0000)]
Don't cast SIZE_T_MAX to off_t.

I focused so much on the 32-bits case where we have to cast SIZE_T_MAX
up in size, that I forgot about the 64-bits case, where off_t and size_t
are equal in size. Simply cast both numbers to uintmax_t, as we can
assume st_size is never negative.

Reported by: cperciva

12 years agoFix 2 bugs :
cognet [Sun, 16 Oct 2011 17:59:28 +0000 (17:59 +0000)]
Fix 2 bugs :

- A race condition could happen if two threads were using RAS at the same time
as the code didn't reset RAS_END, the RAS code could believe we were not in
a RAS, when we were in fact.
- Using signed value logic to compare addresses wasn't such a good idea.

Many thanks to Ian to investigate on these issues.

Pointy hat to:  cognet
PR: arm/161498
Submitted by: Ian Lepore <freebsd At damnhippie DOT dyndns dot org
MFC after: 1 week

12 years agoRevert r226398 and instead move the allocation of usrbufs after the error check.
brueffer [Sun, 16 Oct 2011 17:38:20 +0000 (17:38 +0000)]
Revert r226398 and instead move the allocation of usrbufs after the error check.

Suggested by: pjd
MFC after: 1 week

12 years agoExplicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
cognet [Sun, 16 Oct 2011 17:37:54 +0000 (17:37 +0000)]
Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
page has been allocated, or we could end up using random values, and bad things
could happen.

PR: arm/161492
Submitted by: Ian Lepore <freebsd AT damnhippie dot dyndns DOT org>
MFC after: 1 week

12 years agoUnbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn't
cognet [Sun, 16 Oct 2011 16:58:28 +0000 (16:58 +0000)]
Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn't
set to no, as libbsnmp needs it.

12 years agoPlace quotes around the output of kbdmap(1), designed to be pasted into
nwhitehorn [Sun, 16 Oct 2011 16:05:23 +0000 (16:05 +0000)]
Place quotes around the output of kbdmap(1), designed to be pasted into
/etc/rc.conf.

PR: bin/161711
Submitted by: manolis
MFC after: 1 week

12 years agoVNET virtualize tcp_sendspace/tcp_recvspace and change the
andre [Sun, 16 Oct 2011 15:08:43 +0000 (15:08 +0000)]
VNET virtualize tcp_sendspace/tcp_recvspace and change the
type to INT.  A long is not necessary as the TCP window is
limited to 2**30.  A larger initial window isn't useful.

MFC after: 1 week

12 years ago- change "is is" to "is" or "it is"
eadler [Sun, 16 Oct 2011 14:30:28 +0000 (14:30 +0000)]
- change "is is" to "is" or "it is"
- change "the the" to "the"

Approved by: lstewart
Approved by: sahil (mentor)
MFC after: 3 days

12 years agoFix double vision syndrome (read: double output) when in the
marcel [Sun, 16 Oct 2011 14:16:46 +0000 (14:16 +0000)]
Fix double vision syndrome (read: double output) when in the
debugger without a panic.

12 years agoo Use C99 designated initializer to properly handle ELFOSABI_STANDALONE.
marcel [Sun, 16 Oct 2011 14:11:05 +0000 (14:11 +0000)]
o  Use C99 designated initializer to properly handle ELFOSABI_STANDALONE.
o  In elf_get_byte(), cast through uint8_t and not char to avoid sign
   extension.

12 years agoUpdate the comment and description of tcp_sendspace and tcp_recvspace
andre [Sun, 16 Oct 2011 13:54:46 +0000 (13:54 +0000)]
Update the comment and description of tcp_sendspace and tcp_recvspace
to better reflect their purpose.
MFC after: 1 week

12 years agoForward declare mbuf and inpcb.
ed [Sun, 16 Oct 2011 10:58:00 +0000 (10:58 +0000)]
Forward declare mbuf and inpcb.

This fixes a compiler warning at WARNS=6 when including the header files
as follows:

#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>

12 years agoAdjust posix_memalign() prototype to match what we define in stdlib.h for
stefanf [Sun, 16 Oct 2011 10:14:33 +0000 (10:14 +0000)]
Adjust posix_memalign() prototype to match what we define in stdlib.h for
C++ compilation.

PR: standards/147210

12 years agoFix ncplist to build with WARNS=6.
ed [Sun, 16 Oct 2011 10:00:28 +0000 (10:00 +0000)]
Fix ncplist to build with WARNS=6.

Add some const and static keywords to get it all to build. Also add
missing #includes.

12 years agoUndo r226423.
ed [Sun, 16 Oct 2011 09:09:33 +0000 (09:09 +0000)]
Undo r226423.

It seems su does build without warnings, but it requires a small fix to
libbsm headers, which I have not committed to SVN yet.

12 years agoBuild rwho(1) with WARNS=6.
ed [Sun, 16 Oct 2011 08:54:41 +0000 (08:54 +0000)]
Build rwho(1) with WARNS=6.

The only reason why it didn't build with WARNS=6, is because of some
simple to fix string formatting bugs.

MFC after: 3 months

12 years agoChange the SDP_GET* macros to cast to a const buffer.
ed [Sun, 16 Oct 2011 08:45:16 +0000 (08:45 +0000)]
Change the SDP_GET* macros to cast to a const buffer.

This fixes a compiler warning when passing a const buffer to them.

12 years agoChange ncp_scan_bindery_object() to pass a constant search string.
ed [Sun, 16 Oct 2011 08:44:03 +0000 (08:44 +0000)]
Change ncp_scan_bindery_object() to pass a constant search string.

The ncp_scan_bindery_object() function does not modify search_string
internally, so there is no need to declare it as `char *'.

12 years agoUse integer to store the result of getch().
ed [Sun, 16 Oct 2011 08:36:10 +0000 (08:36 +0000)]
Use integer to store the result of getch().

We need to use an integer to make the comparison against ERR work.

MFC after: 3 months

12 years agoRemove WARNS line. This tool builds with WARNS=6 properly.
ed [Sun, 16 Oct 2011 08:14:12 +0000 (08:14 +0000)]
Remove WARNS line. This tool builds with WARNS=6 properly.

12 years agoFix build of m4 with WARNS=6.
ed [Sun, 16 Oct 2011 08:09:17 +0000 (08:09 +0000)]
Fix build of m4 with WARNS=6.

Change the parser; rename `exp' to `exponent' not to collide with exp(3).

12 years agoRemove unneeded WARNS=3 lines.
ed [Sun, 16 Oct 2011 08:04:43 +0000 (08:04 +0000)]
Remove unneeded WARNS=3 lines.

It seems these two tools can be built properly with WARNS=6, even on
architectures that are stricter about alignment.

12 years agoBuild at(1) with NO_WFORMAT instead of WARNS=1.
ed [Sun, 16 Oct 2011 07:57:01 +0000 (07:57 +0000)]
Build at(1) with NO_WFORMAT instead of WARNS=1.

12 years agoMake some internal fixes to ruptime(1):
ed [Sun, 16 Oct 2011 07:36:27 +0000 (07:36 +0000)]
Make some internal fixes to ruptime(1):

- Prevent possible unaligned access to struct whoent.
- Increase uptime column by one, to properly print hosts with an uptime
  greater than 1000 days.
- Reduce code complexity by storing struct whod inside struct hs.
- Set WARNS to 6.

MFC after: 3 months

12 years agoAccording to the NetBSD foundation [1]:
delphij [Sun, 16 Oct 2011 07:35:26 +0000 (07:35 +0000)]
According to the NetBSD foundation [1]:

Third parties are encouraged to change the license on any files which have
a 4-clause license contributed to the NetBSD Foundation to a 2-clause
license. We would also encourage you to inform us about these files, so
that we can continue to track the many places in which NetBSD is used.

http://www.netbsd.org/about/redistribution.html#why2clause [1]

Requested by: joel@

12 years agoPartially revert r226274, the old code was right.
delphij [Sun, 16 Oct 2011 07:05:43 +0000 (07:05 +0000)]
Partially revert r226274, the old code was right.

12 years agoUse #include "fenv.h" instead of #include <fenv.h>. This makes it
das [Sun, 16 Oct 2011 05:37:56 +0000 (05:37 +0000)]
Use #include "fenv.h" instead of #include <fenv.h>.  This makes it
more convenient to compile the math library by itself.

Requested by: bde

12 years agoFix some non-standard variable declarations.
das [Sun, 16 Oct 2011 05:37:20 +0000 (05:37 +0000)]
Fix some non-standard variable declarations.

12 years agoOptimize the case of pure imaginary arguments. Calls like this are
das [Sun, 16 Oct 2011 05:37:01 +0000 (05:37 +0000)]
Optimize the case of pure imaginary arguments.  Calls like this are
common, e.g., in DFT implementations.

Discussed with: bde, kargl

12 years agoMove the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() into
das [Sun, 16 Oct 2011 05:36:39 +0000 (05:36 +0000)]
Move the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() into
math_private.h, so they can be used elsewhere in the math library.

12 years agoRemove an unused variable.
das [Sun, 16 Oct 2011 05:36:23 +0000 (05:36 +0000)]
Remove an unused variable.

12 years agoEnforce a memory barrier in stream operations, as is done on other
nwhitehorn [Sat, 15 Oct 2011 23:15:55 +0000 (23:15 +0000)]
Enforce a memory barrier in stream operations, as is done on other
bus_space calls. This makes ath(4) work correctly on PowerPC.

Submitted by: adrian
Tested by: andreast
MFC after: 3 days

12 years agoProperly free resources in case of an error.
brueffer [Sat, 15 Oct 2011 22:27:35 +0000 (22:27 +0000)]
Properly free resources in case of an error.

CID: 4222
Found with: Coverity Prevent(tm)
MFC after: 1 week

12 years ago- add support for I-O DATA RSA-PCI2/R
eadler [Sat, 15 Oct 2011 21:06:08 +0000 (21:06 +0000)]
- add support for I-O DATA RSA-PCI2/R

PR: kern/142999
Submitted by: Takefu Kenji <takefu@airport.fm>
Approved by: jhb
Approved by: sahil (mentor)
MFC after: 1 week

12 years agoIn r225809 the intention was to send VEOF only once if STDIN was not a
trociny [Sat, 15 Oct 2011 19:08:22 +0000 (19:08 +0000)]
In r225809 the intention was to send VEOF only once if STDIN was not a
terminal. Unfortunately the fix was incorrect and for flushtime > 0 it
keept sending VEOF.

Sent VEOF generates ^D\b\b echoed by the terminal, which was reported
in bin/161526. Note, we still send VEOF at least once. Otherwise
commands like below would hang forever:

  echo 1 |script /tmp/script.out cat

PR: bin/161526
Reported by: Adrian Wontroba <aw1@stade.co.uk>, Stefan Bethke <stb@lassitu.de>
Tested by: Stefan Bethke <stb@lassitu.de>
MFC after: 3 days

12 years agoAdd support for IPv4 /31 prefixes, as described in RFC3021.
glebius [Sat, 15 Oct 2011 18:41:25 +0000 (18:41 +0000)]
Add support for IPv4 /31 prefixes, as described in RFC3021.

To run a /31 network, participating hosts MUST drop support
for directed broadcasts, and treat the first and last addresses
on subnet as unicast. The broadcast address for the prefix
should be the link local broadcast address, INADDR_BROADCAST.

12 years agoRemove last remnants of classful addressing:
glebius [Sat, 15 Oct 2011 16:28:06 +0000 (16:28 +0000)]
Remove last remnants of classful addressing:

- Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr.
- Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011.
- fix bug when we were not forwarding to a host which matches classful
  net address. For example router having 192.168.x.y/16 network attached,
  would not forward traffic to 192.168.*.0, which are legal IPs in
  CIDR world.
- For compatibility, leave autoguessing of mask based on class.

Reviewed by: andre, bz, rwatson

12 years agoProperly free resources in an error case.
brueffer [Sat, 15 Oct 2011 15:57:55 +0000 (15:57 +0000)]
Properly free resources in an error case.

CID: 4203
Found with: Coverity Prevent(tm)
MFC after: 1 week

12 years agoFix whitespace inconsistencies in systat(1).
ed [Sat, 15 Oct 2011 13:20:36 +0000 (13:20 +0000)]
Fix whitespace inconsistencies in systat(1).

According to md5(1), the resulting binary is the same.

12 years agoControl the execution permission of the readable segments for
kib [Sat, 15 Oct 2011 12:35:18 +0000 (12:35 +0000)]
Control the execution permission of the readable segments for
i386 binaries on the amd64 and ia64 with the sysctl, instead of
unconditionally enabling it.

Reviewed by: marcel

12 years agoMerge from NetBSD:
marius [Sat, 15 Oct 2011 09:29:43 +0000 (09:29 +0000)]
Merge from NetBSD:
- Remove clause 3 and 4 from TNF licenses.
- Fix memset usage.
- Various cleanup.
- Kill caddr_t.

12 years agoRemove some unnecessary initializations.
das [Sat, 15 Oct 2011 07:00:28 +0000 (07:00 +0000)]
Remove some unnecessary initializations.

Obtained from: DragonFlyBSD

12 years agoAdd some tests for corner cases of log() in unusual rounding modes.
das [Sat, 15 Oct 2011 05:28:13 +0000 (05:28 +0000)]
Add some tests for corner cases of log() in unusual rounding modes.
I wrote these ages ago, but they've been failing until now.

12 years agoAdd some tests for double-rounding bugs in fma().
das [Sat, 15 Oct 2011 05:26:16 +0000 (05:26 +0000)]
Add some tests for double-rounding bugs in fma().

12 years agoVarious changes to improve the accuracy and speed of log{2,10}{,f}.
das [Sat, 15 Oct 2011 05:23:28 +0000 (05:23 +0000)]
Various changes to improve the accuracy and speed of log{2,10}{,f}.
- Rename __kernel_log() to k_log1p().
- Move some of the work that was previously done in the kernel log into
  the callers.  This enables further refactoring to improve accuracy or
  speed, although I don't recall the details.
- Use extra precision when adding the final scaling term, which improves
  accuracy.
- Describe and work around compiler problems that break some of the
  multiprecision calculations.

A fix for a small bug is also included:
- Add a special case for log*(1).  This is needed to ensure that log*(1) == +0
  instead of -0, even when the rounding mode is FE_DOWNWARD.

Submitted by: bde

12 years agoStyle fixes and updates to comments.
das [Sat, 15 Oct 2011 05:00:56 +0000 (05:00 +0000)]
Style fixes and updates to comments.

Submitted by: bde

12 years agoDon't define FP_FAST_FMA on sparc64; with the recent fixes, fma() is
das [Sat, 15 Oct 2011 04:24:54 +0000 (04:24 +0000)]
Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() is
no longer "fast" on sparc64.  (It really wasn't to begin with, since
the old implementation was using long doubles, and long doubles are
emulated in software on sparc64.)

12 years agoAdd INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c.
das [Sat, 15 Oct 2011 04:22:55 +0000 (04:22 +0000)]
Add INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c.

12 years agoReplace two lines accidentally removed in r226218. Thanks to bde
das [Sat, 15 Oct 2011 04:17:20 +0000 (04:17 +0000)]
Replace two lines accidentally removed in r226218. Thanks to bde
for noticing this.

12 years agoFix a double-rounding bug in fma{,f,l}. The bug would occur in
das [Sat, 15 Oct 2011 04:16:58 +0000 (04:16 +0000)]
Fix a double-rounding bug in fma{,f,l}.  The bug would occur in
round-to-nearest mode when the result, rounded to twice machine
precision, was exactly halfway between two machine-precision
values.  The essence of the fix is to simulate a "sticky bit" in
the pathological cases, which is how hardware implementations
break the ties.

MFC after: 1 month

12 years agoNever switch directly from INIT to MASTER, since this produces
glebius [Fri, 14 Oct 2011 19:05:26 +0000 (19:05 +0000)]
Never switch directly from INIT to MASTER, since this produces
nasty status flaps.

PR: kern/161123
Submitted by: Damien Fleuriot <dam my.gd>
OpenBSD: ip_carp.c, rev. 1.115

12 years agoFix a typo in a comment.
jhb [Fri, 14 Oct 2011 11:48:32 +0000 (11:48 +0000)]
Fix a typo in a comment.

12 years agoRegen.
jhb [Fri, 14 Oct 2011 11:47:14 +0000 (11:47 +0000)]
Regen.

12 years agoUse PAIR32TO64() for the offset and length parameters to
jhb [Fri, 14 Oct 2011 11:46:46 +0000 (11:46 +0000)]
Use PAIR32TO64() for the offset and length parameters to
freebsd32_posix_fallocate() to properly handle big-endian platforms.

Reviewed by: mdf
MFC after: 1 week

12 years agoPut parentheses in the right place.
ed [Fri, 14 Oct 2011 10:43:55 +0000 (10:43 +0000)]
Put parentheses in the right place.

Noted by: jilles@
Broken by: me. :-(

12 years agoMake nl(1) build with WARNS=6.
ed [Fri, 14 Oct 2011 07:28:39 +0000 (07:28 +0000)]
Make nl(1) build with WARNS=6.

Obtained from: NetBSD

12 years agoBuild last(1) and leave(1) with WARNS=6.
ed [Fri, 14 Oct 2011 07:26:20 +0000 (07:26 +0000)]
Build last(1) and leave(1) with WARNS=6.

These ports were only built with WARNS=1, because they use certain
format extensions. We can use NO_WFORMAT for that instead.

12 years agoBuild tr(1) with WARNS=6.
ed [Fri, 14 Oct 2011 07:25:20 +0000 (07:25 +0000)]
Build tr(1) with WARNS=6.

12 years agoBuild look(1) with WARNS=6.
ed [Fri, 14 Oct 2011 07:24:48 +0000 (07:24 +0000)]
Build look(1) with WARNS=6.

12 years agoBuild finger(1) with WARNS=6.
ed [Fri, 14 Oct 2011 07:24:23 +0000 (07:24 +0000)]
Build finger(1) with WARNS=6.

12 years agoath_pci PCI setup fixes.
adrian [Fri, 14 Oct 2011 03:24:35 +0000 (03:24 +0000)]
ath_pci PCI setup fixes.

* Break out the PCI setup override code into a new function.
* Re-apply the PCI overrides on powersave resume. The retry timeout
  register isn't currently being saved/resumed by the PCI driver/bus
  code.

12 years agoAdd mentors and myself to committers-doc.dot.
wblock [Fri, 14 Oct 2011 00:34:45 +0000 (00:34 +0000)]
Add mentors and myself to committers-doc.dot.

Approved by: gjb (mentor)

12 years agoUse PTRIN().
marcel [Thu, 13 Oct 2011 22:33:03 +0000 (22:33 +0000)]
Use PTRIN().

12 years agoAdd myself to committers-ports.dot and calendar.freebsd.
rakuco [Thu, 13 Oct 2011 20:36:43 +0000 (20:36 +0000)]
Add myself to committers-ports.dot and calendar.freebsd.

Approved by: avilla (mentor)

12 years agoMerge from r225950:
marius [Thu, 13 Oct 2011 20:06:19 +0000 (20:06 +0000)]
Merge from r225950:

Set the sense residual properly.

Reviewed by: ken

12 years agoWrap mprotect(2) so that we can add execute permissions when read
marcel [Thu, 13 Oct 2011 18:25:10 +0000 (18:25 +0000)]
Wrap mprotect(2) so that we can add execute permissions when read
permissions are requested. This is needed on amd64 and ia64 for
JDK 1.4.x

12 years agoWrap mprotect(2)
marcel [Thu, 13 Oct 2011 18:21:11 +0000 (18:21 +0000)]
Wrap mprotect(2)