Commit Graph

286899 Commits

Author SHA1 Message Date
rillig 80108d8526 tests/lint: demonstrate wrong lint warning about complex variables 2021-04-09 21:07:39 +00:00
jkoshy 3d43236771 Avoid duplicate directory traversals when building Elftoolchain sources. 2021-04-09 20:49:05 +00:00
rillig 18955dccde lint: quote placeholders in messages for unused variables 2021-04-09 20:12:00 +00:00
rillig f9065e3b5b lint: do not warn about pointer conversion to or from incomplete type
This cuts down the warnings in a NetBSD release build by about 38,000.
2021-04-09 20:00:06 +00:00
rillig 0d9b51c034 lint: clean up the check for pointer conversions
No functional change.
2021-04-09 19:52:59 +00:00
rillig 9c458e1376 lint: for structs and unions, include incompleteness in the type name
This mainly helps to assess the situation where lint warns that a
pointer cast "may be troublesome", see msg_247.exp.
2021-04-09 19:37:39 +00:00
rillig ca178aa822 tests/lint: document where the 38,000 lint warnings come from 2021-04-09 19:32:12 +00:00
christos a264066ac1 new file(1) 2021-04-09 19:12:37 +00:00
christos d87b003935 merge local changes between 5.39 and 5.40 and add magic entries from HEAD. 2021-04-09 19:11:41 +00:00
christos 25f16eeab3 2021-03-30 20:21 Christos Zoulas <christos@zoulas.com>
* release 5.40

2021-02-05  16:31  Christos Zoulas <christos@zoulas.com>

	* PR/234: Add limit to the number of bytes to scan for encoding
	* PR/230: Fix /T (trim flag) for regex

2021-02-01  12:31  Christos Zoulas <christos@zoulas.com>
	* PR/77: Trim trailing separator.

2020-12-17  15:44  Christos Zoulas <christos@zoulas.com>

	* PR/211: Convert system read errors from corrupt ELF
	  files into human readable error messages

2020-12-08  16:24  Christos Zoulas <christos@zoulas.com>

	* fix multithreaded decompression file descriptor issue
	  by using close-on-exec (Denys Vlasenko)

2020-06-27  11:58  Christos Zoulas <christos@zoulas.com>

	* Exclude surrogate pairs from utf-8 detection (Michael Liu)

2020-06-25  12:53  Christos Zoulas <christos@zoulas.com>

	* Include # to the list of ignored format chars (Werner Fink)
2021-04-09 18:58:00 +00:00
rillig 1bed9f5334 tests/lint: test bit-shift amount equal to the type's width 2021-04-09 16:37:18 +00:00
rillig eec39f7564 lint: clean up handling of preprocessing output lines
No functional change.
2021-04-09 15:58:43 +00:00
christos a31556df76 Don't use a shell pattern to copy files, copy them explicitly. When running
as non-root, [at]*.mk matches archive.mk which we already copied. This was
copied as 444 and trying to overwrite it gives EACCES.
2021-04-09 14:42:00 +00:00
rillig ee726345e6 lint: in code from included files, print stack trace
Previously, the standard NetBSD build generated several lint warnings in
lhash.h from OpenSSL, without providing any hint as to which file
actually included that header.  In cases like these, lint now interprets
the line number information in the preprocessor output from GCC to
reconstruct the exact include path to the file in question.

The program check-expect.lua had to be rewritten almost completely since
it assumed that all diagnostics would come from the main file.  In all
existing tests, this was true, but these tests did not cover all cases
that occurred in practice.  Now it records the complete location of the
diagnostic instead of just the line number.
2021-04-08 22:18:26 +00:00
jkoshy 53ddd80999 Update Elftoolchain 'common/elfdefinitions.h' to upstream r3943. 2021-04-08 19:37:43 +00:00
rillig d1643c2c38 tests/lint: refine comment and function name in test for pointer cast
In a typical NetBSD build, there are about 100,000 lint warnings.  About
50,000 of them are warning 247.  About 38,000 of these are from OpenSSL
and may be fixed by now.
2021-04-08 19:31:51 +00:00
rillig 50e0ad27e4 lint: don't warn about cast between pointers to compatible structs 2021-04-08 19:20:54 +00:00
rillig 3f8fd7950d tests/lint: add test for struct pointer cast 2021-04-08 19:08:17 +00:00
christos 2440df942c new services and protocols 2021-04-08 19:06:57 +00:00
christos 637547d0a7 refresh with latest 2021-04-08 19:03:43 +00:00
jdolecek 5a996cdd32 update comment about the 'quirk' in we_mca_init_hook() - actually that is
just interrupt enable bit, so not a quirk at all; NFCI

