Stub __block_all_sigs/__restore_sigs, and raise

This commit is contained in:
Yury Delendik 2018-10-11 15:02:17 -05:00
parent 82060f29f6
commit 45757ea824
5 changed files with 13 additions and 0 deletions

View File

@ -12,3 +12,8 @@ static inline struct pthread *__pthread_self(void) {
static inline void __wait(volatile int *addr, volatile int *waiters, int cnt, int priv) {}
static inline void __wake(volatile void *addr, int cnt, int priv) {}
static inline void __futexwait(volatile void *addr, int val, int priv) {}
#define __block_all_sigs __block_all_sigs
static inline void __block_all_sigs(void *set) {}
static inline void __block_app_sigs(void *set) {}
static inline void __restore_sigs(void *set) {}

View File

@ -172,9 +172,11 @@ void __acquire_ptc(void);
void __release_ptc(void);
void __inhibit_ptc(void);
#ifndef __block_all_sigs
void __block_all_sigs(void *);
void __block_app_sigs(void *);
void __restore_sigs(void *);
#endif
#define DEFAULT_STACK_SIZE 81920
#define DEFAULT_GUARD_SIZE 4096

View File

@ -0,0 +1 @@
#include "pthread_impl.h"

View File

@ -0,0 +1,3 @@
#include <signal.h>
int raise(int sig) { }

View File

@ -0,0 +1,2 @@
#include "pthread_impl.h"