14 lines
204 B
C
14 lines
204 B
C
|
#include "stdio_impl.h"
|
||
|
#include "pthread_impl.h"
|
||
|
|
||
|
void funlockfile(FILE *f)
|
||
|
{
|
||
|
if (f->lockcount == 1) {
|
||
|
__unlist_locked_file(f);
|
||
|
f->lockcount = 0;
|
||
|
__unlockfile(f);
|
||
|
} else {
|
||
|
f->lockcount--;
|
||
|
}
|
||
|
}
|