1*c9945492SAndroid Build Coastguard Worker #include "stdio_impl.h" 2*c9945492SAndroid Build Coastguard Worker #include "pthread_impl.h" 3*c9945492SAndroid Build Coastguard Worker flockfile(FILE * f)4*c9945492SAndroid Build Coastguard Workervoid flockfile(FILE *f) 5*c9945492SAndroid Build Coastguard Worker { 6*c9945492SAndroid Build Coastguard Worker if (!ftrylockfile(f)) return; 7*c9945492SAndroid Build Coastguard Worker __lockfile(f); 8*c9945492SAndroid Build Coastguard Worker __register_locked_file(f, __pthread_self()); 9*c9945492SAndroid Build Coastguard Worker } 10