Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-24 Thread via GitHub
xiaoxiang781216 commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2228637029 ## arch/sim/src/sim/posix/sim_host_v4l2.c: ## @@ -187,7 +189,7 @@ int host_video_start_capture(struct host_video_dev_s *vdev) if (-1 == host_video_ioctl(vdev

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-23 Thread via GitHub
xiaoxiang781216 commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2226013927 ## arch/sim/src/sim/posix/sim_hostusrsock.c: ## @@ -234,7 +234,7 @@ static int host_usrsock_sockopt(int sockfd, int level, int optname, ret = getsockopt

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-23 Thread via GitHub
xiaoxiang781216 commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2224601413 ## include/nuttx/errno_lookup.h: ## @@ -0,0 +1,174 @@ +/ + * include/nuttx/errno_loo

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-07 Thread via GitHub
jerpelea commented on PR #1: URL: https://github.com/apache/nuttx/pull/1#issuecomment-3044644092 Warning: /home/runner/work/nuttx/nuttx/nuttx/arch/sim/src/sim/posix/sim_errno.c:312:1: warning: #include outside of 'Included Files' section Warning: /home/runner/work/nuttx/nuttx/nu

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-04 Thread via GitHub
acassis commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2185322071 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/posix/si

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-04 Thread via GitHub
jasonbu commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2185203130 ## arch/sim/src/sim/win/sim_errno.c: ## @@ -0,0 +1,37 @@ +/ + * arch/sim/src/sim/win/sim_err

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-04 Thread via GitHub
xiaoxiang781216 commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2184938694 ## arch/sim/src/sim/win/sim_errno.c: ## @@ -0,0 +1,37 @@ +/ + * arch/sim/src/sim/win

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
jasonbu commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2184532539 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/posix/si

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
xiaoxiang781216 commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2183436185 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
jasonbu commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2182385758 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/posix/si

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
yamt commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2182237446 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/posix/sim_e

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
yamt commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2182235472 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/posix/sim_e

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
jasonbu commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2182143181 ## arch/sim/src/sim/posix/sim_errno.c: ## @@ -0,0 +1,336 @@ +/ + * arch/sim/src/sim/posix/si

Re: [PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-03 Thread via GitHub
xiaoxiang781216 commented on code in PR #1: URL: https://github.com/apache/nuttx/pull/1#discussion_r2182079887 ## include/nuttx/errno_lookup.h: ## @@ -0,0 +1,179 @@ +/ + * include/nuttx/errno_loo

[PR] reduce the dup of errno and errno str, add host_errno_convert method [nuttx]

2025-07-02 Thread via GitHub
jasonbu opened a new pull request, #1: URL: https://github.com/apache/nuttx/pull/1 ## Summary According to talking in #15579, We need a errno_convert from host defined errno macro value to nuttx defined errno macro value. Also the errno and errno str is duplicate in errno.