]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoUnbreak non-SMP builds. This was broken by r259284. Also, reorganize the
jhibbits [Fri, 31 Jan 2014 03:55:34 +0000 (03:55 +0000)]
Unbreak non-SMP builds.  This was broken by r259284.  Also, reorganize the
code introduced in that revision a bit.

Reviewed by: nwhitehorn
MFC after: 3 weeks

10 years agoHack: Add explicit depends on bus_if.h and device_if.h to avoid a
imp [Fri, 31 Jan 2014 01:34:55 +0000 (01:34 +0000)]
Hack: Add explicit depends on bus_if.h and device_if.h to avoid a
chicken and egg problem in some compilation environments.

10 years agoWhen mapping an address, the bsh needs the same offset we do for other
imp [Fri, 31 Jan 2014 01:18:34 +0000 (01:18 +0000)]
When mapping an address, the bsh needs the same offset we do for other
things.

10 years agoMerge from CheriBSD:
brooks [Thu, 30 Jan 2014 22:26:51 +0000 (22:26 +0000)]
Merge from CheriBSD:
commit 1b41f6de7ca09e04fdc6f66bc478ea6c981a41b9
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:59:02 2014 +0000

    Now that mtree is always nmtree use it as mtree

Tested on: ref9-amd64
X-MFC after: never
Sponsored by: DARPA, AFRL

10 years agoThe -B flag is intended to take an argument.
brooks [Thu, 30 Jan 2014 21:47:12 +0000 (21:47 +0000)]
The -B flag is intended to take an argument.

Fix a couple typos in comments.

MFC after: 4 weeks
Sponsored by: DARPA, ARFL

10 years agoRegenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW.
brooks [Thu, 30 Jan 2014 21:43:38 +0000 (21:43 +0000)]
Regenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoAdd file missed in r261296.
brooks [Thu, 30 Jan 2014 21:41:25 +0000 (21:41 +0000)]
Add file missed in r261296.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
brooks [Thu, 30 Jan 2014 21:37:43 +0000 (21:37 +0000)]
Merge from CheriBSD:
commit 2d581e8caf79d7a0f5a24590eccd06da90cccb74
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:57:51 2014 +0000

    Add WITHOUT_FMTREE to disable building fmtree.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
brooks [Thu, 30 Jan 2014 21:32:25 +0000 (21:32 +0000)]
Merge from CheriBSD:
commit 70b8f0c127db6b80411789d237b403cc64a93573
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:53:57 2014 +0000

    Move mtree.5 to usr.sbin/nmtree.
    Remove note that mtree 2.0 format files aren't supported.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
brooks [Thu, 30 Jan 2014 21:25:01 +0000 (21:25 +0000)]
Merge from CheriBSD:
commit 6b569451b92c48ccf1768da32e7e89189e1aa253
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:50:46 2014 +0000

    Always install nmtree as mtree.
    For compability, link mtree to nmtree.

X-MFC after: never
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
brooks [Thu, 30 Jan 2014 21:08:36 +0000 (21:08 +0000)]
Merge from CheriBSD:
commit c1acf022c533c5ae27e0cd556977eafe3f5959eb
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Fri Jan 17 21:46:44 2014 +0000

    Add an option WITHOUT_NCURSESW to suppress building and linking to
    libncursesw.  While wide character support it useful we'd like to
    only need one ncurses library on embedded systems.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoRevert outdated info related to WITH_LIBCPLUSPLUS that was included in
brooks [Thu, 30 Jan 2014 20:54:56 +0000 (20:54 +0000)]
Revert outdated info related to WITH_LIBCPLUSPLUS that was included in
r261072.  src.conf.5 now matches makeman's output.

10 years agoRemove an unneeded space in the BERI merge.
brooks [Thu, 30 Jan 2014 20:39:56 +0000 (20:39 +0000)]
Remove an unneeded space in the BERI merge.

10 years agoThe timestamp bit is number 17, and not number 9, in the stat error
gnn [Thu, 30 Jan 2014 18:32:33 +0000 (18:32 +0000)]
The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.

MFC after: 1 week

10 years agoThe posix_madvise(3) and posix_fadvise(2) should return error on
kib [Thu, 30 Jan 2014 18:04:39 +0000 (18:04 +0000)]
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).

