]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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)

12 years agoIn freebsd32_mmap() and when compiling for amd64 or ia64, also
marcel [Thu, 13 Oct 2011 18:18:42 +0000 (18:18 +0000)]
In freebsd32_mmap() and when compiling for amd64 or ia64, also
ask for execute permissions when read permissions are wanted.
This is needed for JDK 1.4.x on i386.

12 years agoFix bmiss notifications, events should be sent when NOT scanning.
bschmidt [Thu, 13 Oct 2011 18:17:03 +0000 (18:17 +0000)]
Fix bmiss notifications, events should be sent when NOT scanning.

MFC after: 3 days

12 years agoMake dhclient use a pid file. Modify the rc script accordingly; while
des [Thu, 13 Oct 2011 17:20:45 +0000 (17:20 +0000)]
Make dhclient use a pid file.  Modify the rc script accordingly; while
there, clean it up and add some error checks.

Glanced at by: brooks@
MFC after: 3 weeks

12 years agoClean up mkioctls a bit, and fix cross-building by checking ${MACHINE}
des [Thu, 13 Oct 2011 16:29:24 +0000 (16:29 +0000)]
Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE}
instead of $(uname -m).

Pointed out by: nyan@

12 years agoIn sys_obreak() and when compiling for amd64 or ia64, when the process
marcel [Thu, 13 Oct 2011 16:20:10 +0000 (16:20 +0000)]
In sys_obreak() and when compiling for amd64 or ia64, when the process
is ILP32 (i.e. i386) grant execute permissions by default. The JDK 1.4.x
depends on being able to execute from the heap on i386.

12 years agoIn elf32_trans_prot() and when compiling for amd64 or ia64, add
marcel [Thu, 13 Oct 2011 16:16:46 +0000 (16:16 +0000)]
In elf32_trans_prot() and when compiling for amd64 or ia64, add
PROT_EXECUTE when PROT_READ is needed. By default i386 allows
execution when reading is allowed and JDK 1.4.x depends on that.

12 years agoLink the demo application against ncursesw to make Unicode work.
ed [Thu, 13 Oct 2011 14:20:27 +0000 (14:20 +0000)]
Link the demo application against ncursesw to make Unicode work.

12 years agoUse TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation.
glebius [Thu, 13 Oct 2011 13:33:23 +0000 (13:33 +0000)]
Use TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation.

12 years agoDe-spl(9).
glebius [Thu, 13 Oct 2011 13:30:41 +0000 (13:30 +0000)]
De-spl(9).

12 years agoRestore functions in6_ifaddloop() and in6_ifremloop() that were
glebius [Thu, 13 Oct 2011 13:05:36 +0000 (13:05 +0000)]
Restore functions in6_ifaddloop() and in6_ifremloop() that were
inlined by Qing Li in his big new-ARP commit. I am going to utilize
them in my newcarp work, and also these functions left declared
in in6_var.h for all the time they were absent.

Reviewed by: bz

12 years agoMake kdump compile cleanly at WARNS level 6, with one exception: the
des [Wed, 12 Oct 2011 21:45:12 +0000 (21:45 +0000)]
Make kdump compile cleanly at WARNS level 6, with one exception: the
ipfilter headers contain a duplicated function declaration.  Turn off
-Werror to allow kdump to compile in spite of this.

It would be neat to be able to turn off -Werror on a file-by-file basis...

PR: bin/161478
Submitted by: Garrett Cooper <yanegomi@gmail.com>

12 years agoName these gpio pins better, they are on an external PLD and not the same as
thompsa [Wed, 12 Oct 2011 20:58:54 +0000 (20:58 +0000)]
Name these gpio pins better, they are on an external PLD and not the same as
the cpu wired gpio.

12 years agoDont just set the pin high when turning on output, use the current value. Also
thompsa [Wed, 12 Oct 2011 20:57:21 +0000 (20:57 +0000)]
Dont just set the pin high when turning on output, use the current value. Also
let this value be set when in input mode.

12 years agoAdd myself
gleb [Wed, 12 Oct 2011 20:18:13 +0000 (20:18 +0000)]
Add myself

Approved by: mdf (mentor)

