You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/09/17 09:56:45 UTC

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #854: system/libuv: Bump to v1.42.0

xiaoxiang781216 commented on a change in pull request #854:
URL: https://github.com/apache/incubator-nuttx-apps/pull/854#discussion_r710920736



##########
File path: system/libuv/0001-unix-check-wehter-SIGPROF-exists.patch
##########
@@ -0,0 +1,48 @@
+From 6aba4ab8a44c73e1a771cdffea3588e09f71ec22 Mon Sep 17 00:00:00 2001
+From: Huang Qi <hu...@xiaomi.com>
+Date: Mon, 12 Apr 2021 12:13:43 +0800
+Subject: [PATCH 1/6] unix: check wehter SIGPROF exists
+
+Signed-off-by: Huang Qi <hu...@xiaomi.com>
+Change-Id: I676ab6d271d1a224e3e570e27f15072a3bb23de4
+---
+ src/unix/loop.c       | 2 ++
+ src/unix/posix-poll.c | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/src/unix/loop.c b/src/unix/loop.c
+index a88e71c3..dad463b3 100644
+--- a/src/unix/loop.c
++++ b/src/unix/loop.c
+@@ -220,8 +220,10 @@ int uv__loop_configure(uv_loop_t* loop, uv_loop_option option, va_list ap) {
+   if (option != UV_LOOP_BLOCK_SIGNAL)
+     return UV_ENOSYS;
+ 
++#ifdef SIGPROF

Review comment:
       the change is general, let's upstream to libuv community.

##########
File path: system/libuv/0003-nuttx-initial-support.patch
##########
@@ -0,0 +1,171 @@
+From 9a33511642a63ccd0f862ed97597666438d44d23 Mon Sep 17 00:00:00 2001
+From: Huang Qi <hu...@xiaomi.com>
+Date: Fri, 19 Mar 2021 18:36:29 +0800
+Subject: [PATCH 3/6] nuttx: initial support
+
+Signed-off-by: Huang Qi <hu...@xiaomi.com>
+Change-Id: Ib680de8d8d5b4612e4f58cd37ff1398b4b73a7e1
+---
+ include/uv/unix.h |  2 ++
+ src/random.c      |  2 +-
+ src/threadpool.c  |  2 +-
+ src/unix/core.c   |  2 +-
+ src/unix/nuttx.c  | 45 +++++++++++++++++++++++++++++++++++++++++++++
+ src/unix/signal.c |  3 ++-
+ src/unix/udp.c    |  8 +++++---
+ 7 files changed, 57 insertions(+), 7 deletions(-)
+ create mode 100644 src/unix/nuttx.c
+
+diff --git a/include/uv/unix.h b/include/uv/unix.h
+index e3cf7bdd..bf8dc32c 100644
+--- a/include/uv/unix.h
++++ b/include/uv/unix.h
+@@ -71,6 +71,8 @@
+ # include "uv/posix.h"
+ #elif defined(__QNX__)
+ # include "uv/posix.h"
++#elif defined(__NuttX__)

Review comment:
       let's upstream NuttX specific change to libuv community too.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org