Noted by: Bob Bishop <rb@gid.co.uk>
Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoBump copyright dates
des [Thu, 30 Jan 2014 08:37:23 +0000 (08:37 +0000)]
Bump copyright dates

10 years agoImport libc++ 3.4 release. This contains a lot of bugfixes, and some
dim [Thu, 30 Jan 2014 07:44:22 +0000 (07:44 +0000)]
Import libc++ 3.4 release.  This contains a lot of bugfixes, and some
preliminary support for C++1y.

MFC after: 3 weeks

10 years agoFix the name of the dts file for the HL201...
imp [Thu, 30 Jan 2014 03:14:36 +0000 (03:14 +0000)]
Fix the name of the dts file for the HL201...

10 years agoVendor import of libc++ tags/RELEASE_34/final r197960:
dim [Wed, 29 Jan 2014 19:30:27 +0000 (19:30 +0000)]
Vendor import of libc++ tags/RELEASE_34/final r197960:
https://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_34/final@197960

10 years agoRessurect the local change documenting
pluknet [Wed, 29 Jan 2014 19:28:52 +0000 (19:28 +0000)]
Ressurect the local change documenting
authpf's requirement for a mounted fdescfs(5).

PR: docs/186250
MFC after: 1 week

10 years agoFix the ordering of the arguments to printf in
n_hibma [Wed, 29 Jan 2014 16:24:50 +0000 (16:24 +0000)]
Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in

dev.<USB driver>.<id>.%location

output from sysctl.

MFC after: 2 weeks

10 years agoMicro-optimize 8-bit blanking. This is the same as in ofw_syscons.
jhibbits [Wed, 29 Jan 2014 15:50:01 +0000 (15:50 +0000)]
Micro-optimize 8-bit blanking.  This is the same as in ofw_syscons.

Reviewed by: ray
MFC after: 1 week

10 years agoEnhance the support for PCI legacy INTx interrupts and enable them in
jhb [Wed, 29 Jan 2014 14:56:48 +0000 (14:56 +0000)]
Enhance the support for PCI legacy INTx interrupts and enable them in
the virtio backends.
- Add a new ioctl to export the count of pins on the I/O APIC from vmm
  to the hypervisor.
- Use pins on the I/O APIC >= 16 for PCI interrupts leaving 0-15 for
  ISA interrupts.
- Populate the MP Table with I/O interrupt entries for any PCI INTx
  interrupts.
- Create a _PRT table under the PCI root bridge in ACPI to route any
  PCI INTx interrupts appropriately.
- Track which INTx interrupts are in use per-slot so that functions
  that share a slot attempt to distribute their INTx interrupts across
  the four available pins.
- Implicitly mask INTx interrupts if either MSI or MSI-X is enabled
  and when the INTx DIS bit is set in a function's PCI command register.
  Either assert or deassert the associated I/O APIC pin when the
  state of one of those conditions changes.
- Add INTx support to the virtio backends.
- Always advertise the MSI capability in the virtio backends.

Submitted by: neel (7)
Reviewed by: neel
MFC after: 2 weeks

10 years agoAdd libexecinfo.
pluknet [Wed, 29 Jan 2014 14:14:09 +0000 (14:14 +0000)]
Add libexecinfo.

MFC after: 3 days

10 years agoAdd a jail parameter, allow.kmem, which lets jailed processes access
jamie [Wed, 29 Jan 2014 13:41:13 +0000 (13:41 +0000)]
Add a jail parameter, allow.kmem, which lets jailed processes access
/dev/kmem and related devices (i.e. grants PRIV_IO and PRIV_KMEM_WRITE).
This in conjunction with changing the drm driver's permission check from
PRIV_DRIVER to PRIV_KMEM_WRITE will allow a jailed Xorg server.

Submitted by: netchild
MFC after: 1 week

10 years agor261230 broke the cases where the amount of data to be read is not
des [Wed, 29 Jan 2014 12:48:19 +0000 (12:48 +0000)]
r261230 broke the cases where the amount of data to be read is not
known in advance, or where the caller doesn't care and just keeps
reading until it hits EOF.

In fetch_read(): the socket is non-blocking, so read() will return 0
on EOF, and -1 (errno == EAGAIN) when the connection is still open but
there is no data waiting.  In the first case, we should immediately
return 0.  The EINTR case was also broken, although not in a way that
matters.

