1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibPthread: Fix incompatible pthread_setname_np(), pthread_getname_np()

Other implementations of pthread_setname_np() do not take the name
length as an argument.

For pthread_getname_np(), other implementations take the buffer size
as a size_t.

This patch brings us in line with other implementations.
This commit is contained in:
Andreas Kling 2020-01-11 12:54:30 +01:00
parent 24c736b0e7
commit eede6cfd06
3 changed files with 8 additions and 14 deletions

View file

@ -82,7 +82,7 @@ int pthread_mutexattr_init(pthread_mutexattr_t*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int);
int pthread_mutexattr_destroy(pthread_mutexattr_t*);
int pthread_setname_np(pthread_t, const char*, int);
int pthread_getname_np(pthread_t, char*, int);
int pthread_setname_np(pthread_t, const char*);
int pthread_getname_np(pthread_t, char*, size_t);
__END_DECLS