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/03/28 01:17:54 UTC

[GitHub] [incubator-nuttx] v01d opened a new issue #3206: sem_wait (and others) return -errno instead of -1 and setting errno

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


   As per opengroup:
   
   > The sem_wait() and sem_trywait() functions return zero if the calling process successfully performed the semaphore lock operation on the semaphore designated by sem. If the call was unsuccessful, the state of the semaphore is unchanged, and the function returns a value of -1 and sets errno to indicate the error. 
   
   I guess while this could be a simple change it could be breaking since many parts of the code may be assuming the current behavior.


-- 
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:
users@infra.apache.org



[GitHub] [incubator-nuttx] v01d commented on issue #3206: sem_wait (and others) return -errno instead of -1 and setting errno

Posted by GitBox <gi...@apache.org>.
v01d commented on issue #3206:
URL: https://github.com/apache/incubator-nuttx/issues/3206#issuecomment-808827989


   Sorry, I was wrong.


-- 
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:
users@infra.apache.org



[GitHub] [incubator-nuttx] v01d edited a comment on issue #3206: sem_wait (and others) return -errno instead of -1 and setting errno

Posted by GitBox <gi...@apache.org>.
v01d edited a comment on issue #3206:
URL: https://github.com/apache/incubator-nuttx/issues/3206#issuecomment-808827989


   Sorry, I was wrong. Code is OK, just wasn't looking at it correctly.


-- 
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:
users@infra.apache.org



[GitHub] [incubator-nuttx] v01d closed issue #3206: sem_wait (and others) return -errno instead of -1 and setting errno

Posted by GitBox <gi...@apache.org>.
v01d closed issue #3206:
URL: https://github.com/apache/incubator-nuttx/issues/3206


   


-- 
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:
users@infra.apache.org