In fetch_writev(): use timersub() and timercmp() as in fetch_read().

In http_fillbuf(): set errno to a sensible value when an invalid chunk
header is encountered.

In http_readfn(): as in fetch_read(), a zero return from down the
stack indicates EOF, not an error.  Furthermore, when io->error is
EINTR, clear it (but no errno) before returning so the caller can
retry after dealing with the interrupt.

MFC after: 3 days

10 years ago- Remove some dead code.
hselasky [Wed, 29 Jan 2014 12:34:05 +0000 (12:34 +0000)]
- Remove some dead code.
- Use system provided functions for HID report requests.
- Nice the mode setting, because the USB hardware does appear to
handle the commands right away.

MFC after: 1 week

10 years agoRestore the Nx macro lost in transit.
pluknet [Wed, 29 Jan 2014 11:39:58 +0000 (11:39 +0000)]
Restore the Nx macro lost in transit.
This matches upstream.

PR: 186205
Submitted by: naddy
MFC after: 3 days

10 years agoAdd support for trackpads found in Apple MacBook products. While at it
hselasky [Wed, 29 Jan 2014 10:42:01 +0000 (10:42 +0000)]
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.

Submitted by: Huang Wen Hui <huanghwh@gmail.com>
MFC after: 1 week

10 years agoOnly declare `bysz' variable under little endian archs.
kaiw [Wed, 29 Jan 2014 09:58:05 +0000 (09:58 +0000)]
Only declare `bysz' variable under little endian archs.

10 years agoUse a loop of dcbz, instead of calling bzero() to zero a page. This matches
jhibbits [Wed, 29 Jan 2014 05:58:08 +0000 (05:58 +0000)]
Use a loop of dcbz, instead of calling bzero() to zero a page.  This matches
what is done in mmu_oea64.c.

MFC after: 1 month

10 years agoDon't build BSDL dtc if the GPL dtc is enabled.
imp [Wed, 29 Jan 2014 05:00:04 +0000 (05:00 +0000)]
Don't build BSDL dtc if the GPL dtc is enabled.

10 years agolink mbuf to m_append so it can be found...
jmg [Tue, 28 Jan 2014 23:40:02 +0000 (23:40 +0000)]
link mbuf to m_append so it can be found...

Pointed out by: J David
MFC after: 1 week

10 years agoSpeculatively replace a cp with a cat for gathering data on a
peter [Tue, 28 Jan 2014 22:23:39 +0000 (22:23 +0000)]
Speculatively replace a cp with a cat for gathering data on a
sporadic parallel build failure in the FreeBSD cluster on many-core
systems with ZFS.  cp uses mmap in this scenario, cat does not.

10 years agoFix clang warning.
imp [Tue, 28 Jan 2014 22:07:16 +0000 (22:07 +0000)]
Fix clang warning.

10 years agoPrevent races in accesses of the software crypto session array.
benno [Tue, 28 Jan 2014 22:02:29 +0000 (22:02 +0000)]
Prevent races in accesses of the software crypto session array.

swcr_newsession can change the pointer for swcr_sessions which races with
swcr_process which is looking up entries in this array.

Add a rwlock that protects changes to the array pointer so that
swcr_newsession and swcr_process no longer race.

Original patch by: Steve O'Hara-Smith <Steve.OHaraSmith@isilon.com>
Reviewed by: jmg
Sponsored by: EMC / Isilon Storage Division

10 years agomdoc: fix several uses of the Fx macro to point to actual releases.
uqs [Tue, 28 Jan 2014 21:40:10 +0000 (21:40 +0000)]
mdoc: fix several uses of the Fx macro to point to actual releases.

Found by:  make manlint

10 years agoAdd FreeBSD 2.2.9 which aout(4) references.
uqs [Tue, 28 Jan 2014 21:40:03 +0000 (21:40 +0000)]
Add FreeBSD 2.2.9 which aout(4) references.

Discussed with: kib

10 years agoAdd FreeBSD 2.2.9, the April Fools release.
uqs [Tue, 28 Jan 2014 21:39:46 +0000 (21:39 +0000)]
Add FreeBSD 2.2.9, the April Fools release.

I decided not to extend the graph to the actual point in time when it
was released, that would just look silly.

