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

9
src/stdio/flockfile.c Normal file
View File

@ -0,0 +1,9 @@
#include "stdio_impl.h"
#include "pthread_impl.h"
void flockfile(FILE *f)
{
pthread_self();
libc.lockfile = __lockfile;
__lockfile(f);
}