mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:57:35 +00:00
LibC: Remove a bunch of weak pthread_*
symbols
This commit is contained in:
parent
cf4b7e343a
commit
224ac1a307
8 changed files with 67 additions and 137 deletions
|
@ -18,21 +18,10 @@ void __pthread_fork_atfork_register_prepare(void (*)(void));
|
|||
void __pthread_fork_atfork_register_parent(void (*)(void));
|
||||
void __pthread_fork_atfork_register_child(void (*)(void));
|
||||
|
||||
int __pthread_mutex_init(pthread_mutex_t*, pthread_mutexattr_t const*);
|
||||
int __pthread_mutex_lock(pthread_mutex_t*);
|
||||
int __pthread_mutex_trylock(pthread_mutex_t*);
|
||||
int __pthread_mutex_lock_pessimistic_np(pthread_mutex_t*);
|
||||
int __pthread_mutex_unlock(pthread_mutex_t*);
|
||||
|
||||
typedef void (*KeyDestructor)(void*);
|
||||
|
||||
int __pthread_key_create(pthread_key_t*, KeyDestructor);
|
||||
int __pthread_key_delete(pthread_key_t);
|
||||
void* __pthread_getspecific(pthread_key_t);
|
||||
int __pthread_setspecific(pthread_key_t, void const*);
|
||||
|
||||
int __pthread_self(void);
|
||||
|
||||
void __pthread_key_destroy_for_current_thread(void);
|
||||
|
||||
#define __PTHREAD_MUTEX_NORMAL 0
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <LibC/bits/FILE.h>
|
||||
#include <LibC/bits/pthread_integration.h>
|
||||
#include <LibC/bits/wchar.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#pragma once
|
||||
|
@ -21,7 +22,7 @@ public:
|
|||
, m_mode(mode)
|
||||
{
|
||||
pthread_mutexattr_t attr = { __PTHREAD_MUTEX_RECURSIVE };
|
||||
__pthread_mutex_init(&m_mutex, &attr);
|
||||
pthread_mutex_init(&m_mutex, &attr);
|
||||
}
|
||||
~FILE();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue