| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6f7b561 commit 2c91c65
42 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,6 +51,7 @@ Makefile.in | |||
| 51 | 51 | /test/run-benchmarks | |
| 52 | 52 | /test/run-benchmarks.exe | |
| 53 | 53 | /test/run-benchmarks.dSYM | |
| 54 | + test_file_* | ||
| 54 | 55 | ||
| 55 | 56 | *.sln | |
| 56 | 57 | *.sln.cache | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,7 @@ Sam Roberts <vieuxtech@gmail.com> <sam@strongloop.com> | |||
| 38 | 38 | San-Tai Hsu <vanilla@fatpipi.com> | |
| 39 | 39 | Santiago Gimeno <santiago.gimeno@quantion.es> <santiago.gimeno@gmail.com> | |
| 40 | 40 | Saúl Ibarra Corretgé <saghul@gmail.com> | |
| 41 | + Saúl Ibarra Corretgé <saghul@gmail.com> <s@saghul.net> | ||
| 41 | 42 | Shigeki Ohtsu <ohtsu@iij.ad.jp> <ohtsu@ohtsu.org> | |
| 42 | 43 | Timothy J. Fontaine <tjfontaine@gmail.com> | |
| 43 | 44 | Yasuhiro Matsumoto <mattn.jp@gmail.com> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -389,3 +389,10 @@ Jenil Christo <jenilchristo5@gmail.com> | |||
| 389 | 389 | Evgeny Ermakov <evgeny.v.ermakov@gmail.com> | |
| 390 | 390 | gengjiawen <technicalcute@gmail.com> | |
| 391 | 391 | Leo Chung <gewalalb@gmail.com> | |
| 392 | + Javier Blazquez <jblazquez@riotgames.com> | ||
| 393 | + Mustafa M <mus-m@outlook.com> | ||
| 394 | + Zach Bjornson <zbbjornson@gmail.com> | ||
| 395 | + Nan Xiao <nan@chinadtrace.org> | ||
| 396 | + Ben Davies <kaiepi@outlook.com> | ||
| 397 | + Nhan Khong <knhana7@gmail.com> | ||
| 398 | + Crunkle <justcrunkle@hotmail.co.uk> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,6 +53,8 @@ set(uv_test_sources | |||
| 53 | 53 | test/test-fs-poll.c | |
| 54 | 54 | test/test-fs.c | |
| 55 | 55 | test/test-fs-readdir.c | |
| 56 | + test/test-fs-fd-hash.c | ||
| 57 | + test/test-fs-open-flags.c | ||
| 56 | 58 | test/test-get-currentexe.c | |
| 57 | 59 | test/test-get-loadavg.c | |
| 58 | 60 | test/test-get-memory.c | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,52 @@ | |||
| 1 | + 2019.08.10, Version 1.31.0 (Stable), 0a6771cee4c15184c924bfe9d397bdd0c3b206ba | ||
| 2 | + | ||
| 3 | + Changes since version 1.30.1: | ||
| 4 | + | ||
| 5 | + * win,fs: don't modify global file translation mode (Javier Blazquez) | ||
| 6 | + | ||
| 7 | + * win: fix uv_os_tmpdir when env var is 260 chars (Mustafa M) | ||
| 8 | + | ||
| 9 | + * win: prevent tty event explosion machine hang (Javier Blazquez) | ||
| 10 | + | ||
| 11 | + * win: add UV_FS_O_FILEMAP (João Reis) | ||
| 12 | + | ||
| 13 | + * win, fs: mkdir return UV_EINVAL for invalid names (Bartosz Sosnowski) | ||
| 14 | + | ||
| 15 | + * github: add root warning to template (cjihrig) | ||
| 16 | + | ||
| 17 | + * win: misc fs cleanup (cjihrig) | ||
| 18 | + | ||
| 19 | + * unix,win: add uv_fs_statfs() (cjihrig) | ||
| 20 | + | ||
| 21 | + * test: avoid AF_LOCAL (Carlo Marcelo Arenas Belón) | ||
| 22 | + | ||
| 23 | + * unix,win: add ability to retrieve all env variables (Saúl Ibarra Corretgé) | ||
| 24 | + | ||
| 25 | + * Revert "darwin: speed up uv_set_process_title()" (Ben Noordhuis) | ||
| 26 | + | ||
| 27 | + * doc: add %p to valgrind log-file arg (Zach Bjornson) | ||
| 28 | + | ||
| 29 | + * doc: fix typo in basics.rst (Nan Xiao) | ||
| 30 | + | ||
| 31 | + * ibmi: support Makefile build for IBM i (Xu Meng) | ||
| 32 | + | ||
| 33 | + * OpenBSD: only get active CPU core count (Ben Davies) | ||
| 34 | + | ||
| 35 | + * test: fix gcc 8 warnings for tests (Nhan Khong) | ||
| 36 | + | ||
| 37 | + * ibmi: use correct header files (Xu Meng) | ||
| 38 | + | ||
| 39 | + * unix: clear UV_HANDLE_READING flag before callback (zyxwvu Shi) | ||
| 40 | + | ||
| 41 | + * unix: fix unused-function warning on BSD (Nhan Khong) | ||
| 42 | + | ||
| 43 | + * test: fix test runner on MinGW (Crunkle) | ||
| 44 | + | ||
| 45 | + * win: remove try-except outside MSVC (Crunkle) | ||
| 46 | + | ||
| 47 | + * win: fix uv_spawn() ENOMEM on empty env (Ben Noordhuis) | ||
| 48 | + | ||
| 49 | + | ||
| 1 | 50 | 2019.07.03, Version 1.30.1 (Stable), 1551969c84c2f546a429dac169c7fdac3e38115e | |
| 2 | 51 | ||
| 3 | 52 | Changes since version 1.30.0: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -184,6 +184,8 @@ test_run_tests_SOURCES = test/blackhole-server.c \ | |||
| 184 | 184 | test/test-fs-poll.c \ | |
| 185 | 185 | test/test-fs.c \ | |
| 186 | 186 | test/test-fs-readdir.c \ | |
| 187 | + test/test-fs-fd-hash.c \ | ||
| 188 | + test/test-fs-open-flags.c \ | ||
| 187 | 189 | test/test-fork.c \ | |
| 188 | 190 | test/test-getters-setters.c \ | |
| 189 | 191 | test/test-get-currentexe.c \ | |
@@ -322,6 +324,12 @@ test_run_tests_CFLAGS += -D_ALL_SOURCE \ | |||
| 322 | 324 | -D_LINUX_SOURCE_COMPAT | |
| 323 | 325 | endif | |
| 324 | 326 | ||
| 327 | + if OS400 | ||
| 328 | + test_run_tests_CFLAGS += -D_ALL_SOURCE \ | ||
| 329 | + -D_XOPEN_SOURCE=500 \ | ||
| 330 | + -D_LINUX_SOURCE_COMPAT | ||
| 331 | + endif | ||
| 332 | + | ||
| 325 | 333 | if HAIKU | |
| 326 | 334 | test_run_tests_CFLAGS += -D_BSD_SOURCE | |
| 327 | 335 | endif | |
@@ -362,6 +370,19 @@ uvinclude_HEADERS += include/uv/aix.h | |||
| 362 | 370 | libuv_la_SOURCES += src/unix/aix.c src/unix/aix-common.c | |
| 363 | 371 | endif | |
| 364 | 372 | ||
| 373 | + if OS400 | ||
| 374 | + libuv_la_CFLAGS += -D_ALL_SOURCE \ | ||
| 375 | + -D_XOPEN_SOURCE=500 \ | ||
| 376 | + -D_LINUX_SOURCE_COMPAT \ | ||
| 377 | + -D_THREAD_SAFE | ||
| 378 | + uvinclude_HEADERS += include/uv/posix.h | ||
| 379 | + libuv_la_SOURCES += src/unix/aix-common.c \ | ||
| 380 | + src/unix/ibmi.c \ | ||
| 381 | + src/unix/posix-poll.c \ | ||
| 382 | + src/unix/no-fsevents.c \ | ||
| 383 | + src/unix/no-proctitle.c | ||
| 384 | + endif | ||
| 385 | + | ||
| 365 | 386 | if ANDROID | |
| 366 | 387 | uvinclude_HEADERS += include/uv/android-ifaddrs.h | |
| 367 | 388 | libuv_la_SOURCES += src/unix/android-ifaddrs.c \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -387,7 +387,7 @@ $ gdb --args out/Debug/run-tests TEST_NAME | |||
| 387 | 387 | Use the `--trace-children=yes` parameter: | |
| 388 | 388 | ||
| 389 | 389 | ```bash | |
| 390 | - $ valgrind --trace-children=yes -v --tool=memcheck --leak-check=full --track-origins=yes --leak-resolution=high --show-reachable=yes --log-file=memcheck.log out/Debug/run-tests TEST_NAME | ||
| 390 | + $ valgrind --trace-children=yes -v --tool=memcheck --leak-check=full --track-origins=yes --leak-resolution=high --show-reachable=yes --log-file=memcheck-%p.log out/Debug/run-tests TEST_NAME | ||
| 391 | 391 | ``` | |
| 392 | 392 | ||
| 393 | 393 | ### Running benchmarks | |
| 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.30.1], [https://github.com/libuv/libuv/issues]) | ||
| 16 | + AC_INIT([libuv], [1.31.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]) | |
@@ -63,6 +63,7 @@ AM_CONDITIONAL([MSYS], [AS_CASE([$host_os],[msys*], [true], [false]) | |||
| 63 | 63 | AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])]) | |
| 64 | 64 | AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os],[openbsd*], [true], [false])]) | |
| 65 | 65 | AM_CONDITIONAL([OS390], [AS_CASE([$host_os],[openedition*], [true], [false])]) | |
| 66 | + AM_CONDITIONAL([OS400], [AS_CASE([$host_os],[os400], [true], [false])]) | ||
| 66 | 67 | AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os],[solaris*], [true], [false])]) | |
| 67 | 68 | AM_CONDITIONAL([WINNT], [AS_CASE([$host_os],[mingw*], [true], [false])]) | |
| 68 | 69 | AS_CASE([$host_os],[mingw*], [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,6 +102,24 @@ Data types | |||
| 102 | 102 | UV_FS_CLOSEDIR | |
| 103 | 103 | } uv_fs_type; | |
| 104 | 104 | ||
| 105 | + .. c:type:: uv_statfs_t | ||
| 106 | + | ||
| 107 | + Reduced cross platform equivalent of ``struct statfs``. | ||
| 108 | + Used in :c:func:`uv_fs_statfs`. | ||
| 109 | + | ||
| 110 | + :: | ||
| 111 | + | ||
| 112 | + typedef struct uv_statfs_s { | ||
| 113 | + uint64_t f_type; | ||
| 114 | + uint64_t f_bsize; | ||
| 115 | + uint64_t f_blocks; | ||
| 116 | + uint64_t f_bfree; | ||
| 117 | + uint64_t f_bavail; | ||
| 118 | + uint64_t f_files; | ||
| 119 | + uint64_t f_ffree; | ||
| 120 | + uint64_t f_spare[4]; | ||
| 121 | + } uv_statfs_t; | ||
| 122 | + | ||
| 105 | 123 | .. c:type:: uv_dirent_t | |
| 106 | 124 | ||
| 107 | 125 | Cross platform (reduced) equivalent of ``struct dirent``. | |
@@ -200,6 +218,11 @@ API | |||
| 200 | 218 | ||
| 201 | 219 | Equivalent to :man:`preadv(2)`. | |
| 202 | 220 | ||
| 221 | + .. warning:: | ||
| 222 | + On Windows, under non-MSVC environments (e.g. when GCC or Clang is used | ||
| 223 | + to build libuv), files opened using ``UV_FS_O_FILEMAP`` may cause a fatal | ||
| 224 | + crash if the memory mapped read operation fails. | ||
| 225 | + | ||
| 203 | 226 | .. c:function:: int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) | |
| 204 | 227 | ||
| 205 | 228 | Equivalent to :man:`unlink(2)`. | |
@@ -208,6 +231,11 @@ API | |||
| 208 | 231 | ||
| 209 | 232 | Equivalent to :man:`pwritev(2)`. | |
| 210 | 233 | ||
| 234 | + .. warning:: | ||
| 235 | + On Windows, under non-MSVC environments (e.g. when GCC or Clang is used | ||
| 236 | + to build libuv), files opened using ``UV_FS_O_FILEMAP`` may cause a fatal | ||
| 237 | + crash if the memory mapped write operation fails. | ||
| 238 | + | ||
| 211 | 239 | .. c:function:: int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb cb) | |
| 212 | 240 | ||
| 213 | 241 | Equivalent to :man:`mkdir(2)`. | |
@@ -290,6 +318,17 @@ API | |||
| 290 | 318 | ||
| 291 | 319 | Equivalent to :man:`stat(2)`, :man:`fstat(2)` and :man:`lstat(2)` respectively. | |
| 292 | 320 | ||
| 321 | + .. c:function:: int uv_fs_statfs(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) | ||
| 322 | + | ||
| 323 | + Equivalent to :man:`statfs(2)`. On success, a `uv_statfs_t` is allocated | ||
| 324 | + and returned via `req->ptr`. This memory is freed by `uv_fs_req_cleanup()`. | ||
| 325 | + | ||
| 326 | + .. note:: | ||
| 327 | + Any fields in the resulting `uv_statfs_t` that are not supported by the | ||
| 328 | + underlying operating system are set to zero. | ||
| 329 | + | ||
| 330 | + .. versionadded:: 1.31.0 | ||
| 331 | + | ||
| 293 | 332 | .. c:function:: int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, uv_fs_cb cb) | |
| 294 | 333 | ||
| 295 | 334 | Equivalent to :man:`rename(2)`. | |
@@ -534,6 +573,14 @@ File open constants | |||
| 534 | 573 | ||
| 535 | 574 | .. versionchanged:: 1.17.0 support is added for Windows. | |
| 536 | 575 | ||
| 576 | + .. c:macro:: UV_FS_O_FILEMAP | ||
| 577 | + | ||
| 578 | + Use a memory file mapping to access the file. When using this flag, the | ||
| 579 | + file cannot be open multiple times concurrently. | ||
| 580 | + | ||
| 581 | + .. note:: | ||
| 582 | + `UV_FS_O_FILEMAP` is only supported on Windows. | ||
| 583 | + | ||
| 537 | 584 | .. c:macro:: UV_FS_O_NOATIME | |
| 538 | 585 | ||
| 539 | 586 | Do not update the file access time when the file is read. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -180,6 +180,17 @@ Data types | |||
| 180 | 180 | char machine[256]; | |
| 181 | 181 | } uv_utsname_t; | |
| 182 | 182 | ||
| 183 | + .. c:type:: uv_env_item_t | ||
| 184 | + | ||
| 185 | + Data type for environment variable storage. | ||
| 186 | + | ||
| 187 | + :: | ||
| 188 | + | ||
| 189 | + typedef struct uv_env_item_s { | ||
| 190 | + char* name; | ||
| 191 | + char* value; | ||
| 192 | + } uv_env_item_t; | ||
| 193 | + | ||
| 183 | 194 | ||
| 184 | 195 | API | |
| 185 | 196 | --- | |
@@ -523,6 +534,23 @@ API | |||
| 523 | 534 | ||
| 524 | 535 | .. versionadded:: 1.8.0 | |
| 525 | 536 | ||
| 537 | + .. c:function:: int uv_os_environ(uv_env_item_t** envitems, int* count) | ||
| 538 | + | ||
| 539 | + Retrieves all environment variables. This function will allocate memory | ||
| 540 | + which must be freed by calling :c:func:`uv_os_free_environ`. | ||
| 541 | + | ||
| 542 | + .. warning:: | ||
| 543 | + This function is not thread safe. | ||
| 544 | + | ||
| 545 | + .. versionadded:: 1.31.0 | ||
| 546 | + | ||
| 547 | + .. c:function:: void uv_os_free_environ(uv_env_item_t* envitems, int count); | ||
| 548 | + | ||
| 549 | + Frees the memory allocated for the environment variables by | ||
| 550 | + :c:func:`uv_os_environ`. | ||
| 551 | + | ||
| 552 | + .. versionadded:: 1.31.0 | ||
| 553 | + | ||
| 526 | 554 | .. c:function:: int uv_os_getenv(const char* name, char* buffer, size_t* size) | |
| 527 | 555 | ||
| 528 | 556 | Retrieves the environment variable specified by `name`, copies its value | |
| Back | FazBrowse Home | New Git URL |
0 commit comments