-rw-r--r-- | src/stdio/flockfile.c | 9 |
diff --git a/src/stdio/flockfile.c b/src/stdio/flockfile.c new file mode 100644 index 00000000..1b6ef580 --- /dev/null +++ b/src/stdio/flockfile.c @@ -0,0 +1,9 @@ +#include "stdio_impl.h" +#include "pthread_impl.h" + +void flockfile(FILE *f) +{ + pthread_self(); + libc.lockfile = __lockfile; + __lockfile(f); +} |