This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Document pthread_[gs]etattr_default_np in the manual
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 14 Jun 2013 14:07:17 -0700 (PDT)
- Subject: Re: [PATCH] Document pthread_[gs]etattr_default_np in the manual
- References: <20130614030050 dot GF19582 at spoyarek dot pnq dot redhat dot com>
> +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