12 years agoMake sure the inp wasn't dropped when rexmt let go of the inp and
np [Wed, 12 Oct 2011 19:52:23 +0000 (19:52 +0000)]
Make sure the inp wasn't dropped when rexmt let go of the inp and
pcbinfo locks.

Reviewed by: andre@
MFC after: 7 days

12 years agoDocument that memguard(9) now can guard uma(9) allocations.
glebius [Wed, 12 Oct 2011 18:46:48 +0000 (18:46 +0000)]
Document that memguard(9) now can guard uma(9) allocations.

12 years agoMake memguard(9) capable to guard uma(9) allocations.
glebius [Wed, 12 Oct 2011 18:08:28 +0000 (18:08 +0000)]
Make memguard(9) capable to guard uma(9) allocations.

12 years agoAdd symlink from clang to clang-cpp, so you can use CPP=clang-cpp in
dim [Wed, 12 Oct 2011 17:47:15 +0000 (17:47 +0000)]
Add symlink from clang to clang-cpp, so you can use CPP=clang-cpp in
Makefiles.  Also add a manpage symlink for it.

MFC after: 3 days

12 years agoAdd manpage symlink for clang++(1).
dim [Wed, 12 Oct 2011 17:25:49 +0000 (17:25 +0000)]
Add manpage symlink for clang++(1).

PR: docs/149051
MFC after: 3 days

12 years agoMissed file in r225937 (sysinstall removal).
nwhitehorn [Wed, 12 Oct 2011 15:34:25 +0000 (15:34 +0000)]
Missed file in r225937 (sysinstall removal).

12 years agoIf an allocation for a specific resource range fails because it is not in
jhb [Wed, 12 Oct 2011 14:13:32 +0000 (14:13 +0000)]
If an allocation for a specific resource range fails because it is not in
a decoded range for an ACPI Host-PCI bridge, try to allocate it from the
ACPI system resource range.  If that works, permit the resource allocation
regardless.

MFC after: 1 week

12 years agoCorrect a bug in export of capability-related information from the sysctls
rwatson [Wed, 12 Oct 2011 12:08:03 +0000 (12:08 +0000)]
Correct a bug in export of capability-related information from the sysctls
supporting procstat -f: properly provide capability rights information to
userspace.  The bug resulted from a merge-o during upstreaming (or rather,
a failure to properly merge FreeBSD-side changed downstream).

Spotted by:     des, kibab
MFC after:      3 days

12 years agoFix an unused variable warning/error when invariants isn't enabled.
adrian [Wed, 12 Oct 2011 10:19:55 +0000 (10:19 +0000)]
Fix an unused variable warning/error when invariants isn't enabled.

Reported by: bz

12 years agoDon't call fixup_filename() on each witness lock call.
adrian [Wed, 12 Oct 2011 09:21:02 +0000 (09:21 +0000)]
Don't call fixup_filename() on each witness lock call.

This has been irking me for a while. This causes significant
CPU use on bottlenecked CPUs (eg my older EEEPC w/ an earlier
Celeron CPU and my MIPS24k boards) when they're passing
a lot of traffic.

Since the file/line values are only used for printing, this
should only affect display. It should have no operational
change on the code, besides reducing CPU use.

12 years agoMFV of tzdata2011l, r226279
edwin [Wed, 12 Oct 2011 09:13:16 +0000 (09:13 +0000)]
MFV of tzdata2011l, r226279

Changes in 2011i:

    Africa
    - Added South Sudan: Africa/Juba

    Australasia:
    - Samoa will go forward 24 hours at 30 December 2011 to better match
      the day of the week with its neighbours.

    Europe:
    - Europe/Kaliningrad will have the timezone KALT.

    North America:
    - Updates to Metlakatla historical data
    - Newfoundland, Labrador and Resolute will do something which I
      can't figure out.

    iso3166tab;
    - Add SS for South Sudan.

Changes in 2011j:

    - Samoa will go from 29 December 23:59:59 to 31 December 00:00:00.
    - Samoa DST will end on 1 April 2012

