pthread: add pthread_{getname_np,setname_npp}

- These two functions imported for Linux/BSD compability.

Signed-off-by: Han Pengfei <[email protected]>
Change-Id: I3e9cada26f1ed043bfaed83e8185dcfff3bd71e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5746
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Han Pengfei
2022-10-18 16:30:54 +00:00
committed by Jérôme Duval
parent 8e17b43da6
commit 44cceee67e
5 changed files with 42 additions and 0 deletions
+3
View File
@@ -19,6 +19,9 @@ extern "C" {
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
}