10 years agoMerge from projects/elftoolchain: Upgrade libelf and libdwarf to newer
kaiw [Tue, 28 Jan 2014 21:38:54 +0000 (21:38 +0000)]
Merge from projects/elftoolchain: Upgrade libelf and libdwarf to newer
versions from elftoolchain upstream (r2974).  Convert ctfconvert to
use the APIs from the new libdwarf and make ctfconvert work with Clang
3.4.

__FreeBSD_version is bumped to 1100006.

A list of notable changes:

[libelf]

* The old libelf source code in lib/libelf has been removed.
  Instead, the new libelf is built from contrib/elftoolchain/libelf.
* Manual pages are largely improved.
* Internal implementation was refactored and improved for better
  correctness and portability.
* Fixed a few memory leaks.
* Extended with extension APIs `elf_open()` and `elf_openmemory()`.
  These APIs are similar to `elf_begin()` and `elf_memory()`
  respectively, except that they return an ELF descriptor of kind
  `ELF_K_NONE` instead of an error if the object being opened could
  not be parsed.
* Implement support for translating sections of type ELF_T_VDEF and
  ELF_T_VNEED.
* Improve `elf_update()` to check that the executable header, the
  program header table, section contents and the section header table
  do not overlap, and to ensure that gaps between extents are
  filled with the fill character specified by `elf_fill()`.
* Allow `Elf_Data` descriptors to have types and alignments differing
  from their containing section.
* Remove functionality controlled by `LIBELF_TEST_HOOKS`.
* Support processing of BSD-flavor archives.
* Add knowledge of section types `SHT_GNU_ATTRIBUTES` and
  `SHT_GNU_LIBLIST`.
* Use elftoolchain style symbol versioning.
* Shared library version is bumped.

[libdwarf]

* The old libdwarf source code in lib/libdwarf has been removed.
  Instead, the new libdwarf is built from contrib/elftoolchain/libdwarf.
* Support full DWARF3 and partial DWARF4 parsing.
* Support DWARF2 generation.
* Support for DWARF line number, call frame, location expression,
  macro info and address ranges, among other things.
* The APIs for the new libdwarf are mostly compatible with the widely
  used LGPL libdwarf. Some of the incompatible APIs from the old
  libdwarf are kept as its own extensions. All the APIs are documented.
* Use elftoolchain style symbol versioning.
* Shared library version is bumped.

[ctfconvert]

* Switch to the APIs from the new libdwarf.
* Improve die_mem_offset() so that DW_AT_data_member_location attributes
  generated by Clang 3.4 can be handled properly.
* Make use of DW_AT_byte_size attribute of the member DIE to calculate
  the bits occupied by the member's type, without actually resolving
  the type. This way ctfconvert can deal with the case that Clang 3.4
  sometimes emits DIE for struct/union member before emitting the DIE
  for the type of that member.

Obtained from: elftoolchain
No objection: -toolchain mailing list

10 years agoMFH@261244.
kaiw [Tue, 28 Jan 2014 21:30:05 +0000 (21:30 +0000)]
MFH@261244.

10 years agoAdjust r239672 from rrs and r258821 from eadler.
peter [Tue, 28 Jan 2014 21:13:15 +0000 (21:13 +0000)]
Adjust r239672 from rrs and r258821 from eadler.

By definition, the very first FIN is not a duplicate. Process it normally
and don't feed it to congestion control as though it were a dupe.  Don't
prevent CC from seeing later dupe acks while in a half close state.

10 years agoSome BIOSes incorrectly use standard memory resource ranges to list
jhb [Tue, 28 Jan 2014 20:53:33 +0000 (20:53 +0000)]
Some BIOSes incorrectly use standard memory resource ranges to list
the memory ranges that they decode for downstream devices rather than
creating ResourceProducer range resource entries.  The result is that
we allocate the full range to the PCI root bridge device causing
allocations in child devices to all fail.

As a workaround, ignore any standard memory resources on a PCI root
bridge device.  It is normal for a PCI root bridge to allocate an I/O
resource for the I/O ports used for PCI config access, but I have not
seen any PCI root bridges that legitimately allocate a memory resource.

Reviewed by: jkim
MFC after: 1 week

