]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoUpdate import info based on recent experiences and sendmail 8.14.6 import.
gshapiro [Sat, 29 Dec 2012 20:38:57 +0000 (20:38 +0000)]
Update import info based on recent experiences and sendmail 8.14.6 import.

MFC after: 4 days

11 years agoMerge sendmail 8.14.6 to HEAD
gshapiro [Sat, 29 Dec 2012 20:30:46 +0000 (20:30 +0000)]
Merge sendmail 8.14.6 to HEAD

MFC after: 4 days

11 years agoAdd missing closing quote on commented out example
gshapiro [Sat, 29 Dec 2012 19:57:52 +0000 (19:57 +0000)]
Add missing closing quote on commented out example

PR: bin/174108
Obtained from: Julian H. Stacey
MFC after: 1 day

11 years agoTest commit to make sure commit mail works after moving the server.
peter [Sat, 29 Dec 2012 16:03:23 +0000 (16:03 +0000)]
Test commit to make sure commit mail works after moving the server.

Approved by: core (implicit)

11 years agoComments.
dteske [Sat, 29 Dec 2012 00:30:30 +0000 (00:30 +0000)]
Comments.

11 years agoAdd missing enforcement of height restriction after minor adjustment.
dteske [Sat, 29 Dec 2012 00:06:26 +0000 (00:06 +0000)]
Add missing enforcement of height restriction after minor adjustment.

