blob: 6efd6f194810a023584e4fcb1a892fc0e026c7b3 (
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
56
|
$NetBSD: patch-aj,v 1.1.2.2 2005/11/01 21:51:26 salo Exp $
--- lock.c.orig 2003-08-13 10:08:17.000000000 +0200
+++ lock.c
@@ -24,7 +24,7 @@
static char *lockfile; /* name of lockfile */
static int lock_acquired; /* have we acquired a lock */
-void lock_setup(void)
+void fm_lock_setup(void)
/* set up the global lockfile name */
{
/* set up to do lock protocol */
@@ -55,7 +55,7 @@ static void unlockit(void)
unlink(lockfile);
}
-void lock_dispose(void)
+void fm_lock_dispose(void)
/* arrange for a lock to be removed on process exit */
{
#ifdef HAVE_ATEXIT
@@ -66,7 +66,7 @@ void lock_dispose(void)
#endif
}
-int lock_state(void)
+int fm_lock_state(void)
{
int pid, st;
FILE *lockfp;
@@ -88,13 +88,13 @@ int lock_state(void)
return(bkgd ? -pid : pid);
}
-void lock_assert(void)
+void fm_lock_assert(void)
/* assert that we already posess a lock */
{
lock_acquired = TRUE;
}
-void lock_or_die(void)
+void fm_lock_or_die(void)
/* get a lock on a given host or exit */
{
int fd;
@@ -125,7 +125,7 @@ void lock_or_die(void)
}
}
-void lock_release(void)
+void fm_lock_release(void)
/* release a lock on a given host */
{
unlink(lockfile);
|