implement flockfile api, rework stdio locking
This commit is contained in:
parent
d8d19f4d46
commit
5eb0d33ec0
9 changed files with 66 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue