blob: e09633915964b41f2b146f6a0ffea872fd6f84ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/* $OpenBSD: flockfile.c,v 1.5 2001/09/04 22:17:45 fgsch Exp $ */
#include <stdio.h>
#include "thread_private.h"
/*
* Subroutine versions of the macros in <stdio.h>
* Note that these are all no-ops because libc does not do threads.
* Strong implementation of file locking in libc_r/uthread/uthread_file.c
*/
#undef flockfile
#undef ftrylockfile
#undef funlockfile
#undef _flockfile_debug
WEAK_PROTOTYPE(flockfile);
WEAK_PROTOTYPE(ftrylockfile);
WEAK_PROTOTYPE(funlockfile);
WEAK_PROTOTYPE(_flockfile_debug);
WEAK_ALIAS(flockfile);
WEAK_ALIAS(ftrylockfile);
WEAK_ALIAS(funlockfile);
WEAK_ALIAS(_flockfile_debug);
void
WEAK_NAME(flockfile)(fp)
FILE * fp;
{
}
int
WEAK_NAME(ftrylockfile)(fp)
FILE * fp;
{
return 0;
}
void
WEAK_NAME(funlockfile)(fp)
FILE * fp;
{
}
void
WEAK_NAME(_flockfile_debug)(fp, fname, lineno)
FILE * fp;
char * fname;
int lineno;
{
}
|