10 years agoDecrease lock contention within the TCP accept case by removing
gnn [Tue, 28 Jan 2014 20:28:32 +0000 (20:28 +0000)]
Decrease lock contention within the TCP accept case by removing
the INP_INFO lock from tcp_usr_accept.  As the PR/patch states
this was following the advice already in the code.
See the PR below for a full disucssion of this change and its
measured effects.

PR: 183659
Submitted by: Julian Charbon
Reviewed by: jhb

10 years agoMFH@261240.
kaiw [Tue, 28 Jan 2014 19:12:31 +0000 (19:12 +0000)]
MFH@261240.

10 years agoChange date again.
kaiw [Tue, 28 Jan 2014 19:07:28 +0000 (19:07 +0000)]
Change date again.

10 years agofix spelling of lock_initialized.. jhb approved..
jmg [Tue, 28 Jan 2014 17:27:54 +0000 (17:27 +0000)]
fix spelling of lock_initialized..  jhb approved..

MFC after: 1 week

10 years agoext2fs: Use i_flag instead of i_flags for Ext4 inode flags.
pfg [Tue, 28 Jan 2014 14:39:05 +0000 (14:39 +0000)]
ext2fs: Use i_flag instead of i_flags for Ext4 inode flags.

The ext4 inode flags do not have equivalents for chflags (1)
and hold information that is private to the implementation.
The i_flag field in the inode is a better place to hold the Ext4
inode flags as it saves us from masking flags while setting or
getting attributes.  It should also make things cleaner if we
implement write support for Ext4.

Suggested by: bde
Tested by: Mike Ma
MFC after: 3 days

10 years agoIncrease the default (and minimum) buffer size from 4 kB to 16 kB. Also,
des [Tue, 28 Jan 2014 14:32:04 +0000 (14:32 +0000)]
Increase the default (and minimum) buffer size from 4 kB to 16 kB.  Also,
propagate the buffer size to libc, which uses a 1 kB buffer by default,
negating any hypothetical benefit of increasing fetch(1)'s buffer size.

MFC after: 3 days

10 years agowhitespace and bump copyright
des [Tue, 28 Jan 2014 14:29:24 +0000 (14:29 +0000)]
whitespace and bump copyright

10 years agoAdd missing 'n' after '\'
skreuzer [Tue, 28 Jan 2014 14:11:09 +0000 (14:11 +0000)]
Add missing 'n' after '\'

Reported by: gavin
Approved by: hrs (mentor)

10 years agoSolve http buffering issues and hangs once and for all (hopefully!) by
des [Tue, 28 Jan 2014 12:48:17 +0000 (12:48 +0000)]
Solve http buffering issues and hangs once and for all (hopefully!) by
simply not trying to return exactly what the caller asked for - just
return whatever we got and let the caller be the judge of whether it
was enough.  If an error occurs or the connection times out after we
already received some data, return a short read, under the assumption
that the next call will fail or time out before we read anything.

As it turns out, none of the code that calls fetch_read() assumes an
all-or-nothing result anyway, except for a couple of lines where we
read the CR LF at the end of a hunk in HTTP hunked encoding, so the
changes outside of fetch_read() and http_readfn() are minimal.

While there, replace select(2) with poll(2).

MFC after: 3 days

10 years agoo Fix typo, sort .Xrs.
maxim [Tue, 28 Jan 2014 12:26:38 +0000 (12:26 +0000)]
o Fix typo, sort .Xrs.

PR: docs/186191
Submitted by: Andrew (typo fix)
MFC after: 1 week

10 years agoWhen detaching a [USB] keyboard, keys might still be pressed. Ensure
hselasky [Tue, 28 Jan 2014 09:55:07 +0000 (09:55 +0000)]
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.

MFC after: 1 week

10 years agoRemove STARTUP_PAGETABLE_ADDR from the ARM configs and replace it with
andrew [Tue, 28 Jan 2014 09:12:04 +0000 (09:12 +0000)]
Remove STARTUP_PAGETABLE_ADDR from the ARM configs and replace it with
memory at the end of the kernel.

This helps reduce the SoC and board specific configuration required.

Reviewed by: bsdimp
Tested by: jmg (armeb), br

10 years agoRevert r260622:
hselasky [Tue, 28 Jan 2014 08:49:00 +0000 (08:49 +0000)]
Revert r260622:
To be implemented a bit differently.

