]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoUse the APSR_nzcv format of mrc. The clang integrated assembler doesn't
Andrew Turner [Tue, 2 Dec 2014 18:35:34 +0000 (18:35 +0000)]
Use the APSR_nzcv format of mrc. The clang integrated assembler doesn't
support the old usage of r15.

Sponsored by: ABT Systems Ltd

9 years agoFix the name of the coprocessor to include the "p" prefix, the clang
Andrew Turner [Tue, 2 Dec 2014 18:20:53 +0000 (18:20 +0000)]
Fix the name of the coprocessor to include the "p" prefix, the clang
integrated assembler expects this.

MFC after: 1 Week
Sponsored by: ABT Systems Ltd

9 years agoAllow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
Andrew Turner [Tue, 2 Dec 2014 18:12:16 +0000 (18:12 +0000)]
Allow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
integrated assembler only allows these forms so binutils will need to
support them.

MFC after: 1 Week
Sponsored by: AB Systems Ltd

9 years agoThe runtime linker needs to include a path to itself in the link map
John Baldwin [Tue, 2 Dec 2014 16:22:08 +0000 (16:22 +0000)]
The runtime linker needs to include a path to itself in the link map
it exports to the debugger.  It currently has two choices: it can use
a compiled-in path (/libexec/ld-elf.so.1) or it can use the path stored
in the interpreter path in the binary being executed.  The runtime linker
currently prefers the second.  However, this is usually wrong for compat32
binaries since the binary specifies the path of rtld on a 32-bit system
(/libexec/ld-elf.so.1) instead of the actual path (/libexec/ld-elf32.so.1).
For now, always assume the compiled in path (/libexec/ld-elf32.so.1) as
the rtld path and ignore the path in the binary for the 32-bit runtime
linker.

Differential Revision: https://reviews.freebsd.org/D1236
Reviewed by: kib

9 years agoMFi386: r275305 (by rdivacky)
Yoshihiro Takahashi [Tue, 2 Dec 2014 14:48:21 +0000 (14:48 +0000)]
MFi386: r275305 (by rdivacky)

  Unbreak the code for non-digits below '0' by casting the expression
  to unsigned int.

9 years agoAdd missing Makefile defines so that the program in question can be
Hans Petter Selasky [Tue, 2 Dec 2014 13:58:57 +0000 (13:58 +0000)]
Add missing Makefile defines so that the program in question can be
built as part of buildworld.

9 years agoConvert persis_offset from global variable to softc field.
Alexander Motin [Tue, 2 Dec 2014 12:38:22 +0000 (12:38 +0000)]
Convert persis_offset from global variable to softc field.

9 years agoReduce code duplication by creating ctl_set_res_ua() helper.
Alexander Motin [Tue, 2 Dec 2014 12:31:28 +0000 (12:31 +0000)]
Reduce code duplication by creating ctl_set_res_ua() helper.

9 years agoRemoved unused variable and unify some names.
Alexander Motin [Tue, 2 Dec 2014 12:05:44 +0000 (12:05 +0000)]
Removed unused variable and unify some names.

9 years agozfs_putpages: actually update mtime and ctime
Andriy Gapon [Tue, 2 Dec 2014 11:44:56 +0000 (11:44 +0000)]
zfs_putpages: actually update mtime and ctime

Reported by: Paul Koch <paul.koch@akips.com>
Tested by: Paul Koch <paul.koch@akips.com>
MFC after: 2 weeks

9 years agoFix null pointer dereference.
Edward Tomasz Napierala [Tue, 2 Dec 2014 07:42:25 +0000 (07:42 +0000)]
Fix null pointer dereference.

MFC after: 2 weeks
Coverity CID: 1256497
Sponsored by: The FreeBSD Foundation

9 years agoFix an off-by-one in gpio_pin_list().
Rui Paulo [Tue, 2 Dec 2014 06:24:45 +0000 (06:24 +0000)]
Fix an off-by-one in gpio_pin_list().

Coverity CID: 1256495

9 years agoRewrite parts of gpioctl(8) to use the gpio(3) library.
Rui Paulo [Tue, 2 Dec 2014 06:11:32 +0000 (06:11 +0000)]
Rewrite parts of gpioctl(8) to use the gpio(3) library.

9 years agoRemove unneded check. No need to do m_pullup to the size that we prepended.
Andrey V. Elsukov [Tue, 2 Dec 2014 05:41:03 +0000 (05:41 +0000)]
Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC after: 1 week
Sponsored by: Yandex LLC

