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#include <features.h> 11 12#ifdef _GNU_SOURCE 13 14 15#ifdef __cplusplus 16extern "C" { 17#endif 18 19 20extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr); 21 22extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length); 23extern 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