11 years agoAdd support for running without a controlling terminal (for example, when
dteske [Sat, 29 Dec 2012 00:01:24 +0000 (00:01 +0000)]
Add support for running without a controlling terminal (for example, when
running as an rvalue to a pipe).

11 years agoAllow debug output to be logged to a file (set $debugFile to target pathname)
dteske [Fri, 28 Dec 2012 23:49:17 +0000 (23:49 +0000)]
Allow debug output to be logged to a file (set $debugFile to target pathname)
or both stdout and a file (precede $debugFile pathname with a plus-sign, `+').

11 years agoWhitespace.
dteske [Fri, 28 Dec 2012 23:40:13 +0000 (23:40 +0000)]
Whitespace.

11 years agoFix incorrect function name. s/[[:<:]]dialog_clear/f_&/
dteske [Fri, 28 Dec 2012 23:27:17 +0000 (23:27 +0000)]
Fix incorrect function name. s/[[:<:]]dialog_clear/f_&/

11 years agoIt's no longer necessary to explicitly specify isa bus.
delphij [Fri, 28 Dec 2012 23:21:54 +0000 (23:21 +0000)]
It's no longer necessary to explicitly specify isa bus.

MFC after: 2 weeks

11 years agoMake it possible to atomically resume writes on the mount and account
kib [Fri, 28 Dec 2012 23:08:30 +0000 (23:08 +0000)]
Make it possible to atomically resume writes on the mount and account
the write start, by adding a variation of the vfs_write_resume(9)
which accepts flags.

Use the new function to prevent a deadlock between parallel suspension
and snapshotting a UFS mount.  The ffs_snapshot() code performed
vfs_write_resume() followed by vn_start_write() while owning the
snaplock.  If the suspension intervene between resume and
vn_start_write(), the deadlock occured after the suspending thread
tried to lock the snaplock, most typically during the write in the
ffs_copyonwrite().

Reported and tested by: Andreas Longwitz <longwitz@incore.de>
Reviewed by: mckusick
MFC after: 2 weeks
X-MFC-note: make the vfs_write_resume(9) function a macro after the MFC,
in HEAD

11 years agogcc: avoid generating negative values to DW_AT_byte_size.
pfg [Fri, 28 Dec 2012 22:06:50 +0000 (22:06 +0000)]
gcc: avoid generating negative values to DW_AT_byte_size.

The previous change was actually a NOP because size is
unsigned and compilers are dumb.

Submitted by: Christoph Mallon
MFC after: 1 week

11 years agoFix wording nit.
gjb [Fri, 28 Dec 2012 22:06:33 +0000 (22:06 +0000)]
Fix wording nit.

PR: 174787
Submitted by: Cody Rank
MFC after: 3 days

11 years agoFix typo in comment.
bapt [Fri, 28 Dec 2012 21:59:47 +0000 (21:59 +0000)]
Fix typo in comment.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>

11 years agoAdd DEVICE_IDENTIFY method for wbwd(4), required on most of recent
delphij [Fri, 28 Dec 2012 21:35:47 +0000 (21:35 +0000)]
Add DEVICE_IDENTIFY method for wbwd(4), required on most of recent
Supermicro motherboards.

Tested on X8STi and X8DTH boards.

Sponsored by: iXsystems, Inc.
MFC after: 2 weeks

11 years agoUse DEVMETHOD_END.
delphij [Fri, 28 Dec 2012 20:44:23 +0000 (20:44 +0000)]
Use DEVMETHOD_END.

MFC after: 2 weeks

11 years agoSimplify pointing dst after the end of all the gr_mem pointers in newgr
bapt [Fri, 28 Dec 2012 20:44:10 +0000 (20:44 +0000)]
Simplify pointing dst after the end of all the gr_mem pointers in newgr

Submitted by: pjd
Reviewed by: db

11 years agoerrno = ENOMEM was supposed to be removed not return (NULL);
bapt [Fri, 28 Dec 2012 20:30:04 +0000 (20:30 +0000)]
errno = ENOMEM was supposed to be removed not return (NULL);

Submitted by: gcooper

11 years agomalloc() sets errno to ENOMEM already.
bapt [Fri, 28 Dec 2012 20:21:14 +0000 (20:21 +0000)]
malloc() sets errno to ENOMEM already.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>

11 years agoDo not leave parts of the new group uninitialized in gr_dup().
bapt [Fri, 28 Dec 2012 20:19:54 +0000 (20:19 +0000)]
Do not leave parts of the new group uninitialized in gr_dup().

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reported by: pjd

11 years agogcc: avoid generating negative values to DW_AT_byte_size.
pfg [Fri, 28 Dec 2012 19:02:28 +0000 (19:02 +0000)]
gcc: avoid generating negative values to DW_AT_byte_size.

There is a bug in gcc (GCC/35998) where dwarf reports
sizes of unsigned -1 (0xffffffff).

On NetBSD this generated a faulty CTF entry which then
caused a segfault in ctfmerge. The issue was worked
around in NetBSD's Dtrace but since the issue originated
in gcc, it seems reasonable to fix it here.

Upstream gcc has been slow to react to this issue and
the author that submitted the patch is not interested
in licensing the change to us, so I did an independent
workaround for the issue.

MFC after: 1 week

11 years agoImprove bufring impl:
attilio [Fri, 28 Dec 2012 17:41:36 +0000 (17:41 +0000)]
Improve bufring impl:
- Remove unused br_prod_bufs member
- Fixup r241037: buf_ring pads br_prod_* and br_cons_* members at 128
  bytes, assuming a fixed cache line size for all the architectures.
  However, the above mentioned revision broke the padding.
  Use explicit padding to the CACHE_LINE_SIZE on the members that
  mark the initial new padded sections. Of course, the padding is not
  important for performance reasons in the DEBUG_BUFRING case, leaving
  br_cons members to share the cache line with br_lock.
- Fixup r244732: by removing incorrectly added membar in
  buf_ring_dequeue_sc() where surrounding locking shoud be enough.
- Drastically reduce the number of membar used (pratically reverting
  r244732) by switching rmb() in buf_ring_dequeue_mc() and wmb() in
  buf_ring_enqueue() to be complete barriers.  This, along with
  br_prod_bufs departure, should fix ordering issues as explained in
  the provided comments.

This patch is not targeted for MFC.

Sponsored by: EMC / Isilon storage division
Reviewed by: glebius

11 years agoFix location of /var/audit/dist and /var/audit/remote.
ume [Fri, 28 Dec 2012 10:42:01 +0000 (10:42 +0000)]
Fix location of /var/audit/dist and /var/audit/remote.
Note that those who did installworld after r243752 should
remove wrongly created /var/dist and /var/remote.

Reviewed by: pjd

11 years agoIn netpfil/pf:
glebius [Fri, 28 Dec 2012 09:19:49 +0000 (09:19 +0000)]
In netpfil/pf:
  - Add my copyright to files I've touched a lot this year.
  - Add dash in front of all copyright notices according to style(9).
  - Move $OpenBSD$ down below copyright notices.
  - Remove extra line between cdefs.h and __FBSDID.

11 years agoAdd the AR9280 and later spectral scan register definitions.
adrian [Fri, 28 Dec 2012 08:00:31 +0000 (08:00 +0000)]
Add the AR9280 and later spectral scan register definitions.

Obtained from: Linux ath9k, Qualcomm Atheros (datasheet)

11 years agoAdd radar_bin_thresh_sel (bit 24:26), which defines when
adrian [Fri, 28 Dec 2012 07:49:45 +0000 (07:49 +0000)]
Add radar_bin_thresh_sel (bit 24:26), which defines when
to consider the radar FFT report bins as "strong".

11 years agoFix build on ARM (and probably other platforms)
gonzo [Fri, 28 Dec 2012 06:52:53 +0000 (06:52 +0000)]
Fix build on ARM (and probably other platforms)

11 years agoAdd makeshift implementation for framebuffer console's cursor
gonzo [Fri, 28 Dec 2012 03:18:05 +0000 (03:18 +0000)]
Add makeshift implementation for framebuffer console's cursor

Basically it's replica of VersatilePB code which is replica of XBox FB
code. All of them are linear framebuffers and should have common bits
moved to reusable framework.

11 years agoUse strlcpy to NULL-terminate error message even if user provided a short
davidxu [Fri, 28 Dec 2012 02:43:33 +0000 (02:43 +0000)]
Use strlcpy to NULL-terminate error message even if user provided a short
buffer.

11 years agoFix event timer on Raspberry Pi
gonzo [Fri, 28 Dec 2012 01:38:43 +0000 (01:38 +0000)]
Fix event timer on Raspberry Pi

- Disable interrupt when updating compare value in order to
   make this operation atomical

- Increase minimum period for event timer. Systimer on BCM2835
    is compare timer, so if minimum period is too small it might
    be less then fraction of time between "read current value" and
    "set compare timer" operations. It means that when timer is armed
    actual counter value is more then compare value and it will take
    whole cycle (~32sec for 1MHz timer) to fire interrupt.

Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp>

11 years agoAdd derived versions for common Simplified Chinese encodings.
delphij [Fri, 28 Dec 2012 01:23:12 +0000 (01:23 +0000)]
Add derived versions for common Simplified Chinese encodings.

MFC after: 2 weeks

11 years agoAdd zh_CN.UTF-8 catalog.
delphij [Fri, 28 Dec 2012 01:09:30 +0000 (01:09 +0000)]
Add zh_CN.UTF-8 catalog.

Reviewed by: alphachi <alphachi mediaspirit.org>
MFC after: 2 weeks

11 years agoAdd custom renderer for poor man's cursor support for framebuffer console
gonzo [Fri, 28 Dec 2012 00:55:43 +0000 (00:55 +0000)]
Add custom renderer for poor man's cursor support for framebuffer console

11 years agoAdd an ability to set net.link.stf.permit_rfc1918 from the loader.
ae [Thu, 27 Dec 2012 21:26:08 +0000 (21:26 +0000)]
Add an ability to set net.link.stf.permit_rfc1918 from the loader.

MFC after: 2 weeks

11 years agoAdd net.link.stf.permit_rfc1918 sysctl variable. It can be used to allow
ae [Thu, 27 Dec 2012 20:59:22 +0000 (20:59 +0000)]
Add net.link.stf.permit_rfc1918 sysctl variable. It can be used to allow
the use of private IPv4 addresses with stf(4).

MFC after: 2 weeks

11 years agoavoid arithmetic on uintptr_t
bapt [Thu, 27 Dec 2012 20:47:34 +0000 (20:47 +0000)]
avoid arithmetic on uintptr_t

Submitted by: pjd
Reviewed by: jilles

11 years agocast to uintptr_t to properly calculate offset
bapt [Thu, 27 Dec 2012 20:31:12 +0000 (20:31 +0000)]
cast to uintptr_t to properly calculate offset

Reported by: mdf
Submitted by: db

11 years agoAdd O_CLOEXEC to flopen
bapt [Thu, 27 Dec 2012 20:24:44 +0000 (20:24 +0000)]
Add O_CLOEXEC to flopen

Requested by: jilles

11 years agoSimplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.
bapt [Thu, 27 Dec 2012 19:43:29 +0000 (19:43 +0000)]
Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.

11 years agogr_dup: simplify duplication of group
bapt [Thu, 27 Dec 2012 19:33:43 +0000 (19:33 +0000)]
gr_dup: simplify duplication of group

Submitted by: db

11 years ago- Clean up previous gr_add use malloc instead of calloc
bapt [Thu, 27 Dec 2012 16:51:29 +0000 (16:51 +0000)]
- Clean up previous gr_add use malloc instead of calloc
- Fix tinderbox error

Submitted by: db

11 years agoFix a regression in "pw group show" introduced r242349:
bapt [Thu, 27 Dec 2012 14:44:13 +0000 (14:44 +0000)]
Fix a regression in "pw group show" introduced r242349:
print a newline after printing each group line.

PR: bin/174731
Submitted by: Jan Beich <jbeich@tormail.org>

11 years agoSimplify the code by using the new gr_add function
bapt [Thu, 27 Dec 2012 14:35:06 +0000 (14:35 +0000)]
Simplify the code by using the new gr_add function

11 years agoNew gr_add function to provide a clean and safe method to append a new member
bapt [Thu, 27 Dec 2012 14:30:19 +0000 (14:30 +0000)]
New gr_add function to provide a clean and safe method to append a new member
into an existing group.

Submitted by: db

11 years agoUse flopen(3) instead of open(2) + flock(2)
bapt [Thu, 27 Dec 2012 14:09:50 +0000 (14:09 +0000)]
Use flopen(3) instead of open(2) + flock(2)

11 years agotest(1): Document == alias for =.
jilles [Thu, 27 Dec 2012 13:21:37 +0000 (13:21 +0000)]
test(1): Document == alias for =.

Reviewed by: gjb
Requested by: gjb
MFC after: 1 week

11 years agoRemove an unused var.
attilio [Thu, 27 Dec 2012 12:53:46 +0000 (12:53 +0000)]
Remove an unused var.

Sponsored by: EMC / Isilon storage division
MFC after: 3 days

11 years agobr_prod_tail and br_cons_tail members are used as barrier to
attilio [Thu, 27 Dec 2012 12:36:58 +0000 (12:36 +0000)]
br_prod_tail and br_cons_tail members are used as barrier to
signal bug_ring ownership. However, instructions can be reordered
around members write leading to stale values for ie. br_prod_bufs.

Use correct memory barriers to ensure proper ordering of the
ownership tokens updates.

Sponsored by: EMC / Isilon storage division
MFC after: 2 weeks

11 years agouse nanosecond resolution, make sure gettimeofday
luigi [Thu, 27 Dec 2012 09:15:21 +0000 (09:15 +0000)]
use nanosecond resolution, make sure gettimeofday
is called at most every 100 packets.

11 years agoSome cleanups.
tuexen [Thu, 27 Dec 2012 08:10:58 +0000 (08:10 +0000)]
Some cleanups.

MFC after: 3 days

11 years agoMinor cleanups of debug messages.
tuexen [Thu, 27 Dec 2012 08:06:58 +0000 (08:06 +0000)]
Minor cleanups of debug messages.

MFC after: 3 days

11 years agoFix a copy and paste error.
tuexen [Thu, 27 Dec 2012 08:02:58 +0000 (08:02 +0000)]
Fix a copy and paste error.

MFC after: 3 days

11 years agoComments and fit to 80-columns.
dteske [Thu, 27 Dec 2012 07:52:50 +0000 (07:52 +0000)]
Comments and fit to 80-columns.

11 years agoSimplify copying of group members by using memcpy
bapt [Wed, 26 Dec 2012 23:16:24 +0000 (23:16 +0000)]
Simplify copying of group members by using memcpy

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>

11 years agoFix off-by-one error in memory allocation: j entries, one new and a null
bapt [Wed, 26 Dec 2012 23:14:33 +0000 (23:14 +0000)]
Fix off-by-one error in memory allocation: j entries, one new and a null
terminator is j + 2.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>

11 years agoAdd the NO_SYNC_CACHE quirk for all Apple USB MSC devices, as they
markj [Wed, 26 Dec 2012 22:21:27 +0000 (22:21 +0000)]
Add the NO_SYNC_CACHE quirk for all Apple USB MSC devices, as they
typically do not handle the SYNCHRONIZE_CACHE command - they either
return an error or the firmware enters a reset loop.

Reviewed by: hselasky
Approved by: rstone (co-mentor)
MFC after: 2 weeks

11 years agoReset provider-specific fields when resending I/O request in low memory
pjd [Wed, 26 Dec 2012 20:07:47 +0000 (20:07 +0000)]
Reset provider-specific fields when resending I/O request in low memory
conditions. This fixes assertion which checks those fields when kernel is
compiled with DIAGNOSTIC.

Reported by: kib, pho
MFC after: 1 week

11 years agoUse DEVMETHOD_END, as suggested by hselasky@.
rakuco [Wed, 26 Dec 2012 19:14:21 +0000 (19:14 +0000)]
Use DEVMETHOD_END, as suggested by hselasky@.

Approved by: glebius

11 years agoUse the correct USB interface macros instead of USB_IF_CSI.
rakuco [Wed, 26 Dec 2012 19:12:31 +0000 (19:12 +0000)]
Use the correct USB interface macros instead of USB_IF_CSI.

As pointed out by hselasky@, USB_IF_CSI is the wrong macro here since we want
to declare the device's interface class, subclass and protocol, not class,
subclass and driver info.

Follow-up to r244704.

PR: kern/174707
Approved by: glebius
MFC after: 1 week

11 years agoIn case of the deletion of a user those whole database has to be regenerated,
bapt [Wed, 26 Dec 2012 18:28:17 +0000 (18:28 +0000)]
In case of the deletion of a user those whole database has to be regenerated,
otherwise the user planned to be deleted remain in the pwd.db while removed from
the plain text password file.

11 years agoFix creating a user and adding it to a group
bapt [Wed, 26 Dec 2012 18:14:45 +0000 (18:14 +0000)]
Fix creating a user and adding it to a group

Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim

11 years agoFixup r244240: mp_ncpus will be 1 also in the !SMP and smp_disabled=1
attilio [Wed, 26 Dec 2012 15:20:32 +0000 (15:20 +0000)]
Fixup r244240: mp_ncpus will be 1 also in the !SMP and smp_disabled=1
case. There is no point in optimizing further the code and use a TRUE
litteral for a path that does heavyweight stuff anyway (like lock acq),
at the price of obfuscated code.

Use the appropriate check where necessary and remove a macro.

Sponsored by: EMC / Isilon storage division
MFC after: 3 days

11 years agoAdd vendor IDs for Broadcom USB dongles (BCM20702).
glebius [Wed, 26 Dec 2012 15:10:20 +0000 (15:10 +0000)]
Add vendor IDs for Broadcom USB dongles (BCM20702).

PR: kern/174707
Submitted by: rakuco

11 years agoAlways initialize pattern_buf pointers to NULL, otherwise AMD64 machine
davidxu [Wed, 26 Dec 2012 13:07:17 +0000 (13:07 +0000)]
Always initialize pattern_buf pointers to NULL, otherwise AMD64 machine
panics with:
   free: address xxx(yyy) has not been allocated.
it can be triggered by hald.

11 years agoFix libproc test case to work with clang premature optimization
pluknet [Wed, 26 Dec 2012 05:11:48 +0000 (05:11 +0000)]
Fix libproc test case to work with clang premature optimization
observed with -O2 (used by default).
Avoid function inlining for t1_bkpt_t on which we set a breakpoint.
Otherwise the address of the function is never called thus the
breakpoint never triggers.

Reported by: zont
Reviewed by: rpaulo

11 years agoAttempt to clarify that for ZFS, all file systems under
rmacklem [Tue, 25 Dec 2012 22:47:49 +0000 (22:47 +0000)]
Attempt to clarify that for ZFS, all file systems under
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.

MFC after: 2 weeks

11 years agoAttempt to clarify that for ZFS, all file systems under
rmacklem [Tue, 25 Dec 2012 22:34:43 +0000 (22:34 +0000)]
Attempt to clarify that for ZFS, all file systems under
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.

MFC after: 2 weeks

11 years agoUse correct size in snprintf.
antoine [Tue, 25 Dec 2012 17:06:05 +0000 (17:06 +0000)]
Use correct size in snprintf.
Remove unused buffer.

PR: 174631
Submitted by: Henning Petersen
MFC after: 1 month

11 years ago Garbage collect carp_cksum().
glebius [Tue, 25 Dec 2012 14:29:38 +0000 (14:29 +0000)]
  Garbage collect carp_cksum().

11 years agosh: Prefer strsignal() to accessing sys_siglist directly.
jilles [Tue, 25 Dec 2012 14:17:09 +0000 (14:17 +0000)]
sh: Prefer strsignal() to accessing sys_siglist directly.

Accessing sys_siglist directly requires rtld to copy it from libc to the sh
executable's BSS. Also, strsignal() will put in the signal number for
unknown signals (FreeBSD-specific) so we need not do that ourselves.

Unfortunately, there is no function for sys_signame.

11 years ago Change net.inet.carp.demotion sysctl to add the supplied value
glebius [Tue, 25 Dec 2012 14:08:13 +0000 (14:08 +0000)]
  Change net.inet.carp.demotion sysctl to add the supplied value
to the current demotion factor instead of assigning it.

  This allows external scripts to control demotion factor together
with kernel in a raceless manner.

11 years ago Fix sysctl_handle_int() usage. Either arg1 or arg2 should be supplied,
glebius [Tue, 25 Dec 2012 13:55:21 +0000 (13:55 +0000)]
 Fix sysctl_handle_int() usage. Either arg1 or arg2 should be supplied,
and arg2 doesn't pass size of arg1.

11 years ago- Update manual pages accordingly to r244384 and r244385.
zont [Tue, 25 Dec 2012 13:43:01 +0000 (13:43 +0000)]
- Update manual pages accordingly to r244384 and r244385.

Approved by: kib (mentor)
MFC after: 1 week

11 years ago The SIOCSIFFLAGS ioctl handler runs if_up()/if_down() that notify
glebius [Tue, 25 Dec 2012 13:01:58 +0000 (13:01 +0000)]
  The SIOCSIFFLAGS ioctl handler runs if_up()/if_down() that notify
all interested parties in case if interface flag IFF_UP has changed.

  However, not only SIOCSIFFLAGS can raise the flag, but SIOCAIFADDR
and SIOCAIFADDR_IN6 can, too. The actual |= is done not in the protocol
code, but in code of interface drivers. To fix this historical layering
violation, we will check whether ifp->if_ioctl(SIOCSIFADDR) raised the
IFF_UP flag, and if it did, run the if_up() handler.

  This fixes configuring an address under CARP control on an interface
that was initially !IFF_UP.

P.S. I intentionally omitted handling the IFF_SMART flag. This flag was
never ever used in any driver since it was introduced, and since it
means another layering violation, it should be garbage collected instead
of pretended to be supported.

11 years agoAdd more debugging to help with diagnosis of program-flow when needed.
dteske [Tue, 25 Dec 2012 10:47:45 +0000 (10:47 +0000)]
Add more debugging to help with diagnosis of program-flow when needed.

11 years agoRemove unnecessary duplicate initialization of the dialog(1) API (automatically
dteske [Tue, 25 Dec 2012 09:30:25 +0000 (09:30 +0000)]
Remove unnecessary duplicate initialization of the dialog(1) API (automatically
bootstrapped on-include unless DIALOG_SELF_INITIALIZE is set to NO before-hand)

11 years agoFix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t.
andrew [Tue, 25 Dec 2012 07:37:33 +0000 (07:37 +0000)]
Fix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t.

* The __glibcxx_max macro came from GCC svn r138078, the last GPLv2
  revision of this file.
* I wrote the updated __glibcxx_min macro.

11 years agovarious connections to last commit
luigi [Tue, 25 Dec 2012 07:29:25 +0000 (07:29 +0000)]
various connections to last commit

11 years agoMinor style(9) changes:
glebius [Mon, 24 Dec 2012 21:35:48 +0000 (21:35 +0000)]
Minor style(9) changes:
- Remove declaration in initializer.
- Add empty line between logical blocks.

11 years agoFix more regression issue after r244503.
hselasky [Mon, 24 Dec 2012 10:10:18 +0000 (10:10 +0000)]
Fix more regression issue after r244503.

usbd_transfer_setup() does not set a default length for USB transfers.
Only the number of frames is automatically setup.

MFC after: 1 week

11 years agosmall cleanup of the code, and add support for running multiple
luigi [Sun, 23 Dec 2012 23:03:45 +0000 (23:03 +0000)]
small cleanup of the code, and add support for running multiple
threads on each socket.

11 years agoDo not force a writer to the devfs file to drain the buffer writes.
kib [Sun, 23 Dec 2012 22:43:27 +0000 (22:43 +0000)]
Do not force a writer to the devfs file to drain the buffer writes.

Requested and tested by: Ian Lepore <freebsd@damnhippie.dyndns.org>
MFC after: 2 weeks

11 years agoenable building picobsd with CC instead of CLANG
luigi [Sun, 23 Dec 2012 22:41:54 +0000 (22:41 +0000)]
enable building picobsd with CC instead of CLANG

11 years agoPull in r170096 from upstream clang trunk:
andrew [Sun, 23 Dec 2012 21:41:39 +0000 (21:41 +0000)]
Pull in r170096 from upstream clang trunk:

  Initial support for FreeBSD on ARM.

11 years agoRemove extraneous space and new-line.
matthew [Sun, 23 Dec 2012 20:39:03 +0000 (20:39 +0000)]
Remove extraneous space and new-line.

Submitted by: pjd, gcooper
Approved by: bapt
MFC after: 2 weeks

11 years agoFix the Makefile so it can build gssd.c after r244604.
rmacklem [Sun, 23 Dec 2012 20:12:57 +0000 (20:12 +0000)]
Fix the Makefile so it can build gssd.c after r244604.

MFC after: 2 weeks

11 years agozfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead
avg [Sun, 23 Dec 2012 19:58:41 +0000 (19:58 +0000)]
zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead

To do: remove KM_ZERO declaration
Pointyhat to: avg (for mindlessly using the pseudo-flag)
MFC after: instantly (to fix stable/8 build)

11 years agoAdd parentheses to IP_FW_ARG_TABLEARG() definition.
melifaro [Sun, 23 Dec 2012 18:35:42 +0000 (18:35 +0000)]
Add parentheses to IP_FW_ARG_TABLEARG() definition.

Suggested by: glebius
MFC with: r244633

11 years agoUse unified IP_FW_ARG_TABLEARG() macro for most tablearg checks.
melifaro [Sun, 23 Dec 2012 16:28:18 +0000 (16:28 +0000)]
Use unified IP_FW_ARG_TABLEARG() macro for most tablearg checks.
Log real value instead of IP_FW_TABLEARG (65535) in ipfw_log().

Noticed by: Vitaliy Tokarenko <rphone@ukr.net>
MFC after: 2 weeks

11 years agoCorrect a series of errors in the hand-rolled locking for drace_debug.c:
rstone [Sun, 23 Dec 2012 15:50:37 +0000 (15:50 +0000)]
Correct a series of errors in the hand-rolled locking for drace_debug.c:

- Use spinlock_enter()/spinlock_exit() to prevent a thread holding a
  debug lock from being preempted to prevent other threads waiting
  on that lock from starvation.

- Handle the possibility of CPU migration in between the fetch of curcpu
  and the call to spinlock_enter() by saving curcpu in a local variable.

- Use memory barriers to prevent reordering of loads and stores of the
  data protected by the lock outside of the critical section

- Eliminate false sharing of the locks by moving them into the structures
  that they protect and aligning them to a cacheline boundary.

- Record the owning thread in the lock to make debugging future problems
  easier.

Reviewed by: rpaulo (initial version)
MFC after: 2 weeks

11 years agoUPDATING: add a note about the clang+zfs+i386 stack overflow issue
avg [Sun, 23 Dec 2012 13:04:04 +0000 (13:04 +0000)]
UPDATING: add a note about the clang+zfs+i386 stack overflow issue

11 years agoUpgrade our copy of llvm/clang to 3.2 release.
dim [Sun, 23 Dec 2012 13:04:00 +0000 (13:04 +0000)]
Upgrade our copy of llvm/clang to 3.2 release.

Release notes for llvm:
http://llvm.org/releases/3.2/docs/ReleaseNotes.html

Release notes for clang:
http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html

MFC after: 2 weeks

11 years agolock.9: fix incorrect descriptions of LK_SHARED and LK_DOWNGRADE behavior
avg [Sun, 23 Dec 2012 12:56:04 +0000 (12:56 +0000)]
lock.9: fix incorrect descriptions of LK_SHARED and LK_DOWNGRADE behavior

Reviewed by: attilio
MFC after: 5 days
X-MFC after: r243900

11 years agoThird time's the charm. pkg -N output needs to go to stderr.
matthew [Sun, 23 Dec 2012 11:22:18 +0000 (11:22 +0000)]
Third time's the charm.  pkg -N output needs to go to stderr.

Approved by: bapt
MFC after: 2 weeks

11 years agoFix regression issue after r244503.
hselasky [Sun, 23 Dec 2012 10:21:01 +0000 (10:21 +0000)]
Fix regression issue after r244503.

MFC after: 1 week

11 years agoDocument the new gssd daemon options added by r244604.
rmacklem [Sat, 22 Dec 2012 23:34:28 +0000 (23:34 +0000)]
Document the new gssd daemon options added by r244604.
This is a content change.

MFC after: 2 weeks

11 years agoIt was reported via email that some sshds create kerberos
rmacklem [Sat, 22 Dec 2012 23:21:17 +0000 (23:21 +0000)]
It was reported via email that some sshds create kerberos
credential cache files with names other than /tmp/krb5cc_<uid>.
The gssd daemon does not know how to find these credential caches.
This patch implements a new option "-s" that does a search for
credential cache files, using roughly the same algorithm as the
gssd daemon for Linux uses. The gssd behaviour is only changed
if the new "-s" option is specified. It also implements two other
new options related to the "-s" option.

Reported by: Piete.Brooks at cl.cam.ac.uk, Herbert Poeckl
Tested by: Herbert Poeckl (admin at ist.tugraz.at), Illias A. Marinos
MFC after: 2 weeks

11 years agoMFV r244559:
mm [Sat, 22 Dec 2012 21:32:12 +0000 (21:32 +0000)]
MFV r244559:
Update contrib/xz to version 5.0.4

MFC after: 2 weeks

11 years agoFix a bug in ld --gc-sections: it strips out .note sections, while it
dim [Sat, 22 Dec 2012 20:46:46 +0000 (20:46 +0000)]
Fix a bug in ld --gc-sections: it strips out .note sections, while it
should never do so.  This can cause global constructors and destructors
to not be executed at run-time, resulting in crashes and other strange
behaviour.

Reported by: rene
MFC after: 1 week