| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 87fd55c commit f5f238d
53 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -396,3 +396,10 @@ Nan Xiao <nan@chinadtrace.org> | |||
| 396 | 396 | Ben Davies <kaiepi@outlook.com> | |
| 397 | 397 | Nhan Khong <knhana7@gmail.com> | |
| 398 | 398 | Crunkle <justcrunkle@hotmail.co.uk> | |
| 399 | + Tomas Krizek <tomas.krizek@nic.cz> | ||
| 400 | + Konstantin Podsvirov <konstantin@podsvirov.pro> | ||
| 401 | + seny <arseny.vakhrushev@gmail.com> | ||
| 402 | + Vladimir Karnushin <v.karnushin@mail.ru> | ||
| 403 | + MaYuming <maym@appexnetworks.com> | ||
| 404 | + Eneas U de Queiroz <cotequeiroz@gmail.com> | ||
| 405 | + Daniel Hahler <git@thequod.de> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # TODO: determine CMAKE_SYSTEM_NAME on OS/390. Currently assumes "OS/390". | |
| 2 | - cmake_minimum_required(VERSION 3.0) | ||
| 2 | + cmake_minimum_required(VERSION 2.8.12) | ||
| 3 | 3 | project(libuv) | |
| 4 | 4 | ||
| 5 | 5 | if(MSVC) | |
@@ -116,6 +116,7 @@ set(uv_test_sources | |||
| 116 | 116 | test/test-shutdown-eof.c | |
| 117 | 117 | test/test-shutdown-twice.c | |
| 118 | 118 | test/test-signal-multiple-loops.c | |
| 119 | + test/test-signal-pending-on-close.c | ||
| 119 | 120 | test/test-signal.c | |
| 120 | 121 | test/test-socket-buffer-size.c | |
| 121 | 122 | test/test-spawn.c | |
@@ -127,6 +128,7 @@ set(uv_test_sources | |||
| 127 | 128 | test/test-tcp-close-accept.c | |
| 128 | 129 | test/test-tcp-close-while-connecting.c | |
| 129 | 130 | test/test-tcp-close.c | |
| 131 | + test/test-tcp-close-reset.c | ||
| 130 | 132 | test/test-tcp-connect-error-after-write.c | |
| 131 | 133 | test/test-tcp-connect-error.c | |
| 132 | 134 | test/test-tcp-connect-timeout.c | |
@@ -317,6 +319,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "OS/390") | |||
| 317 | 319 | list(APPEND uv_defines _OPEN_MSGQ_EXT) | |
| 318 | 320 | list(APPEND uv_defines _OPEN_SYS_FILE_EXT) | |
| 319 | 321 | list(APPEND uv_defines _OPEN_SYS_IF_EXT) | |
| 322 | + list(APPEND uv_defines _OPEN_SYS_SOCK_EXT3) | ||
| 320 | 323 | list(APPEND uv_defines _OPEN_SYS_SOCK_IPV6) | |
| 321 | 324 | list(APPEND uv_defines _UNIX03_SOURCE) | |
| 322 | 325 | list(APPEND uv_defines _UNIX03_THREADS) | |
@@ -340,15 +343,17 @@ if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|Linux|NetBSD|OpenBSD") | |||
| 340 | 343 | endif() | |
| 341 | 344 | ||
| 342 | 345 | add_library(uv SHARED ${uv_sources}) | |
| 343 | - target_compile_definitions(uv PRIVATE ${uv_defines} BUILDING_UV_SHARED=1) | ||
| 346 | + target_compile_definitions(uv | ||
| 347 | + INTERFACE USING_UV_SHARED=1 | ||
| 348 | + PRIVATE ${uv_defines} BUILDING_UV_SHARED=1) | ||
| 344 | 349 | target_compile_options(uv PRIVATE ${uv_cflags}) | |
| 345 | - target_include_directories(uv PRIVATE include src) | ||
| 350 | + target_include_directories(uv PUBLIC include PRIVATE src) | ||
| 346 | 351 | target_link_libraries(uv ${uv_libraries}) | |
| 347 | 352 | ||
| 348 | 353 | add_library(uv_a STATIC ${uv_sources}) | |
| 349 | 354 | target_compile_definitions(uv_a PRIVATE ${uv_defines}) | |
| 350 | 355 | target_compile_options(uv_a PRIVATE ${uv_cflags}) | |
| 351 | - target_include_directories(uv_a PRIVATE include src) | ||
| 356 | + target_include_directories(uv_a PUBLIC include PRIVATE src) | ||
| 352 | 357 | target_link_libraries(uv_a ${uv_libraries}) | |
| 353 | 358 | ||
| 354 | 359 | option(libuv_buildtests "Build the unit tests when BUILD_TESTING is enabled." ON) | |
@@ -360,15 +365,13 @@ if(BUILD_TESTING AND libuv_buildtests) | |||
| 360 | 365 | target_compile_definitions(uv_run_tests | |
| 361 | 366 | PRIVATE ${uv_defines} USING_UV_SHARED=1) | |
| 362 | 367 | target_compile_options(uv_run_tests PRIVATE ${uv_cflags}) | |
| 363 | - target_include_directories(uv_run_tests PRIVATE include) | ||
| 364 | 368 | target_link_libraries(uv_run_tests uv ${uv_test_libraries}) | |
| 365 | 369 | add_test(NAME uv_test | |
| 366 | 370 | COMMAND uv_run_tests | |
| 367 | 371 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | |
| 368 | 372 | add_executable(uv_run_tests_a ${uv_test_sources}) | |
| 369 | 373 | target_compile_definitions(uv_run_tests_a PRIVATE ${uv_defines}) | |
| 370 | 374 | target_compile_options(uv_run_tests_a PRIVATE ${uv_cflags}) | |
| 371 | - target_include_directories(uv_run_tests_a PRIVATE include) | ||
| 372 | 375 | target_link_libraries(uv_run_tests_a uv_a ${uv_test_libraries}) | |
| 373 | 376 | add_test(NAME uv_test_a | |
| 374 | 377 | COMMAND uv_run_tests_a | |
@@ -383,6 +386,10 @@ if(UNIX) | |||
| 383 | 386 | endforeach(x) | |
| 384 | 387 | file(STRINGS configure.ac configure_ac REGEX ^AC_INIT) | |
| 385 | 388 | string(REGEX MATCH [0-9]+[.][0-9]+[.][0-9]+ PACKAGE_VERSION "${configure_ac}") | |
| 389 | + string(REGEX MATCH ^[0-9]+ UV_VERSION_MAJOR "${PACKAGE_VERSION}") | ||
| 390 | + # The version in the filename is mirroring the behaviour of autotools. | ||
| 391 | + set_target_properties(uv PROPERTIES VERSION ${UV_VERSION_MAJOR}.0.0 | ||
| 392 | + SOVERSION ${UV_VERSION_MAJOR}) | ||
| 386 | 393 | set(includedir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) | |
| 387 | 394 | set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) | |
| 388 | 395 | set(prefix ${CMAKE_INSTALL_PREFIX}) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,78 @@ | |||
| 1 | + 2019.09.10, Version 1.32.0 (Stable), 697bea87b3a0b0e9b4e5ff86b39d1dedb70ee46d | ||
| 2 | + | ||
| 3 | + Changes since version 1.31.0: | ||
| 4 | + | ||
| 5 | + * misc: enable stalebot (Saúl Ibarra Corretgé) | ||
| 6 | + | ||
| 7 | + * win: map ERROR_ENVVAR_NOT_FOUND to UV_ENOENT (cjihrig) | ||
| 8 | + | ||
| 9 | + * win: use L'\0' as UTF-16 null terminator (cjihrig) | ||
| 10 | + | ||
| 11 | + * win: support retrieving empty env variables (cjihrig) | ||
| 12 | + | ||
| 13 | + * unix,stream: fix returned error codes (Santiago Gimeno) | ||
| 14 | + | ||
| 15 | + * test: fix typo in DYLD_LIBRARY_PATH (Ben Noordhuis) | ||
| 16 | + | ||
| 17 | + * unix,signal: keep handle active if pending signal (Santiago Gimeno) | ||
| 18 | + | ||
| 19 | + * openbsd: fix uv_cpu_info (Santiago Gimeno) | ||
| 20 | + | ||
| 21 | + * src: move uv_free_cpu_info to uv-common.c (Santiago Gimeno) | ||
| 22 | + | ||
| 23 | + * tcp: add uv_tcp_close_reset method (Santiago Gimeno) | ||
| 24 | + | ||
| 25 | + * test: fix udp-multicast-join tests (Santiago Gimeno) | ||
| 26 | + | ||
| 27 | + * test: remove assertion in fs_statfs test (cjihrig) | ||
| 28 | + | ||
| 29 | + * doc: clarify uv_buf_t usage in uv_alloc_cb (Tomas Krizek) | ||
| 30 | + | ||
| 31 | + * win: fix typo in preprocessor expression (Konstantin Podsvirov) | ||
| 32 | + | ||
| 33 | + * timer: fix uv_timer_start on closing timer (seny) | ||
| 34 | + | ||
| 35 | + * udp: add source-specific multicast support (Vladimir Karnushin) | ||
| 36 | + | ||
| 37 | + * udp: fix error return values (Santiago Gimeno) | ||
| 38 | + | ||
| 39 | + * udp: drop IPV6_SSM_SUPPORT macro (Santiago Gimeno) | ||
| 40 | + | ||
| 41 | + * udp: fix uv__udp_set_source_membership6 (Santiago Gimeno) | ||
| 42 | + | ||
| 43 | + * udp: use sockaddr_storage instead of union (Santiago Gimeno) | ||
| 44 | + | ||
| 45 | + * build,zos: add _OPEN_SYS_SOCK_EXT3 flag (Santiago Gimeno) | ||
| 46 | + | ||
| 47 | + * test: add specific source multicast tests (Santiago Gimeno) | ||
| 48 | + | ||
| 49 | + * include: map EILSEQ error code (cjihrig) | ||
| 50 | + | ||
| 51 | + * win, tty: improve SIGWINCH performance (Bartosz Sosnowski) | ||
| 52 | + | ||
| 53 | + * build: fix ios build error (MaYuming) | ||
| 54 | + | ||
| 55 | + * aix: replace ECONNRESET with EOF if already closed (Milad Farazmand) | ||
| 56 | + | ||
| 57 | + * build: add cmake library VERSION, SOVERSION (Eneas U de Queiroz) | ||
| 58 | + | ||
| 59 | + * build: make include/ public in CMakeLists.txt (Ben Noordhuis) | ||
| 60 | + | ||
| 61 | + * build: export USING_UV_SHARED=1 to cmake deps (Ben Noordhuis) | ||
| 62 | + | ||
| 63 | + * build: cmake_minimum_required(VERSION 2.8.12) (Daniel Hahler) | ||
| 64 | + | ||
| 65 | + * aix: Fix broken cmpxchgi() XL C++ specialization. (Andrew Paprocki) | ||
| 66 | + | ||
| 67 | + * test: fix -Wsign-compare warning (Ben Noordhuis) | ||
| 68 | + | ||
| 69 | + * unix: simplify open(O_CLOEXEC) feature detection (Ben Noordhuis) | ||
| 70 | + | ||
| 71 | + * unix: fix UV_FS_O_DIRECT definition on Linux (Joran Dirk Greef) | ||
| 72 | + | ||
| 73 | + * doc: uv_handle_t documentation suggestion (Daniel Bevenius) | ||
| 74 | + | ||
| 75 | + | ||
| 1 | 76 | 2019.08.10, Version 1.31.0 (Stable), 0a6771cee4c15184c924bfe9d397bdd0c3b206ba | |
| 2 | 77 | ||
| 3 | 78 | Changes since version 1.30.1: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,6 +248,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \ | |||
| 248 | 248 | test/test-shutdown-eof.c \ | |
| 249 | 249 | test/test-shutdown-twice.c \ | |
| 250 | 250 | test/test-signal-multiple-loops.c \ | |
| 251 | + test/test-signal-pending-on-close.c \ | ||
| 251 | 252 | test/test-signal.c \ | |
| 252 | 253 | test/test-socket-buffer-size.c \ | |
| 253 | 254 | test/test-spawn.c \ | |
@@ -259,6 +260,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \ | |||
| 259 | 260 | test/test-tcp-close-accept.c \ | |
| 260 | 261 | test/test-tcp-close-while-connecting.c \ | |
| 261 | 262 | test/test-tcp-close.c \ | |
| 263 | + test/test-tcp-close-reset.c \ | ||
| 262 | 264 | test/test-tcp-create-socket-early.c \ | |
| 263 | 265 | test/test-tcp-connect-error-after-write.c \ | |
| 264 | 266 | test/test-tcp-connect-error.c \ | |
@@ -517,6 +519,7 @@ libuv_la_CFLAGS += -D_UNIX03_THREADS \ | |||
| 517 | 519 | -D_XOPEN_SOURCE_EXTENDED \ | |
| 518 | 520 | -D_ALL_SOURCE \ | |
| 519 | 521 | -D_LARGE_TIME_API \ | |
| 522 | + -D_OPEN_SYS_SOCK_EXT3 \ | ||
| 520 | 523 | -D_OPEN_SYS_SOCK_IPV6 \ | |
| 521 | 524 | -D_OPEN_SYS_FILE_EXT \ | |
| 522 | 525 | -DUV_PLATFORM_SEM_T=int \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -401,6 +401,8 @@ Check the [SUPPORTED_PLATFORMS file](SUPPORTED_PLATFORMS.md). | |||
| 401 | 401 | ||
| 402 | 402 | ### AIX Notes | |
| 403 | 403 | ||
| 404 | + AIX compilation using IBM XL C/C++ requires version 12.1 or greater. | ||
| 405 | + | ||
| 404 | 406 | AIX support for filesystem events requires the non-default IBM `bos.ahafs` | |
| 405 | 407 | package to be installed. This package provides the AIX Event Infrastructure | |
| 406 | 408 | that is detected by `autoconf`. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
| 14 | 14 | ||
| 15 | 15 | AC_PREREQ(2.57) | |
| 16 | - AC_INIT([libuv], [1.31.0], [https://github.com/libuv/libuv/issues]) | ||
| 16 | + AC_INIT([libuv], [1.32.0], [https://github.com/libuv/libuv/issues]) | ||
| 17 | 17 | AC_CONFIG_MACRO_DIR([m4]) | |
| 18 | 18 | m4_include([m4/libuv-extra-automake-flags.m4]) | |
| 19 | 19 | m4_include([m4/as_case.m4]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,6 +60,9 @@ Data types | |||
| 60 | 60 | a ``UV_ENOBUFS`` error will be triggered in the :c:type:`uv_udp_recv_cb` or the | |
| 61 | 61 | :c:type:`uv_read_cb` callback. | |
| 62 | 62 | ||
| 63 | + Each buffer is used only once and the user is responsible for freeing it in the | ||
| 64 | + :c:type:`uv_udp_recv_cb` or the :c:type:`uv_read_cb` callback. | ||
| 65 | + | ||
| 63 | 66 | A suggested size (65536 at the moment in most cases) is provided, but it's just an indication, | |
| 64 | 67 | not related in any way to the pending data to be read. The user is free to allocate the amount | |
| 65 | 68 | of memory they decide. | |
@@ -87,7 +90,7 @@ Public members | |||
| 87 | 90 | ||
| 88 | 91 | .. c:member:: uv_loop_t* uv_handle_t.loop | |
| 89 | 92 | ||
| 90 | - Pointer to the :c:type:`uv_loop_t` where the handle is running on. Readonly. | ||
| 93 | + Pointer to the :c:type:`uv_loop_t` the handle is running on. Readonly. | ||
| 91 | 94 | ||
| 92 | 95 | .. c:member:: uv_handle_type uv_handle_t.type | |
| 93 | 96 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,15 @@ Reception of some signals is emulated: | |||
| 20 | 20 | program is given approximately 10 seconds to perform cleanup. After that | |
| 21 | 21 | Windows will unconditionally terminate it. | |
| 22 | 22 | ||
| 23 | + * SIGWINCH is raised whenever libuv detects that the console has been | ||
| 24 | + resized. When a libuv app is running under a console emulator, or when a | ||
| 25 | + 32-bit libuv app is running on 64-bit system, SIGWINCH will be emulated. In | ||
| 26 | + such cases SIGWINCH signals may not always be delivered in a timely manner. | ||
| 27 | + For a writable :c:type:`uv_tty_t` handle libuv will only detect size changes | ||
| 28 | + when the cursor is moved. When a readable :c:type:`uv_tty_t` handle is used, | ||
| 29 | + resizing of the console buffer will be detected only if the handle is in raw | ||
| 30 | + mode and is being read. | ||
| 31 | + | ||
| 23 | 32 | * Watchers for other signals can be successfully created, but these signals | |
| 24 | 33 | are never received. These signals are: `SIGILL`, `SIGABRT`, `SIGFPE`, `SIGSEGV`, | |
| 25 | 34 | `SIGTERM` and `SIGKILL.` | |
@@ -28,6 +37,8 @@ Reception of some signals is emulated: | |||
| 28 | 37 | not detected by libuv; these will not trigger a signal watcher. | |
| 29 | 38 | ||
| 30 | 39 | .. versionchanged:: 1.15.0 SIGWINCH support on Windows was improved. | |
| 40 | + .. versionchanged:: 1.31.0 32-bit libuv SIGWINCH support on 64-bit Windows was | ||
| 41 | + rolled back to old implementation. | ||
| 31 | 42 | ||
| 32 | 43 | Unix notes | |
| 33 | 44 | ---------- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,8 +50,8 @@ Data types | |||
| 50 | 50 | from the stream again is undefined. | |
| 51 | 51 | ||
| 52 | 52 | The callee is responsible for freeing the buffer, libuv does not reuse it. | |
| 53 | - The buffer may be a null buffer (where buf->base=NULL and buf->len=0) on | ||
| 54 | - error. | ||
| 53 | + The buffer may be a null buffer (where `buf->base` == NULL and `buf->len` == 0) | ||
| 54 | + on error. | ||
| 55 | 55 | ||
| 56 | 56 | .. c:type:: void (*uv_write_cb)(uv_write_t* req, int status) | |
| 57 | 57 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -113,3 +113,13 @@ API | |||
| 113 | 113 | mapping | |
| 114 | 114 | ||
| 115 | 115 | .. seealso:: The :c:type:`uv_stream_t` API functions also apply. | |
| 116 | + | ||
| 117 | + .. c:function:: int uv_tcp_close_reset(uv_tcp_t* handle, uv_close_cb close_cb) | ||
| 118 | + | ||
| 119 | + Resets a TCP connection by sending a RST packet. This is accomplished by | ||
| 120 | + setting the `SO_LINGER` socket option with a linger interval of zero and | ||
| 121 | + then calling :c:func:`uv_close`. | ||
| 122 | + Due to some platform inconsistencies, mixing of :c:func:`uv_shutdown` and | ||
| 123 | + :c:func:`uv_tcp_close_reset` calls is not allowed. | ||
| 124 | + | ||
| 125 | + .. versionadded:: 1.32.0 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments