Commit Graph

3585 Commits

Author SHA1 Message Date
christos
dae5e0f4f6 Add a build kludge to make dhclient link statically libisc, libdns, libpthread
so it does not need things from /usr/lib, until we decide what to do with it.
2013-03-24 22:21:21 +00:00
christos
50e3eb7c07 bump bind libs. 2013-03-24 18:55:54 +00:00
christos
94ee3dd93f Call the isc register functions now that we are not calling the library using
the special BIND9 compilation.
2013-03-24 18:44:37 +00:00
christos
0b0207d3e9 - Relax some of the assertions to make things work outside bind.
- Remove #ifndef BIND9 exclusions
Now a libdns that is built with BIND9 can be used by other isc programs.
2013-03-24 18:43:32 +00:00
christos
fb92122b29 Export all the necessary functions via the registry API instead of playing
namespace games with cpp. Remove the BIND9 ifdef. Now the bind programs
don't need a special build of libisc.
2013-03-24 18:41:59 +00:00
christos
2e21570ca6 remove error(1) comment 2013-03-24 16:27:58 +00:00
christos
790a253ab0 Build gluons
NB: This will not link yet, until I commit all the bind changes.
2013-03-24 15:54:29 +00:00
christos
b4295394bf minimal patches to compile with WARNS=1 !?!? 2013-03-24 15:53:58 +00:00
christos
6644b02250 from ftp.isc.org 2013-03-24 15:45:44 +00:00
joerg
c565c4f275 Update LLVM/Clang snapshot to r177512 and MCLinker to deeb2a77.
Most noticably, this brings in the (optional) clang-format tool.
2013-03-24 13:02:16 +00:00
joerg
85fc5176f6 Rename __is_signed to __is_signed_val to avoid conflict with a type
trait in Clang.
2013-03-24 12:15:50 +00:00
christos
a24c340b1b remove extra space 2013-03-23 16:23:46 +00:00
christos
c2e19894b5 merge new file 2013-03-23 16:15:57 +00:00
christos
52df37c7bd import file-5.14
changes are "name" + "use" keyword features, bug fixes
2013-03-23 15:49:08 +00:00
christos
75e9b80ac4 add Makefile 2013-03-23 15:42:40 +00:00
christos
4b2f55bb35 move pdisk 2013-03-23 15:42:00 +00:00
christos
48a628ae04 Apply our fixes 2013-03-23 15:39:43 +00:00
christos
9428323d40 from:
http://cantaforda.com/cfcl/eryk/linux/pdisk/dist/pdisk.20000516.src.tar
2013-03-23 15:36:33 +00:00
christos
f3119165d7 avoid arraycount for toolz 2013-03-22 12:31:25 +00:00
christos
81aec73d48 move the code to expand variables in one place and use it to expand
variables inside conditionals. still conditionals with variables don't
work.
2013-03-22 01:24:46 +00:00
christos
a4a10d58ae mandoc can now print numbered registers. 2013-03-21 21:43:22 +00:00
christos
66541c2d35 support expanding numbered registers 2013-03-21 21:42:16 +00:00
joerg
600ab75df5 Add missing .El. 2013-03-21 04:57:38 +00:00
christos
40b61ad4dd The man page has numbered registers and conditionals and cannot be handled
by mandoc, so make it use groff. Unfortunately since we don't install cat
pages, this does not work. At least it works for html!
2013-03-21 02:04:05 +00:00
christos
b32a30787e revert previous, this is a mandoc issue (does not handle .if and .nr) 2013-03-21 01:39:04 +00:00
christos
2c041bfd20 PR/47675: Nick Hudson: top(1) man page missing default number of seconds 2013-03-21 00:27:44 +00:00
jmmv
63dd2c4874 Apply upstream change 1b82d0fe146031526b73454cc64bca7ee1f5b87a:
Fix fs_test:cleanup__mount_point__busy

The first call to kyua_fs_cleanup in this test was supposed to fail as
it is exercising an error path.  But the check was reversed, expecting
no error.  Fix this obvious mistake.
2013-03-17 05:56:46 +00:00
jmmv
4efe0dfefd Mark the atf/atf-{c,c++}/pkg_config_test:version tests as needing atf-version. 2013-03-16 04:21:19 +00:00
jmmv
29a902d3bf Deduce the version number to encode in pkgconfig files by getting it from
bconfig.h.  Also make the build of these files depends on bconfig.h itself.

This should fix once and for all the problems of the
atf/atf-{c,c++}/pkg_config_test:version tests breaking because the
pkgconfig files hold an old version number during update builds.
2013-03-14 07:10:05 +00:00
joerg
05cdf4d619 Update mclinker snapshot to include the various amd64 fixes. 2013-03-13 13:21:17 +00:00
skrll
e818dd6fc0 New firmware from today 2013/03/09 2013-03-09 10:58:44 +00:00
wiz
500d85431e casing. 2013-03-08 08:29:36 +00:00
pooka
e23a1341b4 Add librumpclient. requested by wiz 2013-03-08 08:13:34 +00:00
wiz
ba9019db8d Add libnpf. From rmind.
While here, add consistency in casing.
2013-03-07 21:54:04 +00:00
agc
63d2555829 Following a prompt from wiz, ensure that explanations for the
minimalist JSON library libmj, and the netpgp verification library,
libnetpgpverify, are in the correct places.
2013-03-07 05:33:13 +00:00
wiz
72cafb0e98 Add libmandoc. 2013-03-06 21:42:47 +00:00
christos
213aef742a let zfs autoload too. 2013-03-04 01:14:35 +00:00
christos
db9ff9a846 print the function name that was not found. 2013-03-03 18:18:13 +00:00
christos
c43c276ced autoload tracing modules. 2013-03-03 18:16:35 +00:00
christos
9776ad40b3 need to be a DRIVER class module to be able to autoload when /dev/dtrace/dtrace
is opened.
2013-03-03 16:56:15 +00:00
joerg
34173e99da Fix template lookup. 2013-03-02 23:23:55 +00:00
macallan
e288e83a84 set PCVT_SUPPORT on MIPS 2013-02-28 13:28:36 +00:00
macallan
749749856e build support for Loongson Multimedia Instructions on evbmips 2013-02-28 12:40:47 +00:00
joerg
db135d737c Add infrastructure for building MCLinker. 2013-02-27 21:25:05 +00:00
jmmv
63c0fb4108 Cherry-pick upstream change 70aefdbe5b843d6b24b5a9b816e47f2fb026dde2:
Properly handle tabs when parsing config files

Backslashes within [] in a regexp don't have any meaning, so [ \t]
did not have the intended effect of being evaluated to a space and
a tab.  Fix this by writing an actual tab in the regexp.

Problem found by Valeriy E. Ushakov.
2013-02-26 15:23:19 +00:00
jmmv
f2f2e0cf47 Cherry-pick upstream change d0daf9983f5a0e635f1127dbc827aa114daa90d8:
Fix broken variable parsing with NetBSD's /bin/sh

Quote the expansion of a $() command that was not properly surrounded
by quotes so that this runs properly with NetBSD's /bin/sh.
2013-02-25 18:49:51 +00:00
jmmv
8c23905fbe Do not install atf-config, atf-report, atf-run nor atf-version when
MKKYUA!=no.  The newly imported kyua-atf-compat module provides a
backwards-compatibility implementation of atf-report and atf-run
based on kyua(1).
2013-02-25 00:22:10 +00:00
jmmv
1a338a3807 Descend into kyua-atf-compat when MKKYUA!=no. 2013-02-25 00:21:04 +00:00
jmmv
3bca2a4367 Add reachover build files for kyua-atf-compat. 2013-02-25 00:20:08 +00:00
jmmv
b92cbc7321 Initial import of kyua-atf-compat, version 0.1:
This is the last component of the import of Kyua and its build will be
guarded by the MKKYUA knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-atf-compat, provides tools to ease the transition from
ATF to Kyua.  In particular, this includes a tool to convert Atffile
files to Kyuafile files in an automated manner, and drop-in replacement
wrappers for both atf-run and atf-report.
2013-02-25 00:17:26 +00:00
jmmv
b02153e645 Install kyua-testers' distribution documents.
(Followup to my previous commit as I forgot to include these new files.)
2013-02-24 03:12:59 +00:00
jmmv
47840f72d0 Install a kyua.conf file that sets unprivileged_user to _tests. 2013-02-24 03:06:13 +00:00
jmmv
8faee98977 Cherry-pick upstream commit 9f81e6f6fece7f7e26643022a5efb93c3595e9bc:
Escape backslashes in test metadata

The previous code in kyua-atf-tester escaped single quotes in the
metadata of test cases so that those single quotes did not yield
invalid Lua strings in the output of the tester.

It turns out we also need to escape backslashes for things to work
properly.  Backslashes also have special meaning within Lua strings.