10 years agoComply to the official LibUSB v1.0 API:
hselasky [Tue, 28 Jan 2014 07:21:46 +0000 (07:21 +0000)]
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

MFC after: 1 week

10 years agoAllow sigwait(2) in capabilities mode.
csjp [Tue, 28 Jan 2014 01:49:49 +0000 (01:49 +0000)]
Allow sigwait(2) in capabilities mode.

It's common for multi-threaded processes to create a thread for
the purpose of synchronously processing signals. Allow such processes to
utilize a capabilities sandbox.

Discussed with: rwatson, pjd
MFC after: 2 weeks

10 years agoRemove support for legacy PCI devices. These haven't been needed since
jhb [Mon, 27 Jan 2014 22:26:15 +0000 (22:26 +0000)]
Remove support for legacy PCI devices.  These haven't been needed since
support for LPC uart devices was added and it conflicts with upcoming
patches to add PCI INTx support.

Reviewed by: neel

10 years agoExplicitly enable I/O and memory decoding in the bridge's command register
jhb [Mon, 27 Jan 2014 19:49:52 +0000 (19:49 +0000)]
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.

Tested by: Olivier Cochard-Labbe <olivier@cochard.me>
Reviewed by: imp
MFC after: 3 days

10 years agoMerge from vendor branch importing dtc git rev 6a15eb2350426d285130e4c9d84c0bdb6575547a
imp [Mon, 27 Jan 2014 19:37:35 +0000 (19:37 +0000)]
Merge from vendor branch importing dtc git rev 6a15eb2350426d285130e4c9d84c0bdb6575547a

10 years agoRemove extra parens to silence clang warning.
imp [Mon, 27 Jan 2014 19:31:18 +0000 (19:31 +0000)]
Remove extra parens to silence clang warning.

10 years agoAdd support for 'clac' and 'stac' to DDB's disassembler on amd64.
jhb [Mon, 27 Jan 2014 18:53:18 +0000 (18:53 +0000)]
Add support for 'clac' and 'stac' to DDB's disassembler on amd64.

10 years agoMerge bmake-20140101 from vendor
sjg [Mon, 27 Jan 2014 17:47:21 +0000 (17:47 +0000)]
Merge bmake-20140101 from vendor

10 years agofix args to mtx_init
jmg [Mon, 27 Jan 2014 17:31:21 +0000 (17:31 +0000)]
fix args to mtx_init

Note that this commit hasn't been compile tested because these files
are not hooked up to the build...

PR: 186129
Submitted by: Takanori Sawada
Approved by: rpaulo

10 years agoAdd myself as a developer
rodrigo [Mon, 27 Jan 2014 11:10:06 +0000 (11:10 +0000)]
Add myself as a developer
Add bapt@ and kwm@ as mentors

Approved by: kwm@ (co-mentor)

10 years agoNote merge to head for sendmail 8.14.8.
gshapiro [Sun, 26 Jan 2014 23:55:35 +0000 (23:55 +0000)]
Note merge to head for sendmail 8.14.8.

MFC after: 5 days

10 years agoMinor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sun, 26 Jan 2014 23:51:16 +0000 (23:51 +0000)]
Minor changes to force commit these files so new freebsd*.cf files are
built to use the new sendmail-8.14.8/cf tree.

MFC after: 5 days

10 years agoAdd missing svn:keywords property to new files
gshapiro [Sun, 26 Jan 2014 23:47:03 +0000 (23:47 +0000)]
Add missing svn:keywords property to new files

MFC after: 5 days

10 years agoUpdate for sendmail 8.14.8 import
gshapiro [Sun, 26 Jan 2014 23:44:12 +0000 (23:44 +0000)]
Update for sendmail 8.14.8 import

MFC after: 5 days

10 years agoRemove local FreeBSD workaround now that upstream project has a better fix.
gshapiro [Sun, 26 Jan 2014 23:42:40 +0000 (23:42 +0000)]
Remove local FreeBSD workaround now that upstream project has a better fix.

MFC after: 5 days

10 years agoAdd new sendmail 8.14.8 file
gshapiro [Sun, 26 Jan 2014 23:40:31 +0000 (23:40 +0000)]
Add new sendmail 8.14.8 file