info passed by Valery Ushakov from a guy running https://www.os2museum.com/wp/
2021-04-08 17:36:33 +00:00
martin 64e2ab0419 Do not pretend we have GHASH asm code 2021-04-08 15:06:50 +00:00
martin e99a5cc8d0 Add usr/include/elfdefinitions.h and usr/include/sys/elfdefinitions.h 2021-04-08 13:04:01 +00:00
christos d461bb678c Disable again the assembly version of gcm_ghash_4bit for the 32 bit sparc
since it uses ldx/stx.
2021-04-08 12:31:49 +00:00
jkoshy d2544b1c1b Redo r1.288: traverse the complete imported Elftoolchain tree during a build. 2021-04-08 08:10:30 +00:00
rillig dc0342a256 bozohttpd: fix argument type for functions from <ctype.h>
Found by the recently added check to lint (message 342).

ok mrg@
2021-04-08 07:02:11 +00:00
rillig fb7c930d4d bozohttpd-small: fix typo in SRCS, fix targets dependall and lint
The additional ':' after 'main.c' had no effect on the compilation since
the suffix is removed when computing the list of object files.  The ':'
excluded main.c from the dependency computation and from lint.

By defining CPPFLAGS instead of CFLAGS, the default "-O2" steps in
again, and the proper flags are passed to lint, which did not work
before at all because it could not find an included file.
2021-04-08 06:52:42 +00:00
rillig b78154bf29 bozohttpd-small: fix error handling for unifdef
The second of the '$$?' was spelled only '$?'.  At the time where this
shell expression was evaluated, it had already been overwritten by the
preceding command '['.
2021-04-08 06:44:55 +00:00
simonb 91ec786cf2 Sort includes. 2021-04-08 06:20:47 +00:00
simonb 0aa6ab471c tc_init(): KASSERT that the timecounter hasn't previously been
initialised by checking the tc_next field.  Prevents nastly endless
loops in the timecounter code.
2021-04-08 06:06:24 +00:00
jkoshy fea1b4806a Traverse the Elftoolchain 'common' module before
the rest of the imported hierarchy.
2021-04-07 20:32:54 +00:00
jkoshy 90eb0bce92 Ensure that the 'libelf' directory is traversed before 'libdwarf'. 2021-04-07 20:31:16 +00:00
simonb c84bb8ac7c Update usage message to reflect reality. 2021-04-07 14:45:28 +00:00
simonb 1906696d84 Add a # to a %x printf format to get some 0x hex number prefixes. 2021-04-07 14:27:39 +00:00
nia 35fbfbb85b audiocfg(1): add examples 2021-04-07 09:58:58 +00:00
simonb a5cb771bc5 Revert the change to not build and install /usr/lib/dtrace/drti.o; this
is used by the ruby30-base package when compiled with the dtrace option
(enabled by default).

