243028 Commits

Author SHA1 Message Date
joerg
80379e533e Replace init sections with the simpler .ctor sections. 2016-06-03 15:41:57 +00:00
christos
5b93a3dc8f add extents. 2016-06-03 15:37:16 +00:00
christos
ce4ddb5149 ext4 extents support 2016-06-03 15:36:25 +00:00
christos
9ac3297ba4 ext4 extents glue 2016-06-03 15:36:03 +00:00
christos
4e815995ba Add ext4 extent support from GSoC 2016 (Hrishikesh Goyal), from the FreeBSD
ext2 code.
2016-06-03 15:35:48 +00:00
dholland
710c9c2694 avoid "u_int" 2016-06-03 15:15:22 +00:00
dholland
642657881b avoid "u_long" 2016-06-03 15:14:57 +00:00
jmcneill
b3e577d11e PR kern/51211: atactl atabus0 reset causes a panic on Tegra K1
Fix an issue where ahci_reset_channel calls ahci_channel_start with clo=1
even if CAP.SCLO=0.
2016-06-03 10:34:03 +00:00
taca
39c4a471a8 NTP 4.2.8p8 has released (with security fix). 2016-06-03 09:47:21 +00:00
wiz
401a245f9e Fix typo in width argument; end sentence with dot. 2016-06-03 07:07:37 +00:00
mlelstv
b42d0dd764 use sernum handling function 2016-06-03 06:55:16 +00:00
mlelstv
872a46d86d fix debug message 2016-06-03 06:53:40 +00:00
agc
1f657fa580 Commit patch sent to tech-userlevel with universal approval to add a
version option for calendar(1):

	% calendar -v
	calendar-20160601
	%

For reference, see:

	http://mail-index.netbsd.org/tech-userlevel/2016/06/02/msg010081.html
2016-06-03 02:06:40 +00:00
sjg
cb28c6994f Add cached_realpath()
realpath(3) is expensive, and meta mode at least uses it extensively.
We use cached_realpath() to save the result of successful calls to
realpath(3) in a private variable context.

This improves the worst case performance (eg examining libc with
nothing to do) by a factor of 4.

Reviewed by: christos
2016-06-03 01:21:59 +00:00
sjg
2d086608a8 Refactor the logic for deciding when a .meta file is needed.
Both meta_create() and meta_oodate() now share meta_needed()
to indicate if a .meta file is needed.

This allows for deciding that missing .meta file is cause of out-of-date.
The new knob 'missing-meta' controlls this, and is off by default
since the side effect files of generators like yacc will typically need
.NOMETA to avoid problems.

This however makes it much easier for folk to switch back and forth
with meta mode (eg. FreeBSD's normal build can leverage meta mode for
improved reliablility without need to clean).

Also if .MAKE.MODE does not contain 'nofilemon', the knob
'missing-filemon' allows control as to whether missing filemon data
should cause the target to be out-of-date.
Again off by default.
2016-06-03 01:16:27 +00:00
kre
8d737b49d5 When setting TOP the idea is to run the [/usr]/bin/pwd binary, and
exclude any skell builtin.   There are two ways to guarantee exec'ing
a binary, using a path, or using exec.   To use a path we would need to
find it first (which certainly could be done.)  Using exec here is easier.
2016-06-03 00:00:01 +00:00
mrg
dc051efc2d fix PR 48928: build the static libX11 properly. pull in the
ximcp, xlcDef, xlcUTF8Load, xlibi18n, and xomGeneric modules
directly.

also, don't include bsd.lib.mk in the fragment parts for these
modules, but in the module build itself.  otherwise, bsd.lib.mk
is included before SRCS is complete and the build strangely
seems to miss parts listed.

tested using the example in the PR.
2016-06-02 22:41:26 +00:00
christos
d764cbd394 Fix previous to better match readline behavior (Ingo Schwarze) 2016-06-02 21:40:51 +00:00
macallan
602c62148b use DEFATTR if we're not the console and can't init defattr.
should appease clang
TODO: we should really init the glyphcache whith the first screen
2016-06-02 21:19:24 +00:00
macallan
b45b59eb74 provide a default attribute 2016-06-02 21:17:14 +00:00
christos
f744d761fc fix sets. 2016-06-02 19:55:52 +00:00
christos
bd2adf4ebf Fix ILP32 build. 2016-06-02 19:54:38 +00:00
christos
956883ecd7 From Ingo Schwarze:
In libedit, the only way how H_ENTER can fail is memory exhaustion,
too, and of course it is handled gracefully, returning -1 from
history().  So of course, we will continue to handle it gracefully
in add_history() as well, but we are free to decide what to do with
the library state in this case because GNU just dies...

I think the most reasonable course of action is to simply not change
the library state in any way when add_history() fails due to memory
exhaustion, but just return.

If H_ENTER does not fail, we know that the history now contains at
least one entry, so there is no need any longer to check the H_GETSIZE
return value.  And we can of course always set current_history_valid.