Found while running the NetBSD test suite.  In particular, the
lib/libc/gen/t_fnmatch test program had the '\'' sequence in the
description of a test and this made the test program be reported
as bogus.
2013-02-23 21:04:28 +00:00
jmmv
edcb14a44e Install kyua-testers' distribution documents. 2013-02-23 14:58:11 +00:00
jmmv
0d18479af7 Descend into kyua-cli when MKKYUA!=no. 2013-02-23 14:18:52 +00:00
jmmv
ba65fde2d7 Add reachover build files for kyua-cli. 2013-02-23 14:16:49 +00:00
jmmv
6b3a42af15 Initial import of Kyua CLI, version 0.6:
This is the main component of Kyua and its build will be guarded by the
MKKYUA knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-cli, provides the command-line interface to the Kyua
runtime system.  The major purpose of this tool is to run test cases and
generate unified reports for their results.
2013-02-23 12:34:03 +00:00
jmmv
9c6c1d3b56 Install lutok's missing test_utils.hpp header file. 2013-02-22 15:14:29 +00:00
hans
f49c4a3f9c Make this build on SunOS. 2013-02-21 15:56:07 +00:00
martin
7f2ffc8436 Make the Xdm default config use vt05 for all arches that can switch
consoles while in X.
2013-02-21 08:20:19 +00:00
tron
53529c743e Fix dodgy arguments to snprintf(3) which cause a warning that breaks
the build (at least with "USE_SSP" set to "yes").
2013-02-20 22:45:12 +00:00
christos
2d62d9f82b define HAVE_CLONING_BPF. 2013-02-20 01:39:02 +00:00
jmmv
2ff3d6baf3 Fix atf version in pkgconfig files (should be 0.17).
Keeping these files up to date with every new import is too easy to get
wrong.  Would be nice if we'd extract the version number in some other
manner, like from lib/libatf-c/bconfig.h.

Found by martin@.
2013-02-19 15:35:42 +00:00
joerg
c1d816d5fd Update LLVM/Clang snapshot to r175373. This improves GNU as
compatibility.
2013-02-19 12:35:41 +00:00
jmmv
dbf5b53da3 Enable the build of kyua-testers and register its files and directories.
This is conditional on MKKYUA.
2013-02-19 06:06:39 +00:00
jmmv
6de51c519f Add reachover build files for kyua-testers. 2013-02-19 06:04:42 +00:00
jmmv
754f425fc2 Initial import of Kyua Testers, version 0.1:
This is a component of Kyua and its build will be guarded by the MKKYUA
knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-testers, provides scriptable interfaces to interact
with test programs of various kinds.  The interface of such testers
allows the caller to execute a single test case of a single test program
in a controlled and homogeneous manner.
2013-02-19 06:01:39 +00:00
gdt
aa97bfb53f Adjust blank lines. Add comment about missing DPADD for -lz. 2013-02-18 15:32:02 +00:00
gdt
7c713e5631 Adjust blank lines, add comment about DPADD 2013-02-18 15:29:36 +00:00
christos
c6cdafa088 Don't use DPADD for HOST build. 2013-02-17 20:36:01 +00:00
jmmv
7d3a48f1d2 Hook Lutok into the build. This is all protected by the MKKYUA guard. 2013-02-16 21:40:05 +00:00
jmmv
41ab123075 Add reachover build files for the newly-imported Lutok. 2013-02-16 21:29:45 +00:00
martin
4199c0b4fb When searching for an active thread (e.g. right after switching to threaded
mode), if no lwp is signaled, just stay with the current (inferior_ptid.lwp).
This fixes gdb -p to a threaded process with all threads active.
Previously we eroneously restored an lwp of 0 (returned as sentinel from
ptrace) to inferior_ptid.lwp, which then would not match any thread in
thread_list and caused assertion failures.
2013-02-16 18:06:43 +00:00
jmmv
a15637525a Initial import of Lutok, version 0.2.
This is a required component of Kyua and its build will be guarded by
the MKKYUA knob.  core@ has approved this import.

Description:

Lutok is a lightweight C++ API library for Lua.

Lutok provides thin C++ wrappers around the Lua C API to ease the
interaction between C++ and Lua.  These wrappers make intensive use of
RAII to prevent resource leakage, expose C++-friendly data types, report
errors by means of exceptions and ensure that the Lua stack is always
left untouched in the face of errors.  The library also provides a small
subset of miscellaneous utility functions built on top of the wrappers.

Lutok focuses on providing a clean and safe C++ interface; the drawback
is that it is not suitable for performance-critical environments.  In
order to implement error-safe C++ wrappers on top of a Lua C binary
library, Lutok adds several layers or abstraction and error checking
that go against the original spirit of the Lua C API and thus degrade
performance.
2013-02-16 15:06:52 +00:00
jmcneill
1b27b88159 Fix cygwin build. 2013-02-16 13:33:10 +00:00
jmmv
0a00e59342 Install lua.hpp. 2013-02-15 20:07:00 +00:00
jmmv
a9d87426d0 Update reachover Makefiles for atf 0.17. 2013-02-15 17:08:34 +00:00
jmmv
6f587c9882 Fix merge conflicts after import of atf 0.17. 2013-02-15 17:07:59 +00:00
jmmv
0659fc670c Import atf 0.17:
Experimental version released on February 14th, 2013.

* Added the atf_utils_cat_file, atf_utils_compare_file,
  atf_utils_copy_file, atf_utils_create_file, atf_utils_file_exists,
  atf_utils_fork, atf_utils_grep_file, atf_utils_grep_string,
  atf_utils_readline, atf_utils_redirect and atf_utils_wait utility
  functions to atf-c-api.  Documented the already-public
  atf_utils_free_charpp function.

* Added the cat_file, compare_file, copy_file, create_file, file_exists,
  fork, grep_collection, grep_file, grep_string, redirect and wait
  functions to the atf::utils namespace of atf-c++-api.  These are
  wrappers around the same functions added to the atf-c-api library.

* Added the ATF_CHECK_MATCH, ATF_CHECK_MATCH_MSG, ATF_REQUIRE_MATCH and
  ATF_REQUIRE_MATCH_MSG macros to atf-c to simplify the validation of a
  string against a regular expression.

* Miscellaneous fixes for manpage typos and compilation problems with
  clang.

* Added caching of the results of those configure tests that rely on
  executing a test program.  This should help crossbuild systems by
  providing a mechanism to pre-specify what the results should be.

* PR bin/45690: Make atf-report convert any non-printable characters to
  a plain-text representation (matching their corresponding hexadecimal
  entities) in XML output files.  This is to prevent the output of test
  cases from breaking xsltproc later.
2013-02-15 17:04:15 +00:00
martin
33a57db067 Backout libm dependency here as well (assuming it was meant for the
backed-out use of floor() I added/removed yesterday)
2013-02-15 07:59:36 +00:00
christos
c48559910e re-order library dependencies to make sure that -lintl and -lz are after
the rest of the libraries so that static linking works.
2013-02-14 21:29:35 +00:00
martin
cbad08c3fb Backout previous 2013-02-14 21:07:25 +00:00
matt
d8eebedb0c Link against libm 2013-02-14 19:18:38 +00:00
martin
9a9df90953 When converting long double values to decimal, convert to int via a call
to floor(), so the conversion does not depend on current rounding mode.
Fixes PR port-sparc64/47535.
2013-02-14 17:12:23 +00:00
macallan
c9c152a0c4 set -DPCVT_SUPPORT on most hardware 2013-02-14 16:16:25 +00:00
matt
251aa7b9a5 Make sure LIBGCC_MACHINE_ARCH is always defined. 2013-02-14 15:42:31 +00:00
matt
782461209b For compat, use LIBGCC_MACHINE_ARCH (which defaults to MACHINE_ARCH).
When generating .hidden stub, use ${COPTS}
2013-02-14 09:19:28 +00:00
christos
55c4079b3b fix previous 2013-02-14 03:36:44 +00:00
matt
92b4e13a0d Use PROGDPLIBS 2013-02-14 02:52:59 +00:00
christos
48e0a195df add PROGDPLIBS, and remove duplicate dependencies. 2013-02-14 01:57:42 +00:00
matt
276acf4a26 Use LIBDPLIBS 2013-02-14 01:21:25 +00:00
matt
050da5b67a Use LIBDPLIBS 2013-02-14 01:06:04 +00:00
matt
6cb6b78422 Deal with MKPICLIB=no fallout 2013-02-14 00:53:30 +00:00
christos
f195d367a6 This has no business going to the crypto tree and building it. 2013-02-12 20:32:11 +00:00
martin
1664f62de2 Enable SSE2 support for amd64 2013-02-11 09:26:07 +00:00
christos
5090c2e613 PR/47553: Aleksev Cheusov: awk segfault: NULL dereference. 2013-02-11 00:32:07 +00:00
christos
60404ef41f explicitly set the prefix here. 2013-02-09 17:18:01 +00:00
macallan
aa178e99e1 build altivec support on powerpc 2013-02-07 13:33:50 +00:00
christos
0730293fd3 - dlopen(3) errors should be printed with dlerror(3) so we get the reason the
module link failed, instead of printing "Undefined error 0".
- don't print free'd variable on error, restructure so that we free at the
  end and print the consistent name of the path dlopened.
