Changeset a7d696f for libcfa/src/bits


Ignore:
Timestamp:
Aug 3, 2022, 6:32:06 PM (2 years ago)
Author:
z277zhu <z277zhu@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
20be782
Parents:
80d16f8
git-author:
z277zhu <z277zhu@…> (08/03/22 18:24:16)
git-committer:
z277zhu <z277zhu@…> (08/03/22 18:32:06)
Message:

added pthread symbol interpose

Signed-off-by: z277zhu <z277zhu@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/defs.hfa

    r80d16f8 ra7d696f  
    2121#include <stdint.h>
    2222#include <assert.h>
     23#include <pthread.h>
    2324
    2425#define likely(x)   __builtin_expect(!!(x), 1)
     
    4546#endif
    4647void __cabi_abort( const char fmt[], ... ) __attribute__ (( format(printf, 1, 2), __nothrow__, __leaf__, __noreturn__ ));
     48int real_pthread_create(pthread_t *_thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);
     49int real_pthread_join(pthread_t _thread, void **retval);
     50pthread_t real_pthread_self(void);
     51int real_pthread_mutex_init(pthread_mutex_t *_mutex, const pthread_mutexattr_t *attr);
     52int real_pthread_mutex_destroy(pthread_mutex_t *_mutex);
     53int real_pthread_mutex_lock(pthread_mutex_t *_mutex);
     54int real_pthread_mutex_unlock(pthread_mutex_t *_mutex);
     55int real_pthread_mutex_trylock(pthread_mutex_t *_mutex);
     56int real_pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);
     57int real_pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *_mutex);
     58int real_pthread_cond_signal(pthread_cond_t *cond);
     59int real_pthread_cond_broadcast(pthread_cond_t *cond);
     60int real_pthread_cond_destroy(pthread_cond_t *cond);
     61int real_pthread_attr_init(pthread_attr_t *attr);
     62int real_pthread_attr_destroy(pthread_attr_t *attr);
     63int real_pthread_attr_setstack( pthread_attr_t *attr, void *stackaddr, size_t stacksize );
     64int real_pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize );
    4765#ifdef __cforall
    4866}
Note: See TracChangeset for help on using the changeset viewer.