headers: avoid bareword attributes

Always use the __-decorated form of an attribute name in public
headers, as the bareword form is in the user's namespace, and we
don't want compilation to break just because the user defines the
bareword to mean something else.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Eric Blake
2017-08-16 20:39:18 -05:00
parent cfa64a86d1
commit 7b3d8b9485
4 changed files with 5 additions and 5 deletions

View File

@ -223,8 +223,8 @@ void pthread_testcancel (void);
#if __GNU_VISIBLE
int pthread_getattr_np (pthread_t, pthread_attr_t *);
int pthread_getname_np (pthread_t, char *, size_t) __attribute__((nonnull(2)));
int pthread_setname_np (pthread_t, const char *) __attribute__((nonnull(2)));
int pthread_getname_np (pthread_t, char *, size_t) __attribute__((__nonnull__(2)));
int pthread_setname_np (pthread_t, const char *) __attribute__((__nonnull__(2)));
int pthread_sigqueue (pthread_t *, int, const union sigval);
int pthread_yield (void);
#endif