From 5eb0d33ec0f08b123c5c10877d6258d05fa9453a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 12 Mar 2011 21:55:45 -0500 Subject: implement flockfile api, rework stdio locking --- src/stdio/flockfile.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/stdio/flockfile.c (limited to 'src/stdio/flockfile.c') 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); +} -- cgit v1.2.1