Sign in
mojo
/
mojo-tools
/
862d13b6f591fb83034e80ed5a8c59fb9d0b7b56
/
.
/
fusl
/
src
/
stdio
/
funlockfile.c
blob: 6c58b4b74f72dcceca0f2bef96bd2beea0c830d3 [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
#include
"pthread_impl.h"
void
__unlist_locked_file
(
FILE
*);
void
funlockfile
(
FILE
*
f
)
{
if
(
f
->
lockcount
==
1
)
{
__unlist_locked_file
(
f
);
f
->
lockcount
=
0
;
__unlockfile
(
f
);
}
else
{
f
->
lockcount
--;
}
}