funlockfile.c\stdio\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/funlockfile.c
blob: 44d8b0df5cff33216ca0968f8789fac3bb8b4a25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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--;
	}
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 11:41:19 +0000

AltStyle によって変換されたページ (->オリジナル) /