Problem found by ryoon@.
2021-04-07 09:57:02 +00:00
nia 95a019acde Update for pkgsrc README.html transition 2021-04-07 07:51:12 +00:00
christos 917f170ea8 bump libevent 2021-04-07 03:45:18 +00:00
christos 2449b34bef new libevent 2021-04-07 03:38:50 +00:00
christos d74b27c1dc fix incorrect version 2021-04-07 03:38:39 +00:00
christos 7e68cdd730 Merge local changes from libevent 2.1.8 and 2.1.12 2021-04-07 03:36:48 +00:00
simonb 6a94664822 Basic dtrace trap support.
Mostly from FreeBSD.
2021-04-07 02:59:01 +00:00
christos 657871a79c Changes in version 2.1.12-stable (05 Jul 2020)
This release contains mostly bug fixes (I decided not to port some features
 that can be ported even without ABI breakage, if you cannot find feature that
 you are interested in, please give us a note!)

 Since 2.1.12 libevent will use github actions as main CI, since
 it recommends itself better then travis/appveyor (and had been removed from
 upstream).

 Look carefully at "slightly touches the behaviour" section.

 Below you will find some of changes (this list has been cleaned up from the
 patches that touches only tests and similar):

 CI:
  o Backport github actions to 2.1 (be3acd7c Azat Khuzhin)
  o Merge branch 'event_rpcgen.py-cleanup' (f0ded5f3, 48e04887 Enji Cooper)
  o Add API/ABI checker (using LVC) (709210d4, 2af1f6cc yuangongji)

 test:
  o tinytest: support timeout on Windows (794e8f75 yuangongji)
  o Merge branch 'osx-clock' (e85afbe3 Azat Khuzhin)
  o test-ratelim: calculate timers bias (for slow CPUs) to avoid false-positive (8ad26d0b Azat Khuzhin)

 fixes:
  o buffer: do not pass NULL to memcpy() from evbuffer_pullup() (5b063049 Azat Khuzhin)
  o http: fix undefined-shift in EVUTIL_IS*_ helpers (6b8d02a7 Azat Khuzhin)
  o Check error code of evhttp_add_header_internal() in evhttp_parse_query_impl() (97e28f09 Azat Khuzhin)
  o http: fix EVHTTP_CON_AUTOFREE in case of timeout (and some else) (1be25938 Azat Khuzhin)
  o evdns: Add additional validation for values of dns options (c2972453 ayuseleznev)
  o There is typo in GetAdaptersAddresses windows library. It should be iphlpapi.dll (891adda9 Aleksandr-Melnikov)
  o Merge branch 'EV_CLOSED-and-EV_ET-fixes' (db2efdf5 Azat Khuzhin)
  o Fix memory corruption in EV_CLOSURE_EVENT_FINALIZE with debug enabled (8ccd8f56 Jan Kasiak)
  o increase segment refcnt only if evbuffer_add_file_segment() succeeds (30662a3c yuangongji)
  o evdns: fix a crash when evdns_base with waiting requests is freed (6f8e0e97 ayuseleznev)
  o event_base_once: fix potential null pointer threat (2e9ceb16 chenguolong)
  o http: do not assume body for CONNECT (1b42270b Azat Khuzhin)
  o evbuffer_add_file: fix freeing of segment in the error path (5f017bde Azat Khuzhin)
  o Fix checking return value of the evdns_base_resolv_conf_parse() (fc51bf2c Azat Khuzhin)
  o Merge branch 'fix-signal-leak' (poll/select now needs reinit) (1c9cc07b Azat Khuzhin)

 improvements:
  o evutil_time: improve evutil_gettimeofday on Windows (a8219143 Nick Grifka)
  o Support EV_CLOSED on linux for poll(2) (2530e7c6 Azat Khuzhin)
  o Parse IPv6 scope IDs. (f602211f Philip Homburg)
  o evutil_time: Implements usleep() using wait funtion on Windows (d42240d1 yuangongji)
  o evutil_time: detect and use _gmtime64_s()/_gmtime64() (f4a6152c yuangongji)

 slightly touches the behaviour:
  o bufferevent: allow setting priority on socket and openssl type (4dd3acdd Nicolas J. Bouliane)
  o Fix EV_CLOSED detection/reporting (epoll only) (1df324d4 Azat Khuzhin) (XXX)
  o Revert "Warn if forked from the event loop during event_reinit()" (71f5c0d3 Azat Khuzhin)

 samples:
  o https-client: load certificates from the system cert store on Windows (e9478640 yuangongji)

 build fixes:
  o Do not use sysctl.h on linux (it had been deprecated) (d2871a37 Azat Khuzhin)
  o cmake: avoid problems from use of CMAKE_USE_PTHREADS_INIT (a62ec765 Paul Osborne)
  o Update list of cmake files for autotools dist archive (2016f017 Azat Khuzhin)
  o LibeventConfig.cmake: restore CMAKE_FIND_LIBRARY_SUFFIXES and LIBEVENT_STATIC_LINK default (640f9cf6 Mario Emmenlauer)
  o cmake: fix getaddrinfo checking error (dea51c2e yuangongji)
  o autoconf: fix getaddrinfo checking errors on mingw (b9bf7fa7 yuangongji)
  o Do not use shared global structures on CYGWIN (8a9b5655 Azat Khuzhin)
  o Added uninstall target check to cmakelists (3f1fb1f9 Dimo Markov)
  o Fix compilation without OPENSSL_API_COMPAT (921bdcdd Azat Khuzhin)
  o cmake: improve package config file (1c047618, baec84f2 yuangongji)
  o Link with iphlpapi only on windows (976f7d34 Azat Khuzhin)
  o autotools: fails build when need but can not find openssl (93174bb5 yuangongji)
  o Merge branch 'http-connect' (e2424229 Azat Khuzhin)
  o Fix compat with NetBSD >= 10 (5febb4e1 Kamil Rytarowski)
  o cmake: fix getrandom() detection (e0e5f3bd Azat Khuzhin)
  o arc4random: replace sysctl() with getrandom (on linux) (66ec78fd Azat Khuzhin)
  o Upgrade autoconf (after upgrading minimum required to 2.67) (45da7d9d yuangongji)
  o eliminate some C4267 warnings in Windows (9e468c77 yuangongji)
  o autotools: attach doxygen target into all target (5d1e8570 yuangongji)
  o cmake: attach doxygen target into all target (7a85300a yuangongji)
  o Change the minimum version of automake to 1.13 and autoconf to 2.67 (fdb8fb66 ygj6)
  o Add Uninstall.cmake.in into dist archive (877f2355 Azat Khuzhin)