9 years agoRemove unneded check. No need to do m_pullup to the size that we prepended.
Andrey V. Elsukov [Tue, 2 Dec 2014 05:28:40 +0000 (05:28 +0000)]
Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by: Yandex LLC

9 years agoRemove route chaching support from ipsec code. It isn't used for some time.
Andrey V. Elsukov [Tue, 2 Dec 2014 04:20:50 +0000 (04:20 +0000)]
Remove route chaching support from ipsec code. It isn't used for some time.
* remove sa_route_union declaration and route_cache member from struct secashead;
* remove key_sa_routechange() call from ICMP and ICMPv6 code;
* simplify ip_ipsec_mtu();
* remove #include <net/route.h>;

Sponsored by: Yandex LLC

9 years agoRemove unused structure declarations.
Andrey V. Elsukov [Tue, 2 Dec 2014 02:41:44 +0000 (02:41 +0000)]
Remove unused structure declarations.

Sponsored by: Yandex LLC

9 years agoRemove unused declartations.
Andrey V. Elsukov [Tue, 2 Dec 2014 02:32:28 +0000 (02:32 +0000)]
Remove unused declartations.

Sponsored by: Yandex LLC

9 years agoRegenerate src.conf(5) after r275373
Ed Maste [Tue, 2 Dec 2014 02:16:30 +0000 (02:16 +0000)]
Regenerate src.conf(5) after r275373

9 years agoAdd elfcopy and man page to OptionalObsoleteFiles
Ed Maste [Tue, 2 Dec 2014 02:11:09 +0000 (02:11 +0000)]
Add elfcopy and man page to OptionalObsoleteFiles

9 years agoLet GNU ld be less obscure about missing symbols and DSOs. If the BFD
Dimitry Andric [Tue, 2 Dec 2014 01:30:53 +0000 (01:30 +0000)]
Let GNU ld be less obscure about missing symbols and DSOs.  If the BFD
object looks like a typical shared library, suggest adding '-l<foo>',
where <foo> has the 'lib' prefix and '.so<bar>' or '.a' suffix removed.

Otherwise, suggest adding '-l:<foo>', where <foo> is the full DT_SONAME.

Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon storage division
Reviewed by: emaste
PR: 194296
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D1152

9 years agoSync the svn template with the one from ports
Baptiste Daroussin [Tue, 2 Dec 2014 00:23:26 +0000 (00:23 +0000)]
Sync the svn template with the one from ports

9 years agoMake this work with pkgng, and allow PORTS_OPTS to be passed in
Poul-Henning Kamp [Mon, 1 Dec 2014 22:39:35 +0000 (22:39 +0000)]
Make this work with pkgng, and allow PORTS_OPTS to be passed in

9 years agoUse the floating-point instruction on ARMv7 as the clang 3.5 integrated
Andrew Turner [Mon, 1 Dec 2014 21:13:47 +0000 (21:13 +0000)]
Use the floating-point instruction on ARMv7 as the clang 3.5 integrated
assembler doesn't allow these two instructions to use co-processor 11.

MFC after: 1 Week
Sponsored by: ABT Systems Ltd

9 years agoSet the correct architecture when targeting ARMv7
Andrew Turner [Mon, 1 Dec 2014 21:07:36 +0000 (21:07 +0000)]
Set the correct architecture when targeting ARMv7

MFC after: 1 Week
Sponsored by: ABT Systems Ltd

9 years agoPull in the NetBSD global offset table handling code. Clang 3.5 creates
Andrew Turner [Mon, 1 Dec 2014 21:04:26 +0000 (21:04 +0000)]
Pull in the NetBSD global offset table handling code. Clang 3.5 creates
relocations the linker complains about.

Obtained from: NetBSD
MFC after: 1 Week

9 years agoFix inverted logic introduced in r272154.
Xin LI [Mon, 1 Dec 2014 20:51:01 +0000 (20:51 +0000)]
Fix inverted logic introduced in r272154.

Noticed by: trasz
MFC after: 2 weeks

9 years agoAllow multiple devices to mmap. It's impossible to prevent this with
Rui Paulo [Mon, 1 Dec 2014 19:48:23 +0000 (19:48 +0000)]
Allow multiple devices to mmap.  It's impossible to prevent this with
checks on the open/close functions.

MFC after: 1 week

