Commit Graph

242864 Commits

Author SHA1 Message Date
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
pgoyette
0500449896 Add support for Intel 82597EX_SR - from PR kern/47750 2016-06-01 11:28:45 +00:00
pgoyette
1df696c5c5 Regen 2016-06-01 11:01:36 +00:00
pgoyette
e518aae38a Add Intel 82597EX_SR, from PR kern/47750 2016-06-01 11:00:15 +00:00
wiz
a948ccc5b2 Fix manually applied patch. Mark up NULL with Dv. 2016-06-01 08:32:05 +00:00
wiz
738f858418 Sort options and their descriptions. Sync usage more with man page.
Bump date in man page for new option -C.
2016-06-01 08:24:03 +00:00
wiz
5134dfcc1b Use .An -nosplit. 2016-06-01 08:17:47 +00:00
pgoyette
690c51940d Add new Europe/Kirov zonefile for 2016d 2016-06-01 08:17:39 +00:00
wiz
cb66fd23d0 Fix typo. Use .An -nosplit. 2016-06-01 08:17:33 +00:00
wiz
9826c2c2e8 Use Mt for email addresses. 2016-06-01 08:17:12 +00:00
wiz
8286e5456b Use .An -nosplit. 2016-06-01 08:14:16 +00:00
wiz
52628e1d11 Sort SEE ALSO, use Mt for email addresses. 2016-06-01 08:13:23 +00:00
pgoyette
53be4f8b6f Ooopppsss, missed the function declaration! 2016-06-01 08:06:38 +00:00
agc
6d27eeee35 Use human2atf to generate a t_netpgpverify.sh script which is half the
size of the previous one (using on-the-fly gzip compression), and includes
more cases (including a gpg-signed file for cross-testing purposes).

Add the appropriate Testspec file.
2016-06-01 06:39:11 +00:00
pgoyette
39bee72c5e Document return value for realloc(3) when size is 0. From PR lib/47384 2016-06-01 05:40:26 +00:00