Changes in version 2.1.11-stable (01 Aug 2019)

 This release contains one ABI breakage fix (that had been introduced in
 2.1.10, and strictly speaking this release breaks ABI again to make it
 compatible with 2.1.9 and less, please take a look at 18104973 for more
 details). Apart from that it contains some bug fixes, that grouped below.

 And even though the return value for evbuffer_setcb() had been changed it
 should ABI compatible (anyway that function is in -compat.h header).

 There is also one patch that introduce new functionality, this is 546a366c,
 to tune SO_RCVBUF/SO_SNDBUF in evdns, but one can count it as a bug-fix on
 the application level, since before you cannot tune this settings and hence
 you could stumble on problems.

 ABI breakage:
  o Protect min_heap_push_ against integer overflow. (8c899768 Tobias Stoeckmann)
  o Revert "Protect min_heap_push_ against integer overflow." (18104973 Azat Khuzhin)

 functionality:
  o evdns: add new options -- so-rcvbuf/so-sndbuf (546a366c Azat Khuzhin)

 build:
  o Change autoconf version to 2.62 and automake version to 1.11.2 (2a333008 yuangongji)
  o cmake: install shared library only if it was requested (596855f7 Azat Khuzhin)
  o Missing <winerror.h> on win7/MinGW(MINGW32_NT-6.1)/MSYS (9559349c yuangongji)
  o cmake: set library names to be the same as with autotools (305251b9 yuangongji)
  o Enable _GNU_SOURCE for Android (f013fc7d Keith Smiley)
  o Enable kqueue for APPLE targets (3aa68a82 Keith Smiley)
  o autotools: do not install bufferevent_ssl.h under --disable-openssl (5349a07e Azat Khuzhin)
  o cmake: link against shell32.lib/advapi32.lib (c9ce638c Azat Khuzhin)
  o Add README.md into dist archive (3660a4cc Azat Khuzhin)
  o cmake: add missing autotools targets (doxygen, uninstall, event_rpcgen.py) (2d65071c yuangongji)
  o m4/libevent_openssl.m4: fix detection of openssl (d4056e59 Fabrice Fontaine)
  o Fix detection of the __has_attribute() for apple clang [ci skip] (7fd7c5ef Azat Khuzhin)

 lib:
  o buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM (598f247d Azat Khuzhin)
  o Warn if forked from the event loop during event_reinit() (b75922ae Azat Khuzhin)
  o evutil: set the have_checked_interfaces in evutil_check_interfaces()
    (ef498aa2, a09265ac jeremyerb)

 samples:
  o https-client: correction error checking (a8a04565 wenyg)


