v01d opened a new issue #3335:
URL: https://github.com/apache/incubator-nuttx/issues/3335


   ```
     Description: In NuttX, the errno value is unique for each thread.  But for
                  bug-for-bug compatibility, the same errno should be shared by
                  the task and each thread that it creates.  It is *very* easy
                  to make this change:  Just move the tls_errno field from
                  struct tls_info_s to struct task_group_s.   However, I am 
still
                  not sure if this should be done or not.
                  NOTE: glibc behaves this way unless __thread is defined then,
                  in that case, it behaves like NuttX (using TLS to save the
                  thread local errno).
     Status:      Closed.  The existing solution is better and compatible with
                  thread-aware GLIBC (although its incompatibilities could show
                  up in porting some code).  I will retain this issue for
                  reference only.
     Priority:    N/A
   ```


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to