mirror of
https://github.com/fluencelabs/musl
synced 2025-06-24 20:21:59 +00:00
implement flockfile api, rework stdio locking
This commit is contained in:
9
src/stdio/flockfile.c
Normal file
9
src/stdio/flockfile.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include "stdio_impl.h"
|
||||
#include "pthread_impl.h"
|
||||
|
||||
void flockfile(FILE *f)
|
||||
{
|
||||
pthread_self();
|
||||
libc.lockfile = __lockfile;
|
||||
__lockfile(f);
|
||||
}
|
Reference in New Issue
Block a user