[PATCH] Document pthread_[gs]etattr_default_np in the manual

Roland McGrath roland@hack.frob.com
Fri Jun 14 21:07:00 GMT 2013


> +The @glibcadj{} provides non-standard API functions to set and get the default

This should use @Theglibc{}.

> +@deftypefun int pthread_getattr_default_np (pthread_attr_t *@var{attr})
> +Get the default attribute values and set @var{attr} to match.  This function
> +is guaranteed not to fail.
> +@end deftypefun

If it's guaranteed not to fail it should return void.  We want it to return
an error code (int) for consistency with the rest of the API.  That means
we reserve the right for it to have ways to fail, even if there are no
specific error conditions we document.


Thanks,
Roland



More information about the Libc-alpha mailing list