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:
@ -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
|
||||
|
Reference in New Issue
Block a user