44cceee67e
- These two functions imported for Linux/BSD compability. Signed-off-by: Han Pengfei <pengphei@qq.com> Change-Id: I3e9cada26f1ed043bfaed83e8185dcfff3bd71e2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5746 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
36 lines
537 B
C
36 lines
537 B
C
/*
|
|
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _GNU_PTHREAD_H_
|
|
#define _GNU_PTHREAD_H_
|
|
|
|
|
|
#include_next <pthread.h>
|
|
|
|
|
|
#ifdef _GNU_SOURCE
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr);
|
|
|
|
extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
|
|
extern int pthread_setname_np(pthread_t thread, const char* name);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _GNU_PTHREAD_H_ */
|
|
|