提交 9862beed authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Update deps

上级 2ffeba66
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
}, },
"devDependencies": { "devDependencies": {
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-plugin-jest": "^22.5.1", "eslint-plugin-jest": "^22.6.4",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-clang-format": "^1.0.27", "gulp-clang-format": "^1.0.27",
"jest": "^24.8.0", "jest": "^24.8.0",
......
2019.05.16, Version 1.29.0 (Stable) 2019.05.22, Version 1.29.1 (Stable)
Changes since version 1.29.0:
* unix: simplify uv/posix.h include logic (cjihrig)
* test: increase test timeout (cjihrig)
* linux: fix sscanf() overflows reading from /proc (Ben Noordhuis)
2019.05.16, Version 1.29.0 (Stable), 43957efd92c167b352b4c948b617ca7afbee0ed1
Changes since version 1.28.0: Changes since version 1.28.0:
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_PREREQ(2.57) AC_PREREQ(2.57)
AC_INIT([libuv], [1.29.0], [https://github.com/libuv/libuv/issues]) AC_INIT([libuv], [1.29.1], [https://github.com/libuv/libuv/issues])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
m4_include([m4/libuv-extra-automake-flags.m4]) m4_include([m4/libuv-extra-automake-flags.m4])
m4_include([m4/as_case.m4]) m4_include([m4/as_case.m4])
......
...@@ -49,8 +49,6 @@ ...@@ -49,8 +49,6 @@
# include "uv/linux.h" # include "uv/linux.h"
#elif defined (__MVS__) #elif defined (__MVS__)
# include "uv/os390.h" # include "uv/os390.h"
#elif defined(__PASE__)
# include "uv/posix.h"
#elif defined(_AIX) #elif defined(_AIX)
# include "uv/aix.h" # include "uv/aix.h"
#elif defined(__sun) #elif defined(__sun)
...@@ -63,9 +61,10 @@ ...@@ -63,9 +61,10 @@
defined(__OpenBSD__) || \ defined(__OpenBSD__) || \
defined(__NetBSD__) defined(__NetBSD__)
# include "uv/bsd.h" # include "uv/bsd.h"
#elif defined(__CYGWIN__) || defined(__MSYS__) #elif defined(__PASE__) || \
# include "uv/posix.h" defined(__CYGWIN__) || \
#elif defined(__GNU__) defined(__MSYS__) || \
defined(__GNU__)
# include "uv/posix.h" # include "uv/posix.h"
#endif #endif
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#define UV_VERSION_MAJOR 1 #define UV_VERSION_MAJOR 1
#define UV_VERSION_MINOR 29 #define UV_VERSION_MINOR 29
#define UV_VERSION_PATCH 0 #define UV_VERSION_PATCH 1
#define UV_VERSION_IS_RELEASE 1 #define UV_VERSION_IS_RELEASE 1
#define UV_VERSION_SUFFIX "" #define UV_VERSION_SUFFIX ""
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "uv.h" #include "uv.h"
#include "internal.h" #include "internal.h"
#include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -79,7 +80,7 @@ static int read_times(FILE* statfile_fp, ...@@ -79,7 +80,7 @@ static int read_times(FILE* statfile_fp,
unsigned int numcpus, unsigned int numcpus,
uv_cpu_info_t* ci); uv_cpu_info_t* ci);
static void read_speeds(unsigned int numcpus, uv_cpu_info_t* ci); static void read_speeds(unsigned int numcpus, uv_cpu_info_t* ci);
static unsigned long read_cpufreq(unsigned int cpunum); static uint64_t read_cpufreq(unsigned int cpunum);
int uv__platform_loop_init(uv_loop_t* loop) { int uv__platform_loop_init(uv_loop_t* loop) {
...@@ -719,20 +720,20 @@ static int read_models(unsigned int numcpus, uv_cpu_info_t* ci) { ...@@ -719,20 +720,20 @@ static int read_models(unsigned int numcpus, uv_cpu_info_t* ci) {
static int read_times(FILE* statfile_fp, static int read_times(FILE* statfile_fp,
unsigned int numcpus, unsigned int numcpus,
uv_cpu_info_t* ci) { uv_cpu_info_t* ci) {
unsigned long clock_ticks;
struct uv_cpu_times_s ts; struct uv_cpu_times_s ts;
unsigned long user; uint64_t clock_ticks;
unsigned long nice; uint64_t user;
unsigned long sys; uint64_t nice;
unsigned long idle; uint64_t sys;
unsigned long dummy; uint64_t idle;
unsigned long irq; uint64_t dummy;
unsigned int num; uint64_t irq;
unsigned int len; uint64_t num;
uint64_t len;
char buf[1024]; char buf[1024];
clock_ticks = sysconf(_SC_CLK_TCK); clock_ticks = sysconf(_SC_CLK_TCK);
assert(clock_ticks != (unsigned long) -1); assert(clock_ticks != (uint64_t) -1);
assert(clock_ticks != 0); assert(clock_ticks != 0);
rewind(statfile_fp); rewind(statfile_fp);
...@@ -765,7 +766,8 @@ static int read_times(FILE* statfile_fp, ...@@ -765,7 +766,8 @@ static int read_times(FILE* statfile_fp,
* fields, they're not allowed in C89 mode. * fields, they're not allowed in C89 mode.
*/ */
if (6 != sscanf(buf + len, if (6 != sscanf(buf + len,
"%lu %lu %lu %lu %lu %lu", "%" PRIu64 " %" PRIu64 " %" PRIu64
"%" PRIu64 " %" PRIu64 " %" PRIu64,
&user, &user,
&nice, &nice,
&sys, &sys,
...@@ -787,8 +789,8 @@ static int read_times(FILE* statfile_fp, ...@@ -787,8 +789,8 @@ static int read_times(FILE* statfile_fp,
} }
static unsigned long read_cpufreq(unsigned int cpunum) { static uint64_t read_cpufreq(unsigned int cpunum) {
unsigned long val; uint64_t val;
char buf[1024]; char buf[1024];
FILE* fp; FILE* fp;
...@@ -801,7 +803,7 @@ static unsigned long read_cpufreq(unsigned int cpunum) { ...@@ -801,7 +803,7 @@ static unsigned long read_cpufreq(unsigned int cpunum) {
if (fp == NULL) if (fp == NULL)
return 0; return 0;
if (fscanf(fp, "%lu", &val) != 1) if (fscanf(fp, "%" PRIu64, &val) != 1)
val = 0; val = 0;
fclose(fp); fclose(fp);
...@@ -942,7 +944,7 @@ void uv__set_process_title(const char* title) { ...@@ -942,7 +944,7 @@ void uv__set_process_title(const char* title) {
static uint64_t uv__read_proc_meminfo(const char* what) { static uint64_t uv__read_proc_meminfo(const char* what) {
unsigned long rc; uint64_t rc;
ssize_t n; ssize_t n;
char* p; char* p;
int fd; int fd;
...@@ -967,7 +969,7 @@ static uint64_t uv__read_proc_meminfo(const char* what) { ...@@ -967,7 +969,7 @@ static uint64_t uv__read_proc_meminfo(const char* what) {
p += strlen(what); p += strlen(what);
if (1 != sscanf(p, "%lu kB", &rc)) if (1 != sscanf(p, "%" PRIu64 " kB", &rc))
goto out; goto out;
rc *= 1024; rc *= 1024;
...@@ -1032,7 +1034,7 @@ static uint64_t uv__read_cgroups_uint64(const char* cgroup, const char* param) { ...@@ -1032,7 +1034,7 @@ static uint64_t uv__read_cgroups_uint64(const char* cgroup, const char* param) {
if (n > 0) { if (n > 0) {
buf[n] = '\0'; buf[n] = '\0';
sscanf(buf, "%llu", &rc); sscanf(buf, "%" PRIu64, &rc);
} }
if (uv__close_nocheckstdio(fd)) if (uv__close_nocheckstdio(fd))
......
...@@ -963,7 +963,7 @@ TASK_LIST_START ...@@ -963,7 +963,7 @@ TASK_LIST_START
TEST_ENTRY (strscpy) TEST_ENTRY (strscpy)
TEST_ENTRY (threadpool_queue_work_simple) TEST_ENTRY (threadpool_queue_work_simple)
TEST_ENTRY (threadpool_queue_work_einval) TEST_ENTRY (threadpool_queue_work_einval)
TEST_ENTRY (threadpool_multiple_event_loops) TEST_ENTRY_CUSTOM (threadpool_multiple_event_loops, 0, 0, 60000)
TEST_ENTRY (threadpool_cancel_getaddrinfo) TEST_ENTRY (threadpool_cancel_getaddrinfo)
TEST_ENTRY (threadpool_cancel_getnameinfo) TEST_ENTRY (threadpool_cancel_getnameinfo)
TEST_ENTRY (threadpool_cancel_work) TEST_ENTRY (threadpool_cancel_work)
......
...@@ -76,7 +76,7 @@ function get_netstring() ...@@ -76,7 +76,7 @@ function get_netstring()
function get_libuv() function get_libuv()
{ {
GIT_REPO="https://github.com/libuv/libuv.git" GIT_REPO="https://github.com/libuv/libuv.git"
GIT_TAG="v1.29.0" GIT_TAG="v1.29.1"
DEST="deps/libuv" DEST="deps/libuv"
get_dep "${GIT_REPO}" "${GIT_TAG}" "${DEST}" get_dep "${GIT_REPO}" "${GIT_TAG}" "${DEST}"
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论