2013-02-05 23:47:42 +00:00
matt
4b5bef3f0b If compiling with apcs-gnu or atpcs ABIs, supply -mabi=gnu to gas. 2013-02-05 19:29:13 +00:00
matt
5819f2ad68 Use the fact that all big endian arm MACHINE_ARCH end in eb to detect
endianness
2013-02-05 16:57:07 +00:00
matt
6984b4168c Backout setting of UNWIND_H 2013-02-05 08:28:15 +00:00
matt
3ba56103bd There are other little endian arm machine_arches other than "arm"
Use MACHINE_CPU and TARGET_ENDIANNESS instead of MACHINE_ARCH
2013-02-05 07:27:02 +00:00
matt
cae58222cc Don't include t-arm-elf since it just provides stuff which netbsd already has. 2013-02-05 03:02:10 +00:00
matt
912dc5c278 updated mknative gcc bits for earmhf 2013-02-05 02:57:54 +00:00
matt
4f3ff322ae Use NETBSDSRCDIR. Use ?= when setting target so you can override from cmdline. 2013-02-05 02:54:01 +00:00
matt
cb9822ba41 mknative for earmhf 2013-02-05 02:51:14 +00:00
matt
db87bbedd6 Rerun mknative for earm and earmhf for gas changes. 2013-02-04 22:50:12 +00:00
matt
13994434d1 Move arm-*-netbsdelf-*eabi* to before arm-*-eabi* so it matches properly.
Add arm-*-netbsdelf-*eabihf* which has a VFP V2 by default.
Rename armnetbsdeabi*.h to armnbsdeabi*.h to be consistent with other nbsd
files.
2013-02-04 22:38:07 +00:00
matt
5b98504a16 Add a match for arm*--netbsdelf-eabi* and default that EABI with a VFP FPU
and ARCH_ARM_V5TEJ cpu.
2013-02-04 18:42:30 +00:00
matt
a34eb5c25e Default to EABI5. Don't supply -meabi= to as. switch back unwind-arm.h
nuke unwind-netbsd.h
2013-02-04 18:41:18 +00:00
joerg
96fc3e30a7 Update to LLVM/Clang snapshot r174288. This brings in the new AArch64
backend as well as an import bug fix for pointer compare optimisations.
2013-02-04 15:00:31 +00:00
matt
442c893d77 mknative gdb for earmhf 2013-02-04 03:29:45 +00:00
matt
9e4a740eba Understand netbsd*-*eabi* for an os 2013-02-04 02:45:28 +00:00
matt
f07f4bab6c gcc mknative for earmhf 2013-02-04 01:22:14 +00:00
jmcneill
ad483c54da enable simd, neon, and iwmmxt for earmhf 2013-02-03 12:41:40 +00:00
matt
15d372dbba mknative for earmhf 2013-02-03 05:34:50 +00:00
matt
c5775ada06 earmhf mknative for libgcc 2013-02-03 02:01:19 +00:00
matt
eeb9da25fc Use MACHINE_CPU for arm instead of MACHINE_ARCH 2013-02-03 01:59:55 +00:00
matt
2e93500115 binutils mknative for earmhf 2013-02-03 01:58:13 +00:00
matt
d6f7d83d82 Can't use TARGET_AAPCS_BASED since it's not setup by the time
SUBTARGET_CPU_DEFAULT is invoked so use ARM_DEFAULT_ABI instead).
2013-02-02 05:04:25 +00:00
jmcneill
03caaef799 only enable ARM SIMD and NEON for earm, as the configure script tests for this 2013-02-01 00:17:24 +00:00
jmcneill
a5510fd45a Remove PIXMAN_NO_TLS and replace with HAVE_PTHREAD_SETSPECIFIC so the
installed library is actually thread-safe.
2013-01-31 12:21:12 +00:00
jmcneill
a4b324f471 merge pixman 0.28.2. for arm and earm, enable simd & neon support. for
earm, enable iwmmx support.
2013-01-31 10:58:22 +00:00
matt
c510eba682 Add a unwind-netbsd.h which will include the proper unwind.h file depending
on __ARM_EABI__.  This allow gcc to build libgcc for both ABIs properly since
they both different unwind.h.
2013-01-31 07:11:08 +00:00
matt
8355d788c7 Cleanup arm--netbsdelf-*eabi* 2013-01-31 06:53:21 +00:00
matt
8728f6bef4 Define size_t, ptrdiff_t, and wchar_t to what NetBSD/arm wants instead of the
stupid values chosen for AAPCS.
2013-01-31 06:52:16 +00:00
roy
2d64930a6b Sync 2013-01-28 15:46:52 +00:00
roy
9fd5edf906 Import dhcpcd-5.6.7 with the following changes:
* Preserve space in static routes on the command line.
* Check correct interface the RAP came from; fixes PR bin/47433 thanks to
  Taylor R Campbell
* Ensure the nooption works for IPv4 routes
2013-01-28 15:45:10 +00:00
christos
55ad42a55f Avoid comparison between pointer and integer. 2013-01-26 20:15:50 +00:00
skrll
66c6ef5e53 Latest firmware including EDID support. 2013-01-25 13:20:23 +00:00
matt
58ca788453 Make GCC define __ARM_PCS and __ARM_PCS_VFP as defined by the ARM C Language
Extentions (clang already defines them):
__ARM_PCS is defined to 1 if the default procedure calling standard for
the translation unit conforms to the "base PCS" defined in [AAPCS].
__ARM_PCS_VFP is defined to 1 if the default is to pass floating-point
parameters in hardware floating-point registers using the "VFP variant PCS"
defined in [AAPCS].
2013-01-25 08:31:43 +00:00
joerg
fa9d9d71df Update LLVM/Clang snapshot to r172366. Catch up with the move past 3.2
release.
2013-01-23 15:02:52 +00:00
christos
8fb7bb9693 When abusing enums, please at least use valid constants... 2013-01-21 21:38:02 +00:00
wiz
3c7ce2aac6 Put optional args before non-optional ones. 2013-01-20 23:51:40 +00:00
wiz
519dc5efd2 Sort options in SYNOPSIS and text.
XXX: please check if SYNOPSIS are correct, I think they missing some .Op.
2013-01-19 01:22:12 +00:00
christos
d3d2c27409 add man pages 2013-01-18 19:58:43 +00:00
christos
a83c8cf9a9 Handle enum forward declarations. 2013-01-18 16:23:48 +00:00
christos
ef4e6538b4 Forgot to commit additional file. 2013-01-18 16:22:35 +00:00
christos
8c30a47f87 remove RCSID, other files don't have it. 2013-01-17 22:24:55 +00:00
christos
6998db2383 toolify 2013-01-17 22:23:41 +00:00
christos
d546d6fc48 resolve conflicts, bump 2013-01-17 22:06:58 +00:00
christos
0e4a7fb1a7 sync with FreeBSD 2013-01-17 22:03:02 +00:00
christos
62b158cdce Apply GCC/35998 from FreeBSD http://svnweb.freebsd.org/changeset/base/245024
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.

Thanks to Christoph Mallon for pointing out a correct fix.
2013-01-17 19:10:56 +00:00
pooka
9cc8b77e83 ... but make sure to unset empty before it's used as an empty variable. 2013-01-14 16:00:49 +00:00
pooka
cdaf970fbf Make this work with xpg4/sh where "for x in;" is an error. 2013-01-14 15:50:18 +00:00
macallan
ce55cd64b5 default to swkbd mode on evbarm as well, now X without config should work
properly on BeagleBoard, RPi and the like
2013-01-12 18:32:12 +00:00
matt
6093c05ac7 Add missing % to SUBTARGET_ASM_FLOAT_SPEC
If compiling for AAPCS, default to a TARGET_CPU_arm926ejs (armv5te)
If linking for AAPCS, use the right linker emulation.
2013-01-11 13:58:40 +00:00
tron
aa2dcc1a61 Comment out "inet_protocols = ipv4" line which came from up-stream.
We want Postfix to support IPv6 out of the box.

