X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Flibc.h;h=115cd8653b78246cb5835e408a19c95f4f21ef8e;hp=3f1e55e53ac5e4556c2becced197b75e8203f55b;hb=407d933052c310ebc5541dae2ecd8c4bd8f55fb9;hpb=feee98903cd8119d9a3db62589246a940f44a9f5 diff --git a/src/internal/libc.h b/src/internal/libc.h index 3f1e55e5..115cd865 100644 --- a/src/internal/libc.h +++ b/src/internal/libc.h @@ -5,11 +5,9 @@ #include struct __libc { - int *(*errno_location)(void); - void (*testcancel)(void); - void (*lock)(volatile int *); - void (*lockfile)(FILE *); - void (*fork_handler)(int); + void *main_thread; + int threaded; + int canceldisable; int (*atexit)(void (*)(void)); void (*fini)(void); void (*ldso_fini)(void); @@ -37,11 +35,14 @@ extern struct __libc *__libc_loc(void) __attribute__((const)); /* Designed to avoid any overhead in non-threaded processes */ void __lock(volatile int *); -void __lockfile(FILE *); +int __lockfile(FILE *); +void __unlockfile(FILE *); #define LOCK(x) (libc.threads_minus_1 ? (__lock(x),1) : ((void)(x),1)) -#define UNLOCK(x) (*(x)=0) +#define UNLOCK(x) (*(volatile int *)(x)=0) -int __rsyscall(int, long, long, long, long, long, long); +void __synccall(void (*)(void *), void *); +void __synccall_wait(void); +int __setxid(int, int, int, int); extern char **__environ; #define environ __environ