Discussion:
[PATCH] Declare GNU-specific sched_getcpu()
Sebastian Huber
2018-08-07 11:49:52 UTC
Permalink
This is a glibc extension.

Signed-off-by: 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
Corinna Vinschen
2018-08-07 12:11:28 UTC
Permalink
Post by Sebastian Huber
This is a glibc extension.
---
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
Loading...