Commit Graph

204501 Commits

Author SHA1 Message Date
bapt
b3accf4c8d Define libipf internal library 2014-11-25 11:22:28 +00:00
bapt
53c2ff7734 Convert bin/ to LIBADD, reduce overlinking allow to build all components as
static
2014-11-25 11:15:40 +00:00
bapt
ae45ae3f5d Fix recursive problem with libedit dependency, if you depends on ncursesw and
not on itself
2014-11-25 11:14:42 +00:00
bapt
079f78008e Add a definition for libxo 2014-11-25 11:13:21 +00:00
bapt
bbabd5ebf3 Fix typo 2014-11-25 11:08:58 +00:00
bapt
6adce30d28 Convert libraries to use LIBADD
While here reduce a bit overlinking
2014-11-25 11:07:26 +00:00
bapt
1578ed600d Define compiler_rt and ssp_nonshared libraries 2014-11-25 11:07:03 +00:00
bapt
3200f33f24 Convert kerberos to LIBADD and reduce overlinking of the kerberos binaries and
libraries
2014-11-25 09:57:42 +00:00
bapt
b4ca360a6a libvers and libsl are internal libraries 2014-11-25 09:54:05 +00:00
des
44c4e24d2a The fallback flag in nsdispatch prevents the fallback implementation of
getgroupmembership() from invoking the correct backend in the compat case.
Replace it with a nesting depth counter so it only blocks one level (the
first is the group -> group_compat translation, the second is the actual
backend).  This is one of two bugs that break getgrouplist() in the compat
case, the second being that the backend's own getgroupmembership() method
is ignored.  Unfortunately, that is not easily fixable without a redesign
of our nss implementation (which is also needed to implement the +@group
syntax in /etc/passwd).

PR:		190055
MFC after:	1 week
2014-11-25 09:47:15 +00:00
bapt
83f6d12d65 Fix make depends with libnetbsd 2014-11-25 07:47:44 +00:00
bapt
e4945ec8a7 Add definitions of kerberos libraries 2014-11-25 07:13:31 +00:00
markj
2908ba9589 Adjust some checks missed in r274637, now that pi_rname can be NULL.
Additionally fix a misparenthesization in the same check, noticed while
fixing the first bug. This bug only appears to cause problems if the same
USDT probe appears twice within a static function.

X-MFC-With:	r274637
2014-11-25 07:01:38 +00:00
markj
f9f6c7d3fe The module load address always needs to be included when setting the dm_*_va
fields of dt_module_t. Previously, this was only done on architectures where
kernel modules have type ET_REL; this change fixes that. As a result, symbol
name resolution in the stack() action now works properly for kernel modules
on i386.

Reported by:	Shrikanth Kamath <shrikanth07@gmail.com>
Tested by:	Shrikanth Kamath
Discussed with:	avg
MFC after:	2 weeks
2014-11-25 06:43:17 +00:00
jhibbits
45aaf263aa Add Apple Intrepid USB controller ID.
MFC after:	2 weeks
2014-11-25 06:15:00 +00:00
mav
029391b089 Use ctl_set_success() instead of direct inlining.
MFC after:	1 week
2014-11-25 06:11:05 +00:00
ngie
7df2a129b4 Remove cokane@ from MAINTAINERS for 3dfx(4)/tdfx(4) because their email
addresses on file bounce (see r252463 for more details)

Reviewed by: accounts (dhw)
2014-11-25 05:25:12 +00:00
emaste
fda27c9937 Revert r274772: it is not valid on MIPS
Reported by:	sbruno
2014-11-25 03:50:31 +00:00
kevlo
d375864ce9 Add missing headers needed by write(). 2014-11-25 02:58:38 +00:00
bapt
478dde8f94 Fix the fix 2014-11-25 01:12:57 +00:00
bapt
c4b2ced73a libevent is an internallib 2014-11-25 00:51:49 +00:00
bapt
725b0cc6ad libatf-c++ exposes libatf-c abi hence we need to explicit link to atf-c if
atf-c++ is requested
2014-11-25 00:28:27 +00:00
bapt
90830dd774 Do not overwrite any LIBNETBSD or LIBNETBSDDIR if they are already defined 2014-11-25 00:12:25 +00:00
delphij
2417b1174f Fix build. 2014-11-25 00:07:56 +00:00
bapt
85691d217f Define special case for atf which libraries names are different from their
declaration
2014-11-25 00:01:53 +00:00
bapt
a37123107a s/cft/ctf 2014-11-24 23:58:04 +00:00
bapt
62507911bd Forgot to convert demandoc along with mandoc 2014-11-24 23:29:56 +00:00
bapt
a1d4ad2ea5 Fix typo 2014-11-24 22:35:32 +00:00
bapt
8ed8af5371 Fix dependencies in case of building statically 2014-11-24 22:32:18 +00:00
bapt
7dd9bdfec2 Avoid code duplication by directly adding _INSTALLLIBS and _PRIVATELIBS into
_LIBRARIES