Pointed out by Dieter Roelants on "current-users" mailing list.
2013-01-06 13:58:24 +00:00
christos
ae7c06ea58 fix quoting. 2013-01-04 17:33:01 +00:00
christos
db1b387dc9 bring return value fixes from head. 2013-01-04 17:03:13 +00:00
christos
b060521580 fix the version string manually.
new sentence, new line.
2013-01-04 15:37:53 +00:00
christos
1c5b5b415c fix version detection 2013-01-04 15:34:47 +00:00
christos
f5bc9f2162 magic bug. 2013-01-04 00:49:44 +00:00
christos
f731f39bd1 new config, bump lib 2013-01-03 23:18:10 +00:00
christos
20d96732d4 merge changes 2013-01-03 23:05:35 +00:00
christos
84d8cf07ec make it work if $1 != . 2013-01-03 23:04:52 +00:00
dsl
a34e002f26 Spell cprng_fast() properly 2013-01-03 17:12:05 +00:00
dsl
278835249a Use cprgn_fast() not rnd_extract_data().
The latter isn't in any header files any more.
2013-01-03 16:42:55 +00:00
dsl
51f5533426 Compilation fixes:
- include sys/ioctl.h
- NULL isn't an int constant
- %llf isn't a printf format
2013-01-03 16:41:51 +00:00
christos
2ae0d66f56 from ftp.astron.com 2013-01-03 16:27:48 +00:00
para
2277afb1ef explicitly include sys/resource.h 2013-01-03 10:12:36 +00:00
tron
a536ee5124 Install documentation and manual pages for Postfix's memcache client support. 2013-01-02 22:33:19 +00:00
tron
888f2d7310 Include "sys/ioctl.h" for the prototype of ioctl(2) which fixes the build. 2013-01-02 21:19:13 +00:00
tron
d561406f71 Fix build of Postfix 2.9.5. 2013-01-02 19:45:48 +00:00
tron
cf33639979 Resolve conflicts from last import. 2013-01-02 19:18:29 +00:00
tron
a30b880ed6 Import Postfix 2.9.5. Major changes since version 2.8.x:
- Support for long, non-repeating, queue IDs (queue file names). The
  main benefit of non-repeating names is simpler logfile analysis. See
  the description of "enable_long_queue_ids" in postconf(5) for
  details.
- Memcache client support, and support to share postscreen(8) and
  verify(8) caches via the proxymap server. Details about memcache
  support are in memcache_table(5) and MEMCACHE_README.
- Gradual degradation: if a database is unavailable (can't open, most
  read or write errors) a Postfix daemon will log a warning and
  continue providing the services that don't depend on that table,
  instead of immediately terminating with a fatal error. To terminate
  immediately when a database file can't be opened, specify
  "daemon_table_open_error_is_fatal = yes".
- Revised postconf(1) command. It warns about unused parameter
  name=value settings in main.cf or master.cf (likely mistakes),
  understands "dynamic" parameter names such as names that depend on
  the name of a master.cf entry (finally, "postconf -n" shows all
  parameter settings), and it can display main.cf and master.cf in a
  more user-friendly format (postconf -nf, postconf -Mf).
- Read/write deadline support in the SMTP client and server to defend
  against application-level DOS attacks that very slowly write or read
  data one byte at a time.
2013-01-02 18:58:23 +00:00
dsl
8a7a69a21d amd64's machine/reg now includes fpu.h (to define 'struct fxsave64)
so no need to include signal.h here - which shouldn't result in
the definitions in fpu.h being included anyway.
2013-01-02 18:44:46 +00:00
dsl
3a052f167f There is some very dubious code to locate the values of
tcb.rcv_adv, tcb.snd_nxt and tcb.rcv_nxt for a socket.
so set CPPFLAGS+=      -D_KMEMUSER
2013-01-02 18:41:49 +00:00
dsl
6c6b743ee5 I've NFI why this code has userspace stuff playing with 'struct proc *'
nor why it uses &p0 as a magic constant (rather than NULL).
Re-instate the definition of p0, but enable the 'fake' definition
  of 'struct proc' if the relevant part of sys/proc.h seems to have
  been #if'ed away.
Should fix the build.
2013-01-02 16:31:24 +00:00
dsl
29dbe6c092 # There is some very dubious code to locate the values of
# tcb.rcv_adv, tcb.snd_nxt and tcb.rcv_nxt for a socket.
so add: CPPFLAGS+=     -D_KMEMUSER
2013-01-02 15:50:34 +00:00
christos
eeca57e31f we define HAS_ISBLANK in the Makefile 2013-01-02 13:46:17 +00:00
dsl
be6d96d7d9 Explicitly include sys/ioctl.h 2013-01-02 10:33:49 +00:00
dsl
07465819ee Replace alloca(256) with an array.
The code ended up using alloca() from libc - which 'just can't work' (tm).
It is also pointless!
2013-01-02 10:33:19 +00:00
dsl
b4041ccef0 Comment out the unused 'struct proc p0;'
This is userspace, it isn't supposed to know what a 'struct proc' is.
2013-01-01 19:03:26 +00:00
dsl
f337b6c74a This needs an explicit include of sys/ioctl.h.
XXX: There is some crappy code in here :-)
2013-01-01 19:02:19 +00:00
christos
f5ae1cb28b avoid strict aliasing problems 2012-12-31 18:47:41 +00:00
dsl
f5cd40cc56 No need to check both TARGET_64BIT and ix86_preferred_stack_boundary >= 64,
if the former is true the latter is also true.
2012-12-30 20:16:58 +00:00
dsl
c18b7a38ac If -march=native is specified, only enable AVX if the processor supports
it and the OS has enabled XGETBV for application use.
It might need to also check XCR0[2] (having executed XGETBV) to check that
  the kernel actually supports saving the YMM registers, but I suspect the
  kernel might defer setting that until the first fault.
See vol 1 section 13.5 of the Intel SDM (intel_x86_325462.pdf).
Fixes toolchain/45673
2012-12-30 16:13:57 +00:00
christos
b30e7aec1f remove useless cast. 2012-12-29 14:51:41 +00:00
christos
db7d489b44 merge 2012-12-20 2012-12-29 02:44:26 +00:00
christos
2616448878 from http://www.cs.princeton.edu/~bwk/btl.mirror/ 2012-12-29 02:14:50 +00:00
martin
5e4c896995 ia64 mknative results for gcc and binutils 2012-12-27 20:32:41 +00:00
martin
1a11e4f1b1 ia64 compiler bug workaround: reduce -O to 1 for one file 2012-12-27 08:06:28 +00:00
martin
90a8c98760 Build glue for ia64 2012-12-26 19:39:26 +00:00
christos
af0a310db8 PR/47362: Brian Marcotte: cron is too restrictive on file permissions
Allow file not being writable by owner.
XXX: pullup to 6.
2012-12-24 19:30:46 +00:00
njoly
c15d05d6e1 Fix unknown Fi macro. 2012-12-21 19:26:39 +00:00
martin
7657b23ac4 We do not have a native libunwind (yet) - so reuse the Linux stuff on ia64
for now.
2012-12-20 07:12:26 +00:00
martin
7b7b3a04a8 Avoid duplicate definition of __enable_execute_stack in libgcc (copied from
the rs6000 netbsd.h)
2012-12-19 16:57:21 +00:00
roy
0cad70d023 Sync 2012-12-19 09:43:31 +00:00
roy
8495b41193 Import dhcpcd-5.6.6 with the following changes:
* Grow -4, --ipv4only and -6, --ipv6only options
* Respect AUTO and ONLINK flags for each prefix in the RA
2012-12-19 09:41:09 +00:00
tron
28fbdc7c77 Resolve conflicts from last import. 2012-12-18 09:10:32 +00:00
tron
c6536f46b6 Import Postfix 2.8.13. Changes since version 2.8.12:
- The postscreen_access_list feature failed to ignore case in the first
  character of a command (e.g., permit, reject, etc.). Reported by Francis
  Picabia. (This fix is incorrectly listed in the HISTORY files of earlier
  releases, and will be removed with a future patch.)
- Strip the datalink suffix (e.g., %eth0) from IPv6 addresses returned by
  the system getaddrinfo() routine. Such suffixes break the default
  mynetworks value, the Postfix SMTP server's reverse/forward DNS
  name/address mapping check, and possibly more.
- To eliminate the possibility of collisions with connection cache lookup
  keys, the Postfix LDAP client now computes those lookup keys by joining
  the number-valued connection properties with ASCII null, just like it
  already did with the string-valued connection properties.
- There was a memory leak during one-time TLS library initialization
  (introduced with Postfix 2.5). Reported by Coverity.
- There was a memory leak in the unused oqmgr(8) program (introduced with
  Postfix 2.3). Reported by Coverity.
2012-12-18 09:01:39 +00:00
christos
2f4f3871a1 now that I know how to escape a period, nothing can stop me :-) 2012-12-17 16:26:38 +00:00
wiz
e4bf1b2ca5 Fix some obvious problems and remove trailing whitespace.
Use more markup.
2012-12-16 23:37:34 +00:00
christos
bafb9c842e noman is no more 2012-12-16 20:31:07 +00:00
christos
b6b2f24e70 convert to mdoc 2012-12-16 20:25:40 +00:00
christos
2136559eac from ubuntu-9.10 2012-12-16 20:04:19 +00:00
skrll
1b59d35cc3 Remove G_CONFIGDIR from .PATH as nothing defines it (anymore)
Add the paths from G_LIB2ADDEH to .PATH (for ia64)
2012-12-16 15:32:38 +00:00
cegger
f5330ee300 Always use extern __inline__ with gcc >= 4.2.
Fall back to prototypes on older gcc versions.