While testing these changes, i noticed three problems so closely
related that i'd like to fix them in the same diff.

 1. libedit has the wrong prototype for add_history().
    GNU readline-6.3 defines it as void add_history(const char *).
    Of course, that is very stupid - no way to report problems to
    the caller!  But the whole point of a compatibility mode is
    being compatible, so we should ultimately change this.
    Of course, changing the prototype of a public symbol requires
    a libedit major bump.  I don't want to do that casually.
    Rather, i will take a note and change the prototype the next
    time we need a libedit major bump for more important reasons.
    For now, let's just always return 0.

 2. While *implicitely* pushing an old entry off the history
    increments history_base in GNU readline, testing reveals that
    *explicitly* deleting one does not.  Again, this is not
    documented, but it applies to both remove_history() and
    stifle_history().  So delete history_base manipulation
    from stifle_history(), which also allows to simplify the
    code and delete two automatic variables.

 3. GNU readline add_history(NULL) crashes with a segfault.
    There is nothing wrong with having a public interface
    behave that way.  Many standard interfaces do, including
    strlen(3).  Such crashes can even be useful to catch
    buggy application programs.
    In libedit/readline.c rev. 1.104, Christos made add_history()
    silently ignore this coding error, according to the commit
    message to hide a bug in nslookup(1).  That change was never
    merged to OpenBSD.  I strongly disagree with this change.
    If nslookup(1) is still broken, that program needs to be
    fixed instead.  In any case, delete the bogus check; hiding
    bugs is dangerous.
2016-06-02 15:11:18 +00:00
christos
162319ac6a mention hostzerobroadcast default to "no". 2016-06-02 12:28:11 +00:00
wiz
0f2ead35e0 New sentence, new line. 2016-06-02 08:11:23 +00:00
joerg
babf473339 The way libasan is hooked into the build make it a GCC-only library. 2016-06-01 23:59:21 +00:00
pgoyette
c32a3dbc3e Add 3Com 3CRWE777A (and, belatedly, 3CRWE737A) to the supported devices.
From PR kern/39590
2016-06-01 23:40:05 +00:00
pgoyette
350743c8b4 Add 3Com 3CRWE777A to supported devices. From PR kern/39590 2016-06-01 23:37:33 +00:00
pgoyette
dab8d4da3b Regen 2016-06-01 23:33:24 +00:00
pgoyette
117e30420c Ooopppsss - add it with the correct product ID. 2016-06-01 23:31:53 +00:00
pgoyette
b9e27b4100 Add 3Com 3CRWE777A - from OpenBSD 2016-06-01 23:31:15 +00:00
christos
f32209ed0d Use NULL instead of 0. 2016-06-01 22:58:52 +00:00
christos
eb54ca3cf7 Use NULL instead of 0 (Pedro Giffuni) 2016-06-01 22:57:51 +00:00
christos
63a24122d2 Add ubsan (not enabled, not tested, compiling)
Update tsan (not enable, not tested, not compiling)
Merge common infrastructure.
XXX: Perhaps the common code should be made into a separate library?
Or always require asan?
2016-06-01 22:48:55 +00:00
christos
d94aad05fc Put the sanitizer libraries before everything else, since it needs to be
the first shared object.
2016-06-01 22:27:49 +00:00
joerg
b940261f81 Revert -O1 hack for GCC 5.3, replaced by workaround in the code. 2016-06-01 21:24:55 +00:00
joerg
ad68895fdb PR toolchain/51121:
__CTOR_LIST__ and __CTOR_LIST_END__ are logically the same object, but
due to the start marker, the former has to be declared as array of fixed
size. Newer GCC versions take the liberty of exploiting the UB of
accessing global objects past the end to unconditionally load zero
values in that case. Two fixes are possible:
(1) Pruning via inline assembler as done by GCC's own CRT copy.
(2) Pruning via weak references as done for linker sets.
Since the second part is known and required to work anyway, prefer this
approach. In theory, the labels could be replaced completely, except
that GNU as doesn't provide start/end symbols for sections containing
dots.
2016-06-01 21:21:55 +00:00
christos
64a789b780 put back asan 2016-06-01 17:10:04 +00:00
christos
214e23d4e1 Put back asan now it works. 2016-06-01 17:07:13 +00:00
christos
860d3f06d6 deal with rename lossage 2016-06-01 17:03:26 +00:00
christos
8c05e0f285 Don't intercept things we don't have. 2016-06-01 17:02:54 +00:00
christos
3711470d09 Handle wrapping the same way as FreeBSD does. 2016-06-01 17:02:19 +00:00
abhinav
4647c1ec31 Refactor the function for executing the search SQL query into two parts.
One part is responsible for generating the SQL query
The other part is responsible for executing the generated query.

While there, also remove a comment which is not valid anymore.
And, don't call the snippet function when doing legacy mode search as we are
not using the full text feature there.
2016-06-01 15:59:18 +00:00
agc
83432fa6b8 remove some unused test cases 2016-06-01 14:52:56 +00:00
wiz
604b97f94d gdb-7.11.1 out. 2016-06-01 14:17:59 +00:00
pgoyette
58ee3a3d39 Fix typo that somehow snuck in. 2016-06-01 12:45:46 +00:00
pgoyette
936a3f25e5 Enable writing to the EPROM before trying to change our MAC address.
From PR kern/44433
2016-06-01 12:40:03 +00:00
pgoyette
e18edc06c0 Variable rv is always used as a true/false boolen, so set its type
correctly.

From PR kern/46369
2016-06-01 12:14:08 +00:00
wiz
6975094331 Sort SEE ALSO. New sentence, new line. Punctuation nits. Use Nx. 2016-06-01 12:01:21 +00:00
pgoyette
46d007f408 Improved documentation of mount_nilfs, from PR bin/46730 2016-06-01 11:56:49 +00:00