summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the ss_fltsz and ss_fltsz_local sysctl's which haveandre2011-10-163-53/+3
| | | | | | | | | | 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
* Fix a problem that an interface unexpectedly becomes IFF_UP byhrs2011-10-161-26/+29
| | | | | just doing "ifconfing inet6 -ifdisabled" when the interface has ND6_IFF_AUTO_LINKLOCAL flag and no link-local address.
* Add missing #include.ed2011-10-161-0/+1
| | | | Note to myself: don't write patches while watching a movie.
* Don't cast SIZE_T_MAX to off_t.ed2011-10-161-1/+1
| | | | | | | | | 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
* Fix 2 bugs :cognet2011-10-162-17/+19
| | | | | | | | | | | | | | - 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
* Revert r226398 and instead move the allocation of usrbufs after the error check.brueffer2011-10-161-4/+2
| | | | | Suggested by: pjd MFC after: 1 week
* Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or thecognet2011-10-161-0/+2
| | | | | | | | | 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
* Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn'tcognet2011-10-161-0/+5
| | | | set to no, as libbsnmp needs it.
* Place quotes around the output of kbdmap(1), designed to be pasted intonwhitehorn2011-10-161-1/+1
| | | | | | | | /etc/rc.conf. PR: bin/161711 Submitted by: manolis MFC after: 1 week
* VNET virtualize tcp_sendspace/tcp_recvspace and change theandre2011-10-163-11/+16
| | | | | | | 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
* - change "is is" to "is" or "it is"eadler2011-10-1635-41/+41
| | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* Fix double vision syndrome (read: double output) when in themarcel2011-10-161-13/+7
| | | | debugger without a panic.
* o Use C99 designated initializer to properly handle ELFOSABI_STANDALONE.marcel2011-10-161-6/+7
| | | | | o In elf_get_byte(), cast through uint8_t and not char to avoid sign extension.
* Update the comment and description of tcp_sendspace and tcp_recvspaceandre2011-10-161-5/+4
| | | | | to better reflect their purpose. MFC after: 1 week
* Forward declare mbuf and inpcb.ed2011-10-161-0/+3
| | | | | | | | | | | 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>
* Adjust posix_memalign() prototype to match what we define in stdlib.h forstefanf2011-10-161-1/+1
| | | | | | C++ compilation. PR: standards/147210
* Fix ncplist to build with WARNS=6.ed2011-10-162-7/+7
| | | | | Add some const and static keywords to get it all to build. Also add missing #includes.
* Undo r226423.ed2011-10-161-0/+2
| | | | | It seems su does build without warnings, but it requires a small fix to libbsm headers, which I have not committed to SVN yet.
* Build rwho(1) with WARNS=6.ed2011-10-162-4/+3
| | | | | | | 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
* Change the SDP_GET* macros to cast to a const buffer.ed2011-10-161-3/+3
| | | | This fixes a compiler warning when passing a const buffer to them.
* Change ncp_scan_bindery_object() to pass a constant search string.ed2011-10-162-2/+2
| | | | | The ncp_scan_bindery_object() function does not modify search_string internally, so there is no need to declare it as `char *'.
* Use integer to store the result of getch().ed2011-10-161-2/+2
| | | | | | We need to use an integer to make the comparison against ERR work. MFC after: 3 months
* Remove WARNS line. This tool builds with WARNS=6 properly.ed2011-10-161-2/+0
|
* Fix build of m4 with WARNS=6.ed2011-10-163-12/+11
| | | | Change the parser; rename `exp' to `exponent' not to collide with exp(3).
* Remove unneeded WARNS=3 lines.ed2011-10-162-4/+0
| | | | | It seems these two tools can be built properly with WARNS=6, even on architectures that are stricter about alignment.
* Build at(1) with NO_WFORMAT instead of WARNS=1.ed2011-10-161-1/+1
|
* Make some internal fixes to ruptime(1):ed2011-10-162-45/+40
| | | | | | | | | | - 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
* According to the NetBSD foundation [1]:delphij2011-10-161-7/+0
| | | | | | | | | | | 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@
* Partially revert r226274, the old code was right.delphij2011-10-161-1/+1
|
* Use #include "fenv.h" instead of #include <fenv.h>. This makes itdas2011-10-167-7/+7
| | | | | | more convenient to compile the math library by itself. Requested by: bde
* Fix some non-standard variable declarations.das2011-10-161-10/+10
|
* Optimize the case of pure imaginary arguments. Calls like this aredas2011-10-162-2/+9
| | | | | | common, e.g., in DFT implementations. Discussed with: bde, kargl
* Move the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() intodas2011-10-162-15/+19
| | | | math_private.h, so they can be used elsewhere in the math library.
* Remove an unused variable.das2011-10-161-1/+1
|
* Enforce a memory barrier in stream operations, as is done on othernwhitehorn2011-10-151-0/+7
| | | | | | | | bus_space calls. This makes ath(4) work correctly on PowerPC. Submitted by: adrian Tested by: andreast MFC after: 3 days
* Properly free resources in case of an error.brueffer2011-10-151-0/+1
| | | | | | CID: 4222 Found with: Coverity Prevent(tm) MFC after: 1 week
* - add support for I-O DATA RSA-PCI2/Readler2011-10-151-0/+6
| | | | | | | | PR: kern/142999 Submitted by: Takefu Kenji <takefu@airport.fm> Approved by: jhb Approved by: sahil (mentor) MFC after: 1 week
* In r225809 the intention was to send VEOF only once if STDIN was not atrociny2011-10-151-3/+6
| | | | | | | | | | | | | | | | 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
* Add support for IPv4 /31 prefixes, as described in RFC3021.glebius2011-10-152-4/+11
| | | | | | | 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.
* Remove last remnants of classful addressing:glebius2011-10-154-52/+18
| | | | | | | | | | | | - 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
* Properly free resources in an error case.brueffer2011-10-151-1/+3
| | | | | | CID: 4203 Found with: Coverity Prevent(tm) MFC after: 1 week
* Fix whitespace inconsistencies in systat(1).ed2011-10-1512-131/+131
| | | | According to md5(1), the resulting binary is the same.
* Control the execution permission of the readable segments forkib2011-10-154-4/+16
| | | | | | | i386 binaries on the amd64 and ia64 with the sysctl, instead of unconditionally enabling it. Reviewed by: marcel
* Merge from NetBSD:marius2011-10-156-327/+344
| | | | | | | - Remove clause 3 and 4 from TNF licenses. - Fix memset usage. - Various cleanup. - Kill caddr_t.
* Remove some unnecessary initializations.das2011-10-156-6/+2
| | | | Obtained from: DragonFlyBSD
* Add some tests for corner cases of log() in unusual rounding modes.das2011-10-151-2/+29
| | | | I wrote these ages ago, but they've been failing until now.
* Add some tests for double-rounding bugs in fma().das2011-10-151-1/+54
|
* Various changes to improve the accuracy and speed of log{2,10}{,f}.das2011-10-156-72/+143
| | | | | | | | | | | | | | | | | - 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
* Style fixes and updates to comments.das2011-10-154-32/+34
| | | | Submitted by: bde
* Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() isdas2011-10-151-5/+2
| | | | | | 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.)
OpenPOWER on IntegriCloud