source:
EcnlProtoTool/trunk/musl-1.1.18/src/stdio/funlockfile.c
Last change on this file was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 240 bytes |
Line | |
---|---|
1 | #include "stdio_impl.h" |
2 | #include "pthread_impl.h" |
3 | |
4 | void __unlist_locked_file(FILE *); |
5 | |
6 | void funlockfile(FILE *f) |
7 | { |
8 | if (f->lockcount == 1) { |
9 | __unlist_locked_file(f); |
10 | f->lockcount = 0; |
11 | __unlockfile(f); |
12 | } else { |
13 | f->lockcount--; |
14 | } |
15 | } |
Note:
See TracBrowser
for help on using the repository browser.