Reported by:	emaste
2014-11-24 22:29:16 +00:00
bapt
c3b71dffc5 Each time something links to sqlite3 it should link to pthread 2014-11-24 22:17:35 +00:00
bapt
622c9ffcdd Convert makefs to LIBADD
Add definition of libnetbsd in src.libnames.mk
2014-11-24 22:15:30 +00:00
bapt
b6c4c21b20 Convert mandoc to LIBADD
While here remove the ugly LDMANDOC
2014-11-24 22:12:27 +00:00
ae
0d350694ed Skip L2 addresses lookups for p2p interfaces.
Discussed with:	melifaro
Sponsored by:	Yandex LLC
2014-11-24 21:51:43 +00:00
rpaulo
7b5aae7235 Import libgpio.
This is a thin wrapper around the kernel interface which should make
it easier to write GPIO applications.  gpioctl(8) will be converted to
use this library in a separate commit.

Differential Revision:	https://reviews.freebsd.org/D1183
Reviewed by:	adrian, loos
Discussed on:	arm@, embedded@
Relnotes:	yes
2014-11-24 21:49:40 +00:00
brd
57a84aae16 Convert to LIBADD.
Reviewed by:	bapt
2014-11-24 21:49:01 +00:00
bapt
25f80d6440 Correctly specify -L for internal and private libs 2014-11-24 21:39:28 +00:00
bapt
08748cc9a2 Implement LIBADD
LIBADD will automatically set DPADD and LDADD when needed including their
dependencies, LIBADD automatically handles private and internal libs so that
the end user Makefile does not have to care about it.

This allows to reduce overlinking on the base system leaving the framework get
the dependencies properly.

It also allows to built components binaries statically.

To use it:

Replace:
DPADD=	${LIBARCHIVE} ${LIBSSL}
LDADD=	-larchive -lssl

by:
LIBADD=	archive ssl

Differential Revision:	https://reviews.freebsd.org/D1209
Reviewed by:	brooks imp
2014-11-24 21:31:08 +00:00
dim
a4c4d4abcc For now, disable using -fsanitize=bounds for the libc ssp tests, when
using clang 3.5.0, until the runtime support (via compiler-rt) is added.
Otherwise, this would lead to link errors about missing support
libraries.
2014-11-24 20:07:09 +00:00
jhb
5ffe4e5562 Add a bus_get_domain() wrapper around BUS_GET_DOMAIN(). Use this to add
a new per-device '%domain' sysctl node that returns the NUMA domain a
device is associated with if it is associated with one.

Note that this API is still a WIP and might change before 11.0 actually
ships.

Differential Revision:	https://reviews.freebsd.org/D930
Reviewed by:	kib, adrian
2014-11-24 19:55:45 +00:00
jhb
c5e82d754f Properly initialize the capability rights for vnodes exported to procstat
that aren't for file descriptors (cwd, jdir, tracevp, etc.).

Submitted by:	Mikhail <mp@lenta.ru>
2014-11-24 18:34:11 +00:00
ian
edba26a69c Add busdma sync ops before reading and after modifying the descriptor rings.
This was previously working by accident because BUSDMA_COHERENT_MEMORY has
always been set to strongly-ordered on arm.  Now we're moving towards
normal-uncacheable (what might be called write-combining on other platforms)
and using the proper sync ops will be more important.  Of course, that
opens the question of just what is the "proper" sync op for shared
concurrent dma access as opposed to accesses where the handoff of control
of the memory has well-defined sequence points that match the available
busdma sync operations.
2014-11-24 16:12:11 +00:00
philip
1f1e4bf8b6 Add a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
should delete configured addresses and routes when the interface is
closed.  Default is enabled (preserve current behaviour).

MFC after:	1 week
2014-11-24 14:00:27 +00:00
trasz
f1730eff39 Make it possible to specify flags for autofs daemons in rc.conf.
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
2014-11-24 13:02:39 +00:00
ae
c512271414 Add ip_gre.h to ObsoleteFiles.inc.
Sponsored by:	Yandex LLC
2014-11-24 12:53:56 +00:00
mav
6c036a86ca Replace home-grown CTL IO allocator with UMA.
Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

MFC after:	1 month
Sponsored by:	iXsystems, Inc.
2014-11-24 11:37:27 +00:00
brueffer
678318cd20 Limit descriptors and enter capability mode.
Differential:	D1009
Reviewed by:	jonathan, pjd
MFC after:	2 weeks
Relnotes:	yes
2014-11-24 09:31:38 +00:00
trasz
bf894082e1 Remove the pidfile clause from the ctl.conf example. Why do everyone
just copy/paste this line into their configs, it's beyond me.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
2014-11-24 08:13:44 +00:00
bapt
d8045d925d Fix rendering of manpages with mandoc(1) 2014-11-24 08:13:21 +00:00
glebius
5e67a4071d We already have "int i" in this scope.
Submitted by:	alc
2014-11-24 07:57:20 +00:00