| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
I forgot that these testcases fail with gcc 4.2.1; add a note to that effect
MFC after: never
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290185
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix the compiler check to allow the test to be compiled for gcc
PR: 196430
MFC after: never
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290183
|
|
|
|
|
|
|
|
|
|
| |
warning
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290179
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
as lib/libc/rpc
This testcase requires rpcbind be up in running; otherwise the testcases
will time out and be skipped
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290177
|
|
|
|
|
|
|
|
|
| |
Reported by: valgrind
MFC after: 2 weeks
X-MFC-With: r290168
Notes:
svn path=/head/; revision=290169
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Both curitem and curitem (via the names list) was always leaked.
- malloc(3) failures lead to some leaks.
- __bsd___iconv_get_list() failure lead to a crash since its error was not
handles and __bsd___iconv_free_list() is not NULL-safe.
I have slightly refactored this to avoid extra malloc and free logic in cases
of malloc(3) failing.
There are still bad assumptions here that I did not deal with. One of which is
that the data will always have a '/' so the strchr(3) will not return NULL.
Coverity CID: 1130055 1130054 1130053
Notes:
svn path=/head/; revision=290168
|
|
|
|
|
|
|
|
|
| |
Rewrite O_APPEND flag checking using new __S2OAP flag.
MFC after: 3 weeks
Notes:
svn path=/head/; revision=290110
|
|
|
|
| |
Notes:
svn path=/head/; revision=290071
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Libedit's vi mode provides a v command to edit the current line in vi(1)
(hard-coded to vi, in fact).
When Unicode/wide character mode was added, this command started truncating
and/or corrupting the edited text.
This commit fixes v if the text fits into the buffer. If the text is longer,
it is truncated.
PR: 203743
Obtained from: NetBSD (originally submitted by me)
Notes:
svn path=/head/; revision=290065
|
|
|
|
|
|
|
|
|
| |
the stream (if mode had 'a' as the first character).
MFC after: 1 week
Notes:
svn path=/head/; revision=289931
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MK_NIS == no by converting `i` back to an int, and instead cast the loop
comparison to `int`
The loop comparison is iterating the len(ns_dtab)-1, because
the last element is the sentinel tuple { NULL, NULL, NULL, }, so when
both HESOID and NIS are off, len(ns_dtab)-1 == 1 - 1 == 0, and the loop
is skipped because the expression is tautologically false
While here, convert `(sizeof(x) / sizeof(x[0]))` to `nitems(x)`
Tested with: clang 3.7.0, gcc 4.2.1, and gcc 4.9.4 [*] with MK_NIS={no,yes}
and by running bash -lc 'id -u && id -g && id'
* gcc 4.9.4 needs another patch in order for the compile to succeed
with -Werror with lib/libc/gen/getgrent.c
Reported by: jhibbits
Notes:
svn path=/head/; revision=289925
|
|
|
|
|
|
|
|
|
|
| |
It helps to remove _fcntl() call from _ftello() and optimize seek position
calculation in _swrite().
MFC after: 3 weeks
Notes:
svn path=/head/; revision=289863
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the past, _res was a global variable. Now, it's multiple function calls.
Several functions in the resolver use _res multiple times and therefore
call the function(s) far more than necessary.
Fix those callers to store the result of _res in a local variable.
Add __noinline to the definition of res_init() to avoid the code bloat
that these changes would have otherwise incurred. Thanks to jilles
for noticing this.
Reviewed by: jilles
MFC after: 1 week
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D3887
Notes:
svn path=/head/; revision=289837
|
|
|
|
|
|
|
|
| |
MFC after: 3 days
X-MFC-to: stable/10
Notes:
svn path=/head/; revision=289794
|
|
|
|
|
|
|
|
|
| |
MFC after: 3 days
X-MFC-to: stable/10
X-MFC-with: r289790
Notes:
svn path=/head/; revision=289793
|
|
|
|
|
|
|
|
| |
MFC after: 3 days
X-MFC-to: stable/10
Notes:
svn path=/head/; revision=289790
|
|
|
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289730
|
|
|
|
|
|
|
| |
This is why I use branches usually, not commit directly to head
Notes:
svn path=/head/; revision=289696
|
|
|
|
|
|
|
| |
I committed some other undesirable local changes by accident
Notes:
svn path=/head/; revision=289695
|
|
|
|
|
|
|
|
|
| |
A follow-up to r289667.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289668
|
|
|
|
|
|
|
|
|
| |
Reviewed by: emaste, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D3857
Notes:
svn path=/head/; revision=289636
|
|
|
|
|
|
|
|
| |
project), as libgomp is not supported anyway. You can use the
devel/llvm-devel port to install a recent copy of the OpenMP runtime.
Notes:
svn path=/head/; revision=289525
|
|
|
|
|
|
|
|
|
|
|
| |
Remove overlinking in lib/libxo/tests, sbin/savecore, and
usr.bin/{iscsictl,wc,xo}
PR: 203673
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289490
|
|
|
|
| |
Notes:
svn path=/head/; revision=289467
|
|
|
|
|
|
|
|
|
|
| |
It was not being used outside of META_MODE but this should make it more clear
that it is only for META_MODE.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289458
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
descriptor to avoid trashing valid file descriptors that access dev->fd at a
later point in time
PR: 192671
Submitted by: Scott Ferris <scott.ferris@isilon.com>
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289450
|
|
|
|
|
|
|
|
|
| |
PR: 199801
Submitted by: Jukka Ukkonen <jau@iki.fi>
MFC after: 1 week
Notes:
svn path=/head/; revision=289420
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- If the proxy returns a non-200 result, set the error code accordingly
so the caller / user gets a somewhat meaningful error message.
- Consume and discard any HTTP response header following the result line.
PR: 194483
Tested by: Fabian Keil <fk@fabiankeil.de>
MFC after: 1 week
Notes:
svn path=/head/; revision=289419
|
|
|
|
|
|
|
|
| |
MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289393
|
|
|
|
|
|
|
|
|
| |
subdir.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289389
|
|
|
|
|
|
|
|
|
| |
comment.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289388
|
|
|
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289387
|
|
|
|
|
|
|
|
|
| |
as a +=. These were safe due to a .WAIT very early on.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289384
|
|
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Sponsored by: DARPA/AFRL
Differential Revision: https://reviews.freebsd.org/D3882
Notes:
svn path=/head/; revision=289317
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On each resolver query, use stat(2) to see if the modification time
of /etc/resolv.conf has changed. If so, reload the file and reinitialize
the resolver library. However, only call stat(2) if at least two seconds
have passed since the last call to stat(2), since calling it on every
query could kill performance.
This new behavior is enabled by default. Add a "reload-period" option
to disable it or change the period of the test.
Document this behavior and option in resolv.conf(5).
Polish the man page just enough to appease igor.
https://lists.freebsd.org/pipermail/freebsd-arch/2015-October/017342.html
Reviewed by: kp, wblock
Discussed with: jilles, imp, alfred
MFC after: 1 month
Relnotes: yes
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D3867
Notes:
svn path=/head/; revision=289315
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the FreeBSD test suite
functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a
small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided
by upstream.
A handful of testcases in lib/libarchive/tests have been disabled as they
were failing when run with kyua test (see BROKEN_TESTS in
lib/libarchive/tests/Makefile)
As a sidenote: this removes the check/test targets from the Makefiles as they
don't match the pattern used in the rest of the FreeBSD test suite.
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289195
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Divison
Notes:
svn path=/head/; revision=289172
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes the need for manually changing this flag for Google Chrome
users. It also improves compatibility with Linux applications running under
Linuxulator compatibility layer, and possibly also helps in porting software
from Linux.
Generally speaking, the flag allows applications to create the shared memory
segment, attach it, remove it, and then continue to use it and to reattach it
later. This means that the kernel will automatically "clean up" after the
application exits.
It could be argued that it's against POSIX. However, SUSv3 says this
about IPC_RMID: "Remove the shared memory identifier specified by shmid from
the system and destroy the shared memory segment and shmid_ds data structure
associated with it." From my reading, we break it in any case by deferring
removal of the segment until it's detached; we won't break it any more
by also deferring removal of the identifier.
This is the behaviour exhibited by Linux since... probably always, and
also by OpenBSD since the following commit:
revision 1.54
date: 2011/10/27 07:56:28; author: robert; state: Exp; lines: +3 -8;
Allow segments to be used even after they were marked for deletion with
the IPC_RMID flag.
This is permitted as an extension beyond the standards and this is similar
to what other operating systems like linux do.
MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3603
Notes:
svn path=/head/; revision=289112
|
|
|
|
|
|
|
| |
case. We never called devopen(), so we know there's nothing to close.
Notes:
svn path=/head/; revision=289044
|
|
|
|
| |
Notes:
svn path=/head/; revision=289000
|
|
|
|
|
|
|
|
|
| |
Works around GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67888
when compiling Module.cpp
Notes:
svn path=/head/; revision=288998
|
|
|
|
|
|
|
| |
Eliminates -Wstrict-prototypes warning
Notes:
svn path=/head/; revision=288995
|
|
|
|
|
|
|
|
| |
Reviewed by: emaste, kib
Differential Revision: https://reviews.freebsd.org/D3833
Notes:
svn path=/head/; revision=288993
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This uses the kdump(1) utrace support code directly until a common library
is created.
This allows malloc(3) tracing with MALLOC_CONF=utrace:true and rtld tracing
with LD_UTRACE=1. Unknown utrace(2) data is just printed as hex.
PR: 43819 [inspired by]
Reviewed by: jhb
MFC after: 2 weeks
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D3819
Notes:
svn path=/head/; revision=288957
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=288953
|
|
|
|
|
|
|
|
|
|
|
| |
the target is "make depend". This works around errors during
incremental make depend of some clang libraries, for example "don't know
how to make contrib/llvm/include/llvm/IR/IntrinsicsR600.td".
Reported by: emaste
Notes:
svn path=/head/; revision=288951
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fix is spiritually similar to r287442 and was discovered thanks to
the KASSERT added in that revision.
NT_PROCSTAT_VMMAP output length, when packing kinfo structs, is tied to
the length of filenames corresponding to vnodes in the process' vm map
via vn_fullpath. As vnodes may move during coredump, this is racy.
We do not remove the race, only prevent it from causing coredump
corruption.
- Add a sysctl, kern.coredump_pack_vmmapinfo, to allow users to disable
kinfo packing for PROCSTAT_VMMAP notes. This avoids VMMAP corruption
and truncation, even if names change, at the cost of up to PATH_MAX
bytes per mapped object. The new sysctl is documented in core.5.
- Fix note_procstat_vmmap to self-limit in the second pass. This
addresses corruption, at the cost of sometimes producing a truncated
result.
- Fix PROCSTAT_VMMAP consumers libutil (and libprocstat, via copy-paste)
to grok the new zero padding.
Reported by: pho (https://people.freebsd.org/~pho/stress/log/datamove4-2.txt)
Relnotes: yes
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D3824
Notes:
svn path=/head/; revision=288944
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
release.
Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.
Release notes for llvm and clang can be found here:
<http://llvm.org/releases/3.7.0/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.7.0/tools/clang/docs/ReleaseNotes.html>
Thanks to Ed Maste, Andrew Turner and Antoine Brodin for their help.
Exp-run: antoine
Relnotes: yes
Notes:
svn path=/head/; revision=288943
|
| |\
| | |
| | |
| | | |
Notes:
svn path=/projects/clang370-import/; revision=288926
|
| |\ \
| | | |
| | | |
| | | | |
Notes:
svn path=/projects/clang370-import/; revision=288836
|