Fixes link errors (duplicate symbols) when mpfr's configure check for libgmp
2012-12-16 14:40:07 +00:00
christos
03f2d45a25 PR/47306: Aleksey Cheusov: Don't free strings of symbols where we maintain
pointers to.
2012-12-10 19:49:05 +00:00
christos
cfd7c4b684 XXX: Use earm for earmeb 2012-12-08 02:35:06 +00:00
christos
decff94806 fix inconsistencies in EABI decls. 2012-12-08 01:38:26 +00:00
christos
06c8deb857 If we did not include a specific arch file G_UNWIND_H will not be defined.
Perhaps it is better to error out in that case?
2012-12-07 15:38:04 +00:00
chs
8f4ea3c47b adapt the profile dtrace provider to netbsd. 2012-12-07 03:11:17 +00:00
roy
036e46ffc7 Sync 2012-12-06 11:41:07 +00:00
roy
327a6ebc46 Import openresolv-3.5.3 with the following changes:
* man page improvements
* dnsmasq + dbus + IPv6 linklocal support (requires dnsmasq-2.64)
* sort interface protocols as well as interface (bge0, bge0:ra, bge0:dhcp6)
2012-12-06 11:38:17 +00:00
roy
a6e5712818 Sync 2012-12-06 11:16:47 +00:00
roy
b84abd3f0f Import dhcpcd-5.6.4 with the following changes:
* add interface scope to exported IPv6 link local addresses
* DUID feature works again
* If we receive >1 MTU in the RA we use the last one
* Expire RA options separately from the RA
* Merge multiple RA options together except when a single is needed
* Some memory leaks plugged
* Don't overwrite invalid memory when DNSSL options begin with a NULL
* Ensure we have a large enough buffer for an escaped DNSSL option from RA
2012-12-06 11:11:35 +00:00
matt
1ca4d4f793 Fetch VFP registers, not FPA. 2012-12-06 06:45:45 +00:00
spz
76387d3839 merge bind-9-9-2-P1 and adjust build as needed
fixes CVE-2012-5688, see:
http://www.isc.org/software/bind/advisories/cve-2012-5688
2012-12-04 23:38:37 +00:00
spz
aecb6b8491 Upstream changelog since 9.9.1:
--- 9.9.2-P1 released ---

