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:
parent
cfa64a86d1
commit
7b3d8b9485
|
@ -41,7 +41,7 @@ extern "C" {
|
||||||
#else
|
#else
|
||||||
#include "../tlsoffsets.h"
|
#include "../tlsoffsets.h"
|
||||||
#endif
|
#endif
|
||||||
__attribute__((gnu_inline))
|
__attribute__((__gnu_inline__))
|
||||||
extern inline struct _reent *__getreent (void)
|
extern inline struct _reent *__getreent (void)
|
||||||
{
|
{
|
||||||
register char *ret;
|
register char *ret;
|
||||||
|
|
|
@ -46,7 +46,7 @@ struct _fpstate
|
||||||
__uint32_t padding[24];
|
__uint32_t padding[24];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct __attribute__ ((aligned (16))) __mcontext
|
struct __attribute__ ((__aligned__ (16))) __mcontext
|
||||||
{
|
{
|
||||||
__uint64_t p1home;
|
__uint64_t p1home;
|
||||||
__uint64_t p2home;
|
__uint64_t p2home;
|
||||||
|
|
|
@ -223,8 +223,8 @@ void pthread_testcancel (void);
|
||||||
|
|
||||||
#if __GNU_VISIBLE
|
#if __GNU_VISIBLE
|
||||||
int pthread_getattr_np (pthread_t, pthread_attr_t *);
|
int pthread_getattr_np (pthread_t, pthread_attr_t *);
|
||||||
int pthread_getname_np (pthread_t, char *, size_t) __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_setname_np (pthread_t, const char *) __attribute__((__nonnull__(2)));
|
||||||
int pthread_sigqueue (pthread_t *, int, const union sigval);
|
int pthread_sigqueue (pthread_t *, int, const union sigval);
|
||||||
int pthread_yield (void);
|
int pthread_yield (void);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -13,7 +13,7 @@ details. */
|
||||||
|
|
||||||
typedef struct __mcontext mcontext_t;
|
typedef struct __mcontext mcontext_t;
|
||||||
|
|
||||||
typedef __attribute__ ((aligned (16))) struct __ucontext {
|
typedef __attribute__ ((__aligned__ (16))) struct __ucontext {
|
||||||
mcontext_t uc_mcontext;
|
mcontext_t uc_mcontext;
|
||||||
struct __ucontext *uc_link;
|
struct __ucontext *uc_link;
|
||||||
sigset_t uc_sigmask;
|
sigset_t uc_sigmask;
|
||||||
|
|
Loading…
Reference in New Issue