Changes in version 2.1.10-stable (26 May 2019)

 This release contains mostly fixes (some evbuffer oddity, AF_UNIX handling in
 http server, some UB fixes and others) but also some new functionality
 (without ABI breakage as usual) and now dist archive can be used for building
 on windows (getopt had been added into it).

 Above you will find changelog for this particular release (but with some
 trivial fixes pruned out from it - to make it a little bit more informative).

 To view full changelog please use git:
   git log --format='  o %s (%h %aN)' release-2.1.9-beta...release-2.1.10-stable

 dist:
  o Add getopt into dist archive (7042ff24 Azat Khuzhin)

 functionality:
  o evdns: add DNS_OPTION_NAMESERVERS_NO_DEFAULT/EVDNS_BASE_NAMESERVERS_NO_DEFAULT
  (58e81106 Azat Khuzhin)
  o Add support for EV_TIMEOUT to event_base_active_by_fd (3f893f0a John Ohl)

 fixes:
  o Merge branch 'evbuffer-fixes-806-v2' (2fea04b3 Azat Khuzhin)
  o Merge branch 'issue-807-accept4-getnameinfo-AF_UNIX' (7c4da937, e2790a7f
    Azat Khuzhin)
  o kqueue: Avoid undefined behaviour. (e70e18e9 Tobias Stoeckmann)
  o Prevent integer overflow in kq_build_changes_list. (43a55a23 Tobias Stoeckmann)
  o evdns: fix lock/unlock mismatch in evdns_close_server_port() (54103883 zhuizhuhaomeng)
  o Merge remote-tracking branch 'official/pr/804' -- Enforce limit of NSIG
    signals (87fa93a8 Tobias Stoeckmann)
  o Protect min_heap_push_ against integer overflow. (0b46bb8c Tobias Stoeckmann)
  o le-proxy: initiate use of the Winsock DLL (2a1e1530 linxiaohui)
  o Fix leaks in error path of the bufferevent_init_common_() (bb0f8fe7 Azat Khuzhin)
  o buffer: make evbuffer_prepend() of zero-length array no-op (61fa7b7d Azat Khuzhin)
  o Merge branch 'evbuffer-empty-chain-handling' (6a3dd717 Azat Khuzhin)
  o Don't loose top error in SSL (3d1a7a1d Yury Korzhetsky)
  o Remove needless check for arc4_seeded_ok (6602a97d Seong-Joong Kim)
  o Merge pull request #769 from sungjungk/fix-return-handling (91084140 Nathan French)

 build:
  o Define `_GNU_SOURCE` properly/consistently per autoconf (00ba9fa2 Enji Cooper)
  o signal: guard __cdecl definition with #ifdef (d89045a6 Azat Khuzhin)
  o Link test/regress with event_core/event_extra over event (22380996 Azat Khuzhin)

 tests:
  o Use kill() over raise() for raising the signal (fixes osx 10.14 with
    kqueue) (3db5296b, a45f6733 Azat Khuzhin)
  o tinytest: implement per-test timeout (via alarm() under !win32 only)
    (b64dbfb6, 75d7e1ff Azat Khuzhin)

