flockfile.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/flockfile.c
blob: 8e2206514c67db4bd05aef79484ad110a07170ed (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "stdio_impl.h"
#include "pthread_impl.h"
void flockfile(FILE *f)
{
	if (!ftrylockfile(f)) return;
	__lockfile(f);
	__register_locked_file(f, __pthread_self());
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 18:08:24 +0000

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