MFC after: 5 days

10 years agoMerge sendmail 8.14.8 to HEAD
gshapiro [Sun, 26 Jan 2014 23:39:11 +0000 (23:39 +0000)]
Merge sendmail 8.14.8 to HEAD

MFC after: 5 days

10 years agologin: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.
jilles [Sun, 26 Jan 2014 22:49:24 +0000 (22:49 +0000)]
login: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.

This avoids leaving stale entries in utmpx after the connection is closed on
an open login session. It also allows a clean way (SIGTERM) to forcibly
terminate a user's terminal session.

This does not affect the situation for "hung" processes after the connection
is closed. The foreground process group receives SIGHUP and the tty becomes
inaccessible.

Also replace all use of the obsolete signal() function with sigaction() (not
only the part where it is actually required: SIGHUP and SIGTERM must mask
the other as well when caught).

PR: misc/183495
Reviewed by: ed

10 years agosh: Allow aliases to force alias substitution on the following word.
jilles [Sun, 26 Jan 2014 21:19:33 +0000 (21:19 +0000)]
sh: Allow aliases to force alias substitution on the following word.

If an alias's value ends with a space or tab, the next word is also
checked for aliases.

This is a POSIX feature. It is useful with utilities like command and
nohup (alias them to themselves followed by a space).

10 years agoImport sendmail 8.14.8
gshapiro [Sun, 26 Jan 2014 20:46:55 +0000 (20:46 +0000)]
Import sendmail 8.14.8

10 years agoUpdate link to vendor import instructions
gshapiro [Sun, 26 Jan 2014 20:13:28 +0000 (20:13 +0000)]
Update link to vendor import instructions

10 years agoStop the options string leak if it is not attached into the options
kevlo [Sun, 26 Jan 2014 07:20:32 +0000 (07:20 +0000)]
Stop the options string leak if it is not attached into the options
linked list.

Obtained from: OpenBSD

10 years agoBefore resetting the USART, delay a bit to allow the transmitter to
imp [Sun, 26 Jan 2014 04:57:58 +0000 (04:57 +0000)]
Before resetting the USART, delay a bit to allow the transmitter to
finish the current character to drain to avoid glitching. Also,
simplify the code a smidge.

10 years agogcc: Add support for -Wmissing-prototypes in C++
pfg [Sun, 26 Jan 2014 02:36:06 +0000 (02:36 +0000)]
gcc: Add support for -Wmissing-prototypes in C++

Support for warnings about missing prototypes in C++ was added by Apple
GCC (Radar 6261539).  Most of the code crept into r260311 so it felt
natural to make use of it.

Obtained from: Apple GCC - 5646
MFC after: 5 days

10 years agobinutils: add support for Intel SMAP-related instructions
pfg [Sun, 26 Jan 2014 00:37:21 +0000 (00:37 +0000)]
binutils: add support for Intel SMAP-related instructions

Add support for stac/clac instructions to manipulate the flag
that controls the behaviour of Intel's Supervisor Mode Access
Prevention (SMAP) feature.

Tested by: dim
Obtained from: OpenBSD
MFC after: 5 days

10 years agoMPC74xx should not fall through, to the error case.
jhibbits [Sat, 25 Jan 2014 22:50:42 +0000 (22:50 +0000)]
MPC74xx should not fall through, to the error case.

MFC after: 1 week

10 years agoMake early printf output nicer by inserting a carriage return before
imp [Sat, 25 Jan 2014 21:57:45 +0000 (21:57 +0000)]
Make early printf output nicer by inserting a carriage return before
any linefeeds that are output.

10 years agoBus space handles need to be the VA of the requested resource, not the
imp [Sat, 25 Jan 2014 21:52:19 +0000 (21:52 +0000)]
Bus space handles need to be the VA of the requested resource, not the
rounded page VA. Correct so the DBGU device can be mapped for FDT
console since it isn't on a page boundary.

10 years agoSupport level triggered interrupts with VT-x virtual interrupt delivery.
neel [Sat, 25 Jan 2014 20:58:05 +0000 (20:58 +0000)]
Support level triggered interrupts with VT-x virtual interrupt delivery.