Changes in 2011k:

    - Gaza / West Bank goes back to standard time on 02 August 2011.
    - West Bank went bac kto DST on 30 August 2011.
    - Lots of changes in Minsk (GMT+3 without DST) and other Russian
      regions. A new timezone has been created for them, FET: Further-eastern
      European Time aka GMT+3.
    - Add Asian/Hebron to the zone.tab file.

Changes in 2011l:

    - West Bank came out of DST on 30 September 2011.
    - Fiji will g oin DST on 23 October and out of it on 26 Februari
    - State Bahia might go back to DST in 16 October 2011

    Due to legal problems, ado and Paul Eggert have to temporary suspend
    their work on the timezone database
    (http://thread.gmane.org/gmane.comp.time.tz/4133). Their work has
    been continued by volunteers on the tz community and the hosting
    of the data files is done by Robert Elz at ftp://munnari.oz.au/pub/.

Obtained from: ftp://munnari.oz.au/pub, ftp://elsie.nci.nih.gov/pub/

12 years agoUpdates from Newsletter VI-9 and VI-10:
edwin [Wed, 12 Oct 2011 07:00:50 +0000 (07:00 +0000)]
Updates from Newsletter VI-9 and VI-10:

    Newsletter VI-9 2011-06-12
    Name changes for Fiji and Myanmar as well as other minor corrections

    Newsletter VI-10 2011-08-09
    Code elements for South Sudan.

Reviewed by: http://www.iso.org/iso/country_codes.html

12 years agoNow that the portsnap buildbox is generating the raw bits for INDEX-9,
cperciva [Wed, 12 Oct 2011 03:29:12 +0000 (03:29 +0000)]
Now that the portsnap buildbox is generating the raw bits for INDEX-9,
add it to the set of INDEX files built by portsnap.

12 years ago - Fix an off-by-one bug in addgroup().
delphij [Wed, 12 Oct 2011 01:19:12 +0000 (01:19 +0000)]
 - Fix an off-by-one bug in addgroup().
 - Fix the error message when setgid() failed.

PR: bin/161509
Submitted by: Jeremy Huddleston <jeremyhu apple com>
MFC after: 2 weeks

12 years ago- Fix counting of match limit (-m)
gabor [Wed, 12 Oct 2011 01:09:57 +0000 (01:09 +0000)]
- Fix counting of match limit (-m)

Reported by: Nali Toja <nalitoja@gmail.com>
Approved by: delphij (mentor)

12 years ago- Use getprogname() instead of __progname
gabor [Tue, 11 Oct 2011 22:27:23 +0000 (22:27 +0000)]
- Use getprogname() instead of __progname
- Allow disabling bzip2 support with WITHOUT_BZIP2
- Fix handling patterns that start with a dot
- Remove superfluous semicolon

Approved by: delphij (mentor)

12 years ago- Remove unused remnants of MII bitbang'ing.
marius [Tue, 11 Oct 2011 21:52:24 +0000 (21:52 +0000)]
- Remove unused remnants of MII bitbang'ing.
- Sprinkle const.

12 years agoAdd a new trace point, KTRFAC_CAPFAIL, which traces capability check
des [Tue, 11 Oct 2011 20:37:10 +0000 (20:37 +0000)]
Add a new trace point, KTRFAC_CAPFAIL, which traces capability check
failures.  It is included in the default set for ktrace(1) and kdump(1).

12 years agoAfter creating a filesystem using newfs -j the time stamps are all
mckusick [Tue, 11 Oct 2011 19:03:57 +0000 (19:03 +0000)]
After creating a filesystem using newfs -j the time stamps are all
zero and thus report as having been made in January 1970. Apart
from looking a bit silly, it also triggers alarms from scripts
that detect weird time stamps. This update sets all 4 (or 3, in
the case of UFS1) time stamps to the current time when enabling
journaling during newfs or later when enabling it with tunefs.

Reported by: Hans Ottevanger <hans@beastielabs.net>
MFC after:   1 week

12 years agoWhen unmounting a filesystem always wait for the vfs_busy lock to clear
mckusick [Tue, 11 Oct 2011 18:46:41 +0000 (18:46 +0000)]
When unmounting a filesystem always wait for the vfs_busy lock to clear
so that if no vnodes in the filesystem are actively in use the unmount
will succeed rather than failing with EBUSY.

Reported by: Garrett Cooper
Reviewed by: Attilio Rao and Kostik Belousov
Tested by:   Garrett Cooper
PR:          kern/161016
MFC after:   3 weeks

12 years agoFix date in last commit.
glebius [Tue, 11 Oct 2011 18:26:31 +0000 (18:26 +0000)]
Fix date in last commit.

Noticed by: Larry Rosenman <ler lerctr.org>

12 years agoProperly document default number of rx/tx descriptors for Intel cards.
glebius [Tue, 11 Oct 2011 15:41:07 +0000 (15:41 +0000)]
Properly document default number of rx/tx descriptors for Intel cards.

12 years agoThe previous commit did not fix the issue since it did not prevent sign
des [Tue, 11 Oct 2011 15:04:58 +0000 (15:04 +0000)]
The previous commit did not fix the issue since it did not prevent sign
extension.  Cast to u_register_t first, then to uintmax_t.

Submitted by: bde@

12 years agoAdd curly braces missed in r226247.
brueffer [Tue, 11 Oct 2011 13:40:37 +0000 (13:40 +0000)]
Add curly braces missed in r226247.

Pointy hat to: brueffer
Submitted by: many
MFC after: 1 week

12 years agoUse the most significant 6 bits of the dscp instead of the least
tuexen [Tue, 11 Oct 2011 13:24:37 +0000 (13:24 +0000)]
Use the most significant 6 bits of the dscp instead of the least
significant ones.
This has changed in the latest version of the socket API ID and
provides backwards compatibility and gets it in syn with the
usage of the IP_TOS socket option.

MFC after: 3 days.

12 years agoProperly free linux_gidset in case of an error.
brueffer [Tue, 11 Oct 2011 10:32:23 +0000 (10:32 +0000)]
Properly free linux_gidset in case of an error.

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

12 years agoCast to unsigned for %#jx.
des [Tue, 11 Oct 2011 07:46:45 +0000 (07:46 +0000)]
Cast to unsigned for %#jx.

Noticed by: jh@

12 years agoRefactor this code by introducing separate functions to handle the
das [Tue, 11 Oct 2011 05:17:45 +0000 (05:17 +0000)]
Refactor this code by introducing separate functions to handle the
extra-precision add and multiply operations. This simplifies future
work but shouldn't result in any functional change.

12 years agoAlso pass the -ansi flag through to mkdep (requested by bde), and fix
das [Tue, 11 Oct 2011 05:17:26 +0000 (05:17 +0000)]
Also pass the -ansi flag through to mkdep (requested by bde), and fix
a cut-and-paste-o (noticed by rdivacky).

12 years agoFix build after TARGET_BIG_ENDIAN was nuked from orbit.
thompsa [Tue, 11 Oct 2011 01:11:57 +0000 (01:11 +0000)]
Fix build after TARGET_BIG_ENDIAN was nuked from orbit.

12 years agoMake unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND
trasz [Mon, 10 Oct 2011 21:32:08 +0000 (21:32 +0000)]
Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND
is just a modifier for VWRITE.

Submitted by: rmacklem

12 years agoAll indirect routes will fail the rtcheck, except for a special host
qingli [Mon, 10 Oct 2011 17:41:11 +0000 (17:41 +0000)]
All indirect routes will fail the rtcheck, except for a special host
route where the destination IP and the gateway IP is the same. This
special case handling is only meant for backward compatibility reason.
The last commit introduced a bug in the route check logic, where a
valid special case is treated as an error. This patch fixes that bug
along with some code cleanup.

Suggested by: gleb
Reviewed by: kmacy, discussed with gleb
MFC after: 1 day

12 years agoGet struct sctp_net_route in tune with struct route.
tuexen [Mon, 10 Oct 2011 16:31:18 +0000 (16:31 +0000)]
Get struct sctp_net_route in tune with struct route.
struct route was changed in
http://svn.freebsd.org/changeset/base/225698
and since then SCTP support was broken.
This needs to be MFCed to stable/9 to unbreak SCTP support in 9.0
MFC after: 3 days.