9 years agoDocument ISP 2532 support and hint.isp.0.vports tunable.
Alexander Motin [Mon, 1 Dec 2014 17:51:16 +0000 (17:51 +0000)]
Document ISP 2532 support and hint.isp.0.vports tunable.

MFC after: 1 week

9 years agoBuild infrastructure for elftoolchain tools
Ed Maste [Mon, 1 Dec 2014 17:49:42 +0000 (17:49 +0000)]
Build infrastructure for elftoolchain tools

Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version
of the following tools:

 * addr2line
 * elfcopy (strip / mcs)
 * nm
 * size
 * strings

Reviewed by: bapt (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1224

9 years agoDisable recursion for the process spinlock.
Konstantin Belousov [Mon, 1 Dec 2014 17:36:10 +0000 (17:36 +0000)]
Disable recursion for the process spinlock.

Tested by: pho
Discussed with: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 month

9 years agoTrack libarchive API change
Ed Maste [Mon, 1 Dec 2014 16:10:44 +0000 (16:10 +0000)]
Track libarchive API change

9 years agoTemporarily disable non-FreeBSD NT_ note types
Ed Maste [Mon, 1 Dec 2014 16:10:03 +0000 (16:10 +0000)]
Temporarily disable non-FreeBSD NT_ note types

9 years agoFix elftoolchain tools in-tree build
Ed Maste [Mon, 1 Dec 2014 16:07:31 +0000 (16:07 +0000)]
Fix elftoolchain tools in-tree build

 * make variables static
 * add header for uint*_t typedefs

9 years agoWhen passing LUN IDs through treat ASCII values as fixed-length, not
Alexander Motin [Mon, 1 Dec 2014 15:21:54 +0000 (15:21 +0000)]
When passing LUN IDs through treat ASCII values as fixed-length, not
interpreating NULLs as EOLs, but converting them to spaces.

SPC-4 does not tell that T10-based IDs should be NULL-terminated/padded.
And while it tells that it should include only ASCII chars (0x20-0x7F),
there are some USB sticks (SanDisk Ultra Fit), that have NULLs inside
the value.  Treating NULLs as EOLs there made those LUN IDs non-unique.

MFC after: 1 week

9 years agoPull in r209785 from upstream libc++ trunk (by Marshall Clow):
Dimitry Andric [Mon, 1 Dec 2014 15:02:49 +0000 (15:02 +0000)]
Pull in r209785 from upstream libc++ trunk (by Marshall Clow):

  Fix a problem exposed by r208825, which caused bind (and other bits of
  libc++) to stop working. And tests

This fix is needed to support clang 3.5.0 and higher, which are more
strict about forming pointer-to-function types with cv-qualifiers or
ref-qualifiers.  See also the upstream PR <http://llvm.org/PR19742> and
<http://llvm.org/viewvc/llvm-project?rev=208825&view=rev>

Reported by: amdmi3
MFC after: 3 days

9 years agoMove ctlfe_onoffline() out of lock to let it sleep when needed.
Alexander Motin [Mon, 1 Dec 2014 13:55:45 +0000 (13:55 +0000)]
Move ctlfe_onoffline() out of lock to let it sleep when needed.

Do some more other polishing while there.

MFC after: 2 weeks

9 years agoDisable the vxlan code until the people reponsible for it can come up with
Dag-Erling Smørgrav [Mon, 1 Dec 2014 12:59:16 +0000 (12:59 +0000)]
Disable the vxlan code until the people reponsible for it can come up with
new command names that don't conflict with existing commands.

Pointy hat to: bryanv

9 years agoThe early-late divider was originally set to mountcritlocal. Since that
Dag-Erling Smørgrav [Mon, 1 Dec 2014 12:29:59 +0000 (12:29 +0000)]
The early-late divider was originally set to mountcritlocal.  Since that
service does not run in jails, it was necessary to change it to something
else when jailed, and NETWORKING was arbitrarily chosen.  The divider was
later moved to FILESYSTEMS when it was introduced, but the logic to change
it to NETWORKING when jailed remained.  Remove it, as it no longer serves
any purpose.

PR: 194975
MFC after: 1 week

9 years agoAllow load_rc_config to be called without a service name.
Dag-Erling Smørgrav [Mon, 1 Dec 2014 12:17:42 +0000 (12:17 +0000)]
Allow load_rc_config to be called without a service name.

MFC after: 1 week

9 years agoStart process of removing the use of the deprecated "M_FLOWID" flag
Hans Petter Selasky [Mon, 1 Dec 2014 11:45:24 +0000 (11:45 +0000)]
Start process of removing the use of the deprecated "M_FLOWID" flag
from the FreeBSD network code. The flag is still kept around in the
"sys/mbuf.h" header file, but does no longer have any users. Instead
the "m_pkthdr.rsstype" field in the mbuf structure is now used to
decide the meaning of the "m_pkthdr.flowid" field. To modify the
"m_pkthdr.rsstype" field please use the existing "M_HASHTYPE_XXX"
macros as defined in the "sys/mbuf.h" header file.

This patch introduces new behaviour in the transmit direction.
Previously network drivers checked if "M_FLOWID" was set in "m_flags"
before using the "m_pkthdr.flowid" field. This check has now now been
replaced by checking if "M_HASHTYPE_GET(m)" is different from
"M_HASHTYPE_NONE". In the future more hashtypes will be added, for
example hashtypes for hardware dedicated flows.

"M_HASHTYPE_OPAQUE" indicates that the "m_pkthdr.flowid" value is
valid and has no particular type. This change removes the need for an
"if" statement in TCP transmit code checking for the presence of a
valid flowid value. The "if" statement mentioned above is now a direct
variable assignment which is then later checked by the respective
network drivers like before.

Additional notes:
- The SCTP code changes will be committed as a separate patch.
- Removal of the "M_FLOWID" flag will also be done separately.
- The FreeBSD version has been bumped.

MFC after: 1 month
Sponsored by: Mellanox Technologies

9 years agoFace the fact that we have no idea where the ports tree really lives.
Poul-Henning Kamp [Mon, 1 Dec 2014 10:17:23 +0000 (10:17 +0000)]
Face the fact that we have no idea where the ports tree really lives.

9 years agoUpdate tools/shlib-compat.
Gleb Kurtsou [Mon, 1 Dec 2014 08:14:25 +0000 (08:14 +0000)]
Update tools/shlib-compat.

- Update dwarfdump / compiler support.
  Use hex instead of decimal for integers.
  Add boolean and restrict type definitions.
  Add options for specifing dwarfdump and objdump executables.

- Fix reporting missing symbol definitions as matching.

- Compare external variable definitions.

- Exclude special symbols like _init, _end by default.

- Fix test build.

9 years agoProvide mutual exclusion between zone allocation/destruction and
Konstantin Belousov [Sun, 30 Nov 2014 20:20:55 +0000 (20:20 +0000)]
Provide mutual exclusion between zone allocation/destruction and
uma_reclaim().  Reclamation code must not see half-constructed or
destructed zones.  Do this by bracing uma_zcreate() and uma_zdestroy()
into a shared-locked sx, and take the sx exclusively in uma_reclaim().

Usually zones are not created/destroyed during the system operation,
but tmpfs mounts do cause zone operations and exposed the bug.

Another solution could be to only expose a new keg on uma_kegs list
after the corresponding zone is fully constructed, and similar
treatment for the destruction.  But it probably requires more risky
code rearrangement as well.

Reported and tested by: pho
Discussed with: avg
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agosh: Remove special case for '=' in set -x; always quote it in outqstr().
Jilles Tjoelker [Sun, 30 Nov 2014 20:12:47 +0000 (20:12 +0000)]
sh: Remove special case for '=' in set -x; always quote it in outqstr().

I plan to make set -x output always printable using $'...'; avoiding quoting
words containing '=' is not worth the extra complexity.

9 years agoRemove trailing whitespace.
Justin T. Gibbs [Sun, 30 Nov 2014 19:32:00 +0000 (19:32 +0000)]
Remove trailing whitespace.

9 years agoThere is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
Andrew Turner [Sun, 30 Nov 2014 17:29:49 +0000 (17:29 +0000)]
There is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
are aliases.

Sponsored by: ABT Systems Ltd

9 years agoUse llabs when getting the absolute value of a long long.
Andrew Turner [Sun, 30 Nov 2014 17:27:24 +0000 (17:27 +0000)]
Use llabs when getting the absolute value of a long long.

Sponsored by: ABT Ststems Ltd

9 years agoCleanup and performance improvement of the virtio_blk driver
Bryan Venteicher [Sun, 30 Nov 2014 16:36:26 +0000 (16:36 +0000)]
Cleanup and performance improvement of the virtio_blk driver

  - Add support for GEOM direct completion. Depending on the benchmark,
    this tends to give a ~30% improvement w.r.t IOPs and BW.
  - Remove an invariants check in the strategy routine. This assertion
    is caught later on by an existing panic.
  - Rename and resort various related functions to make more sense.

MFC after: 1 month

9 years agoMerge from projects/sendfile:
Gleb Smirnoff [Sun, 30 Nov 2014 13:43:52 +0000 (13:43 +0000)]
Merge from projects/sendfile:

- Provide pru_ready function for TCP.
- Don't call tcp_output() from tcp_usr_send() if no ready data was put
  into the socket buffer.
- In case of dropped connection don't try to m_freem() not ready data.

Sponsored by: Nginx, Inc.
Sponsored by: Netflix

9 years agoMerge from projects/sendfile:
Gleb Smirnoff [Sun, 30 Nov 2014 13:40:58 +0000 (13:40 +0000)]
Merge from projects/sendfile:

Provide pru_ready for AF_LOCAL sockets.  Local sockets sendsdata directly
to the receive buffer of the peer, thus pru_ready also works on the peer
socket.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoFix building of some infiniband utilities by updating some header file
Hans Petter Selasky [Sun, 30 Nov 2014 13:27:58 +0000 (13:27 +0000)]
Fix building of some infiniband utilities by updating some header file
locations and compiler include directives.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoMerge from projects/sendfile: extend protocols API to support
Gleb Smirnoff [Sun, 30 Nov 2014 13:24:21 +0000 (13:24 +0000)]
Merge from projects/sendfile: extend protocols API to support
sending not ready data:
o Add new flag to pru_send() flags - PRUS_NOTREADY.
o Add new protocol method pru_ready().

Sponsored by: Nginx, Inc.
Sponsored by: Netflix

9 years agoAdd missing libraries when linking.
Hans Petter Selasky [Sun, 30 Nov 2014 13:13:46 +0000 (13:13 +0000)]
Add missing libraries when linking.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoMerge from projects/sendfile:
Gleb Smirnoff [Sun, 30 Nov 2014 12:52:33 +0000 (12:52 +0000)]
Merge from projects/sendfile:

o Introduce a notion of "not ready" mbufs in socket buffers.  These
mbufs are now being populated by some I/O in background and are
referenced outside.  This forces following implications:
- An mbuf which is "not ready" can't be taken out of the buffer.
- An mbuf that is behind a "not ready" in the queue neither.
- If sockbet buffer is flushed, then "not ready" mbufs shouln't be
  freed.

o In struct sockbuf the sb_cc field is split into sb_ccc and sb_acc.
  The sb_ccc stands for ""claimed character count", or "committed
  character count".  And the sb_acc is "available character count".
  Consumers of socket buffer API shouldn't already access them directly,
  but use sbused() and sbavail() respectively.
o Not ready mbufs are marked with M_NOTREADY, and ready but blocked ones
  with M_BLOCKED.
o New field sb_fnrdy points to the first not ready mbuf, to avoid linear
  search.
o New function sbready() is provided to activate certain amount of mbufs
  in a socket buffer.

A special note on SCTP:
  SCTP has its own sockbufs.  Unfortunately, FreeBSD stack doesn't yet
allow protocol specific sockbufs.  Thus, SCTP does some hacks to make
itself compatible with FreeBSD: it manages sockbufs on its own, but keeps
sb_cc updated to inform the stack of amount of data in them.  The new
notion of "not ready" data isn't supported by SCTP.  Instead, only a
mechanical substitute is done: s/sb_cc/sb_ccc/.
  A proper solution would be to take away struct sockbuf from struct
socket and allow protocols to implement their own socket buffers, like
SCTP already does.  This was discussed with rrs@.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoRemove duplicate FILESYSTEMS REQUIRE from etc/rc.d/ipmon and etc/rc.d/pflog
Enji Cooper [Sun, 30 Nov 2014 12:34:48 +0000 (12:34 +0000)]
Remove duplicate FILESYSTEMS REQUIRE from etc/rc.d/ipmon and etc/rc.d/pflog

9 years agoCorrectly a few incorrect uses of ENTRY/EENTRY and END/EEND
Andrew Turner [Sun, 30 Nov 2014 12:25:04 +0000 (12:25 +0000)]
Correctly a few incorrect uses of ENTRY/EENTRY and END/EEND

Sponsored by: ABT Systems Ltd

9 years agoRemove extra labels, ENTRY_NP already provides them.
Andrew Turner [Sun, 30 Nov 2014 12:20:24 +0000 (12:20 +0000)]
Remove extra labels, ENTRY_NP already provides them.

Sponsored by: ABT Systems Ltd

9 years agoMissed in r274421: use sbavail() instead of bare access to sb_cc.
Gleb Smirnoff [Sun, 30 Nov 2014 12:11:01 +0000 (12:11 +0000)]
Missed in r274421: use sbavail() instead of bare access to sb_cc.

9 years ago- Move sbcheck() declaration under SOCKBUF_DEBUG.
Gleb Smirnoff [Sun, 30 Nov 2014 11:22:39 +0000 (11:22 +0000)]
- Move sbcheck() declaration under SOCKBUF_DEBUG.
- Improve SOCKBUF_DEBUG macros.
- Improve sbcheck().

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoMake sballoc() and sbfree() functions. Ideally, they could be marked
Gleb Smirnoff [Sun, 30 Nov 2014 11:02:07 +0000 (11:02 +0000)]
Make sballoc() and sbfree() functions. Ideally, they could be marked
as static, but unfortunately Infiniband (ab)uses them.

Sponsored by: Nginx, Inc.

9 years agoRemove duplicate FILESYSTEMS REQUIRE
Enji Cooper [Sun, 30 Nov 2014 10:55:01 +0000 (10:55 +0000)]
Remove duplicate FILESYSTEMS REQUIRE

9 years agoRemove duplicate FILESYSTEMS REQUIRE
Enji Cooper [Sun, 30 Nov 2014 10:01:47 +0000 (10:01 +0000)]
Remove duplicate FILESYSTEMS REQUIRE

9 years agoRemove the unnecessary glob
Enji Cooper [Sun, 30 Nov 2014 09:04:24 +0000 (09:04 +0000)]
Remove the unnecessary glob

9 years agoFix CFLAGS+=-DDEBUG by using the right header for libutil (libutil.h, not
Enji Cooper [Sun, 30 Nov 2014 09:03:34 +0000 (09:03 +0000)]
Fix CFLAGS+=-DDEBUG by using the right header for libutil (libutil.h, not
util.h)

9 years agoUnbreak the code for non-digits below '0' by casting the expression
Roman Divacky [Sun, 30 Nov 2014 08:43:55 +0000 (08:43 +0000)]
Unbreak the code for non-digits below '0' by casting the expression
to unsigned int.

Pointed out by: bde

9 years agoBuild spppcontrol if MK_PPP != no
Enji Cooper [Sun, 30 Nov 2014 08:34:46 +0000 (08:34 +0000)]
Build spppcontrol if MK_PPP != no

9 years agoMFhead @ r275302
Enji Cooper [Sun, 30 Nov 2014 06:48:37 +0000 (06:48 +0000)]
MFhead @ r275302

9 years agoFollowup to r275299: add an ObsoleteFiles.inc entry for etc/rc.d/mrouted
Enji Cooper [Sun, 30 Nov 2014 06:46:30 +0000 (06:46 +0000)]
Followup to r275299: add an ObsoleteFiles.inc entry for etc/rc.d/mrouted

9 years agoFill in items to remove with relevant knobs, per r275300
Enji Cooper [Sun, 30 Nov 2014 06:44:24 +0000 (06:44 +0000)]
Fill in items to remove with relevant knobs, per r275300

9 years agoFill in MK_ACPI, (MK_ACPI && MK_APM), MK_INET6, MK_PPP, and MK_ROUTED
Enji Cooper [Sun, 30 Nov 2014 06:08:22 +0000 (06:08 +0000)]
Fill in MK_ACPI, (MK_ACPI && MK_APM), MK_INET6, MK_PPP, and MK_ROUTED

Rework script dependencies to allow everything made optional to more optional

9 years agoRemove etc/rc.d/mrouted
Enji Cooper [Sun, 30 Nov 2014 06:03:59 +0000 (06:03 +0000)]
Remove etc/rc.d/mrouted

mrouted has been available in ports for the last 8 years as net/mrouted . An
equivalent rc.d script has been present in the port.

Remove all corresponding variables from etc/defaults/rc.conf

Relnotes: yes

9 years agoCross reference tap(4) and tun(4) and include a short explanation as
Peter Jeremy [Sun, 30 Nov 2014 04:50:13 +0000 (04:50 +0000)]
Cross reference tap(4) and tun(4) and include a short explanation as
to how they differ.  This will assist users in selecting which interface
is more appropriate for their purposes.

Approved by: grog (co-mentor)
MFC after: 2 week

9 years agoFollowup to r275296: add an ObsoleteFiles.inc entry
Enji Cooper [Sun, 30 Nov 2014 03:02:20 +0000 (03:02 +0000)]
Followup to r275296: add an ObsoleteFiles.inc entry

9 years agoRemove etc/rc.d/mrouted
Enji Cooper [Sun, 30 Nov 2014 03:00:40 +0000 (03:00 +0000)]
Remove etc/rc.d/mrouted

The rc.d script has been incorporated into net/mrouted for some time

9 years agoMake nfs server components conditional according to MK_NFS_SERVER
Enji Cooper [Sun, 30 Nov 2014 02:31:37 +0000 (02:31 +0000)]
Make nfs server components conditional according to MK_NFS_SERVER

9 years agoMove nfsd requirement in lockd/statd to BEFORE: stanza in nfsd so the nfs
Enji Cooper [Sun, 30 Nov 2014 02:27:37 +0000 (02:27 +0000)]
Move nfsd requirement in lockd/statd to BEFORE: stanza in nfsd so the nfs
server can be made optional

9 years agoHonor MK_AUDIT with respect to etc/security
Enji Cooper [Sun, 30 Nov 2014 01:42:55 +0000 (01:42 +0000)]
Honor MK_AUDIT with respect to etc/security

9 years ago- Fill in MK_FILE, MK_PMC, MK_SQLITE3, and MK_ZONEINFO
Enji Cooper [Sun, 30 Nov 2014 00:55:50 +0000 (00:55 +0000)]
- Fill in MK_FILE, MK_PMC, MK_SQLITE3, and MK_ZONEINFO
- Fill in etc/pam.d entries per r275291
- Fill in lib/libaudit entries
- Fill in more MK_NTP entries

9 years agoHonor MK_AT, MK_FTP, MK_MAIL, and MK_OPENSSH
Enji Cooper [Sun, 30 Nov 2014 00:51:00 +0000 (00:51 +0000)]
Honor MK_AT, MK_FTP, MK_MAIL, and MK_OPENSSH

9 years agoInstall bsm headers if MK_AUDIT != no
Enji Cooper [Sun, 30 Nov 2014 00:49:57 +0000 (00:49 +0000)]
Install bsm headers if MK_AUDIT != no

9 years agoHonor MK_FILE
Enji Cooper [Sun, 30 Nov 2014 00:49:24 +0000 (00:49 +0000)]
Honor MK_FILE

9 years agoHonor MK_AUDIT, MK_FILE, MK_GPIO, and MK_SQLITE3
Enji Cooper [Sun, 30 Nov 2014 00:49:06 +0000 (00:49 +0000)]
Honor MK_AUDIT, MK_FILE, MK_GPIO, and MK_SQLITE3

lib/libgpio is a standalone library, but it seems logical to conditionalize
it with MK_GPIO

9 years agoAdd MK_FILE and MK_SQLITE3
Enji Cooper [Sun, 30 Nov 2014 00:45:33 +0000 (00:45 +0000)]
Add MK_FILE and MK_SQLITE3

- MK_FILE will conditionalize building lib/libmagic and usr.bin/file
- MK_SQLITE3 will conditionalize building lib/libsqlite3, and will disable
  MK_SVN/MK_SVNLITE by proxy

9 years agoAdd MK_NTP block to etc/rc.d/Makefile
Enji Cooper [Sun, 30 Nov 2014 00:26:50 +0000 (00:26 +0000)]
Add MK_NTP block to etc/rc.d/Makefile

9 years agoHonor MK_GSSAPI and MK_PKGBOOTSTRAP a bit better in etc/Makefile
Enji Cooper [Sun, 30 Nov 2014 00:25:47 +0000 (00:25 +0000)]
Honor MK_GSSAPI and MK_PKGBOOTSTRAP a bit better in etc/Makefile

9 years agoBetter honor the following MK_ flags in etc/Makefile and etc/rc.d/Makefile:
Enji Cooper [Sun, 30 Nov 2014 00:23:34 +0000 (00:23 +0000)]
Better honor the following MK_ flags in etc/Makefile and etc/rc.d/Makefile:
- MK_AMD
- MK_ATM
- MK_AUDIT
- MK_BOOT
- MK_GSSAPI
- MK_JAIL
- MK_LPR
- MK_SENDMAIL
- MK_VI
- MK_WIRELESS
- MK_ZFS

9 years agoRework rc.d requirements so zfs and zvol come before relevant services so they
Enji Cooper [Sun, 30 Nov 2014 00:21:06 +0000 (00:21 +0000)]
Rework rc.d requirements so zfs and zvol come before relevant services so they
can be decoupled from the build

9 years agoMake kdc run before SERVERS so kdc can be decoupled from the build
Enji Cooper [Sun, 30 Nov 2014 00:03:27 +0000 (00:03 +0000)]
Make kdc run before SERVERS so kdc can be decoupled from the build

9 years agoMake ntpdate run before rpcbind to allow ntpdate to be decoupled from the build
Enji Cooper [Sat, 29 Nov 2014 23:59:51 +0000 (23:59 +0000)]
Make ntpdate run before rpcbind to allow ntpdate to be decoupled from the build

9 years agoMake gssd come before nfsd so gssd can be decoupled from etc/rc.d/Makefile
Enji Cooper [Sat, 29 Nov 2014 23:57:08 +0000 (23:57 +0000)]
Make gssd come before nfsd so gssd can be decoupled from etc/rc.d/Makefile

9 years agoMake local_unbound come before NETWORKING instead of having NETWORKING depend
Enji Cooper [Sat, 29 Nov 2014 23:49:00 +0000 (23:49 +0000)]
Make local_unbound come before NETWORKING instead of having NETWORKING depend
on local_unbound

This should be reworked with a dummy DNS provider

9 years agoatm1 already sets "BEFORE: netif", so remove "REQUIRE: atm1" from netif to
Enji Cooper [Sat, 29 Nov 2014 22:42:53 +0000 (22:42 +0000)]
atm1 already sets "BEFORE: netif", so remove "REQUIRE: atm1" from netif to
allow atm* to be decoupled from rc.d

9 years agoRevert r275270
Enji Cooper [Sat, 29 Nov 2014 22:31:19 +0000 (22:31 +0000)]
Revert r275270

MK_MAIL applies to MK_SENDMAIL and a number of other knobs. r275270 incorrectly
applied it to only MK_SENDMAIL

9 years agoetc/mail actually applies to MK_SENDMAIL, not MK_MAIL
Enji Cooper [Sat, 29 Nov 2014 22:26:35 +0000 (22:26 +0000)]
etc/mail actually applies to MK_SENDMAIL, not MK_MAIL

9 years agoAdd support for dtrace:fbt on modules for PowerPC
Justin Hibbits [Sat, 29 Nov 2014 20:54:33 +0000 (20:54 +0000)]
Add support for dtrace:fbt on modules for PowerPC

Summary:
Revert the initial FBT-with-KDB changes for trap_subr*.S, and instead use the
db_trap filter function to handle dtrace trap filtering.  With this, the MMU is
enabled by the support code, simplifying the codepath altogether.

Test Plan: Tested on my G4 PowerBook

Reviewers: #powerpc, nwhitehorn

Reviewed By: nwhitehorn

Differential Revision: https://reviews.freebsd.org/D1207

MFC after: 3 weeks

9 years agoUpdate _ENTRY to use _EENTRY to reduce the common code.
Andrew Turner [Sat, 29 Nov 2014 19:31:23 +0000 (19:31 +0000)]
Update _ENTRY to use _EENTRY to reduce the common code.

9 years agoThe current limit of 100k for the linker hints file is getting a bit
Warner Losh [Sat, 29 Nov 2014 17:29:30 +0000 (17:29 +0000)]
The current limit of 100k for the linker hints file is getting a bit
crowded as we now are at about 70k. Bump the limit to 1MB instead
which is still quite a reasonable limit and allows for future growth
of this file and possible future expansion to additional data.

MFC After: 2 weeks

9 years agoRemove lock recursion for the pipe pair mutex, and disable the
Konstantin Belousov [Sat, 29 Nov 2014 17:18:20 +0000 (17:18 +0000)]
Remove lock recursion for the pipe pair mutex, and disable the
recursion on mutex initialization.

The only places where the recursive acquire is performed are read and
write filters, since knlist, which uses the pipe pair mutex as lock,
is locked when filter is called.

The recursion was added in r93296, and consistent locking for
kn_fop->f_event() introduced in r133741.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 month

9 years agoSwitch to the ARM unified assembly language as the clang integrated as only
Andrew Turner [Sat, 29 Nov 2014 15:56:52 +0000 (15:56 +0000)]
Switch to the ARM unified assembly language as the clang integrated as only
supports it. Binutils supports it when the ".syntax unified" directive
is set.

Sponsored by: ABT Systems Ltd