pkarashchenko commented on issue #1027:
URL: 
https://github.com/apache/incubator-nuttx/issues/1027#issuecomment-1155408495

   For the most of the cases when API is not a cancellation point it is easy to 
make NX API as a system call and create a libc wrapper that will handle `errno` 
correctly. The real problem is cancellation point APIs (the APIs that pend). 
The cancellation point enter/leave should be executed n kernel mode, so I do 
not see any other option that creating a two variants of the same API that 
differ only with cancellation point management and expose both as system calls.
   
   Again that contradicts assumption that only POSIX APIs are a system calls. 
Anyway we already have many NX APIs as system calls, so I think we can make 
whatever is convenient to be used.


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to