Changes in version 2.1.9-beta (10 February 2019)

 This changelog will differs from other releases in the next few clauses:
 - contains only highlighted changes (so now it will not contains a lot of
   patches that fixes some stuff in regression tests, typos, leaks fixes in
   samples and so forth)
 - no authors (since merge commits breaks them anyway, but AUTHORS sections in
   README will be kept up to date)
 - group name trimmed from commit subjects trimmed
 - it's been 2 years since the previoius release, so it is pretty huge

 And I think that this is more useful, so from now on it will always has the
 same look (until there will too many objections of course).

 To view full changelog please use git:
   git log --format='  o %s (%h %aN)' release-2.1.8-stable...release-2.1.9-beta


 dist archive:
  o Add cmake rules into dist archive (bf3a67cf)
  o Add missing print-winsock-errors.c into dist archive (822d6462)
  o Include openssl-compat.h into dist archive (08658136)

 core:
  o Merge branch 'check-O_NONBLOCK-in-debug' (a39898f3, a8155c62)
  o Merge branch 'event-ET-#636-v2' (ca4b6404)
  o Fix visibility issues under (mostly on win32)
    (349081e1g, 802be13ag, a1f28e2f)
  o Define __EXT_POSIX2 for QNX (a2176f2c)
  o Cleanup __func__ detection (b3af7bdd)
  o Add convenience macros for user-triggered events (06ec5de6)
  o Notify event base if there are no more events, so it can exit without delay (d9d1c09e)
  o Fix base unlocking in event_del() if event_base_set() runned in another thread (4f0f40e3)
  o If precise_time is false, we should not set EVENT_BASE_FLAG_PRECISE_TIMER (27dee54d)
  o Fix race in access to ev_res from event loop with event_active() (43d92a6d)
  o Return from event_del() after the last event callback termination (876c7ac7)

 http:
  o Merge branch 'http-EVHTTP_CON_READ_ON_WRITE_ERROR-fixes-v2' (eb7b472b)
  o Preserve socket error from listen across closesocket cleanup (2ccd00a6)
  o fix connection retries when there more then one request for connection (d30e7bba)
  o improve error path for bufferevent_{setfd,enable,disable}() (a8cc449e)
  o Fix conceivable UAF of the bufferevent in evhttp_connection_free() (6ac2ec25)
  o Merge branch 'http-request-line-parsing' (cdcfbafe)
  o Fix evhttp_connection_get_addr() fox incomming http connections (4215c003)
  o fix leaks in evhttp_uriencode() (123362e9)
  o CONNECT method only takes an authority (7d1ffe64)
  o Allow bodies for GET/DELETE/OPTIONS/CONNECT (23eb38b9)
  o Do not crash when evhttp_send_reply_start() is called after a timeout. (826f1134)
  o Fix crashing http server when callback do not reply in place (5b40744d, b2581380)
  o fix handling of close_notify (ssl) in http with openssl bufferevents (7e91622b)

 evrpc:
  o use *_new_with_arg() to match function prototype (a95cc9e3)
  o avoid NULL dereference on request is not EVHTTP_REQ_POST (e05136c7)

 regression tests:
  o Merge branch 'TT_RETRIABLE' (6ea1ec68, f9b592aa)

 bufferevent:
  o Merge branch 'iocp-fixes' (6bfac964)
  o Merge branch 'be-wm-overrun-v2' (3f692fff)
  o bufferevent_socket_connect{,_hostname}() missing event callback and use ret code (1dde74ef)
  o don't fail be_null_filter if bytes are copied (b92b0792)
  o Call underlying bev ctrl GET_FD on filtered bufferevents (ebfac517)

 bufferevent_openssl/openssl:
  o Merge branch 'ssl_bufferevent_wm_filter-fix' (30020a35)
  o be_openssl: avoid leaking of SSL structure (e86ccfe5)
  o Fix build with LibreSSL 2.7 (894ca48a)
  o Add missing includes into openssl-compat.h (01bc36c1)
  o Explicitly call SSL_clear when reseting the fd. (29b7a516)
  o Unbreak build with LibreSSL after openssl 1.1 support added (230af9f0)

 samples:
  o Merge branch 'sample-http-server' (b6309bcc)
  o sample/https-client: use host SSL certificate store by default (5c0132f3)

 listener:
  o ipv6only socket bind support (ba148796)
  o Merge branch 'listener-immediate-close' (df2ed13f)
  o Merge branch 'evconnlistener-do-not-close-client-fd' (42e851bb)

 evdns:
  o evdns: handle NULL filename explicitly (0033f5cc)
  o Merge branch 'evdns_getaddrinfo-race-fix' (3237d697)
  o Generating evdns_base_config_windows_nameservers docs on all platforms (3bd2ce43)

 utils:
  o Merge branch 'evutil_found_ifaddr-dev' (b07e43e6)
  o Avoid possible SEGVs in select() (in unit tests) (8818c86c)
  o Port `event_rpcgen.py` and `test/check-dumpevents.py` to Python 3. (532a8cc3)

 buffer:
  o Fix assert() condition in evbuffer_drain() for IOCP (d6326104)
  o fix incorrect unlock of the buffer mutex (for deferred callbacks) (2b4d127d)
  o Fix wrong assert in evbuffer_drain() (9f4d0dce)

 cmake:
  o fix checking of devpoll backend (like in autotools, by devpoll.h existence) (7f161902)
  o support static runtime (MSVC) (c8b3ec17, 61fb055a)
  o do not build both (SHARED and STATIC) for MSVC/win32 (bc7f2fd9)
  o introduce EVENT__LIBRARY_TYPE option (eb10a738)
  o ensure windows dll's are installed as well as lib files (29590718)
  o Fix generation of LibeventConfig.cmake for the installation tree (7fa08c4b)
  o fix pkgconfig generation (copy-paste typo) (cc554d87)
  o Merge branch 'cmake-missing-bits' (9806b126)
  o Fix detection of timerfd_create() in CMake. (e50af331)
  o Merge branch 'cmake-configure-fixes-v2' (a0bfe2c4)
  o Do not add epoll_sub (syscall wrappers) for epoll in cmake (cea61de6)
  o Fix RPATH for APPLE (45b1f379)

 autotools:
  o include win32 specific headers for socklen_t detection on win32/mingw (d7579fb9)
  o Ignore evconfig-private.h for autotools (37423849)
  o config.h can't be prefixed unconditionally (63a054f8)
  o Merge branch 'pull-628' (7e56c8b2)
  o Provide Makefile variables LIBEVENT_{CFLAGS,CPPFLAGS,LDFLAGS} (2f060c5f)
  o confirm openssl is working before using (b39ccf8e)
  o pass $(OPENSSL_INCS) for samples (FTBFS macOS) (c2495265)
  o Add configure check for midipix (d433201e)
  o Fix tests with detached builds (c46ff439)

 build:
  o Fix arc4random_addrandom() detecting and fallback (regression) (303d6d77)
  o Merge branch 'win32-fixes' (ebd12e6d)
  o Merge branch 'fix-openssl-linking' (e7bd9e03)
  o Merge branch 'fix-struct-linger' (8567f2f5)

 CI:
  o travis-ci/appveyor now uses fast_finish+allow_failures
    (5e97b6e6, dd472e7d, dfb5fc167)
  o Merge branch 'travis-ci-osx-fixes' (9f02b39c)
  o Merge branch 'win64-fixes' (aee0fcd5)
