implement flockfile api, rework stdio locking

This commit is contained in:
Rich Felker
2011-03-12 21:55:45 -05:00
parent d8d19f4d46
commit 5eb0d33ec0
9 changed files with 66 additions and 15 deletions

View File

@ -150,6 +150,7 @@ static void init_threads()
{
struct sigaction sa = { .sa_flags = SA_SIGINFO | SA_RESTART };
libc.lock = __lock;
libc.lockfile = __lockfile;
libc.cancelpt = cancelpt;
libc.rsyscall = rsyscall;
sa.sa_sigaction = cancel_handler;