xref: /haiku/headers/compatibility/gnu/pthread.h (revision 99d1318ec02694fc520a0dc38ae38565db7e8c3c)
1 /*
2  * Copyright 2019 Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _GNU_PTHREAD_H_
6 #define _GNU_PTHREAD_H_
7 
8 
9 #include_next <pthread.h>
10 
11 
12 #ifdef _GNU_SOURCE
13 
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
20 extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr);
21 
22 extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
23 extern int pthread_setname_np(pthread_t thread, const char* name);
24 
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 
31 #endif
32 
33 
34 #endif	/* _GNU_PTHREAD_H_ */
35 
36