* [PATCH] Add pthread_setname_np() and pthread_getname_np()
@ 2017-01-09 14:15 Sebastian Huber
2017-01-09 15:23 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2017-01-09 14:15 UTC (permalink / raw)
To: newlib; +Cc: Sebastian Huber
The pthread_setname_np() and pthread_getname_np() are GNU extensions and
provided by glibc.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/include/pthread.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index 46f5420..516131d 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -170,6 +170,12 @@ int _EXFUN(pthread_setschedprio, (pthread_t thread, int prio));
#endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
+#if __GNU_VISIBLE
+int pthread_getname_np(pthread_t, char *, size_t) __nonnull(2);
+
+int pthread_setname_np(pthread_t, const char *) __nonnull(2);
+#endif
+
#if defined(_POSIX_THREAD_PRIO_INHERIT) || defined(_POSIX_THREAD_PRIO_PROTECT)
/* Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128 */
--
1.8.4.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Add pthread_setname_np() and pthread_getname_np()
2017-01-09 14:15 [PATCH] Add pthread_setname_np() and pthread_getname_np() Sebastian Huber
@ 2017-01-09 15:23 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2017-01-09 15:23 UTC (permalink / raw)
To: newlib
[-- Attachment #1: Type: text/plain, Size: 226 bytes --]
On Jan 9 15:14, Sebastian Huber wrote:
> The pthread_setname_np() and pthread_getname_np() are GNU extensions and
> provided by glibc.
Applied.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-09 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-09 14:15 [PATCH] Add pthread_setname_np() and pthread_getname_np() Sebastian Huber
2017-01-09 15:23 ` 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).