2021-04-07 02:43:12 +00:00
simonb 5c6aa0100d Use NAL (nop-and-link) to get the current PC. 2021-04-07 01:54:31 +00:00
rillig b5412104dc lint: sync comment with reality after renaming several functions
No functional change.
2021-04-06 22:21:53 +00:00
riastradh 90555e3e13 Remove sentence that has not been true since netbsd-6.
ioctl(RNDADDDATA) is not the only way to raise the entropy estimate;
privileged writes to /dev/random have the same effect.
2021-04-06 22:12:16 +00:00
riastradh 8603ff52c2 Clarify wording further based on private feedback. 2021-04-06 22:02:40 +00:00
rillig b4b7f28d0e lint: for shift in C99 mode, do not warn about difference to pre-C90
C99 is too far away from traditional C to make this warning useful.
There are 3 different situations in which this warning is generated:

For '1 << (unsigned char)1', the result type is 'unsigned int' in
traditional C.  The result type is unsigned because at least 1 of the
operators is unsigned, and it is 'unsigned int' because the usual
arithmetic promotions are applied.

For '1 >> (long)1', as well as for '1 << (long)1', the result type is
'long' in traditional C since the usual arithmetic promotions are
applied.

Omitting this warning in C99 mode reduces the amount of lint warnings in
a typical NetBSD release build by approximately 6800 of 107000 total.
2021-04-06 21:59:58 +00:00
rillig 6e93208e35 lint: test what happens for 'int << double'
I just wanted to see whether typeok_shift would be reached in this case,
to ensure that is_uinteger applies as expected.  It does.
2021-04-06 21:44:12 +00:00
rillig a32b9aafdf lint: reduce indentation of typeok_shift
No functional change.
2021-04-06 21:35:25 +00:00