| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 82b80e0 commit 4367732
28 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + test/fixtures/lorem_ipsum.txt text eol=lf | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -382,3 +382,10 @@ George Zhao <zhaozg@gmail.com> | |||
| 382 | 382 | Kyle Edwards <kyle.edwards@kitware.com> | |
| 383 | 383 | ken-cunningham-webuse <ken.cunningham.webuse@gmail.com> | |
| 384 | 384 | Kelvin Jin <kelvinjin@google.com> | |
| 385 | + Leorize <leorize+oss@disroot.org> | ||
| 386 | + Vlad A <vladmore@gmail.com> | ||
| 387 | + Niels Lohmann <mail@nlohmann.me> | ||
| 388 | + Jenil Christo <jenilchristo5@gmail.com> | ||
| 389 | + Evgeny Ermakov <evgeny.v.ermakov@gmail.com> | ||
| 390 | + gengjiawen <technicalcute@gmail.com> | ||
| 391 | + Leo Chung <gewalalb@gmail.com> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | 1 | # TODO: determine CMAKE_SYSTEM_NAME on OS/390. Currently assumes "OS/390". | |
| 2 | 2 | cmake_minimum_required(VERSION 3.0) | |
| 3 | 3 | project(libuv) | |
| 4 | - enable_testing() | ||
| 5 | 4 | ||
| 6 | 5 | if(MSVC) | |
| 7 | 6 | list(APPEND uv_cflags /W4) | |
@@ -137,6 +136,7 @@ set(uv_test_sources | |||
| 137 | 136 | test/test-tcp-read-stop.c | |
| 138 | 137 | test/test-tcp-shutdown-after-write.c | |
| 139 | 138 | test/test-tcp-try-write.c | |
| 139 | + test/test-tcp-try-write-error.c | ||
| 140 | 140 | test/test-tcp-unexpected-read.c | |
| 141 | 141 | test/test-tcp-write-after-connect.c | |
| 142 | 142 | test/test-tcp-write-fail.c | |
@@ -350,8 +350,11 @@ target_compile_options(uv_a PRIVATE ${uv_cflags}) | |||
| 350 | 350 | target_include_directories(uv_a PRIVATE include src) | |
| 351 | 351 | target_link_libraries(uv_a ${uv_libraries}) | |
| 352 | 352 | ||
| 353 | - if(BUILD_TESTING) | ||
| 354 | - include(CTest) | ||
| 353 | + option(libuv_buildtests "Build the unit tests when BUILD_TESTING is enabled." ON) | ||
| 354 | + | ||
| 355 | + include(CTest) | ||
| 356 | + if(BUILD_TESTING AND libuv_buildtests) | ||
| 357 | + enable_testing() | ||
| 355 | 358 | add_executable(uv_run_tests ${uv_test_sources}) | |
| 356 | 359 | target_compile_definitions(uv_run_tests | |
| 357 | 360 | PRIVATE ${uv_defines} USING_UV_SHARED=1) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,40 @@ | |||
| 1 | + 2019.06.28, Version 1.30.0 (Stable), 365b6f2a0eacda1ff52be8e57ab9381cfddc5dbb | ||
| 2 | + | ||
| 3 | + Changes since version 1.29.1: | ||
| 4 | + | ||
| 5 | + * darwin: fall back to F_BARRIERFSYNC (Ben Noordhuis) | ||
| 6 | + | ||
| 7 | + * darwin: add 32 bit close$NOCANCEL implementation (ken-cunningham-webuse) | ||
| 8 | + | ||
| 9 | + * build, core, unix: add support for Haiku (Leorize) | ||
| 10 | + | ||
| 11 | + * darwin,linux: more conservative minimum stack size (Ben Noordhuis) | ||
| 12 | + | ||
| 13 | + * threadpool: increase UV_THREADPOOL_SIZE limit (Vlad A) | ||
| 14 | + | ||
| 15 | + * unix: return actual error from `uv_try_write()` (Anna Henningsen) | ||
| 16 | + | ||
| 17 | + * darwin: fix build error with macos 10.10 (Ben Noordhuis) | ||
| 18 | + | ||
| 19 | + * unix: make uv_cwd() report UV_ENOBUFS (Ben Noordhuis) | ||
| 20 | + | ||
| 21 | + * unix: make uv_fs_read() fill all buffers (Ben Noordhuis) | ||
| 22 | + | ||
| 23 | + * test: give hrtime test a custom 10s timeout (Ben Noordhuis) | ||
| 24 | + | ||
| 25 | + * fs: fix uv_fs_copyfile if same src and dst (Santiago Gimeno) | ||
| 26 | + | ||
| 27 | + * build: add cmake option to skip building tests (Niels Lohmann) | ||
| 28 | + | ||
| 29 | + * doc: add link to nodejs.org (Jenil Christo) | ||
| 30 | + | ||
| 31 | + * unix: fix a comment typo in signal.c (Evgeny Ermakov) | ||
| 32 | + | ||
| 33 | + * unix: remove redundant cast in process.c (gengjiawen) | ||
| 34 | + | ||
| 35 | + * doc: fix wrong mutex function prototypes (Leo Chung) | ||
| 36 | + | ||
| 37 | + | ||
| 1 | 38 | 2019.05.22, Version 1.29.1 (Stable), d16e6094e1eb3b0b5981ef1dd7e03ec4d466944d | |
| 2 | 39 | ||
| 3 | 40 | Changes since version 1.29.0: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -117,6 +117,7 @@ endif # WINNT | |||
| 117 | 117 | ||
| 118 | 118 | EXTRA_DIST = test/fixtures/empty_file \ | |
| 119 | 119 | test/fixtures/load_error.node \ | |
| 120 | + test/fixtures/lorem_ipsum.txt \ | ||
| 120 | 121 | include \ | |
| 121 | 122 | docs \ | |
| 122 | 123 | img \ | |
@@ -272,6 +273,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \ | |||
| 272 | 273 | test/test-tcp-writealot.c \ | |
| 273 | 274 | test/test-tcp-write-fail.c \ | |
| 274 | 275 | test/test-tcp-try-write.c \ | |
| 276 | + test/test-tcp-try-write-error.c \ | ||
| 275 | 277 | test/test-tcp-write-queue-order.c \ | |
| 276 | 278 | test/test-thread-equal.c \ | |
| 277 | 279 | test/test-thread.c \ | |
@@ -320,6 +322,10 @@ test_run_tests_CFLAGS += -D_ALL_SOURCE \ | |||
| 320 | 322 | -D_LINUX_SOURCE_COMPAT | |
| 321 | 323 | endif | |
| 322 | 324 | ||
| 325 | + if HAIKU | ||
| 326 | + test_run_tests_CFLAGS += -D_BSD_SOURCE | ||
| 327 | + endif | ||
| 328 | + | ||
| 323 | 329 | if LINUX | |
| 324 | 330 | test_run_tests_CFLAGS += -D_GNU_SOURCE | |
| 325 | 331 | endif | |
@@ -409,6 +415,17 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ | |||
| 409 | 415 | test_run_tests_LDFLAGS += -lutil | |
| 410 | 416 | endif | |
| 411 | 417 | ||
| 418 | + if HAIKU | ||
| 419 | + uvinclude_HEADERS += include/uv/posix.h | ||
| 420 | + libuv_la_CFLAGS += -D_BSD_SOURCE | ||
| 421 | + libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ | ||
| 422 | + src/unix/haiku.c \ | ||
| 423 | + src/unix/no-fsevents.c \ | ||
| 424 | + src/unix/no-proctitle.c \ | ||
| 425 | + src/unix/posix-hrtime.c \ | ||
| 426 | + src/unix/posix-poll.c | ||
| 427 | + endif | ||
| 428 | + | ||
| 412 | 429 | if HURD | |
| 413 | 430 | uvinclude_HEADERS += include/uv/posix.h | |
| 414 | 431 | libuv_la_SOURCES += src/unix/no-fsevents.c \ | |
| 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.29.1], [https://github.com/libuv/libuv/issues]) | ||
| 16 | + AC_INIT([libuv], [1.30.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]) | |
@@ -56,6 +56,7 @@ AM_CONDITIONAL([CYGWIN], [AS_CASE([$host_os],[cygwin*], [true], [false]) | |||
| 56 | 56 | AM_CONDITIONAL([DARWIN], [AS_CASE([$host_os],[darwin*], [true], [false])]) | |
| 57 | 57 | AM_CONDITIONAL([DRAGONFLY],[AS_CASE([$host_os],[dragonfly*], [true], [false])]) | |
| 58 | 58 | AM_CONDITIONAL([FREEBSD], [AS_CASE([$host_os],[*freebsd*], [true], [false])]) | |
| 59 | + AM_CONDITIONAL([HAIKU], [AS_CASE([$host_os],[haiku], [true], [false])]) | ||
| 59 | 60 | AM_CONDITIONAL([HURD], [AS_CASE([$host_os],[gnu*], [true], [false])]) | |
| 60 | 61 | AM_CONDITIONAL([LINUX], [AS_CASE([$host_os],[linux*], [true], [false])]) | |
| 61 | 62 | AM_CONDITIONAL([MSYS], [AS_CASE([$host_os],[msys*], [true], [false])]) | |
@@ -71,6 +72,9 @@ AS_CASE([$host_os], [netbsd*], [AC_CHECK_LIB([kvm], [kvm_open])]) | |||
| 71 | 72 | AS_CASE([$host_os], [kfreebsd*], [ | |
| 72 | 73 | LIBS="$LIBS -lfreebsd-glue" | |
| 73 | 74 | ]) | |
| 75 | + AS_CASE([$host_os], [haiku], [ | ||
| 76 | + LIBS="$LIBS -lnetwork" | ||
| 77 | + ]) | ||
| 74 | 78 | AC_CHECK_HEADERS([sys/ahafs_evProds.h]) | |
| 75 | 79 | AC_CONFIG_FILES([Makefile libuv.pc]) | |
| 76 | 80 | AC_CONFIG_LINKS([test/fixtures/empty_file:test/fixtures/empty_file]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,9 +4,11 @@ | |||
| 4 | 4 | Design overview | |
| 5 | 5 | =============== | |
| 6 | 6 | ||
| 7 | - libuv is cross-platform support library which was originally written for NodeJS. It's designed | ||
| 7 | + libuv is cross-platform support library which was originally written for `Node.js`_. It's designed | ||
| 8 | 8 | around the event-driven asynchronous I/O model. | |
| 9 | 9 | ||
| 10 | + .. _Node.js: https://nodejs.org | ||
| 11 | + | ||
| 10 | 12 | The library provides much more than a simple abstraction over different I/O polling mechanisms: | |
| 11 | 13 | 'handles' and 'streams' provide a high level abstraction for sockets and other entities; | |
| 12 | 14 | cross-platform file I/O and threading functionality is also provided, amongst other things. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,9 @@ operations, as well as getaddrinfo and getnameinfo requests. | |||
| 10 | 10 | ||
| 11 | 11 | Its default size is 4, but it can be changed at startup time by setting the | |
| 12 | 12 | ``UV_THREADPOOL_SIZE`` environment variable to any value (the absolute maximum | |
| 13 | - is 128). | ||
| 13 | + is 1024). | ||
| 14 | + | ||
| 15 | + .. versionchanged:: 1.29.2 the maximum UV_THREADPOOL_SIZE allowed was increased from 128 to 1024. | ||
| 14 | 16 | ||
| 15 | 17 | The threadpool is global and shared across all event loops. When a particular | |
| 16 | 18 | function makes use of the threadpool (i.e. when using :c:func:`uv_queue_work`) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,6 +66,8 @@ | |||
| 66 | 66 | defined(__MSYS__) || \ | |
| 67 | 67 | defined(__GNU__) | |
| 68 | 68 | # include "uv/posix.h" | |
| 69 | + #elif defined(__HAIKU__) | ||
| 70 | + # include "uv/posix.h" | ||
| 69 | 71 | #endif | |
| 70 | 72 | ||
| 71 | 73 | #ifndef NI_MAXHOST | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,8 +31,8 @@ | |||
| 31 | 31 | */ | |
| 32 | 32 | ||
| 33 | 33 | #define UV_VERSION_MAJOR 1 | |
| 34 | - #define UV_VERSION_MINOR 29 | ||
| 35 | - #define UV_VERSION_PATCH 1 | ||
| 34 | + #define UV_VERSION_MINOR 30 | ||
| 35 | + #define UV_VERSION_PATCH 0 | ||
| 36 | 36 | #define UV_VERSION_IS_RELEASE 1 | |
| 37 | 37 | #define UV_VERSION_SUFFIX "" | |
| 38 | 38 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments