RTEMS | pthread_sigmask should return error number when fail (!546)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Jul 16 15:48:56 UTC 2025




Joel Sherrill started a new discussion on cpukit/posix/src/pthreadsigmask.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/546#note_126636

 >    POSIX_API_Control  *api;
 >  
 >    if ( !set && !oset )
 > -    rtems_set_errno_and_return_minus_one( EINVAL );

Per POSIX, pthread_sigmask() should return the error not -1. It also should not set errno at all.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/546#note_126636
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250716/cc1dd5fd/attachment-0001.htm>


More information about the bugs mailing list