3407.	[security]	Named could die on specific queries with dns64 enabled.
			[Addressed in change #3388 for BIND 9.8.5 and 9.9.3.]

	--- 9.9.2 released ---

3383.	[security]	A certain combination of records in the RBT could
                        cause named to hang while populating the additional
                        section of a response. [RT #31090]

3373.	[bug]		win32: open raw files in binary mode. [RT #30944]

3364.	[security]	Named could die on specially crafted record.
			[RT #30416]

	--- 9.9.2rc1 released ---

3370.	[bug]		Address use after free while shutting down. [RT #30241]

3369.	[bug]		nsupdate terminated unexpectedly in interactive mode
			if built with readline support. [RT #29550]

3368.	[bug]		<dns/iptable.h>, <dns/private.h> and <dns/zone.h>
			were not C++ safe.

3367.	[bug]		dns_dnsseckey_create() result was not being checked.
			[RT #30685]

3366.	[bug]		Fixed Read-After-Write dependency violation for IA64
			atomic operations. [RT #25181]

3365.	[bug]		Removed spurious newlines from log messages in
			zone.c [RT #30675]

3363.	[bug]		Need to allow "forward" and "fowarders" options
			in static-stub zones; this had been overlooked.
			[RT #30482]

3362.	[bug]		Setting some option values to 0 in named.conf
			could trigger an assertion failure on startup.
			[RT #27730]

3361.	[bug]		"rndc signing -nsec3param" didn't work correctly
			when salt was set to '-' (no salt). [RT #30099]

3360.	[bug]		'host -w' could die.  [RT #18723]

3359.	[bug]		An improperly-formed TSIG secret could cause a
			memory leak. [RT #30607]

3357.	[port]		Add support for libxml2-2.8.x [RT #30440]

3356.	[bug]		Cap the TTL of signed RRsets when RRSIGs are
			approaching their expiry, so they don't remain
			in caches after expiry. [RT #26429]

3355.	[port]		Use more portable awk in verify system test.

3354.	[func]		Improve OpenSSL error logging. [RT #29932]

	--- 9.9.2b1 released ---

3353.	[bug]		Use a single task for task exclusive operations.
			[RT #29872]

3352.	[bug]		Ensure that learned server attributes timeout of the
			adb cache. [RT #29856]

3351.	[bug]		isc_mem_put and isc_mem_putanddetach didn't report
			caller if either ISC_MEM_DEBUGSIZE or ISC_MEM_DEBUGCTX
			memory debugging flags are set. [RT #30243]

3350.	[bug]		Memory read overrun in isc___mem_reallocate if
			ISC_MEM_DEBUGCTX memory debugging flag is set.
			[RT #30240]

3349.	[bug]		Change #3345 was incomplete. [RT #30233]

3348.	[bug]		Prevent RRSIG data from being cached if a negative
			record matching the covering type exists at a higher
			trust level. Such data already can't be retrieved from
			the cache since change 3218 -- this prevents it
			being inserted into the cache as well. [RT #26809]

3347.	[bug]		dnssec-settime: Issue a warning when writing a new
			private key file would cause a change in the
			permissions of the existing file. [RT #27724]

3346.	[security]	Bad-cache data could be used before it was
			initialized, causing an assert. [RT #30025]

3345.	[bug]		Addressed race condition when removing the last item
			or inserting the first item in an ISC_QUEUE.
			[RT #29539]

3344.	[func]		New "dnssec-checkds" command checks a zone to
			determine which DS records should be published
			in the parent zone, or which DLV records should be
			published in a DLV zone, and queries the DNS to
			ensure that it exists. (Note: This tool depends
			on python; it will not be built or installed on
			systems that do not have a python interpreter.)
			[RT #28099]

3342.	[bug]		Change #3314 broke saving of stub zones to disk
			resulting in excessive cpu usage in some cases.
			[RT #29952]

3341.	[func]		New "dnssec-verify" command checks a signed zone
			to ensure correctness of signatures and of NSEC/NSEC3
			chains. [RT #23673]

3339.	[func]		Allow the maximum supported rsa exponent size to be
			specified: "max-rsa-exponent-size <value>;" [RT #29228]

3338.	[bug]		Address race condition in units tests: asyncload_zone
			and asyncload_zt. [RT #26100]

3337.	[bug]		Change #3294 broke support for the multiple keys
			in controls. [RT #29694]

3335.	[func]		nslookup: return a nonzero exit code when unable
			to get an answer. [RT #29492]

3334.	[bug]		Hold a zone table reference while performing a
			asyncronous load of a zone. [RT #28326]

3333.	[bug]		Setting resolver-query-timeout too low can cause
			named to not recover if it loses connectivity.
			[RT #29623]

3332.	[bug]		Re-use cached DS rrsets if possible. [RT #29446]

3331.	[security]	dns_rdataslab_fromrdataset could produce bad
			rdataslabs. [RT #29644]

3330.	[func]		Fix missing signatures on NOERROR results despite
			RPZ rewriting.  Also
			 - add optional "recursive-only yes|no" to the
			   response-policy statement
			 - add optional "max-policy-ttl" to the response-policy
			    statement to limit the false data that
			    "recursive-only no" can introduce into
			    resolvers' caches
			 - add a RPZ performance test to bin/tests/system/rpz
			     when queryperf is available.
			 - the encoding of PASSTHRU action to "rpz-passthru".
			     (The old encoding is still accepted.)
		       [RT #26172]


3329.	[bug]		Handle RRSIG signer-name case consistently: We
			generate RRSIG records with the signer-name in
			lower case.  We accept them with any case, but if
			they fail to validate, we try again in lower case.
			[RT #27451]

3328.	[bug]		Fixed inconsistent data checking in dst_parse.c.
			[RT #29401]

3317.	[func]		Add ECDSA support (RFC 6605). [RT #21918]
2012-12-04 19:21:12 +00:00
apb
ee9a2498cf Adjust everything under src (but outside src/tools) to use
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat.  This should fix PR 47188.
2012-12-02 12:55:27 +00:00
chs
11c69f2d20 adapt the cyclic module and profile dtrace provider to netbsd.
for now, just hook the cyclic callback into hardclock().
2012-12-02 01:05:16 +00:00
chs
a32db86a29 update cyclic module to the freebsd 8-stable version as of svn r219520. 2012-12-02 00:05:38 +00:00
jkunz
32c0cb2823 According to the i.MX23 Reference Manual section 3.1, Page 3-3:
"The i.MX23 always operates in litle-endian mode."
So build elftosb and bootloader for this processor only for evbarm(-el).
2012-11-27 20:00:38 +00:00
drochner
6eb7501d2c collect common rules in the shared Makefile, this propagates the .OBJDIR
fix done for i386 last year to all other ports
2012-11-26 18:57:33 +00:00
christos
f60f86a673 XXX: rename data() to getdata(). This is to avoid an assembler botch on the
ppc64 toolchain where function names are prefixed with a period, so "data"
becomes ".data" and ".data" is confused by the assembler with the segment
directive with the same name. Clearly this is a toolchain issue; we should
be able to call functions "text" and "data" but it is simpler to fix the
code rather than the toolchain.
2012-11-24 22:29:09 +00:00
agc
d055d5654e add definition for libnetpgpverify 2012-11-20 16:24:30 +00:00
apb
eaa724a770 Use -Wno-array-bounds when building two files that read past the end of
an array.  It's not clear how to fix the real bug.  This hack allows
the build to complete with clang.
2012-11-18 08:24:02 +00:00
joerg
6ae8c21c8e Update LLVM/Clang snapshot to r168187 for various bug fixes. 2012-11-17 04:57:25 +00:00
christos
ca01c6a423 Eat all targets 2012-11-16 05:39:25 +00:00
christos
3a65f09395 Don't install lib.a on platforms this is not supported. 2012-11-16 02:54:55 +00:00
jkunz
993229b6fe Add elftosb tools to evbarm userland and toolchain.
Elftosb is used to create a digitaly signed "secure boot" file.
This sb file can be booted by the first stage boot loader found in
Freescale i.MX23 and i.MX28 application processors.

Copyright (c) 2004-2010 Freescale Semiconductor, Inc.
2012-11-15 19:49:11 +00:00
njoly
856537a70d Use mdoc macro for literal block display. 2012-11-14 08:26:29 +00:00
joerg
66eae2a69d Merge r163231 from upstream to fix xulrunner build with Clang. 2012-11-08 18:13:53 +00:00
joerg
6677762418 Provide copy constructor and copy assignment operators for C++11.
Clang implements the C++11 semantics properly that require the default
to be implicitly deleted.
2012-11-08 11:24:00 +00:00
apb
418a93cd57 Mark inline function in_word_set(str, len) as static.
The function uses a static variable (stringpool_contents)
and this is not allowed in an inline function with external linkage.
Found by clang -Wstatic-in-inline.
2012-11-08 08:46:26 +00:00
alnsn
21d85b1e97 Add makefiles to build libsljit as a private userspace library. 2012-11-05 00:23:18 +00:00
christos
7c1cb982d4 we have _SC_PHYS_PAGES now 2012-11-04 19:12:41 +00:00
christos
98b021fd71 make the utime and utimes cases work too. 2012-11-03 17:33:01 +00:00
skrll
8f942710bb Re-run mknative for mips gdb 7.3.1 - not being used just yet. 2012-11-03 17:07:49 +00:00
christos
0a00da6dcc use utimensat(2) and correct and centralize file times handling. 2012-11-03 15:39:23 +00:00
skrll
7639cf466f Typo in previous 2012-11-03 15:07:40 +00:00
skrll
70142c72b9 Supply MIPS_ZERO_REGNUM and MIPS_UNUSED_REGNUM (as zero). Idea stolen from
mips-linux-tdep.c
2012-11-03 15:06:55 +00:00
skrll
2334c5671b Bring across target kvm support for mips from gdb6. 2012-11-03 14:59:44 +00:00
skrll
db35d67e76 Tidyup 2012-11-03 14:38:17 +00:00
joerg
0ee52b72c8 Update LLVM/Clang snapshot to r166772. Now builds without RTTI and
exceptions. Also features the first round of a loop vectorizer.
2012-10-28 17:07:44 +00:00
nakayama
b41cd0dbf9 Remove ipl overwrite. Which was missed in previous. 2012-10-27 20:07:12 +00:00
joerg
7ad1c4e7c0 Appease shift vs substract warning for clang. 2012-10-27 06:55:54 +00:00
christos
f29054e9cf copy structures for alignment purposes 2012-10-26 23:05:14 +00:00
skrll
33c51f6938 Add the raspberry pi firmware distribution under the license shown
below.

OK'ed by board@ some time ago.

This version of the firmware allows the gpu/arm memory split to be
configured in config.txt using the gpu_mem= option.

Copyright (c) 2006, Broadcom Corporation.
All rights reserved.

Redistribution.  Redistribution and use in binary form, without
modification, are permitted provided that the following conditions are
met:

* This software may only be used for the purposes of developing for,
  running or using a Raspberry Pi device.
* Redistributions must reproduce the above copyright notice and the
  following disclaimer in the documentation and/or other materials
  provided with the distribution.
* Neither the name of Broadcom Corporation nor the names of its suppliers
  may be used to endorse or promote products derived from this software
  without specific prior written permission.

DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
2012-10-26 10:22:42 +00:00
drochner
d18545dea2 pull in upstream rev. 191413 to fix integer overflow in objalloc_alloc
(CVE-2012-3509)
2012-10-25 17:00:16 +00:00
christos
48c5746230 Don't play stupid pet tricks with alignments and simplify the code not
to allocate/copy.
2012-10-22 04:35:17 +00:00
christos
83ff0d3d9d missed a const commit 2012-10-22 01:21:57 +00:00
christos
2f6d4dae96 - fix alignment issues in ipmon
- protoize ipmon.c, use void *, size_t instead of char *, int.
2012-10-21 22:57:48 +00:00
riastradh
d9310ec72a Use 0 for MS_NOMNTTAB since we have no mnttab anyway. 2012-10-20 22:11:38 +00:00
joerg
fdd8614af9 Hack to avoid missing macro to unbuild the tree. 2012-10-20 11:37:37 +00:00
riastradh
0041a2c6fe Let's try that again without the static... 2012-10-19 22:19:15 +00:00
riastradh
e75d983bfe Add omitted secpolicy_vnode_utime_modify, for zfs. 2012-10-19 19:58:33 +00:00
riastradh
4797828821 Back out accidental commit of errno kludge for rmdir(".") &c.
Solaris returns EEXIST, whereas we want to return ENOTEMPTY (POSIX
allows both), but this got included in an unrelated commit and should
be separated into a common commit for other related error code fixes.
2012-10-18 14:29:44 +00:00
riastradh
2111fc7126 Take a first whack at making zfs permissions work.
zfs_access uses secpolicy_vnode_access, so it makes no sense for the
latter to call VOP_ACCESS!

Everything seems to return EACCES instead of EPERM, probably because
that's what kauth returns.  This should be fixed, but that may
require some nontrivial surgery to zfs's calls to secpolicy_*, which
is where kauth gets involved.

This commit imports some code from illumos to implement the routine
secpolicy_vnode_setattr.  This shouldn't be outside dist/, but for
now it is expedient to do so.  We ought to fix that, along with all
the other CDDL code outside dist/, when we next import a newer
version of zfs.
2012-10-18 14:22:57 +00:00
riastradh
8e972045d7 Restore _PC_NO_TRUNC in zfs_netbsd_pathconf.
Accidentally clobbered it in a previous commit while moving patches
around between source trees -- oops.
2012-10-16 00:04:15 +00:00
riastradh
6d6cb07bff Fail lookup of .. in a deleted directory with ENOENT.
Don't try to zget the parent, whose znode id may have been recycled
by now.

It's not clear to me how Solaris avoids this, but maybe I'm just
missing something obvious.
2012-10-15 23:51:11 +00:00
riastradh
1baf22d09c Fix various issues in zfs life cycle, locking, and vop protocol.
- Restore some zfs locking and unlocking that got lost randomly.

- Enable use of the BSD vnode lock.  Lock order: all BSD vnode locks
are taken before all zfs internal locks.  There remains an issue with
O_EXCL, to be solved later (famous last words).  KASSERT the locking
scheme up the wazoo.

- Take our cruft out of zfs_lookup and move it to zfs_netbsd_lookup.
Restore much of the way zfs_lookup looked to make merging future
versions easier.  Disable use of the namecache for now because its
locking dance is too scary to contemplate.

- Implement BSD semantics for rename, to appease our tests.  This is
a provisional kludge; eventually we need VOP_RENAME to take a flag
specifying whether to use BSD semantics or POSIX semantics.

- Simplify zfs_netbsd_reclaim and make it work.  Now that getnewvnode
never tries to vclean anything itself, we need not worry about
recursion of ZFS_OBJ_MUTEX locks.

- Clarify and fix genfs node initialization and destruction.

zfs passes most of our atf vfs tests now, including the rename races.

Still to do:

- fix the impedance mismatch between our permissions model and zfs's;
- fix O_EXCL (nontrivial);
- throw dirconc at it and see how badly it explodes;
- find why zpool sometimes wedges itself during mkfs; and
- find why pool caches sometimes seem to get corrupted.
2012-10-15 23:08:19 +00:00
riastradh
1b44cf7c91 secpolicy_vnode_access must be called with the vnode lock held.
Don't unlock the vnode and then tell the caller about what the world
was like while the vnode was locked.  The world changes fast.
2012-10-15 22:50:25 +00:00
riastradh
2ea30100de Simplify zfs dirlock reference counting.
No need to pass dzp around; dl has a pointer to it.
2012-10-15 22:43:50 +00:00
riastradh
b2ba8fafaa Do reference counting for zfs range lock waiters.
Avoid cv_broadcast(&cv); cv_destroy(&cv); which works in Solaris only
by abuse of the condvar abstraction.

There are parts of this code that should be factored into smaller
subroutines, mainly range lock allocation and initialization, but
that would make it harder to merge newer versions of zfs, so for now
I've just expanded those parts further in-line.
2012-10-15 14:15:59 +00:00
riastradh
f1e3330bc7 Do reference counting for zfs dirlock waiters.
Solaris relies on cv_broadcast(&cv); cv_destroy(&cv) working, but
that hoses our cv_wait, which needs to continue using cv after it is
woken.  Solaris's idiom is an abuse of the condvar abstraction, but
we can get the same effect with reference counting.
2012-10-15 14:03:06 +00:00
msaitoh
237b58e244 Remove OLD manunal to install correct manual. 2012-10-12 18:41:59 +00:00
njoly
172b16130f No need to include files more than once. 2012-10-11 08:01:23 +00:00
christos
5d98f59f2d Apply P4:
3383.  [security]      A certain combination of records in the RBT could
                       cause named to hang while populating the additional
                       section of a response. [RT #31090]
2012-10-09 22:55:39 +00:00
christos
5d936c3691 EXP-TLS server: Fix TLS Message Length validation:
http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff;\
    h=586c446e0ff42ae00315b014924ec669023bd8de

http://www.pre-cert.de/advisories/PRE-SA-2012-07.txt
2012-10-08 14:03:09 +00:00
jkoshy
e64c806987 Style fix: keep lists of names sorted.
Reviewed by:	christos
2012-10-08 01:45:11 +00:00
christos
b8fa3219d0 merge v1.0 2012-10-08 00:03:20 +00:00
christos
111b9fd8ca from hostap.epitest.fi 2012-10-07 23:46:57 +00:00
joerg
5af64d5574 PR 46978: ICE on spilling MMX registers
GCC/i386 has code to lower the required alignment for long long to 32bit
as the CPU doesn't need more. It is also using the same mode for setting
up the MMX registers and in turn, the stack slots reserved for spilling
require 32bit alignment. The actual vector types used keep the original
64bit alignment, so when the compiler wants to spill a MMX register, it
hits an assertion. Fix this by using the vector type as raw type for MMX
registers.
2012-10-06 14:10:46 +00:00
christos
fda8fa0063 - add more debugging
- don't return memory we did not allocate, which the caller will then free!
2012-10-03 22:28:20 +00:00
gsutre
544994c48c Enable GLX DRI2 support. 2012-10-03 21:50:14 +00:00
njoly
6b1609c666 Add _PC_NO_TRUNC support in zfs_netbsd_pathconf(). 2012-10-01 18:19:18 +00:00
mlelstv
82d607b6ed Treat LUNs as 64bit numbers that they are.
Don't use broken 48bit accesses for ISID either.

This fixes the LUN ghosting problem on big-endian systems.

LUN handling is still incorrect because it assumes a LUN value < 256
and doesn't parse the 64bit LUN for extended formats.
2012-09-29 07:18:21 +00:00
joerg
fa51ffa63a now sense -> no sense 2012-09-26 23:27:34 +00:00
matt
04774ae728 This needs to have an #else clause 2012-09-26 05:57:45 +00:00
matt
40f28e9944 Fix _SOFT_FLOAT_ -> _SOFT_FLOAT 2012-09-26 05:38:29 +00:00
taca
c6e31784a4 Fix setsockopt(2) error on 64bit environment (amd64).
Reported by PR lib/46693 by me and OK'ed by dholland@.
2012-09-24 14:17:56 +00:00
joerg
2b3d1ee8a7 Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
the SSP parameters and a not-yet-default rewrite of SROA.
2012-09-23 17:22:22 +00:00
martin
b5a8984a94 Define ISCSI_HTONLL6 and ISCSI_NTOHLL6 (6 byte network byte order accessor
macros) dependend on host endianess.
Spotted by mhitch, unfortunately not enough to fix iscsi-target problems
on sparc64.
2012-09-19 08:42:52 +00:00
mrg
e8ae3e9a41 regen mknative files for GCC 4.5.4.
XXX: earm didn't build.
2012-09-18 19:45:46 +00:00
mrg
2c3eff6b3a regen mknative files for GCC 4.5.4. 2012-09-18 08:13:03 +00:00
mrg
67b559efa6 regen mknative files for GCC 4.5.4. 2012-09-18 07:44:34 +00:00
skrll
9378dd0cd5 Update for gcc 4.5.4 2012-09-18 07:05:15 +00:00
skrll
7ae732f19e Resolve conflicts. 2012-09-18 07:04:39 +00:00
skrll
a9d89c3b8a Import of gcc 4.5.4. The (possibly incomplete) list of fixed bugs is
50617 [4.5/4.6/4.7 Regression] ICE: RTL flag check: INSN_ANNULLED_BRANCH_P used with unexpected rtx code 'simplify_immed_subreg' in output_bb, at config/pa/pa.c:6631
  45383 [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
  45606 [4.5 Regression] match a method prototyped a typedef alias with the original type (using stdlib)
  47398 [4.5 Regression] tree check: accessed elt 10 of tree_vec with 9 elts in tsubst, at cp/pt.c:10500
  49951 [4.5/4.6/4.7 Regression] Debug stepping behavior regarding g++ Class destructor has changed for the worse starting at gcc 4.5.0
  43190 [4.4 Regression] Used pointer typedefs eliminated from debug info
  43866 [4.4 Regression] wrong code with -fbounds-check -funswitch-loops
  43897 [4.4 Regression] IA-64 asm clobbers are ignored
  44777 [4.4 Regression] ICE: SIGSEGV with -fprofile-use in gcc.c-torture/execute/comp-goto-2.c
  46985 [4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
  47780 [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  47858 [4.5/4.6/4.7 Regression] IPA-SRA decreases quality of debug info
  47903 [4.5 Regression] var-tracking.c: valgrind error
  48685 [4.5 Regression] ICE in gimplify_expr, at gimplify.c:7034
  52139 [4.5 Regression] ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre
  48046 [4.5 Regression] Expected diagnostic "reference to 'type' is ambiguous" not given for function-local static declaration
  51406 [4.5/4.6/4.7 Regression][c++0x] Incorrect result of static_cast to rvalue reference to base class.
  43949 [4.4 Regression] bogus warning: array subscript is above array bounds
  45982 [4.4 Regression] PTA does not track integers
  48172 [4.5 Regression] incorrect vectorization of loop in GCC 4.5.* with -O3
  49115 [4.5 Regression] invalid return value optimization (?) when exception is thrown and caught
  49279 [4.5 Regression] Optimization incorrectly presuming constant variable inside loop in g++ 4.5 and 4.6 with -O2 and -O3 for x86_64 targets
  50189 [4.5 Regression] Wrong code error in -O2 [-fstrict-enums] compile, target independent
  48660 [4.5/4.6 Regression] ARM ICE in expand_expr_real_1
  23656 Cross-compilation with newlib fails in libiberty
  37985 [4.5/4.6/4.7/4.8 Regression] unsigned char shift lacks "statement with no effect" warning
  38292 [4.5/4.6/4.7/4.8 Regression] corrupted profile info with -O[23] -fprofile-use
  40778 [4.5 Regression] Mudflap instrumentation missing in cloned function.
  40992 [4.4 Regression] cunroll ignoring asm size
  48306 [4.4 Regression] presence of gcc subdir with . in PATH causes breakdown
  49651 [4.4 Regression] nested lambdas and -O3 produced incorrect integer variable increments
  52223 [4.5/4.6 Regression] libffi's man page install breaks with multilibs and overridden mandir
  53418 [4.5 Regression] ICE at gimplify.c:7773
  53138 [4.7 Regression] spaceship operator miscompiled
  50091 [4.5/4.6/4.7 Regression] -fstack-check generates wrong assembly
  50979 architecture mismatch: "mul32" not enabled for "smul" or "umul"
  51187 miscompilation of genrecog.c at -O2 for --target=avr
  52717 thunk referenced in discarded section when building samba with -flto
  48742 [4.5 Regression] Internal error in gimplify_expr
  49120 [4.5 Regression] bogus "value computed is not used" warning (variable-length array in compound statement)
  49161 [4.5 Regression] Fix VRP on switch stmts
  49619 [4.5 Regression] ICE in simplify_subreg, at simplify-rtx.c:5362
  49621 [4.5 regression] ICE in trunc_int_for_mode, at explow.c:57
  49644 [4.5 Regression] post-increment of promoted operand is incorrect.
  51767 [4.5 Regression] ICE with degenerated asm goto
  51768 [4.5 Regression] ICE with invalid asm goto
  52736 [4.5/4.6/4.7/4.8 Regression] miscompilation: store to aliased __m128d is 8 Bytes off
  49440 [4.6 regression] Invalid dynamic_cast for unnamed namespace
  50565 [4.5/4.6/4.7 Regression] initializer element is not computable at load time
  52294 [4.7 Regression] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -Os -mcpu=cortex-a9
  41159 [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  48822 [4.5 Regression] G++ gets stucks and never finishes compilation when enabling -O2/3 optimization options.
  50162 [4.5 Regression] Wrong vectorization
  49381 Unresolved symbols in libgcjgc.a when linking gctest
  45786 [4.5 Regression] Relational operators .eq. and == are not recognized as equivalent
  48708 Invalid V2DI vector set insn generated
  50464 Using -Ofast -march=bdver1 results in internal compiler error: in extract_insn, at recog.c:2109
  51821 [4.5/4.6/4.7 Regression] 64bit > 32bit conversion produces incorrect results with optimizations
  52698 -maddress-mode=long doesn't work
  53228 [4.6/4.7/4.8 Regression] target attributes in libcpp/lex.c cause illegal instructions to be used elsewhere
  42082 [C++0x] ICE on probably invalid with "canonical types differ for identical types"
  42652 vectorizer created unaligned vector insns
  42856 [4.4 Regression] FAIL: gcc.dg/torture/pr41555.c -O0 (test for excess errors)
  47733 psignal (int, const? char*) in libiberty/strsignal.h
  48743 -march=native mis-detects AMD K6-2+ / K6-3 as Athlon - compiled C fails with "illegal instruction"
  49038 [4.5/4.6/4.7 Regression] -ftree-vectorise introduces reads past end of array
  49448 arm-tab-linux-gnu-eabi enableds big endian when it should not
  49461 boehm-gc and gcj incompatible with pie
  50875 O3 and -mavx lead to internal compiler error: in find_reloads
  51161 [C++0x] Illegal static_cast to rvalue reference to ambiguous base class
  51393 Wrong parameter type for _mm256_insert_epi64 in avxintrin.h
  51444 [4.4 Regression]: Spurious "is used uninitialized" warning for structure with bitfields
  51835 ARM EABI violation when passing arguments to helper floating functions like __aeabi_d2iz
  52894 [4.5,4.6,4.7 Regression] Stage1 bootstrap fails with gcc-4.6.3: Infinite loop in pointer_set_insert
  53310 [4.5/4.6/4.7/4.8 Regression] EOSHIFT leaks memory
  53744 gcov version oscillates between 407* and 407p on branches
  52335 [4.4/4.5/4.6/4.7 Regression] I/O: -std=f95 rejects valid DELIM= in OPEN
  46192 [4.5/4.6/4.7 regression] wrong code for renaming of volatile packed array with address clause
  44581 [4.5/4.6/4.7 Regression] internal compiler error: in simplify_subreg
  49307 [4.5/4.6/4.7 Regression] ICE in spill_failure, at reload1.c:2113
  50163 [4.4/4.5/4.6/4.7 Regression] ICE: initialization expression
  50273 [4.5/4.6/4.7 Regression] -Walign-commons no longer effective
  52022 [4.5/4.6/4.7 Regression] Wrong-code with procedures passed as actual argument
  52452 [4.5/4.6/4.7/4.8 Regression] INTRINSIC cannot be applied to gfortran's ETIME
  25973 [4.5/4.6/4.7/4.8 Regression] Wrong warning: control reaches end of non-void function
  53521 [4.5/4.6/4.7/4.8 Regression] Memory leak with zero-sized array constructor
2012-09-18 06:09:45 +00:00
mrg
b2458df459 re-run mknative.
- i386 tested
- m68k gomp tls reverted by hand
- powerpc softfloat added (un-reverted) by hand
2012-09-18 05:31:32 +00:00
tls
ae06293860 Take wiz's suggestion. 2012-09-16 22:08:17 +00:00
wiz
a08950765e New sentence, new line.
Sort option descriptions.
Comment out partial sentence.
Sort SEE ALSO and remove trailing comma.
Use more markup.
2012-09-16 21:33:30 +00:00
tls
e6ea0ca4b6 *Sigh* provide, by default, the dumb "allocate 64K on the stack" variant
of the lzf_compress API by default.  This is because there is evidently
code floating around out there in the world with broken autoconf scripts that
don't check for LZF_STATE_ARG in the lzf header files and just assume the
dumb version of the API.

We rename the sane API to lzf_compress_r and implement the dumb API in
terms of it.  Consequently, bump liblzf major version number.  This is
fine because nothing used our liblzf with the old API.

Add lzf(1) utility from LZF distribution.  Add manual page for lzf(1).
2012-09-16 18:59:24 +00:00
msaitoh
6fdd74c593 Fix gcc bugid 51408 for arm.
Fixes PR#46972.
2012-09-16 07:26:30 +00:00
plunky
eb32d0353f WPA_TRACE_REF() provides optional content, potentially leaving an extra
semicolon within the struct declarator list. This is not permitted
according to C99 "6.7.2.1 Structure and union specifiers", so instead
have the macro provide the semicolon as required.
2012-09-15 18:37:27 +00:00
plunky
2bcdfeae54 install example rules from the 5.1.2 distribution in external/bsd/ipf/dist
rather than the old one..  "mediaone" does not seem to exist though, so
mark it obsolete
2012-09-15 17:33:27 +00:00
plunky
80f5e4f0af the result of the construct
#define FOO	defined(BAR)

#if FOO
 [conditional code]
#endif

is "undefined", according to C99 6.10.1 note 4. So, change code like
that to use the following paradigm

#if defined(BAR)
#define FOO	1
#else
#define FOO	0
#endif

#if FOO
 [conditional code]
#endif
2012-09-15 16:56:05 +00:00
joerg
af71fc1536 Fix GCC to correctly implement the i386 psABI on NetBSD.
This consists of two parts:
- for NetBSD/i386 and NetBSD/AMD64 with -m32, use a default stack
  alignment of 23bit as specified by the ABI
- ensure that double and long long variables on the stack are by default
  only aligned to 32bit, if there is nothing else in the function
  needing a larger stack alignment

The combination ensures that SSE variables on the stack trigger the
realignment logic, but just using double or long long doesn't.
2012-09-14 13:00:01 +00:00
joerg
ed602fb487 Don't use const foo const as type, one const is enough. 2012-09-13 21:44:49 +00:00
christos
f9c0aa05f4 Don't fail if we don't have a current_parsed_root, makes:
'echo version | cvs server'
work again.
2012-09-13 17:45:07 +00:00
spz
a92a2633d3 apply fix for CVE-2012-4244 from upstream
upstream changelog:
          --- 9.9.1-P3 released ---

   3364.  [security]      Named could die on specially crafted record.
                          [RT #30416]
2012-09-13 05:32:07 +00:00
christos
5bbd2a1250 from ftp.isc.org 2012-09-09 16:07:20 +00:00
riz
91aa9460ce Don't build with debugging (-g) by default. 2012-09-05 23:08:42 +00:00
roy
363f3bbd25 Import dhcpcd-5.6.2 with the following changes:
Disable kernel RA earlier on Linux
* Don't set if_up or if_down as true when testing
* ra%d_prefix is now a space separated array of the finished address/len
* If we fail to open sockets, don't bother sending the request
* Send our NS solicitation directly to the router
* Change the NS times so that we assume reachable until the reachable time
  expires, then send probes at retrans intervals until
  DELAY_FIRST_PROBE_TIME is reached at which point we expire the router
* Remove -v from --version in usage
* Only add our own host or destination routes to the build table when we
  are adding gateways
* Ensure we have correct memory allocation for each prefix in the RA
2012-09-03 09:46:12 +00:00
martin
6d25cb1840 Make can_trust_pointer_alignment() always return false on STRICT_ALIGNMENT
archs - gcc 4.5 is not able to properly track alignment and backporting
the fix from 4.6/4.7 is not feasible (according to upstream).
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46483 for details.
Fixes PR toolchain/46865.
2012-09-02 20:58:44 +00:00
pooka
fa4bf43b79 For now, make vop_islocked more like vop_lock and vop_unlock (i.e. don't
even attempt to do anything).
2012-09-01 16:19:00 +00:00