GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/libc/stdio/flockfile.c Lines: 0 5 0.0 %
Date: 2017-11-07 Branches: 0 6 0.0 %

Line Branch Exec Source
1
/*	$OpenBSD: flockfile.c,v 1.9 2016/05/07 19:05:22 guenther Exp $	*/
2
3
#include <stdio.h>
4
#include "local.h"
5
6
void
7
flockfile(FILE *fp)
8
{
9
	FLOCKFILE(fp);
10
}
11
DEF_WEAK(flockfile);
12
13
14
int
15
ftrylockfile(FILE *fp)
16
{
17
	if (_thread_cb.tc_ftrylockfile != NULL)
18
		return (_thread_cb.tc_ftrylockfile(fp));
19
20
	return 0;
21
}
22
DEF_WEAK(ftrylockfile);
23
24
void
25
funlockfile(FILE *fp)
26
{
27
	FUNLOCKFILE(fp);
28
}
29
DEF_WEAK(funlockfile);