aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-05-12 12:48:13 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-05-12 12:48:13 +0000
commit08f6a9bfc9a9ef93767f9fdcbc5c1991a943061a (patch)
treefc3c8f6e46e4917520a075a3020110ac3a879de6 /lock.c
parentdbf4266b849395808cd77ec2f12d2aa471854533 (diff)
downloadfetchmail-08f6a9bfc9a9ef93767f9fdcbc5c1991a943061a.tar.gz
fetchmail-08f6a9bfc9a9ef93767f9fdcbc5c1991a943061a.tar.bz2
fetchmail-08f6a9bfc9a9ef93767f9fdcbc5c1991a943061a.zip
Rename all fetchmail-internal lock_* functions to fm_lock_*. Obsoletes
NetBSD portable packages collection patch-ah, patch-ai and patch-aj. svn path=/branches/BRANCH_6-3/; revision=4826
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lock.c b/lock.c
index 277e20bf..39351be1 100644
--- a/lock.c
+++ b/lock.c
@@ -26,7 +26,7 @@
static char *lockfile; /* name of lockfile */
static int lock_acquired; /* have we acquired a lock */
-void lock_setup(struct runctl *ctl)
+void fm_lock_setup(struct runctl *ctl)
/* set up the global lockfile name */
{
/* set up to do lock protocol */
@@ -63,7 +63,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
@@ -71,7 +71,7 @@ void lock_dispose(void)
#endif
}
-int lock_state(void)
+int fm_lock_state(void)
{
int pid, st;
FILE *lockfp;
@@ -111,13 +111,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;