diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-29 23:14:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-29 23:14:57 +0000 |
commit | 62c28b76acd5190377c9311e5ef5009f9df175c5 (patch) | |
tree | ef058610ccc8e7d489ac99c1bdecfff75b2eb5ae /newlib/libc/include/sys/cdefs.h | |
parent | 8116e5e59b4a652db82ad0923683c569017599a9 (diff) | |
download | cygnal-62c28b76acd5190377c9311e5ef5009f9df175c5.tar.gz cygnal-62c28b76acd5190377c9311e5ef5009f9df175c5.tar.bz2 cygnal-62c28b76acd5190377c9311e5ef5009f9df175c5.zip |
2013-11-29 Jennifer Averett <jennifer.averett@oarcorp.com>
* libc/include/pthread.h (pthread_attr_setaffinity_np):
Add pthread SMP affinity attributes to methods to RTEMS for
compatibility with GNU/Linux.
(pthread_attr_getaffinity_np): Likewise.
(pthread_setaffinity_np): Likewise.
(pthread_getaffinity_np): Likewise.
(pthread_getattr_np): Add for GNU/Linux compatibility.
* libc/include/sys/types.h: Add cpuset to pthread_attr_t for RTEMS.
* libc/include/sys/cdefs.h (_GNU_SOURCE): Defining _GNU_SOURCE
turns on all _XXX_VISBLE feature flags.
Diffstat (limited to 'newlib/libc/include/sys/cdefs.h')
-rw-r--r-- | newlib/libc/include/sys/cdefs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h index 38616834e..4a7339c79 100644 --- a/newlib/libc/include/sys/cdefs.h +++ b/newlib/libc/include/sys/cdefs.h @@ -693,7 +693,13 @@ #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 2011 -#else /* Default environment: show everything. */ +#elif defined(_GNU_SOURCE) /* Everything and the kitchen sink. */ +#define __POSIX_VISIBLE 200809 +#define __XSI_VISIBLE 700 +#define __BSD_VISIBLE 1 +#define __ISO_C_VISIBLE 2011 +#define __GNU_VISIBLE 1 +#else /* Default: everything except __GNU_VISIBLE. */ #define __POSIX_VISIBLE 200809 #define __XSI_VISIBLE 700 #define __BSD_VISIBLE 1 |