* [PATCH] Declare GNU-specific sched_getcpu()
@ 2018-08-07 12:11 Sebastian Huber
2018-08-07 21:28 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2018-08-07 12:11 UTC (permalink / raw)
To: newlib
This is a glibc extension.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/include/sched.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/include/sched.h b/newlib/libc/include/sched.h
index 504ad5274..1016235bb 100644
--- a/newlib/libc/include/sched.h
+++ b/newlib/libc/include/sched.h
@@ -90,6 +90,10 @@ int sched_yield( void );
#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
+#if __GNU_VISIBLE
+int sched_getcpu(void);
+#endif
+
#ifdef __cplusplus
}
#endif
--
2.13.7
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Declare GNU-specific sched_getcpu()
2018-08-07 12:11 [PATCH] Declare GNU-specific sched_getcpu() Sebastian Huber
@ 2018-08-07 21:28 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2018-08-07 21:28 UTC (permalink / raw)
To: newlib
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
On Aug 7 13:49, Sebastian Huber wrote:
> This is a glibc extension.
>
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---
> newlib/libc/include/sched.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/newlib/libc/include/sched.h b/newlib/libc/include/sched.h
> index 504ad5274..1016235bb 100644
> --- a/newlib/libc/include/sched.h
> +++ b/newlib/libc/include/sched.h
> @@ -90,6 +90,10 @@ int sched_yield( void );
>
> #endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
>
> +#if __GNU_VISIBLE
> +int sched_getcpu(void);
> +#endif
> +
> #ifdef __cplusplus
> }
> #endif
> --
> 2.13.7
Please apply.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-07 12:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-07 12:11 [PATCH] Declare GNU-specific sched_getcpu() Sebastian Huber
2018-08-07 21:28 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).