The VMCS field EOI_bitmap[] is an array of 256 bits - one for each vector.
If a bit is set to '1' in the EOI_bitmap[] then the processor will trigger
an EOI-induced VM-exit when it is doing EOI virtualization.

The EOI-induced VM-exit results in the EOI being forwarded to the vioapic
so that level triggered interrupts can be properly handled.

Tested by: Anish Gupta (akgupt3@gmail.com)

10 years agoFix compilation with IGB_LEGACY_TX defined.
glebius [Sat, 25 Jan 2014 20:39:23 +0000 (20:39 +0000)]
Fix compilation with IGB_LEGACY_TX defined.

PR: 185909
Submitted by: Aurelien Rougemont <beorn binaries.fr>

10 years agoCheck for a full virtqueue in the multiqueue transmit path
bryanv [Sat, 25 Jan 2014 19:58:53 +0000 (19:58 +0000)]
Check for a full virtqueue in the multiqueue transmit path

With most hosts, we'll negotiate indirect descriptors, so all we
need is one available descriptor to transmit a frame.

10 years agoAvoid queue unlock followed by relock when the enable interrupt race is lost
bryanv [Sat, 25 Jan 2014 19:57:30 +0000 (19:57 +0000)]
Avoid queue unlock followed by relock when the enable interrupt race is lost

This already happens infrequently, and the hold time is still bounded since
we defer to a taskqueue after a few tries.

10 years agoMove duplicated transmit start code into a single function
bryanv [Sat, 25 Jan 2014 19:55:42 +0000 (19:55 +0000)]
Move duplicated transmit start code into a single function

10 years agoFix gcc with -Wstrict-prototypes by telling it bi_emac takes no parameters.
andrew [Sat, 25 Jan 2014 19:36:27 +0000 (19:36 +0000)]
Fix gcc with -Wstrict-prototypes by telling it bi_emac takes no parameters.

10 years agoRemove stray space
bryanv [Sat, 25 Jan 2014 18:34:57 +0000 (18:34 +0000)]
Remove stray space

10 years ago * Mark static inline functions with __fenv_static.
andrew [Sat, 25 Jan 2014 18:13:43 +0000 (18:13 +0000)]
 * Mark static inline functions with __fenv_static.
 * Correctly shift the mask when masking/unmasking exceptions.

10 years agoPull in r195679 from upstream llvm trunk:
dim [Sat, 25 Jan 2014 16:35:56 +0000 (16:35 +0000)]
Pull in r195679 from upstream llvm trunk:

  Don't use nopl in cpus that don't support it.

  Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
  gas knows about, it also doesn't generate nopl.

  The modified cpus:
  i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
         Crusoe, Microsoft VirtualBox - see
         https://bbs.archlinux.org/viewtopic.php?pid=775414
  k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
  via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
         Via c3 and c3-Nehemiah don't have nopl

PR: bin/185777
MFC after: 3 days

10 years agoUse __fenv_static for all static inline functions.
andrew [Sat, 25 Jan 2014 16:03:08 +0000 (16:03 +0000)]
Use __fenv_static for all static inline functions.

10 years agosh: Add tests for alias names after another alias.
jilles [Sat, 25 Jan 2014 14:59:08 +0000 (14:59 +0000)]
sh: Add tests for alias names after another alias.

Since the first alias's value does not end with a blank, the next word
should not be checked for aliases.

10 years agoMFH@261151.
kaiw [Sat, 25 Jan 2014 14:02:02 +0000 (14:02 +0000)]
MFH@261151.

10 years agoReapply r221569, r233401, r233524 and r255105: Add support for a few
kaiw [Sat, 25 Jan 2014 13:53:46 +0000 (13:53 +0000)]
Reapply r221569, r233401, r233524 and r255105: Add support for a few
ARM/MIPS ELF section types in _libelf_xlate_shtype().

10 years agoDocument libelf/libdwarf update in UPDATING.
kaiw [Sat, 25 Jan 2014 12:07:44 +0000 (12:07 +0000)]
Document libelf/libdwarf update in UPDATING.

10 years agoBump __FreeBSD_version.
kaiw [Sat, 25 Jan 2014 11:46:46 +0000 (11:46 +0000)]
Bump __FreeBSD_version.

10 years agoFix date.
kaiw [Sat, 25 Jan 2014 11:43:58 +0000 (11:43 +0000)]
Fix date.