X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Flibc.h;h=be88dc04c28cafd6a02c3ed73f6a70b4a8fb67a2;hp=3d09bf6aba35bfe1d0c0d00df5783dd6b13beb0a;hb=729cb49f52c825ac44f437e1ff0865d9f0b3626a;hpb=5eb0d33ec0f08b123c5c10877d6258d05fa9453a diff --git a/src/internal/libc.h b/src/internal/libc.h index 3d09bf6a..be88dc04 100644 --- a/src/internal/libc.h +++ b/src/internal/libc.h @@ -5,19 +5,18 @@ #include struct __libc { - void (*lock)(volatile int *); + int *(*errno_location)(void); void (*cancelpt)(int); + void (*lock)(volatile int *); + void (*lockfile)(FILE *); + void (*fork_handler)(int); + int (*rsyscall)(int, long, long, long, long, long, long); int (*atexit)(void (*)(void)); void (*fini)(void); void (*ldso_fini)(void); - int *(*errno_location)(void); volatile int threads_minus_1; - int (*rsyscall)(int, long, long, long, long, long, long); - void (**tsd_keys)(void *); - void (*fork_handler)(int); - FILE *ofl_head; int ofl_lock; - void (*lockfile)(FILE *); + FILE *ofl_head; }; @@ -44,7 +43,10 @@ void __lockfile(FILE *); #define UNLOCK(x) (*(x)=0) #define CANCELPT(x) (libc.cancelpt ? libc.cancelpt((x)),0 : (void)(x),0) #define CANCELPT_BEGIN CANCELPT(1) -#define CANCELPT_END CANCELPT(0) +#define CANCELPT_TRY CANCELPT(0) +#define CANCELPT_END CANCELPT(-1) +#define CANCELPT_INHIBIT CANCELPT(2) +#define CANCELPT_RESUME CANCELPT(-2) extern char **__environ; #define environ __environ