docs/125751: man 3 pthread_getschedparam section ERRORS
brucec at freebsd.org
Tue Feb 22 21:42:01 UTC 2011
According to POSIX EINVAL isn't a valid return value, which is why it's not
documented. It appears that if the parameters are NULL 0 is expected to be
returned; in glibc on Linux if both are NULL then 0 is returned otherwise if
just one is NULL then a segfault occurs.
I'd like to commit the attached patch which I think brings the implementation
more in-line with POSIX: return 0 if either parameters are NULL and return
ESRCH from functions which search for a pthread_t if a thread doesn't exist
regardless of whether it's NULL or otherwise.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 813 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-standards/attachments/20110222/d6a4c924/pthread.bin
More information about the freebsd-standards